/* themarid.com — one column, charcoal and gold, matched to the MARID mark and the SciTech deck. */
:root {
  --bg: #f7f6f2; --fg: #22252a; --muted: #5c6168; --rule: #dedbd2;
  --gold: #8a641f; --gold-soft: #c4a060; --charcoal: #2c2f33; --card: #ffffff;
  --body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1a1c1f; --fg: #e9e7e1; --muted: #a8aba6; --rule: #33373c;
    --gold: #d2b06c; --gold-soft: #c4a060; --charcoal: #111214; --card: #232629; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #1a1c1f; --fg: #e9e7e1; --muted: #a8aba6; --rule: #33373c;
  --gold: #d2b06c; --gold-soft: #c4a060; --charcoal: #111214; --card: #232629; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55;
       padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus-visible { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 880px; margin: 0 auto; }
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
header.top > a { flex: 0 0 auto; }
header.top img { height: 34px; width: auto; }
nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; }
nav a { color: var(--fg); text-decoration: none; letter-spacing: 0.02em; }
nav a:hover { color: var(--gold); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 48px 36px; }
@media (min-width: 720px) { .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.hero > div { min-width: 0; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 22px; max-width: 34em; }
.hero .mark { justify-self: center; width: min(320px, 100%); height: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta a { display: inline-block; padding: 10px 18px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.cta a.primary { background: var(--charcoal); color: var(--gold-soft); }
.cta a.secondary { border: 1px solid var(--gold); color: var(--gold); }

section { padding-block: 36px; border-top: 1px solid var(--rule); }
section h2 { font-family: var(--display); font-weight: 600; font-size: 1.55rem; margin: 0 0 16px; }
section p { max-width: 65ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; color: var(--gold); margin: 0 0 6px; }

.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; }
.numbers div { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; }
.numbers b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.numbers span { font-size: 0.88rem; color: var(--muted); }

figure { margin: 24px 0; }
figure img { background: #fff; border: 1px solid var(--rule); border-radius: 4px; }
figure.chart { display: grid; gap: 10px; }
figure.chart img.panel { display: none; }
@media (max-width: 600px) { figure.chart img.wide { display: none; } figure.chart img.panel { display: block; } }
@media (max-width: 600px) { .numbers { grid-template-columns: 1fr 1fr; } .numbers div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; max-width: 70ch; }

.pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.pubs li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pubs .what { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.pubs .title { font-weight: 600; }
.pubs .note { color: var(--muted); font-size: 0.95rem; }

.variant { border-left: 3px solid var(--gold-soft); padding-left: 14px; margin: 0 0 22px; }
.caveat { border-left: 3px solid var(--gold); padding-left: 14px; color: var(--muted); font-size: 0.95rem; }
.address { font-family: var(--display); font-size: 1.25rem; font-weight: 600; user-select: all; }

footer { padding-block: 32px 48px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; display: grid; gap: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
