/* Warm editorial ramp. One accent (oak/leather), measurements in mono as the signature. */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-warm: #f2ede6;
  --ink: #1f1d1a;
  --ink-2: #4a433b;
  --muted: #6b6258;
  --border: rgba(31, 29, 26, 0.1);
  --border-strong: rgba(31, 29, 26, 0.18);
  --accent: #9c5a3c;
  --accent-dark: #7d452b;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
strong, b { font-weight: 600; }

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color 150ms var(--ease);
}
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1064px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.m { font-family: var(--mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  font-family: var(--serif); font-size: 1.375rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--ink); }

/* Type */
h1, h2, h3 {
  font-family: var(--serif); font-weight: 600; line-height: 1.2;
  margin: 0 0 12px; color: var(--ink);
}
h1 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.eyebrow {
  display: inline-block;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  margin-bottom: 12px;
}

/* Hero */
.hero { padding: 80px 0 48px; text-align: center; }
.hero.compact { padding-bottom: 32px; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 760px; margin: 0 auto 16px; }
.hero p { color: var(--ink-2); max-width: 36rem; margin: 0 auto; font-size: 1.125rem; }

/* Pillar cards (shown only when more than one pillar is active) */
.pillar-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 32px 0 48px; text-align: left;
}
.pillar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; text-decoration: none; color: inherit;
  transition: border-color 150ms var(--ease);
}
.pillar-card:hover { color: inherit; border-color: var(--border-strong); }
.pillar-card .eyebrow { margin-bottom: 4px; }
.pillar-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.pillar-card p { margin: 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }

/* Article grid */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 24px;
}
.section-head h2 { font-size: 1.5rem; margin: 0; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 32px 24px; margin-bottom: 64px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 150ms var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card-media { aspect-ratio: 2 / 3; overflow: hidden; background: var(--surface-warm); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.badge { font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.card h3 { font-size: 1.375rem; line-height: 1.25; margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dark); }
.card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* A lone guide reads as a feature, not one card and two empty columns */
@media (min-width: 721px) {
  .grid:has(> .card:only-child) { grid-template-columns: 1fr; }
  .grid > .card:only-child { flex-direction: row; }
  .grid > .card:only-child .card-media { flex: 0 0 360px; }
  .grid > .card:only-child .card-body { justify-content: center; padding: 48px; }
  .grid > .card:only-child h3 { font-size: 2rem; max-width: 28rem; margin-bottom: 12px; }
  .grid > .card:only-child p { font-size: 1.0625rem; max-width: 32rem; }
}

/* Article page */
.article-head { padding: 48px 0 32px; text-align: center; }
.article-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 16px; }
.meta-line {
  font-size: 0.875rem; color: var(--muted);
  display: flex; justify-content: center; gap: 8px 12px; flex-wrap: wrap;
}

.disclosure-box {
  background: var(--surface-warm); border-radius: 12px; padding: 12px 16px;
  font-size: 0.875rem; color: var(--ink-2); margin: 0 0 32px;
}
.disclosure-box strong { color: var(--ink); }
.article-hero-wrap { margin: 0 0 32px; }
.article-hero {
  border-radius: 16px; overflow: hidden;
  max-height: 680px; margin: 0 auto; background: var(--surface-warm);
}
.article-hero img { width: 100%; height: 100%; max-height: 680px; object-fit: cover; }
.photo-credit { font-size: 0.8125rem; color: var(--muted); text-align: right; margin-top: 8px; }

.intro { font-size: 1.0625rem; color: var(--ink-2); margin-bottom: 32px; }

/* Editorial blocks: measure first, start with one, fit check, skip-if */
.editorial-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 24px;
}
.editorial-panel h2 { font-size: 1.3125rem; margin-bottom: 12px; }
.editorial-panel ul, .editorial-panel ol { margin: 0; padding-left: 20px; }
.editorial-panel li { margin-bottom: 8px; font-size: 0.9375rem; }
.editorial-panel li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }

.start-one-list { list-style: none; padding-left: 0 !important; }
.start-one-list li { margin: 0; padding: 12px 0; border-top: 1px solid var(--border); }
.start-one-list li:first-child { border-top: 0; padding-top: 4px; }
.start-one-list li:last-child { padding-bottom: 0; }
.start-one-list strong { display: block; color: var(--ink); }

