:root {
  --bg-canvas: #f7f6f2;
  --bg-surface: #ffffff;
  --bg-subtle: #edeae2;
  --bg-dark: #142622;
  --bg-dark-elevated: #1d3630;

  --ink-primary: #18221f;
  --ink-secondary: #4a5954;
  --ink-muted: #687872;
  --ink-on-dark: #f8faf9;
  --ink-on-dark-muted: #a7bdb6;

  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #e0f2f1;
  --terracotta: #c2410c;
  --terracotta-soft: #ffedd5;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --plum: #9d174d;
  --plum-soft: #fce7f3;
  --ocean: #0369a1;
  --ocean-soft: #e0f2fe;

  --border: #e3dfd5;
  --border-strong: #cdc7b8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(20, 38, 34, 0.05);
  --shadow-md: 0 12px 28px rgba(20, 38, 34, 0.08);
  --shadow-lg: 0 20px 44px rgba(20, 38, 34, 0.13);

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Disclosure Top Bar */
.top-disclosure {
  background: var(--bg-dark);
  color: var(--ink-on-dark-muted);
  font-size: 0.79rem;
  line-height: 1.45;
  padding: 0.52rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-disclosure p {
  max-width: var(--container);
  margin: 0 auto;
}

.top-disclosure a {
  color: #5eead4;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.top-disclosure a:hover {
  color: #ffffff;
}

/* Sticky Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #14b8a6 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(15, 118, 110, 0.25);
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--bg-surface);
  padding: 0.28rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.primary-nav a {
  padding: 0.42rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.primary-nav a:hover {
  color: var(--ink-primary);
  background: var(--bg-subtle);
}

.primary-nav a.is-active {
  background: var(--accent);
  color: #ffffff;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.52rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-dark);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.header-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-primary);
  border-radius: 2px;
}

/* Containers & Sections */
.section-block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.25rem 1.25rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-sub {
  margin: 0.35rem 0 0;
  color: var(--ink-secondary);
  font-size: 0.96rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  white-space: nowrap;
}

.section-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Buttons & Category Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.72rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-ocean {
  background: var(--ocean-soft);
  color: var(--ocean);
}

.pill-terracotta {
  background: var(--terracotta-soft);
  color: var(--terracotta);
}

.pill-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill-plum {
  background: var(--plum-soft);
  color: var(--plum);
}

/* Bento Hero */
.bento-hero {
  max-width: var(--container);
  margin: 1.75rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
}

.hero-main-card {
  background:
    radial-gradient(circle at 90% 15%, rgba(20, 184, 166, 0.26), transparent 48%),
    radial-gradient(circle at 10% 90%, rgba(217, 119, 6, 0.18), transparent 45%),
    var(--bg-dark);
  color: var(--ink-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.65rem;
  box-shadow: var(--shadow-lg);
}

.hero-visual-banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 7.8;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.82rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #99f6e4;
  font-size: 0.78rem;
  font-weight: 600;
  width: fit-content;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}

.hero-main-card h1 {
  margin: 0.85rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0;
  color: #d1fae5;
  opacity: 0.9;
  font-size: 1.02rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spotlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.spotlight-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

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

.spotlight-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.spotlight-body h2 {
  margin: 0.55rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.28;
}

.spotlight-body h2 a:hover {
  color: var(--accent);
}

.spotlight-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.mini-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mini-pick {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.mini-pick:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.mini-pick h3 {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.32;
}

.mini-pick-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

/* 5-Column Category Bento Strip */
.category-bento {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.95rem;
}

.cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cat-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-icon.ocean { background: var(--ocean-soft); color: var(--ocean); }
.cat-icon.teal { background: var(--accent-soft); color: var(--accent); }
.cat-icon.terracotta { background: var(--terracotta-soft); color: var(--terracotta); }
.cat-icon.amber { background: var(--amber-soft); color: var(--amber); }
.cat-icon.plum { background: var(--plum-soft); color: var(--plum); }

.cat-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  padding: 0.2rem 0.58rem;
  border-radius: var(--radius-pill);
}

.cat-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
}

.cat-card p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

/* Magazine Split Featured Section */
.magazine-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
}

.lead-story {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.lead-story-media {
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--bg-subtle);
}

.lead-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lead-story:hover .lead-story-media img {
  transform: scale(1.02);
}

.lead-story-body {
  padding: 1.5rem 1.65rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.lead-story-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.25;
}

.lead-story-body h3 a:hover {
  color: var(--accent);
}

.lead-story-body p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.96rem;
}

