/* Small Space Sorted — editorial redesign, July 2026 */
:root {
  --paper: #f7f3ec;
  --paper-soft: #fbf9f5;
  --paper-deep: #ebe3d7;
  --ink: #25211d;
  --ink-soft: #48423c;
  --muted: #756e66;
  --line: #d8cfc2;
  --line-dark: #a79d90;
  --terracotta: #a95336;
  --terracotta-dark: #7e3e2b;
  --olive: #6b7154;
  --mustard: #b99135;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 1240px;
  --reading: 740px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(169, 83, 54, .48);
  text-underline-offset: .18em;
}

a:hover {
  color: var(--terracotta-dark);
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  background: var(--ink);
  color: white;
}

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

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(247, 243, 236, .97);
}

.masthead {
  width: min(var(--content), calc(100% - 64px));
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.header-kicker {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand {
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand > span {
  margin-bottom: .25rem;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.brand strong {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.55rem);
  font-weight: 400;
  letter-spacing: -.055em;
}

.brand small {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .05em;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-actions > a {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  min-height: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 3.4rem);
}

.site-nav a {
  padding: 1rem 0;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--terracotta);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line-dark);
  background: transparent;
  display: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
  display: block;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--terracotta-dark);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 54px 32px 100px;
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  align-items: stretch;
}

.hero-media {
  min-height: 650px;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 360px;
  padding: .8rem 1rem;
  background: rgba(247, 243, 236, .94);
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}

.hero-content {
  padding: clamp(2.5rem, 6vw, 6.3rem);
  background: var(--paper-deep);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-content h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6.5vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .92;
}

.hero-content > p:not(.eyebrow) {
  max-width: 560px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.button {
  min-height: 48px;
  padding: .85rem 1.25rem;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: white;
}

.button.secondary {
  background: transparent;
}

.content-band {
  width: min(var(--content), 100%);
  margin: 0 auto;
  padding: 100px 32px;
}

.section-heading {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr);
  align-items: end;
  gap: 4rem;
}

.section-heading h2,
.editorial-strip h2,
.footer-intro h2,
.library-copy h2,
.category-feature h2,
.two-column h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.section-heading > p,
.section-heading > div + p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.8rem 1.6rem;
}

.guide-card {
  min-width: 0;
  border-top: 1px solid var(--line-dark);
}

.guide-card-image {
  margin-top: .75rem;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
  text-decoration: none;
}

.guide-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.guide-card:hover .guide-card-image img {
  transform: scale(1.018);
  filter: saturate(.9);
}

.guide-card-body {
  padding-top: 1.2rem;
}

.guide-card-meta {
  margin: 0 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-card-meta span:first-child {
  color: var(--terracotta-dark);
}

.guide-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.07;
}

.guide-card h3 a {
  text-decoration: none;
}

