/* Signal Press — editorial review layout
   Google-friendly: stable layout (CLS), fast paint, readable type, clear hierarchy.
   No external fonts/JS. Full-bleed brand shots break the text column. */

:root {
  --bg: #ebe6df;
  --bg-deep: #e0d9cf;
  --surface: #faf8f5;
  --ink: #14110f;
  --ink-soft: #3a342e;
  --muted: #6e655c;
  --line: #d2cac0;
  --accent: #c45c26;
  --accent-deep: #9a3f12;
  --accent-soft: #f3d9c8;
  --signal: #0f6b63;
  --signal-soft: #d5ebe8;
  --warn: #8a4b12;
  --warn-bg: #f1e2d0;
  --radius: 3px;
  --text: 42rem;
  --shell: 48rem;
  --wide: 72rem;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(196, 92, 38, 0.09), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(15, 107, 99, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
}

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

a {
  color: #0563c1;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: inherit;
}

a:hover {
  color: #034ea2;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.shell--wide {
  width: min(100% - 2rem, var(--wide));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(250, 248, 245, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

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

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border: 1px solid var(--warn);
  color: var(--warn);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  background: var(--warn-bg);
}

/* Hero — front-load answer for Google + humans */
.article-hero {
  padding: 1.8rem 0 1.2rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.025em;
}

.deck {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.55;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.byline__author {
  font-weight: 650;
  color: var(--ink-soft);
}

/* TOC — scannability / dwell */
.toc {
  margin: 0 auto 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
}

.toc__label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  columns: 1;
}

@media (min-width: 720px) {
  .toc ol {
    columns: 2;
    column-gap: 1.5rem;
  }
}

.toc li {
  break-inside: avoid;
  margin: 0.25rem 0;
  font-size: 0.92rem;
}

.toc a {
  color: #0563c1;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.toc a:hover {
  color: #034ea2;
}

/* Article body */
.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  margin-bottom: 2.5rem;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1rem;
  max-width: var(--text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  max-width: var(--text);
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body li::marker {
  color: var(--accent);
}

h2 {
  margin: 2.4rem 0 0.9rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-soft);
  max-width: none;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.18rem;
}

/* Brand shots — stay inside the article column */
.brand-shot,
.brand-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1.1rem 0 1.6rem;
  background: #1a1714;
  overflow: hidden;
  border-radius: var(--radius);
}

.brand-shot img,
.brand-image img {
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 16 / 9;
  background: #241f1b;
}

.brand-shot figcaption,
.brand-image figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 2rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(10, 8, 6, 0.82));
  color: #f7f3ee;
  font-size: 0.95rem;
}

.brand-shot__rank {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffc49a;
}

.brand-shot__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0 1.7rem;
  border: 1px solid var(--line);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
  font-size: 0.94rem;
}

.article-body th,
.article-body td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: #f1ece5;
  font-weight: 700;
  white-space: nowrap;
}

.article-body tr:hover td {
  background: rgba(15, 107, 99, 0.04);
}

/* All article links — plain document blue, no buttons */
.article-body a,
.article-body a.affiliate-link,
.article-body a.affiliate-cta,
.article-body a.external-link,
.article-body a[href*="offer_id="],
.article-body a[href*="aff_id="],
.article-body a[href*="source_id="],
.article-body a[href*="sourceId="],
.article-body table a,
.article-body h2 a,
.article-body h3 a,
.article-body p > a.affiliate-link:only-child,
.article-body p > a.external-link:only-child {
  display: inline;
  margin: 0;
  padding: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  color: #0563c1 !important;
  font-weight: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  transform: none !important;
}

.article-body a:hover,
.article-body a.affiliate-cta:hover,
.article-body p > a.affiliate-link:only-child:hover,
.article-body p > a.external-link:only-child:hover {
  color: #034ea2 !important;
  background: none !important;
  transform: none !important;
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--signal);
  color: var(--ink-soft);
  max-width: var(--text);
}

/* Age + footer */
.age-notice {
  background: var(--warn-bg);
  border-top: 1px solid #e0c9a8;
  border-bottom: 1px solid #e0c9a8;
}

.age-notice .shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
}

.age-notice p {
  margin: 0;
  color: #5d3a16;
  font-size: 0.92rem;
}

.site-footer {
  padding: 1.6rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--muted);
}

.footer-meta {
  margin: 0.35rem 0 0;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
}

.error-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 2rem auto;
  width: min(100% - 2rem, var(--shell));
}

.error-code {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .article-body {
    padding: 1.1rem 0.95rem 1.45rem;
  }

  .brand-shot img,
  .brand-image img {
    max-height: 40vh;
  }

  .age-notice .shell {
    grid-template-columns: 1fr;
  }
}

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