:root {
  --paper: #f5efe4;
  --paper-soft: #fbf7ef;
  --paper-deep: #e9e1d3;
  --ink: #1a2039;
  --muted: #686778;
  --accent: #f9a3c0;
  --accent-ink: #1a2039;
  --dark: #141a2f;
  --dark-soft: #1e2744;
  --dark-ink: #f7f1e7;
  --dark-muted: #b9b9c7;
  --line: #d8cfc0;
  --line-dark: rgba(247, 241, 231, 0.2);
  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1320px;
  --display: "Zilla Slab", "Iowan Old Style", Georgia, serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

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

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.brand-name {
  font-weight: 750;
}

.brand-slash {
  color: var(--muted);
  font-weight: 400;
}

.brand-page {
  color: var(--muted);
  font-weight: 500;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-size: 13px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.topnav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topnav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(46px, 8vh, 92px) 0 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 8.6vw, 116px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.08em;
}

.hero-lede {
  max-width: 40ch;
  margin: 30px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.hero-meta span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-photo {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  aspect-ratio: 4 / 5;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.desk {
  margin-top: clamp(68px, 11vh, 132px);
}

.section-head,
.build-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  align-items: end;
  gap: clamp(24px, 6vw, 80px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.section-head h2,
.build-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.section-head > p,
.build-head > p {
  max-width: 36ch;
  margin: 0 0 0.3em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(20px, 3vw, 30px);
}

.gear-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  transition: border-color 180ms ease, transform 180ms ease;
}

.gear-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.gear-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: clamp(16px, 2vw, 26px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.gear-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 240ms ease;
}

.gear-card:hover .gear-media img {
  transform: scale(1.025);
}

.gear-index {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 7px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
}

.gear-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(18px, 2vw, 26px);
}

.gear-kind {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gear-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.gear-spec {
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: -0.02em;
}

.gear-copy > p:last-child {
  margin: auto 0 0;
  padding-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.build {
  margin-top: clamp(72px, 11vh, 140px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--dark);
  color: var(--dark-ink);
}

.build .eyebrow {
  color: var(--dark-muted);
}

.build-head {
  border-color: var(--line-dark);
}

.build-head > p {
  color: var(--dark-muted);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(26px, 4vw, 44px);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.spec {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  background: var(--dark);
}

.spec-icon {
  width: 38px;
  height: 38px;
  margin-bottom: clamp(22px, 4vw, 42px);
  color: var(--accent);
}

.spec-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spec-label {
  margin: 0 0 10px;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec h3 {
  margin: 0;
  color: var(--dark-ink);
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.spec-detail {
  margin: 18px 0 0;
  color: var(--dark-muted);
  font-size: 11px;
  line-height: 1.5;
}

.build-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: var(--dark-muted);
  font-size: 11px;
  line-height: 1.5;
}

.build-note p {
  margin: 0;
}

.build-note span {
  margin-right: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer {
  margin-top: clamp(80px, 12vh, 140px);
  padding: clamp(28px, 4vw, 48px) 0;
  background: var(--dark);
  color: var(--dark-ink);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.footer-mark {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: 38ch;
  color: var(--dark-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.footer-side p {
  margin: 0;
}

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

.footer-nav a {
  color: var(--dark-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 32px;
  }

  .hero-photo {
    aspect-ratio: 1 / 1;
  }

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

  .gear-copy {
    padding: 18px;
  }

  .gear-copy h3 {
    font-size: clamp(24px, 2.7vw, 32px);
  }

  .section-head,
  .build-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0 8px;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 76px);
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
  }

  .hero-photo figcaption {
    right: 10px;
    bottom: 10px;
  }

  .section-head,
  .build-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .section-head h2,
  .build-head h2 {
    font-size: clamp(40px, 12vw, 62px);
  }

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

  .gear-media {
    aspect-ratio: 16 / 10;
  }

  .gear-copy h3 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .build {
    padding: 28px 20px;
  }

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

  .spec {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
  }

  .spec-icon {
    grid-row: span 3;
    width: 34px;
    height: 34px;
    margin: 0;
  }

  .spec-label {
    margin: 0;
  }

  .spec h3 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .spec-detail {
    grid-column: 2;
    margin: 8px 0 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-side {
    align-items: flex-start;
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gear-card,
  .gear-media img {
    transition: none;
  }
}
