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

:root {
  --cream: #F5F0E6;
  --ink: #26201C;
  --brown: #4A3B2D;
  --accent: #D54B2A;
  --red: #C92A23;
  --gold: #D8A11E;
  --dark: #1C1917;
  --dark-2: #2E231D;
  --line: #C7B8A2;
  --muted: #6F655B;
  --font-head: Georgia, 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Helvetica Neue', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-num: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --header-w: 248px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --content-max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: var(--header-w);
  min-height: 100vh;
}

body:has(.site-header) {
  padding-left: var(--header-w);
}

#main-content {
  display: block;
  min-height: 60vh;
  outline: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

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

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

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

/* ===== Container / Layout ===== */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section {
  padding-block: clamp(40px, 6vw, 72px);
}

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.eyebrow {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 38px);
  color: var(--ink);
  line-height: 1.2;
}

.section-desc {
  width: 100%;
  color: var(--brown);
  font-size: 15px;
  max-width: 640px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 24px rgba(213, 75, 42, 0.3);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #c4931a;
  border-color: #c4931a;
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(216, 161, 30, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(213, 75, 42, 0.05);
  box-shadow: none;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--header-w);
  background: var(--dark);
  background-image: radial-gradient(ellipse 140% 60% at 0% 0%, rgba(216, 161, 30, 0.14) 0%, transparent 55%);
  color: var(--cream);
  z-index: 120;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(199, 184, 162, 0.12);
}

.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 64px, var(--gold) 64px, var(--gold) 96px, transparent 96px, transparent 100%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 24px 28px;
  min-height: 100%;
}

.header-inner::after {
  content: '68';
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--font-num);
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  color: rgba(245, 240, 230, 0.045);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
  position: relative;
  z-index: 1;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 46%), var(--accent);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 18px rgba(213, 75, 42, 0.3);
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigation Toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(245, 240, 230, 0.28);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(216, 161, 30, 0.1);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Site Nav */
.site-nav {
  display: block;
  position: relative;
  z-index: 1;
}

.nav-list {
  list-style: none;
  counter-reset: navCounter;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  counter-increment: navCounter;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: rgba(245, 240, 230, 0.72);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-link::before {
  content: '0' counter(navCounter);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0.55;
  transition: opacity 0.18s var(--ease);
}

.nav-link:hover {
  color: #fff;
  background: rgba(245, 240, 230, 0.07);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(213, 75, 42, 0.18);
  box-shadow: inset 0 0 0 1px rgba(213, 75, 42, 0.3);
}

.nav-link[aria-current="page"]::before {
  opacity: 1;
  color: var(--accent);
}

/* Header CTA */
.header-entry {
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Header Progress */
.header-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 500;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 0 3px 3px 0;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  background-image: radial-gradient(ellipse 120% 70% at 80% 100%, rgba(213, 75, 42, 0.08) 0%, transparent 50%);
  color: var(--cream);
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px) 28px;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.6fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  max-width: var(--content-max);
  margin-inline: auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1.2;
}

.footer-brand-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-trust {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.65);
  max-width: 360px;
  margin-top: 6px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(199, 184, 162, 0.18);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  display: inline-block;
  padding: 4px 0;
  color: rgba(245, 240, 230, 0.74);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-link[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.footer-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 240, 230, 0.68);
}

.footer-note {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.5);
  margin-top: 4px;
  border-left: 2px solid rgba(216, 161, 30, 0.5);
  padding-left: 10px;
}

.footer-bottom {
  max-width: var(--content-max);
  margin-inline: auto;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid rgba(199, 184, 162, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.5);
}

.footer-copy {
  color: rgba(245, 240, 230, 0.6);
}

.footer-icp {
  font-family: var(--font-num);
  font-size: 12px;
}

.footer-statement {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  color: rgba(245, 240, 230, 0.35);
  font-size: 12px;
}

/* Scroll Top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: calc(var(--header-w) + 20px);
  z-index: 300;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), background 0.2s var(--ease);
}

.scroll-top:hover {
  background: var(--red);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-icon {
  font-size: 18px;
  line-height: 1;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--muted);
  font-weight: 500;
}

/* ===== Tags ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--dark-2);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.tag.is-accent {
  background: var(--accent);
  color: #fff;
}

.tag.is-gold {
  background: var(--gold);
  color: var(--ink);
}

.tag.is-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.tag.is-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Stats ===== */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-num);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat-number.is-accent {
  color: var(--accent);
}

