:root {
  --paper: #f3eee6;
  --ink: #1a2330;
  --muted: #3a4758;
  --sage: #1b5649;
  --line: rgba(26, 35, 48, 0.12);
  --card: rgba(255, 252, 248, 0.82);
  --shadow: 0 16px 36px rgba(72, 48, 28, 0.05);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --page: 1080px;
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 44rem 32rem at -4% -6%, rgba(232, 176, 148, 0.55), transparent 68%),
    radial-gradient(ellipse 36rem 28rem at 108% -4%, rgba(166, 198, 186, 0.48), transparent 66%),
    radial-gradient(ellipse 42rem 28rem at 80% 115%, rgba(198, 208, 226, 0.55), transparent 70%);
  background-repeat: no-repeat;
  box-shadow: inset 0 4px 0 var(--sage);
}

body,
.page {
  position: relative;
}

::selection {
  background: #d5ebe4;
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 2;
  transform: translateY(-160%);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fffdf8;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.page {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-bottom: 2.5rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1.15rem 0 0.25rem;
}

.brand {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.nav a,
.back a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 0.22em;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.hero {
  padding: clamp(2.4rem, 6vw, 4.75rem) 0 clamp(1.75rem, 4vw, 3rem);
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 13vw, 6.4rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

.tagline {
  margin-top: 1.25rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.tagline::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-bottom: 1.15rem;
  background: var(--sage);
  border-radius: 999px;
}

.back {
  margin-top: 1.5rem;
}

.panel {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3.25rem);
  scroll-margin-top: 1.25rem;
}

.section-head {
  display: grid;
  gap: 0.45rem;
  max-width: 36rem;
  margin-bottom: 1.35rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.section-head p,
.card p,
.person p {
  color: var(--muted);
}

.builds,
.crew {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.card,
.person {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.3rem 1.25rem 1.4rem;
}

.card h3,
.person h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.card h3 {
  margin: 0.7rem 0 0.4rem;
}

.index {
  color: var(--sage);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 620;
  letter-spacing: 0.06em;
}

.crew {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person {
  display: grid;
  justify-items: start;
  gap: 0.2rem;
  padding: 1rem 0.95rem 1.05rem;
}

.person h3 {
  margin-top: 0.65rem;
  font-size: 1.2rem;
}

.person p {
  font-size: 0.95rem;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 620;
}

.mark-sage { background: #d7ebe4; }
.mark-clay { background: #f6e1d8; }
.mark-sand { background: #f3e7cf; }
.mark-mist { background: #e3e8f1; }
.mark-olive { background: #e5edd8; }
.mark-lilac { background: #e9e4f2; }

.site-footer {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding: 1.4rem 0 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-name {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 0.15rem;
  }

  .nav {
    width: 100%;
    gap: 0.25rem 1.1rem;
  }
}

@media (min-width: 720px) {
  .builds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crew {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .crew {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .person {
    padding-inline: 0.8rem;
  }
}

@media (hover: hover) {
  .card,
  .person {
    transition: border-color 0.2s ease;
  }

  .card:hover,
  .person:hover {
    border-color: rgba(27, 86, 73, 0.4);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .panel {
    animation: fade-in 0.55s ease both;
  }

  .panel:nth-of-type(2) {
    animation-delay: 0.08s;
  }

  .panel:nth-of-type(3) {
    animation-delay: 0.14s;
  }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
