/* HearthBench shared design system: THE CAST-IRON COUNTER
   Pale oak counter (light) + cast-iron charcoal (dark header/footer) +
   one committed accent (tuned gas-burner blue). See
   design/contracts/home-cast-iron-counter.md for the full direction contract.
   Shared by every hub page (about/contact/privacy/terms/home) so the world
   never drifts between pages. */

:root{
  --paper:#f1e3c9; --card:#fff8ec;
  --ink:#2a2019; --muted:#6b5940; --line:#ddc79a;
  --iron:#1b1c1e; --iron2:#101112; --ironline:#38393c; --mist:#cbbfa9;
  --flame:#3a8fd0; --flame-light:#6db3e8; --flame-deep:#1c5c93;
  --maxw:760px;
  --font-display:"Staatliches",Impact,sans-serif;
  --font-body:"Source Serif 4",Georgia,serif;
}

*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%}
body{
  background:var(--paper);color:var(--ink);
  font:16px/1.65 var(--font-body);
  min-height:100vh;display:flex;flex-direction:column;
  overflow-x:hidden;
}
::selection{background:var(--flame-deep);color:#fff}
a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{
  outline:3px solid var(--flame);outline-offset:3px;border-radius:3px;
}
img{max-width:100%;display:block}

.wrap{max-width:var(--maxw);margin:0 auto;padding-left:20px;padding-right:20px;width:100%}

.iron{background:var(--iron);color:var(--mist)}

h1,h2{font-family:var(--font-display);font-weight:400;letter-spacing:0.02em;line-height:1.1;text-transform:uppercase}
h1{font-size:clamp(2rem,7vw,2.9rem);color:#fff;max-width:20ch}
h2{font-size:1.15rem;margin:32px 0 10px;color:var(--ink);letter-spacing:0.03em}
p,li{margin:0 0 14px;max-width:70ch}
ul{padding-left:22px}
strong{font-weight:700}

main a{color:var(--flame-deep);text-decoration-underline-offset:3px;text-decoration-color:var(--flame-light);transition:color 150ms ease-out}
main a:hover{color:var(--iron);text-decoration-color:var(--flame-deep)}

/* header */
header.site{padding-top:18px;padding-bottom:18px;border-bottom:1px solid var(--ironline)}
header.site .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.brand .wordmark{font-family:var(--font-display);font-weight:400;text-transform:uppercase;font-size:1.35rem;color:#fff;letter-spacing:0.02em}
.brand .wordmark b{color:var(--flame-light);font-weight:400}
header.site nav{display:flex;gap:22px}
header.site nav a{color:var(--mist);text-decoration:none;font-size:.95rem;font-weight:700;transition:color 150ms ease-out}
header.site nav a:hover{color:#fff}

.pagehead{padding-top:34px;padding-bottom:38px}
.pagehead p.updated{color:var(--mist);font-size:.9rem;margin:10px 0 0}

main{padding-top:36px;padding-bottom:20px;flex:1;width:100%}

/* footer */
footer.site{background:var(--iron);color:var(--mist);font-size:.9rem;padding-top:30px;padding-bottom:34px;border-top:1px solid var(--ironline);margin-top:48px}
footer.site p{max-width:none}
footer.site .disclosure{margin-bottom:16px}
footer.site .disclosure .tag{color:var(--flame-light);font-weight:400;font-family:var(--font-display);letter-spacing:0.04em;text-transform:uppercase;font-size:.9rem;margin-right:6px}
footer.site nav{margin:14px 0;display:flex;flex-wrap:wrap;gap:6px 18px}
footer.site nav a{color:#fff;text-decoration:none;font-weight:700;transition:color 150ms ease-out}
footer.site nav a:hover{color:var(--flame-light);text-decoration:underline;text-decoration-color:var(--flame)}
footer.site a[href^="mailto"]{color:var(--flame-light)}
footer.site .updated{color:var(--mist);opacity:.9}

@media (max-width:480px){
  .wrap{padding-left:16px;padding-right:16px}
  header.site nav{gap:16px}
  h1{font-size:clamp(1.8rem,9vw,2.3rem)}
}

@media (prefers-reduced-motion: reduce){
  *{transition-duration:0.001ms !important;animation-duration:0.001ms !important}
}

/* geo-fallback module (out/assets/geo-fallback.js, wired by tools/geo-inject.py).
   Honest banner shown only when the bench_geo cookie says the visitor is outside the
   offer's data-geo-allowed list. Unlayered on purpose: it beats the module's own
   @layer gf baseline, so the hub's tokens win over the component's neutral fallback.
   Hoplinks never change by geo; the banner links internally or not at all. */
.geo-fallback{
  min-height:44px;
  background:var(--card);color:var(--ink);
  border-bottom:1px solid var(--line);
  padding:10px 0;margin:0 0 18px;
  font:0.9rem/1.5 var(--font-body);
}
.geo-fallback p{margin:0;max-width:none}
.geo-fallback a{color:var(--flame-deep);font-weight:600;text-decoration:underline}