.stat-number.is-gold {
  color: var(--gold);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ===== Media Frame ===== */
.media-frame {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 100%);
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.03);
}

.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 240, 230, 0.14);
  border-radius: inherit;
  pointer-events: none;
}

.media-frame.is-4-3 {
  aspect-ratio: 4 / 3;
}

.media-frame.is-square {
  aspect-ratio: 1 / 1;
}

.media-frame.is-tall {
  aspect-ratio: 3 / 4;
}

.media-frame.is-placeholder::before {
  content: '68';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-num);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: rgba(216, 161, 30, 0.35);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
}

.media-frame.is-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(216, 161, 30, 0.16);
  border-radius: inherit;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    rgba(216, 161, 30, 0.04) 14px,
    rgba(216, 161, 30, 0.04) 15px
  );
}

/* ===== Data Table ===== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.data-table thead th {
  background: var(--dark-2);
  color: var(--cream);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}

.data-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.data-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(199, 184, 162, 0.14);
}

.data-table tbody tr:hover {
  background: rgba(213, 75, 42, 0.06);
}

.data-table .num {
  font-family: var(--font-num);
  text-align: right;
}

.data-table .red-card {
  color: var(--red);
  font-weight: 700;
}

.data-table .yellow-card {
  color: var(--gold);
  font-weight: 700;
}

/* ===== Content Body ===== */
.content-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.content-body > * + * {
  margin-top: 1em;
}

.content-body h2 {
  font-size: 28px;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
  font-weight: 700;
}

.content-body h3 {
  font-size: 21px;
  color: var(--brown);
  margin-top: 1.6em;
  margin-bottom: 0.35em;
}

.content-body p {
  margin-bottom: 1em;
  color: var(--ink);
}

.content-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body a:hover {
  color: var(--red);
}

.content-body ul,
.content-body ol {
  margin-left: 1.4em;
  margin-bottom: 1em;
}

.content-body li + li {
  margin-top: 0.4em;
}

.content-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  color: var(--brown);
  font-style: italic;
  margin: 1.4em 0;
}

/* ===== Research Board ===== */
.research-board {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 32px);
  margin: 28px 0;
  background: rgba(255, 253, 247, 0.55);
}

.research-board > * + * {
  margin-top: 18px;
}

.research-summary {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.research-evidence {
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.research-evidence li {
  font-size: 14px;
  color: var(--brown);
  padding-left: 20px;
  position: relative;
}

.research-evidence li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--accent);
  font-weight: 700;
}

.research-links {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-links a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.research-links a:hover {
  border-color: var(--accent);
  color: var(--red);
}

/* ===== TOC ===== */
.toc {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(245, 240, 230, 0.7);
  font-size: 14px;
}

.toc-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.toc-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--brown);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.toc-link:hover {
  color: var(--accent);
  background: rgba(213, 75, 42, 0.05);
  padding-left: 14px;
}

.toc-link[aria-current="true"] {
  color: var(--accent);
  font-weight: 600;
  background: rgba(213, 75, 42, 0.08);
}

/* ===== Responsive ===== */
@media (max-width: 1280px) {
  :root {
    --header-w: 228px;
  }
}

@media (max-width: 1023px) {
  body {
    padding-left: 0;
  }

  body:has(.site-header) {
    padding-left: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid rgba(199, 184, 162, 0.12);
    padding: 0;
  }

  .site-header::after {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 64px, var(--gold) 64px, var(--gold) 96px, transparent 96px);
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
  }

  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    min-height: 0;
  }

  .header-inner::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(199, 184, 162, 0.14);
    margin-top: 4px;
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    gap: 2px;
  }

  .nav-link {
    padding: 10px 16px;
  }

  .header-entry {
    margin-top: 0;
    width: auto;
    padding: 10px 18px;
    font-size: 14px;
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .scroll-top {
    left: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .header-entry {
    font-size: 13px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 22px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    display: none;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .skip-link {
    transition: none;
  }

  .btn {
    transform: none !important;
    transition: none !important;
  }

  .scroll-top {
    transition: opacity 0.2s linear;
  }

  .media-frame img {
    transform: none !important;
    transition: none !important;
  }

  .nav-link,
  .footer-link,
  .toc-link {
    transition: none !important;
  }
}