.guide-card-body > p:not(.guide-card-meta) {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.card-read {
  margin-top: 1.15rem;
  display: inline-flex;
  gap: .55rem;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-guide-grid .guide-card:first-child {
  grid-column: span 2;
}

.home-guide-grid .guide-card:first-child .guide-card-image img {
  aspect-ratio: 16 / 9;
}

.home-guide-grid .guide-card:first-child h3 {
  max-width: 750px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-action {
  margin: 3rem 0 0;
  text-align: right;
}

.text-link {
  padding-bottom: .15rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.room-band {
  width: 100%;
  max-width: none;
  padding-right: max(32px, calc((100vw - var(--content)) / 2 + 32px));
  padding-left: max(32px, calc((100vw - var(--content)) / 2 + 32px));
  background: var(--paper-soft);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.category-card {
  min-height: 230px;
  padding: 2rem 1.5rem 2.2rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  color: var(--ink);
  position: relative;
  text-decoration: none;
}

.category-card:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 2.5rem;
}

.category-card:nth-child(even) {
  padding-left: 2.5rem;
}

.category-card::after {
  width: 48px;
  height: 3px;
  position: absolute;
  right: 1.5rem;
  bottom: -2px;
  background: var(--accent);
  content: "";
}

.category-number {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.category-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.category-card p {
  max-width: 480px;
  margin: .8rem 0;
  color: var(--muted);
  font-size: .88rem;
}

.category-card div > span {
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.library-band {
  width: min(var(--content), calc(100% - 64px));
  margin: 100px auto 0;
  padding: clamp(3rem, 6vw, 6.5rem);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
  align-items: end;
  gap: 6rem;
}

.library-copy h2 {
  max-width: 760px;
}

.library-copy > p:last-child {
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: #cfc5b8;
}

.library-band .eyebrow {
  color: #d89072;
}

.finder-links {
  border-top: 1px solid #68615a;
  display: grid;
}

.finder-links a {
  padding: 1rem 0;
  border-bottom: 1px solid #68615a;
  display: flex;
  justify-content: space-between;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
  text-decoration: none;
}

.editorial-strip {
  width: min(var(--content), calc(100% - 64px));
  margin: 100px auto;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 3.5rem;
}

.editorial-strip h2 {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
}

.editorial-strip > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
}

.page-hero {
  width: min(var(--content), 100%);
  margin: 0 auto;
  padding: 100px 32px 80px;
}

.page-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7vw, 7.3rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .93;
}

.page-hero > p,
.page-hero > div > p:last-child {
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.65;
}

.archive-hero,
.static-hero,
.category-hero {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr);
  align-items: end;
  gap: 5rem;
}

.archive-hero > p,
.static-hero > p {
  margin: 0 0 .35rem;
}

.category-hero h1 {
  color: var(--ink);
}

.category-hero::before {
  width: 80px;
  height: 5px;
  margin-bottom: 1.5rem;
  background: var(--accent);
  content: "";
  grid-column: 1 / -1;
}

.category-mantra {
  margin: 0 !important;
  color: var(--ink-soft) !important;
  font-family: var(--serif) !important;
  font-size: 1.2rem !important;
  font-style: italic;
  line-height: 1.7 !important;
}

.category-feature-band {
  padding-bottom: 40px;
}

.category-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  align-items: stretch;
}

.category-feature-image {
  min-height: 560px;
  overflow: hidden;
  background: var(--paper-deep);
}

.category-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-feature-copy {
  padding: clamp(2.5rem, 5vw, 5rem);
  background: var(--paper-deep);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.category-feature h2 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

.category-feature h2 a {
  text-decoration: none;
}

.category-feature-copy > p:not(.eyebrow, .feature-meta) {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
}

.feature-meta {
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.category-list-band {
  padding-top: 70px;
}

.category-checklist-band {
  width: 100%;
  max-width: none;
  padding-right: max(32px, calc((100vw - var(--content)) / 2 + 32px));
  padding-left: max(32px, calc((100vw - var(--content)) / 2 + 32px));
  background: var(--paper-deep);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 6rem;
}

.two-column > div > p:last-child {
  max-width: 680px;
  color: var(--muted);
}

.finder {
  margin-bottom: 3rem;
}

.finder.stacked {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  align-items: center;
  gap: 1rem 2rem;
}

.finder label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.finder input {
  width: 100%;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  outline: none;
  background: var(--paper-soft);
  color: var(--ink);
}

.finder input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 2px rgba(169, 83, 54, .12);
}

.chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.chip {
  padding: .58rem .9rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.breadcrumb {
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 2.2rem;
  display: flex;
  gap: .65rem;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.breadcrumb a {
  text-decoration: none;
}

.article-header {
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 70px 0 52px;
  text-align: center;
}

.article-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -.066em;
  line-height: .92;
}

.article-deck {
  max-width: 820px;
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-points {
  margin: 2.3rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  text-align: left;
}

.hero-points li {
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.5;
}

.hero-points li::before {
  color: var(--terracotta);
  content: "— ";
}

.byline {
  margin-top: 1.7rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-lead-figure {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

.article-image {
  width: 100%;
  max-height: 760px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-deep);
}

.article-lead-figure figcaption,
.article-photo figcaption,
.article-gallery figcaption {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.disclosure-note {
  width: min(880px, calc(100% - 64px));
  margin: 2.4rem auto 0;
  padding: .9rem 0 .9rem 1.2rem;
  border-left: 3px solid var(--terracotta);
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.55;
}

.disclosure-note strong {
  color: var(--ink);
}

.article-toc-mobile {
  display: none;
}

.article-layout {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 74px 32px 120px;
  display: grid;
  grid-template-columns: 190px minmax(0, var(--reading));
  align-items: start;
  justify-content: center;
  gap: 78px;
}

.article-toc {
  position: sticky;
  top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.article-toc > p {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.article-toc nav {
  display: grid;
}

.article-toc a {
  padding: .37rem 0;
  color: var(--muted);
  font-size: .7rem;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--terracotta-dark);
}

.article-content {
  min-width: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.76;
}

.article-content > section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.article-content > section:first-child {
  padding: 2.7rem;
  border-top: 0;
  background: var(--paper-deep);
}

.article-content h2 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.article-content h3 {
  margin: 1.4rem 0 .65rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
}

.article-content p {
  margin: 0 0 1.15rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}

.article-content li + li {
  margin-top: .68rem;
}

.article-content li::marker {
  color: var(--terracotta);
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: .65rem 0 .65rem 1.45rem;
  border-bottom: 1px solid rgba(167, 157, 144, .45);
  position: relative;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--terracotta);
  content: "•";
}

.pill-list {
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
}

.pill-list li {
  margin: 0 !important;
  padding: .5rem .8rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .68rem;
}

.article-photo {
  margin: 1.5rem 0 0;
}

.article-photo img,
.article-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-deep);
}

.article-gallery {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.article-gallery figure {
  margin: 0;
}

.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .78rem;
  line-height: 1.5;
}

th,
td {
  padding: .9rem .85rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--ink);
  color: white;
  font-size: .65rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

tbody th {
  background: var(--paper-deep);
  font-weight: 700;
}

.detail-list {
  padding: 0 !important;
  list-style: none;
}

.detail-list li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list strong {
  color: var(--terracotta-dark);
}

.scenario-grid,
.decision-grid,
.pros-cons {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.scenario-grid article,
.decision-grid > div,
.pros-cons > div {
  padding: 1.35rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.scenario-grid article h3,
.decision-grid h3,
.pros-cons h3 {
  margin-top: 0;
}

.scenario-grid article p {
  color: var(--muted);
  font-size: .92rem;
}

.field-note {
  padding: 2rem !important;
  border: 0 !important;
  border-left: 4px solid var(--terracotta) !important;
  background: #efe2d4;
}

.field-note h2 {
  font-size: 2.25rem;
}

.alternative {
  margin-top: 1rem !important;
  padding: 1rem 1.2rem;
  background: var(--paper-deep);
}

.shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.shop-link {
  padding: .78rem 1rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.shop-link:hover {
  background: var(--ink);
  color: white;
}

.related-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
}

.related-grid a {
  border-top: 1px solid var(--line-dark);
  display: grid;
  color: var(--ink);
  text-decoration: none;
}

.related-grid img {
  width: 100%;
  margin-top: .6rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.related-grid span {
  margin-top: .8rem;
  color: var(--terracotta-dark);
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.related-grid strong {
  margin-top: .35rem;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
}

.faq-list details {
  border-top: 1px solid var(--line-dark);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.faq-list summary {
  padding: 1rem 2rem 1rem 0;
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-list details p {
  padding: 0 0 1rem;
  color: var(--muted);
}

.author-note {
  padding: 2rem !important;
  border: 0 !important;
  background: var(--ink);
  color: var(--paper);
}

.author-note h2 {
  font-size: 2.25rem;
}

.author-note p {
  color: #d4cbc0;
}

.static-prose,
.prose {
  width: min(var(--reading), 100%);
  padding-top: 80px;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.78;
}

.static-prose h2,
.prose h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}

.static-prose h3,
.prose h3 {
  margin: 2rem 0 .7rem;
  font-size: 1.6rem;
  font-weight: 400;
}

.static-prose p,
.prose p {
  margin: 0 0 1.2rem;
}

.static-prose ul,
.static-prose ol,
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.site-footer {
  margin-top: 0;
  padding: 90px max(32px, calc((100vw - var(--content)) / 2 + 32px)) 34px;
  background: var(--ink);
  color: var(--paper);
}

.footer-intro {
  padding-bottom: 4rem;
  border-bottom: 1px solid #5f5851;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
}

.footer-intro .eyebrow {
  grid-column: 1 / -1;
  color: #d89072;
}

.footer-intro h2 {
  max-width: 840px;
  color: var(--paper);
}

.site-footer .text-link {
  color: var(--paper);
}

.footer-grid {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 5rem;
}

.footer-brand {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 2rem;
}

.footer-grid p:not(.footer-brand) {
  max-width: 400px;
  color: #c7bfb5;
  font-size: .85rem;
}

.footer-grid h2 {
  margin: 0 0 1rem;
  color: #d89072;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  list-style: none;
}

.footer-grid a,
.footer-bottom a {
  color: var(--paper);
  font-size: .78rem;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #5f5851;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.fine-print {
  margin: 0;
  color: #a99f95;
  font-size: .68rem;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 980px) {
  .masthead {
    width: calc(100% - 40px);
    min-height: 88px;
    grid-template-columns: 1fr auto;
  }

  .header-kicker,
  .header-actions > a {
    display: none;
  }

  .brand {
    min-width: 0;
    align-items: flex-start;
    justify-self: start;
  }

  .brand > span {
    margin-bottom: .15rem;
    font-size: .55rem;
  }

  .brand strong {
    font-size: 2.25rem;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    padding: .6rem 20px 1rem;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .editorial-hero,
  .library-band,
  .section-heading,
  .archive-hero,
  .static-hero,
  .category-hero,
  .category-feature,
  .two-column,
  .editorial-strip,
  .footer-intro,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px 20px 70px;
  }

  .hero-media {
    min-height: 520px;
  }

  .hero-content {
    padding: 4rem 3rem;
  }

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

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

  .category-card:nth-child(odd),
  .category-card:nth-child(even) {
    padding: 2rem 1.5rem 2rem 0;
    border-right: 0;
  }

  .library-band {
    width: calc(100% - 40px);
    gap: 3rem;
  }

  .editorial-strip {
    gap: 2rem;
  }

  .page-hero {
    padding-top: 70px;
    gap: 2.5rem;
  }

  .category-feature-image {
    min-height: 500px;
  }

  .category-feature-copy {
    padding: 3rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .article-toc {
    display: none;
  }

  .article-toc-mobile {
    width: min(var(--reading), calc(100% - 40px));
    margin: 2.2rem auto 0;
    padding: .9rem 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    display: block;
  }

  .article-toc-mobile summary {
    font-family: var(--serif);
    font-size: 1.15rem;
    cursor: pointer;
  }

  .article-toc-mobile nav {
    padding-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .4rem 1rem;
  }

  .article-toc-mobile a {
    color: var(--muted);
    font-size: .75rem;
    text-decoration: none;
  }

  .footer-intro .eyebrow {
    grid-column: auto;
  }

  .footer-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .content-band {
    padding: 72px 20px;
  }

  .hero-media {
    min-height: 410px;
  }

  .hero-media figcaption {
    max-width: 88%;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .hero-content h1 {
    font-size: clamp(3.25rem, 15vw, 4.8rem);
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 2.5rem;
    gap: 1.5rem;
  }

  .section-heading h2,
  .library-copy h2,
  .editorial-strip h2,
  .footer-intro h2,
  .two-column h2 {
    font-size: 2.9rem;
  }

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

  .home-guide-grid .guide-card:first-child {
    grid-column: auto;
  }

  .home-guide-grid .guide-card:first-child h3,
  .guide-card h3 {
    font-size: 2rem;
  }

  .category-card {
    min-height: 0;
    grid-template-columns: 48px 1fr;
  }

  .category-card h3 {
    font-size: 2rem;
  }

  .library-band {
    width: calc(100% - 40px);
    margin-top: 70px;
    padding: 3rem 1.5rem;
  }

  .editorial-strip {
    width: calc(100% - 40px);
    margin: 70px auto;
  }

  .page-hero {
    padding: 68px 20px 54px;
  }

  .page-hero h1 {
    font-size: clamp(3.3rem, 15vw, 5.2rem);
  }

  .category-feature-band {
    padding-right: 0;
    padding-left: 0;
  }

  .category-feature-image {
    min-height: 340px;
  }

  .category-feature-copy {
    padding: 2.2rem 1.25rem 2.6rem;
  }

  .category-feature h2 {
    font-size: 3rem;
  }

  .finder.stacked {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    width: calc(100% - 40px);
  }

  .article-header {
    width: calc(100% - 40px);
    padding: 52px 0 38px;
    text-align: left;
  }

  .article-header h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .article-deck {
    font-size: 1.05rem;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .byline {
    justify-content: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .article-lead-figure {
    width: 100%;
  }

  .article-image {
    aspect-ratio: 4 / 3;
  }

  .article-lead-figure figcaption {
    padding: 0 20px;
  }

  .disclosure-note {
    width: calc(100% - 40px);
  }

  .article-layout {
    padding: 34px 20px 80px;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content > section {
    padding: 2.5rem 0;
  }

  .article-content > section:first-child {
    margin-right: -2px;
    margin-left: -2px;
    padding: 1.7rem;
  }

  .article-content h2 {
    font-size: 2.7rem;
  }

  .article-gallery,
  .scenario-grid,
  .decision-grid,
  .pros-cons,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-toc-mobile nav {
    grid-template-columns: 1fr;
  }

  .table-wrap table {
    min-width: 650px;
  }

  .static-prose,
  .prose {
    padding-top: 55px;
    font-size: 1rem;
  }

  .site-footer {
    padding: 70px 20px 28px;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
