@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600-italic.woff2") format("woff2");
}

:root {
  --paper: #eef1f4;
  --paper-deep: #e2e6ec;
  --card: #f8fafc;
  --ink: #12181f;
  --muted: #3d4754;
  --moss: #16324f;
  --moss-mid: #1f4a73;
  --moss-soft: #e6eef6;
  --clay: #c05612;
  --brass: #b45309;
  --line: #d0d6de;
  --line-strong: #b5bec8;
  --display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  --measure: 40rem;
  --radius: 1.25rem;
  --shadow: 0 16px 40px rgba(15, 28, 42, 0.08);
  --header: 4.6rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(22, 50, 79, 0.10), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--moss) 0 72%, var(--brass) 72% 100%);
}

img { max-width: 100%; height: auto; }

a { color: var(--moss-mid); text-underline-offset: 0.18em; }

a:hover { color: var(--clay); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  scroll-margin-top: 5.5rem;
}

p { margin: 0 0 1rem; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.skip:focus { top: 0.6rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(238, 241, 244, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  background: var(--moss);
  color: #f4f1ea;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-toggle {
  font-family: var(--sans);
  font-size: 0.92rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}

.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1rem;
}

.nav.is-open { display: grid; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid var(--line);
}

.nav a[aria-current="page"] {
  color: var(--moss);
  box-shadow: inset 0 -2px 0 var(--moss);
}

@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .mast-inner { position: relative; }
  .nav {
    display: flex;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 0.7rem;
    align-items: center;
  }
  .nav a {
    border: 0;
    padding: 0.25rem 0;
    font-size: 0.88rem;
  }
}

.hero, .page-hero, .band, .footer-wrap { padding-block: 2.5rem; }

@media (min-width: 800px) {
  .hero, .page-hero { padding-block: 4.25rem 3rem; }
  .band { padding-block: 1rem 4rem; }
}

.hero-grid, .page-hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: end;
}

@media (min-width: 960px) {
  .hero-grid, .page-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.25rem;
  }
}

.eyebrow, .kicker, .footer-label, .product-kicker, .stub-flag {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  margin: 0 0 1rem;
  color: var(--ink);
}

.dek {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.meta-row, .byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.frame {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(181, 190, 200, 0.8);
}

.frame img {
  display: block;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.frame.portrait img,
.shelf-card img,
.guide-card img { aspect-ratio: 4 / 3; }

.frame figcaption, .product-caption, .caption {
  margin: 0;
  padding: 0.7rem 0.95rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2, .band h2, .related h2, .letter h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
}

.shelf, .guide-grid, .footer-grid, .trust {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .shelf, .guide-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1040px) {
  .shelf { grid-template-columns: repeat(4, 1fr); }
}

.shelf-card, .guide-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.shelf-card:hover, .guide-card:hover { color: inherit; border-color: var(--line-strong); }

@media (prefers-reduced-motion: no-preference) {
  .shelf-card, .guide-card, .product-todo {
  display: inline-block;
  margin: 0.6rem 0 0.7rem;
  padding: 0.55rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--moss-soft);
}

.btn { transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
  .shelf-card:hover, .guide-card:hover { transform: translateY(-3px); }
}

.shelf-card div, .guide-card div { padding: 1rem 1.05rem 1.15rem; }

.shelf-card h2, .guide-card h3 {
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.shelf-card p, .guide-card p { color: var(--muted); margin: 0; }

.guide-card h3 { font-size: 1.7rem; }

.trust article, .letter, .author, .note {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.trust h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.trust p { margin: 0; color: var(--muted); }

.letter {
  margin-top: 2.5rem;
  background:
    linear-gradient(180deg, rgba(230, 238, 246, 0.7), rgba(248, 250, 252, 0.2));
}

.stub-flag { color: var(--clay); }

.crumbs {
  font-family: var(--sans);
  font-size: 0.88rem;
  margin: 0 0 1.1rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.45rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

.page-hero { padding-bottom: 0.5rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.prose { font-size: 1.125rem; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 2.3rem 0 0.75rem; }
.prose h3 { font-size: 1.35rem; margin: 1.6rem 0 0.5rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.prose a { font-weight: 600; }
.prose table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 1rem;
}
.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.65rem 0.55rem 0;
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--moss);
  border-bottom: 1px solid var(--line-strong);
}
.prose tr:last-child td { border-bottom: 0; }
.prose .frame { margin: 1.75rem 0; }
.prose .frame .product-photo-link { border-radius: 0; }

.article-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-hero { order: 0; }
.toc { order: 1; }
.prose { order: 2; }

.toc ol { margin: 0; padding-left: 1.1rem; }
.toc a { color: var(--muted); text-decoration: none; font-family: var(--sans); font-size: 0.92rem; }
.toc a:hover { color: var(--moss); text-decoration: underline; }
.toc li { margin: 0.4rem 0; }

@media (min-width: 1040px) {
  .article-grid {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) 15.5rem;
    grid-template-areas:
      "hero toc"
      "prose toc";
    justify-content: center;
    column-gap: 3rem;
    row-gap: 1.5rem;
    align-items: start;
  }
  .article-hero { grid-area: hero; order: 0; }
  .prose { grid-area: prose; order: 0; }
  .toc {
    grid-area: toc;
    order: 0;
    position: sticky;
    top: 6rem;
    padding-top: 0.25rem;
  }
}

.affiliate-note {
  margin: 1.5rem 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
}

.prose .affiliate-note { font-weight: 400; }

.product {
  margin: 1.75rem 0;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}

.product-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .product-layout { grid-template-columns: 11.5rem minmax(0, 1fr); align-items: start; }
}

.product-photo-link {
  display: block;
  border-radius: 0.8rem;
  line-height: 0;
}
.product-photo {
  width: 100%;
  border-radius: 0.8rem;
  background: #0e1720;
  object-fit: cover;
  aspect-ratio: 1;
}

.product h3 { margin: 0 0 0.4rem; font-size: 1.55rem; }
.product ul { margin: 0.6rem 0 1rem; padding-left: 1.1rem; }
.product .product-todo {
  display: inline-block;
  margin: 0.6rem 0 0.7rem;
  padding: 0.55rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--moss-soft);
}

.btn { margin-bottom: 0.7rem; }

.product-todo {
  display: inline-block;
  margin: 0.6rem 0 0.7rem;
  padding: 0.55rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--moss-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--moss);
  color: #f7f3ea;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
}

