@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600.woff2") format("woff2");
}

:root {
  --bg: #f3efe6;
  --ink: #171915;
  --ink-soft: #3c4338;
  --muted: #5c6458;
  --line: rgba(23, 25, 21, 0.14);
  --coral: #d1432c;
  --leaf: #1e6844;
  --gold: #e3b15c;
  --cream: #fffaf3;
  --shadow: 0 18px 40px rgba(23, 25, 21, 0.1);
  --header: 76px;
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.pull,
.facts dd,
.logo,
.footer-brand,
.email-link,
.piece strong,
.index,
.steps span {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1,
h2 {
  text-wrap: balance;
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  margin-bottom: 16px;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

::selection {
  background: var(--coral);
  color: var(--cream);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
}

.lede {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.45rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--coral);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  padding: 36px 0 8px;
  background-image:
    linear-gradient(rgba(23, 25, 21, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 21, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: center;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.15rem);
  margin-bottom: 22px;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--coral);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--ink);
}

.btn:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 25, 21, 0.28);
}

.btn-ghost:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.board {
  position: relative;
  height: 520px;
}

.piece {
  position: absolute;
  width: 196px;
  min-height: 168px;
  padding: 18px 18px 16px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow);
}

.piece strong {
  font-size: 1.85rem;
  line-height: 1;
}

.piece-match {
  background: var(--coral);
  color: var(--cream);
  top: 12px;
  left: 12px;
  transform: rotate(-7deg);
}

.piece-puzzle {
  background: var(--cream);
  color: var(--ink);
  top: 28px;
  right: 8px;
  transform: rotate(6deg);
  border: 1px solid var(--line);
}

.piece-collect {
  background: var(--leaf);
  color: var(--cream);
  bottom: 72px;
  left: 0;
  transform: rotate(5deg);
}

.piece-round {
  background: var(--gold);
  color: var(--ink);
  bottom: 8px;
  right: 18px;
  transform: rotate(-3deg);
  width: 214px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts div {
  padding: 22px 8px 22px 0;
}

.facts div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 8px 0 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.facts a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.section {
  padding: 96px 0;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.work-intro {
  position: sticky;
  top: calc(var(--header) + 28px);
}

.work-intro .lede {
  margin-top: 8px;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.work-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.index {
  font-size: 1.6rem;
  color: var(--coral);
  line-height: 1;
  padding-top: 4px;
}

.work-list p,
.steps p,
.prose p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 16px;
}

.section-studio {
  padding-top: 20px;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.pull {
  max-width: 16ch;
  margin: 64px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 48px 0 0;
  padding: 0;
}

.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.steps span {
  display: block;
  font-size: 1.7rem;
  color: var(--coral);
  line-height: 1;
}

.steps h3 {
  margin-top: 14px;
}

.contact {
  background: var(--ink);
  color: var(--cream);
  padding: 104px 0 88px;
}

.contact h2 {
  max-width: 12ch;
}

.eyebrow-light {
  color: #e7c98a;
}

.contact-lead {
  margin: 0;
  color: #d9d4cb;
  font-size: 1.15rem;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 28px;
}

.email-link {
  color: var(--cream);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}

.email-link:hover {
  color: var(--gold);
}

.copy-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 243, 0.4);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--cream);
  color: var(--ink);
}

.copy-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: #e7c98a;
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(255, 250, 243, 0.14);
  padding: 36px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.legal {
  margin: 0;
  color: #d0cbc2;
  font-size: 0.95rem;
}

.legal + .legal {
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .piece {
    transition: transform 0.25s ease;
  }

  .piece:hover {
    transform: rotate(0deg) translateY(-8px);
    z-index: 2;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .work-layout,
  .studio-layout,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    gap: 28px;
  }

  .work-intro {
    position: static;
  }

  .board {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .piece,
  .piece-match,
  .piece-puzzle,
  .piece-collect,
  .piece-round {
    position: static;
    width: auto;
    min-height: 148px;
    transform: none;
  }

  .pull {
    max-width: 14ch;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(23, 25, 21, 0.06);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-grid,
  .footer-links,
  .footer-links nav {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .section {
    padding: 72px 0;
  }

  .contact {
    padding: 80px 0 64px;
  }

  .piece {
    min-height: 132px;
    padding: 14px;
    border-radius: 22px;
  }

  .piece strong {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .piece {
    transition: none;
  }
}