.story-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-row {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 1rem;
  align-items: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.story-row:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.story-row-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
}

.story-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-row-body h3 {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.3;
}

.story-row-body h3 a:hover {
  color: var(--accent);
}

.story-row-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

/* Brand Bento Showcase */
.brand-bento-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.95rem;
}

.brand-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.brand-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.brand-tile-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-monogram {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffffff;
  flex-shrink: 0;
}

.mono-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.mono-ocean { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.mono-crimson { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.mono-terracotta { background: linear-gradient(135deg, #c2410c, #f97316); }
.mono-plum { background: linear-gradient(135deg, #7e22ce, #a855f7); }
.mono-forest { background: linear-gradient(135deg, #15803d, #22c55e); }
.mono-slate { background: linear-gradient(135deg, #1e293b, #475569); }
.mono-rose { background: linear-gradient(135deg, #be185d, #ec4899); }

.brand-tile-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.brand-tile-title span {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.brand-tile p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-secondary);
}

.brand-tile-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

/* 3-Column Guide Card Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.guide-card[hidden] {
  display: none;
}

.guide-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

.guide-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.guide-card-body h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.3;
}

.guide-card-body h3 a:hover {
  color: var(--accent);
}

.guide-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  flex: 1;
}

.card-read-link {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Filter Bar (All Posts) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.48rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Category Banner Hero */
.page-banner {
  max-width: var(--container);
  margin: 1.75rem auto 0;
  padding: 0 1.25rem;
}

.page-banner-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.page-banner-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-subtle);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--ink-secondary);
  font-weight: 600;
}

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

.page-banner h1 {
  margin: 0.5rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-banner p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1rem;
}

/* Article Layout (Left Sticky Rail + Right Main Reading Column) */
.article-layout {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.article-rail {
  position: sticky;
  top: 5.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.rail-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.toc-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.toc-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.rail-cta {
  background: linear-gradient(155deg, var(--bg-dark) 0%, var(--bg-dark-elevated) 100%);
  color: var(--ink-on-dark);
  border: none;
}

.rail-cta .rail-title {
  color: #ffffff;
}

.rail-cta p {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.rail-cta .btn {
  width: 100%;
}

.article-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}

.article-title {
  margin: 0.65rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.article-lead {
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
  color: var(--ink-secondary);
}

.byline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.byline-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.article-hero-figure {
  margin: 0 0 1.85rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  aspect-ratio: 16 / 9;
}

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

.article-prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.38rem;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
}

.article-prose p {
  margin: 0 0 1.1rem;
  color: #1f2d29;
}

.article-prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: #1f2d29;
}

.article-prose li {
  margin-bottom: 0.45rem;
}

.article-prose a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.checklist-box {
  margin: 1.85rem 0;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent);
}

.checklist-box h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.checklist-box ul {
  margin: 0;
}

/* Legal & Error Shells */
.legal-wrapper {
  max-width: 840px;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}

.error-wrapper {
  max-width: 920px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.error-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.error-card h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.error-card p {
  margin: 0 auto 1.5rem;
  max-width: 48ch;
  color: var(--ink-secondary);
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 4-Column Site Footer */
.site-footer {
  margin-top: 4.5rem;
  background: var(--bg-dark);
  color: var(--ink-on-dark-muted);
  padding: 3.5rem 1.25rem 2rem;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.footer-brand em {
  color: #5eead4;
}

.footer-bio {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 36ch;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--container);
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .category-bento,
  .brand-bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1020px) {
  .bento-hero,
  .magazine-split,
  .page-banner-inner {
    grid-template-columns: 1fr;
  }

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

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-rail {
    position: static;
    order: 2;
  }

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    padding: 0.65rem;
    box-shadow: var(--shadow-lg);
  }

  body.nav-open .primary-nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .mini-pick-grid,
  .category-bento,
  .brand-bento-grid,
  .guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .story-row {
    grid-template-columns: 1fr;
  }
}