.btn:hover { background: var(--moss-mid); color: #fff; }

.faq { margin-top: 2rem; }
.faq h2 { margin-bottom: 0.4rem; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.35;
}
.faq details p { margin: 0.7rem 0 0.2rem; color: var(--ink); }

.author {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .author { grid-template-columns: auto 1fr; align-items: start; }
}

.avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--moss);
  color: #f6f1e7;
  font-family: var(--display);
  font-size: 1.4rem;
  object-fit: cover;
}

.author-links {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.author h2 { font-size: 1.35rem; margin: 0; }
.author p { margin: 0.25rem 0 0; color: var(--muted); }

.related { padding-bottom: 3.5rem; }
.related-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.related-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}
.related-list a {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.related-list a:hover { color: var(--moss); }
.related-list p { margin: 0.35rem 0 0; color: var(--muted); }

.story-link {
  font-family: var(--sans);
  font-size: 0.92rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.story-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}
.story-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.story-card span {
  padding: 0.75rem 0.8rem 0.9rem;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.recommend { padding-bottom: 3.5rem; }
.recommend-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16rem, 78%);
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
}
.recommend-card {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  min-height: 100%;
}
.recommend-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.recommend-card > span { padding: 0.85rem 0.95rem 1rem; display: block; }
h3.recommend-title {
  display: block;
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
}
@media (min-width: 900px) {
  .recommend-grid {
    grid-auto-flow: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
}

.soon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.soon-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.soon {
  flex: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.guide-list { display: grid; gap: 1rem; margin: 1.5rem 0 2.5rem; }

.guide-row {
  display: grid;
  gap: 0.35rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
}

@media (min-width: 700px) {
  .guide-row { grid-template-columns: 8rem 1fr; align-items: start; }
}

.guide-row strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #e2e6ec;
  padding: 2.5rem 0 2rem;
  color: var(--muted);
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.footer-grid a { color: var(--ink); text-decoration: none; display: inline-block; padding: 0.18rem 0; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid p { margin-top: 0; }

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr; gap: 1.5rem; }
}

.colophon {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.92rem;
}

.sources { font-size: 1rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .mast, .site-footer, .toc, .letter, .nav-toggle { display: none !important; }
  body { background: #fff; }
  a { text-decoration: underline; }
}
