:root {
  --navy: #061522;
  --gold: #cea15a;
  --paper: #f9f7f3;
  --white: #f5f5f3;
  --ink: #102331;
  --display: "halogen", "Arial Black", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 7px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
.wrap { width: min(1120px, calc(100% - 112px)); margin-inline: auto; }

.site-header { height: 112px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; }
.brand img { width: 46px; height: 46px; }
nav { display: flex; gap: 48px; align-items: center; }
nav a { color: var(--white); font: 14px/1.5 var(--body); letter-spacing: .04em; text-transform: uppercase; padding-block: 12px; }
nav a.active, nav a:hover { color: var(--gold); }

.hero { padding-top: 110px; padding-bottom: 142px; }
/* All Halogen headings use uppercase lettering. */
h1 { color: var(--gold); font-family: var(--display); font-size: clamp(25px, 2.75vw, 40px); font-weight: 700; font-style: normal; letter-spacing: -.035em; line-height: 1.55; text-transform: uppercase; }
.intro-line { display: block; }
h1 a, .highlight { color: var(--white); }
h1 a:hover { color: var(--gold); }

.selected-work { background: var(--paper); padding: 64px 0 76px; }
.project-grid { width: min(100%, 920px); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 38px; }
.project { min-width: 0; }
.project-link { display: block; }
.project-link > img { width: 100%; height: auto; }
.project-link h3 { padding-top: 14px; font: 400 14px/1.5 var(--body); }
.project-link:hover h3 { color: #85602b; }

.site-footer { background: var(--navy); color: var(--white); padding: 40px 0 56px; }
.footer-invitation { width: min(100%, 920px); margin-inline: auto; text-align: center; }
.email-link { display: inline-block; max-width: 100%; margin-top: 18px; padding-block: 6px; font-size: clamp(24px, 4vw, 48px); font-weight: 400; letter-spacing: -.035em; line-height: 1.3; }
.email-link:hover { color: var(--gold); }
.footer-signature { margin-top: 48px; color: #a7afb7; font-size: 14px; line-height: 1.6; }
.footer-signature span { margin-inline: 7px; }

.skip-link { position: absolute; left: 20px; top: -100px; background: var(--paper); color: var(--navy); padding: 12px 16px; z-index: 10; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@keyframes text-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .text-enter,
  .hero h1,
  .case-hero h1,
  .case-subtitle,
  .case-byline,
  .case-copy,
  .project-link h3,
  .case-body figcaption,
  .footer-invitation {
    animation: text-enter 520ms cubic-bezier(.22, .61, .36, 1) backwards;
  }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 80px); }
  .hero { padding-top: 90px; padding-bottom: 112px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { height: 96px; }
  .brand img { width: 40px; height: 40px; }
  nav { gap: 28px; }
  .hero { padding-top: 66px; padding-bottom: 86px; }
  h1 { font-size: clamp(20px, 4.6vw, 30px); line-height: 1.55; }
  .selected-work { padding: 32px 0 42px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 26px; }
  .project-link h3 { padding-top: 10px; }
  .site-footer { padding: 32px 0 40px; }
  .email-link { margin-top: 12px; }
  .footer-signature { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
