/* Relic site styles (2026-11-29 redesign). Shared by every page; the homepage adds home.css.
   Brand: Faustina for headings (the app's own title font), the phone's own sans for text. */
@font-face {
  font-family: "Faustina";
  src: url(/site/fonts/Faustina-SemiBold.ttf) format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
:root {
  --bg: #0c0e0b; --surface: #151913; --surface2: #1b2018; --surface3: #222820;
  --line: rgba(232, 223, 204, .10); --line2: rgba(134, 182, 118, .30);
  --accent: #86b676; --accent-d: #5f8a52; --gold: #d6b06a; --gold-d: #b8924a;
  --text: #f0e9d8; --soft: #d9d1bf; --dim: #a29c8b;
  --serif: "Faustina", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --r: 16px; --r-lg: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1409; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, border-color .15s, filter .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #e3c17f, #c9a057); color: #1a1409; box-shadow: 0 6px 22px rgba(214, 176, 106, .22); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .03); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn.sm { padding: 9px 16px; font-size: 15px; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: default; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(12, 14, 11, .74); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1160px; margin: 0 auto; padding: 0 20px; min-height: 64px; display: flex; align-items: center; gap: 8px; }
.mark { margin-right: auto; display: inline-block; padding: 10px 0; font: 600 20px/1 var(--serif); letter-spacing: .34em; color: var(--text); text-decoration: none; }
.main { display: none; }
.main a { display: inline-block; padding: 10px 12px; color: var(--dim); text-decoration: none; font-size: 15px; border-radius: 10px; }
.main a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: rgba(255, 255, 255, .05); }
.menu .panel { position: absolute; right: 0; top: 52px; width: min(280px, 86vw); padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(21, 25, 19, .98); box-shadow: var(--shadow); }
.menu .panel a { display: block; padding: 13px 14px; color: var(--soft); text-decoration: none; border-radius: 10px; }
.menu .panel a:hover { background: rgba(255, 255, 255, .05); }
@media (min-width: 900px) { .main { display: flex; } .menu { display: none; } }

/* Breadcrumbs */
.crumbs { margin: 24px 0 0; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--dim); display: inline-block; padding: 6px 0; text-decoration-color: var(--line2); }
.crumbs span[aria-current] { color: var(--soft); }

/* Article and page text */
.kicker { margin: 28px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 24px 0 14px; font: 600 clamp(34px, 5.6vw, 52px)/1.08 var(--serif); letter-spacing: -.01em; }
.kicker + h1 { margin-top: 0; }
.byline { margin: 0 0 28px; color: var(--dim); font-size: 14px; }
.byline a { color: var(--dim); }
.lede { font-size: 19px; color: var(--soft); }
.prose h2 { margin: 44px 0 10px; font: 600 28px/1.2 var(--serif); }
.prose h3 { margin: 28px 0 6px; font-size: 19px; }
.prose p, .prose li { color: var(--soft); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose .answer { padding: 18px 20px; border: 1px solid var(--line2); border-left: 4px solid var(--gold); background: linear-gradient(90deg, rgba(214, 176, 106, .07), transparent 70%), var(--surface); border-radius: var(--r); color: var(--text); font-size: 18px; }
.prose .note { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 16px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--soft); }
.prose th { color: var(--text); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 2px 8px; }
.prose figure { margin: 24px auto; max-width: 300px; }
.prose figure img { border-radius: 28px; border: 1px solid rgba(232, 223, 204, .14); }
.prose figcaption { margin-top: 8px; color: var(--dim); font-size: 14px; text-align: center; }
.sources { font-size: 15px; }
.muted { color: var(--dim); }
.prose ul.cols { columns: 2; column-gap: 28px; }
.prose ul.cols li { break-inside: avoid; }
@media (max-width: 560px) { .prose ul.cols { columns: 1; } }
.prose figure.pair { max-width: none; margin: 28px 0; }
.prose figure.pair .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prose figure.pair img, .prose figure.wide img { border-radius: 14px; border: 1px solid var(--line); width: 100%; }
.prose figure.pair figcaption, .prose figure.wide figcaption { text-align: left; }
.prose figure.wide { max-width: 520px; margin: 28px auto; }
.prose .imgs span { display: block; margin-top: 4px; font-size: 13px; color: var(--dim); text-align: center; }

/* Call to action box */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 44px 0; padding: 24px; border: 1px solid var(--line2); border-radius: var(--r-lg); background: radial-gradient(120% 140% at 0% 0%, rgba(214, 176, 106, .10), transparent 60%), var(--surface); }
.cta p { margin: 0; color: var(--soft); max-width: 34em; }
.cta .cta-h { margin-bottom: 4px; font: 600 22px/1.2 var(--serif); color: var(--text); }
.cta .badge { line-height: 0; flex: none; }
.cta .badge img { height: 50px; width: auto; }

/* FAQ */
.faq { margin: 44px 0; }
.faq h2 { font: 600 28px/1.2 var(--serif); margin: 0 0 10px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 19px/1.35 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font: 400 24px/1 var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--soft); }

/* Related and hub lists */
.related { margin: 48px 0 24px; }
.related h2, .hub-cat h2 { font: 600 26px/1.2 var(--serif); margin: 0 0 6px; }
.related ul, .hub-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.related li, .hub-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.related li:hover, .hub-list li:hover { border-color: var(--line2); }
.related li a, .hub-list li a { font: 600 19px/1.3 var(--serif); text-decoration: none; color: var(--text); display: inline-block; padding: 2px 0; }
.related li span, .hub-list li span { display: block; color: var(--dim); font-size: 15px; }
.hub-cat { margin: 40px 0; }
.sub { color: var(--dim); margin: 0 0 8px; }

/* Footer */
.site-foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--bg); padding: 44px 0 36px; color: var(--dim); font-size: 15px; }
.foot { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .mark { margin: 0; }
.foot-brand p { margin: 6px 0 14px; max-width: 28em; }
.foot-brand .badge img { height: 44px; width: auto; }
.foot h3 { margin: 0 0 8px; font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.foot-col a { display: block; padding: 7px 0; color: var(--dim); text-decoration: none; }
.foot-col a:hover { color: var(--text); }
.foot-legal { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
@media (min-width: 820px) { .foot-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
