/* SheenWise — editorial theme (2026-10-30). Mobile-first. */
:root {
  --bg: #fbf8f3;          /* Eggshell */
  --surface: #ffffff;
  --surface-2: #f4efe6;   /* Warm linen */
  --ink: #1b2632;         /* Primer Navy (headings) */
  --text: #2f3740;        /* Body */
  --muted: #5a636d;       /* AA on bg and white */
  --accent: #2d6a5c;      /* Deep Satin Sage / teal */
  --accent-ink: #1f4f44;
  --accent-soft: #e5efeb;
  --brass: #9a6f27;       /* Brass Pull (AA-safe) */
  --brass-soft: #f7eedc;
  --line: #e6dfd2;
  --line-strong: #d6cdbd;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(27, 38, 50, .05), 0 4px 16px rgba(27, 38, 50, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: 20px;
}
@media (min-width: 720px) { :root { --pad: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; }
main { display: block; }

/* Links & focus */
a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(45, 106, 92, .45); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* Type scale */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); margin: .4em 0 .45em; line-height: 1.12; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.9rem); margin: 2em 0 .55em; }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); margin: 1.6em 0 .45em; font-weight: 600; }
p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: .4em; }
li::marker { color: var(--accent); }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* Containers */
.wrap { max-width: calc(70ch + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.wide { max-width: calc(1120px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
header.site { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(6px); }
header.site .wide { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo .glint { color: var(--brass); }
header.site nav { display: flex; align-items: center; gap: 2px; margin-right: -10px; }
header.site nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
header.site nav a:hover { background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 440px) {
  .logo { font-size: 1.25rem; }
  header.site nav { margin-right: -6px; gap: 0; }
  header.site nav a { padding: 0 8px; font-size: .875rem; }
}
@media (max-width: 370px) {
  .logo { font-size: 1.15rem; }
  header.site nav a { padding: 0 6px; font-size: .84rem; }
}
@media (min-width: 720px) {
  header.site .wide { min-height: 68px; }
  .logo { font-size: 1.6rem; }
  header.site nav { gap: 6px; }
  header.site nav a { padding: 0 14px; font-size: 1rem; }
}

/* Footer */
footer.site { background: var(--ink); color: #d9dee4; margin-top: 72px; padding: 40px 0 32px; font-size: .9375rem; line-height: 1.65; }
footer.site a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); display: inline-block; padding: 10px 0; }
footer.site .foot-note { max-width: 70ch; }
footer.site .copy { color: #b8c0c9; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* Hero (home) */
.hero { padding-top: 32px; padding-bottom: 8px; }
.hero h1 { max-width: 16ch; margin-top: 0; }
.hero p.lede { font-size: 1.125rem; color: var(--text); max-width: 60ch; }
@media (min-width: 720px) { .hero { padding-top: 64px; } .hero p.lede { font-size: 1.25rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.hero-img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin-top: 28px; box-shadow: var(--shadow); aspect-ratio: 1600 / 618; object-fit: cover; }
@media (max-width: 560px) { .hero-img { aspect-ratio: 4 / 3; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--ink); transition: background .15s, color .15s; }
.btn:hover { background: #0f1720; color: #fff; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.alt:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
@media (max-width: 420px) { .hero-ctas .btn { flex: 1 1 100%; } }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 40px 0 8px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card h3, .card .card-title { margin: 0 0 .35em; font-size: 1.25rem; font-weight: 600; }
.card p { font-size: .975rem; color: var(--text); margin-bottom: .9em; }
.card > a:last-child, .card > .paid:last-child { margin-top: auto; margin-bottom: 0; }
.cards .card > a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.cards .card > a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.cards .card:has(> a):hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 2px 4px rgba(27,38,50,.06), 0 10px 28px rgba(27,38,50,.09); }
.cards .card::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 16px; }
.cards .card:nth-child(2)::before { background: var(--brass); }
.cards .card:nth-child(3)::before { background: #a65a3c; }
.cards .card:nth-child(4)::before { background: var(--ink); }
.cta-card { background: var(--accent-soft); border-color: #cfe0d9; box-shadow: none; margin-top: 40px; }
.cta-card h3, .cta-card .card-title { margin-top: 0; }
.paid { font-size: .875rem; color: var(--muted); }
.card .paid { font-style: italic; }

/* Guide lists */
.guide-list { list-style: none; padding: 0; margin: 0 0 1.4em; border-top: 1px solid var(--line); }
.guide-list li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.guide-list li > a { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; color: var(--ink); text-decoration: none; line-height: 1.35; display: inline-block; padding: 4px 0; }
.guide-list li > a:hover { color: var(--accent); text-decoration: underline; }

/* Article chrome */
article.wrap > h1 { margin-top: .25em; }
.crumbs { margin-top: 24px; font-size: .875rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 10px 2px; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (min-width: 720px) { .crumbs { margin-top: 40px; } }
.byline { color: var(--muted); font-size: .9375rem; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.byline a { font-weight: 600; }

/* Disclosure / callouts */
.disclosure { background: var(--brass-soft); border: 1px solid #ecdcbc; border-left: 4px solid var(--brass); border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: .9375rem; line-height: 1.6; margin: 20px 0 24px; color: #3d3526; }
.disclosure strong { color: #5e4415; }
.disclosure a { color: #5e4415; text-decoration-color: rgba(94, 68, 21, .5); }
.takeaways { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px 6px; margin: 24px 0 32px; box-shadow: var(--shadow); }
.takeaways h2 { font-size: 1.2rem; margin: 0 0 10px; }
.takeaways ul { padding-left: 1.2em; }
.definition { background: var(--accent-soft); border: 1px solid #cfe0d9; border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.definition > :last-child { margin-bottom: 0; }
.todo { background: #fff6e0; border: 1px solid #e8c77a; padding: 12px 16px; border-radius: 10px; font-size: .9375rem; margin: 20px 0; }
.todo-inline { background: #fff4d6; border: 1px dashed var(--brass); padding: 0 4px; border-radius: 4px; font-size: .9em; }
.photo-slot { border: 2px dashed #8fb0a5; background: var(--accent-soft); padding: 28px 16px; text-align: center; margin: 24px 0; border-radius: var(--radius); color: var(--ink); }
.photo-slot strong { display: block; margin-bottom: 4px; }

/* Figures */
figure.photo { margin: 28px 0; }
figure.photo img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
figure.photo.portrait img { max-width: 480px; margin: 0 auto; }
figure.photo.small img { max-width: 600px; margin: 0 auto; }
figure.photo figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; text-align: center; line-height: 1.5; }
.photo-pair { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .photo-pair { grid-template-columns: 1fr 1fr; } }

/* Tables: scroll inside their wrapper, never the page */
.table-scroll { margin: 24px 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  background-image: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)), linear-gradient(to left, #fff 30%, rgba(255,255,255,0)), radial-gradient(farthest-side at 0 50%, rgba(27,38,50,.14), transparent), radial-gradient(farthest-side at 100% 50%, rgba(27,38,50,.14), transparent);
  background-position: left center, right center, left center, right center; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.table-scroll table { margin: 0; border: 0; background: transparent; }
table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 24px 0; font-size: .9375rem; line-height: 1.5; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
td { min-width: 9.5rem; }
td:first-child { min-width: 8.5rem; }
thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .875rem; letter-spacing: .01em; white-space: nowrap; }
@media (max-width: 560px) { thead th { white-space: normal; min-width: 8.5rem; } }
tbody tr:nth-child(even) td { background: rgba(244, 239, 230, .7); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 600; color: var(--ink); }
.table-scroll tbody td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.table-scroll tbody tr:nth-child(even) td:first-child { background: #f8f5ef; }
.table-scroll thead th:first-child { position: sticky; left: 0; z-index: 2; }
@media (min-width: 720px) { .table-scroll tbody td:first-child, .table-scroll thead th:first-child { position: static; box-shadow: none; } }
/* Phones: each table row becomes a labeled card (labels come from the column headers) */
@media (max-width: 599px) {
  .table-scroll { overflow: visible; border: 0; background: none; box-shadow: none; }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack-sm tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
  table.stack-sm td, .table-scroll table.stack-sm tbody tr:nth-child(even) td { position: static; min-width: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  table.stack-sm tr td:last-child { border-bottom: 0; }
  table.stack-sm td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .table-scroll table.stack-sm tbody td:first-child, .table-scroll table.stack-sm tbody tr:nth-child(even) td:first-child { background: var(--ink); color: #fff; font-family: var(--serif); font-size: 1.05rem; }
  table.stack-sm td:first-child::before { color: #c9d1da; }
}

/* FAQ, sources, author, related */
.faq { margin-top: 2.5em; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 4px; margin-bottom: 12px; }
.faq-item h3 { font-size: 1.1rem; margin: 0 0 6px; }
.sources ol { font-size: .9375rem; padding-left: 1.4em; }
.sources li { margin-bottom: .6em; }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 44px; padding: 18px 20px; font-size: .9375rem; box-shadow: var(--shadow); }
.author-box img { border-radius: 50%; flex: none; width: 56px; height: 56px; }
.author-box p { margin: 0; }
.related { margin-top: 8px; }
.related ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.related li { margin: 0; border-bottom: 1px solid var(--line); }
.related li a { display: block; padding: 12px 0; font-weight: 600; text-decoration: none; }
.related li a::after { content: " \2192"; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { header.site { position: static; } footer.site { background: none; color: #000; } }
