/* ==========================================================================
   sherlystero.fans — fan site (unofficial)
   Design tokens + layout. Dark-first, single committed theme.
   ========================================================================== */

:root {
  --bg:            #0e1116;
  --bg-alt:        #141a22;
  --bg-card:       #182029;
  --bg-elev:       #1e2731;
  --line:          #2a3644;
  --line-soft:     #212b36;

  --text:          #e7edf4;
  --text-soft:     #a9b6c5;
  --text-dim:      #7c8b9c;

  --accent:        #f5a623;
  --accent-2:      #ffcf70;
  --accent-ink:    #241703;
  --teal:          #1e6a83;
  --teal-soft:     #2e94b4;

  --radius:        14px;
  --radius-sm:     9px;
  --shadow:        0 18px 40px -22px rgba(0,0,0,.85);
  --maxw:          1140px;
  --readw:         720px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(245,166,35,.10), transparent 60%),
    radial-gradient(760px 420px at 92% 4%, rgba(46,148,180,.12), transparent 62%);
  background-repeat: no-repeat;
}

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

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.22;
  margin: 0 0 .55em;
  letter-spacing: -.01em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.15rem, 1.02rem + .6vw, 1.4rem); margin-top: 1.9em; }
h2 + h3 { margin-top: 1.1em; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.25em; }
li { margin-bottom: .5em; }
strong { color: #fff; font-weight: 650; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.read { max-width: var(--readw); }
.section { padding: 58px 0; }
.section--tight { padding: 34px 0; }

/* ---------- Age gate ---------- */
#age-gate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,10,14,.94);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
#age-gate[hidden] { display: none; }
.age-box {
  max-width: 460px; width: 100%;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; text-align: center;
  box-shadow: var(--shadow);
}
.age-box h2 { margin-top: 0; font-size: 1.35rem; }
.age-box p { color: var(--text-soft); font-size: .95rem; }
.age-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Top bars ---------- */
.topbar {
  background: linear-gradient(90deg, var(--teal), #123f4f);
  color: #dff1f7; font-size: .8rem; text-align: center;
  padding: 7px 16px; letter-spacing: .01em;
}
.topbar strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14,17,22,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding-block: 12px; }

.brand { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.brand small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text-soft); font-size: .9rem; font-weight: 500;
  padding: 7px 11px; border-radius: 8px;
}
.nav a:hover { color: #fff; background: var(--bg-elev); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-2); background: rgba(245,166,35,.09); }

.lang { display: flex; gap: 6px; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.lang a { font-size: .78rem; font-weight: 700; letter-spacing: .06em; padding: 6px 9px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 7px; }
.lang a.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.lang a:hover { text-decoration: none; color: #fff; }
.lang a.is-active:hover { color: var(--accent-ink); }

.nav-toggle {
  display: none; margin-left: auto; background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: .95rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-weight: 650; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-align: center; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 12px 30px -12px rgba(245,166,35,.75);
}
.btn--primary:hover { box-shadow: 0 18px 38px -14px rgba(245,166,35,.9); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-soft); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--wide { width: 100%; max-width: 420px; }
.btn-note { font-size: .78rem; color: var(--text-dim); margin-top: 12px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; padding-block: 66px 70px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 700;
  color: var(--accent); background: rgba(245,166,35,.10);
  border: 1px solid rgba(245,166,35,.28); padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.12rem; color: var(--text-soft); max-width: 44ch; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-figure figcaption { font-size: .74rem; color: var(--text-dim); margin-top: 10px; text-align: center; }

.hero-disclaimer {
  margin-top: 26px; font-size: .82rem; color: var(--text-dim);
  border-left: 3px solid var(--teal-soft); padding: 4px 0 4px 14px; max-width: 52ch;
}

.stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.stat span { font-size: .78rem; color: var(--text-dim); letter-spacing: .04em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px 24px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { border-color: var(--teal-soft); }
.card-tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; display: block; margin-bottom: 8px; }

.callout {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: 20px 22px; margin: 30px 0; font-size: .96rem; color: var(--text-soft);
}
.callout strong { color: #fff; }
.callout p:last-child { margin-bottom: 0; }
.callout--teal { border-left-color: var(--teal-soft); }

.figure { margin: 34px 0; }
.figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.figure figcaption { font-size: .78rem; color: var(--text-dim); margin-top: 10px; }

.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
th { background: var(--bg-elev); color: #fff; font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

/* ---------- TOC ---------- */
.toc { background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 20px 24px; margin: 30px 0 40px; }
.toc h2 { margin: 0 0 .6em; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.toc li { font-size: .92rem; margin-bottom: .35em; break-inside: avoid; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px;
}
details.faq[open] { border-color: var(--line); }
details.faq summary {
  cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; color: #fff; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "\002B"; color: var(--accent); margin-right: 10px; font-weight: 700; }
details.faq[open] summary::before { content: "\2212"; }
details.faq .faq-body { padding-bottom: 6px; color: var(--text-soft); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #1a2029, #101820 60%, #16303a);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 54px 0; text-align: center;
}
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--text-soft); max-width: 58ch; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0d12; border-top: 1px solid var(--line-soft); padding: 52px 0 30px; font-size: .92rem; }
.footer-cta { text-align: center; padding-bottom: 40px; margin-bottom: 36px; border-bottom: 1px solid var(--line-soft); }
.footer-cta h2 { margin-top: 0; font-size: 1.45rem; }
.footer-cta p { color: var(--text-soft); max-width: 54ch; margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55em; }
.footer-grid a { color: var(--text-soft); }
.footer-grid a:hover { color: #fff; }
.footer-about p { color: var(--text-dim); font-size: .88rem; }
.footer-legal {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  color: var(--text-dim); font-size: .8rem; line-height: 1.65;
}
.footer-legal p { margin-bottom: .8em; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.badge {
  border: 1px solid var(--line); border-radius: 7px; padding: 5px 11px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--text-soft);
}
.badge--18 { color: #ff8f8f; border-color: #5a2b2b; background: rgba(120,40,40,.18); }

/* ---------- Utilities ---------- */
.muted { color: var(--text-dim); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.lead { font-size: 1.1rem; color: var(--text-soft); }
.updated { font-size: .78rem; color: var(--text-dim); letter-spacing: .04em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; z-index: 300; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 50px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .toc ol { columns: 1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; width: 100%; order: 3; flex-direction: column; align-items: stretch;
    padding: 10px 0 4px; border-top: 1px solid var(--line-soft); margin-left: 0;
  }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .lang { border-left: 0; padding-left: 0; margin-left: 0; margin-top: 8px; }
  .btn { width: 100%; font-size: .95rem; padding: 14px 20px; }
  .cta-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Profile card (model fact sheet) ---------- */
.profile {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 28px 24px; margin: 34px 0;
  box-shadow: var(--shadow);
}
.profile-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.profile-head h2, .profile-head h3 { margin: 0; font-size: 1.3rem; }
.profile-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #ffd9a1; background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.35); border-radius: 999px; padding: 5px 12px;
}
.profile-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; font-size: .95rem; }
.facts dt {
  padding: 11px 18px 11px 0; border-top: 1px solid var(--line-soft);
  color: var(--text-dim); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  white-space: nowrap;
}
.facts dd { padding: 11px 0; border-top: 1px solid var(--line-soft); margin: 0; color: var(--text); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts .unknown { color: var(--text-dim); font-style: italic; }
.profile-note { font-size: .78rem; color: var(--text-dim); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.profile .cta-row { margin-top: 20px; }

@media (max-width: 640px) {
  .profile { padding: 22px 20px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding: 14px 0 2px; border-top: 1px solid var(--line-soft); }
  .facts dd { padding: 0 0 12px; border-top: 0; }
  .facts dt:first-of-type + dd { border-top: 0; }
}

/* ---------- Platform comparison list ---------- */
.plats { display: grid; gap: 14px; margin: 28px 0; }
.plat {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start;
  background: var(--bg-alt); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 18px 22px;
}
.plat b { font-family: var(--font-display); color: #fff; font-size: 1.02rem; }
.plat span { display: block; font-size: .74rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-top: 3px; }
.plat p { margin: 0; font-size: .93rem; color: var(--text-soft); }
@media (max-width: 720px) { .plat { grid-template-columns: 1fr; gap: 8px; } }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em; color: var(--accent-2);
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; white-space: nowrap;
}
.footer-legal code { font-size: .8em; color: var(--text-soft); }