.fit-wrap { margin: 40px 0; }
.fit-wrap h2 { font-size: 1.3125rem; margin-bottom: 4px; }
.fit-sub { font-size: 0.875rem; color: var(--muted); margin: 0 0 16px; }
.fit-table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  font-size: 0.875rem; line-height: 1.5;
}
.fit-table th {
  text-align: left; background: var(--surface-warm); color: var(--muted);
  font-weight: 500; font-size: 0.8125rem;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.fit-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fit-table td.m { color: var(--ink); }
.fit-table tr:last-child td { border-bottom: 0; }
.fit-table a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fit-table a:hover { color: var(--accent-dark); }

/* Product pick */
.pick {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; margin-bottom: 24px; scroll-margin-top: 80px;
}
.pick-num { font-size: 0.875rem; font-weight: 500; color: var(--accent-dark); margin-bottom: 4px; }
.pick h2 { font-size: 1.5rem; margin-bottom: 4px; }
.pick-tag { font-size: 0.9375rem; color: var(--muted); margin-bottom: 20px; }

.skip-box {
  background: var(--surface-warm); border-radius: 12px; padding: 12px 16px;
  margin: 0 0 20px; font-size: 0.9375rem; color: var(--ink-2);
}
.skip-box strong { color: var(--accent-dark); }

/* Click-to-load official brand video (youtube-nocookie) */
.yt { margin: 0 0 20px; }
.yt-lite {
  aspect-ratio: 16 / 9; background: var(--surface-warm);
  border-radius: 12px; overflow: hidden;
}
.yt-play-btn {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.yt-play-btn img { width: 100%; height: 100%; object-fit: cover; }
.yt-play-icon {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 64px; height: 44px;
  background: rgba(250, 248, 245, 0.94); color: var(--ink); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
}
.yt-play-icon svg { width: 20px; height: 20px; }
.yt-play-btn:hover .yt-play-icon { background: var(--accent-dark); color: #fff; }
.yt-play-btn:active .yt-play-icon { transform: scale(0.96); }
.yt-play-btn:focus-visible { outline-offset: -4px; border-radius: 12px; }
.yt-caption {
  display: flex; flex-direction: column; gap: 2px; margin-top: 8px;
  font-size: 0.8125rem; color: var(--muted);
}
.yt-lite-title { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.yt-lite.yt-loaded { background: #000; }
.yt-lite.yt-loaded iframe { width: 100%; height: 100%; border: 0; display: block; }

.pros-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px;
  border-top: 1px solid var(--border); padding-top: 20px; margin: 24px 0;
}
.pros-grid h4 { margin: 0 0 8px; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.pros-grid ul { margin: 0; padding-left: 18px; font-size: 0.9375rem; color: var(--ink-2); }
.pros-grid li { margin-bottom: 4px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  padding: 10px 20px; border-radius: 10px;
  transition: background-color 150ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: scale(0.98); }
.cta-note { font-size: 0.8125rem; color: var(--muted); }

.tips-box {
  background: var(--surface-warm); border-radius: 16px;
  padding: 24px 28px; margin: 40px 0;
}
.tips-box h2 { font-size: 1.3125rem; margin-bottom: 8px; }
.tips-box ul { margin: 0; padding-left: 20px; color: var(--ink-2); }

.related { margin-top: 64px; }
.page { padding: 48px 24px 24px; }
.page-body { margin-top: 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 40px 0 48px;
  margin-top: 64px; font-size: 0.875rem; color: var(--muted);
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center;
}
.footer-inner strong { color: var(--ink-2); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .container, .narrow { padding: 0 16px; }
  .hero { padding: 48px 0 32px; }
  .pillar-strip { grid-template-columns: 1fr; }
  .pros-grid { grid-template-columns: 1fr; }
  .pick { padding: 20px; }
  .header-inner { flex-direction: column; gap: 4px; padding: 12px 0; }
  .nav { gap: 20px; }
  .photo-credit { text-align: left; }
  .fit-table, .fit-table thead, .fit-table tbody, .fit-table tr, .fit-table td { display: block; width: 100%; }
  .fit-table thead { display: none; }
  .fit-table { border: 0; background: transparent; }
  .fit-table tr {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
  }
  .fit-table td {
    border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px;
  }
  .fit-table td::before {
    content: attr(data-label); font-family: var(--sans); font-size: 0.8125rem;
    color: var(--muted); flex-shrink: 0;
  }
  .fit-table td:first-child {
    display: block; font-size: 1rem; padding-bottom: 8px;
    border-bottom: 1px solid var(--border); margin-bottom: 4px;
  }
  .fit-table td:first-child::before { display: none; }
}
