/* The home page, rebuilt. Mobile first: every rule here is the phone, and the two media queries at the foot add
 * the wider layouts. Nat reads this on a phone, so the phone is the design and the desktop is the adaptation.
 *
 * Same parchment and ink as the rest of the site. The one new idea is that the picture runs full-bleed behind
 * the hero rather than the page opening on a flat ground, which is the thing every competitor does and we did not. */

:root{
  --desk:#130d08; --desk-2:#241a10; --leather:#3a2115; --leather-edge:rgba(150,118,70,.55);
  --ground:#e9dab6; --ground-2:#e7d6ae; --raised:#d2bc8f;
  --deckle:#bfa677; --rule:#b89e76; --note:#f6eeda;
  --ink:#2b1d12; --ink-soft:#5a4632; --ink-faint:#5e4930;
  --rubric:#7e2a1e; --gold:#b8862b; --on-leather:#e7d6b4; --on-leather-dim:#c7b48c;
  --ok:#3f6b2a; --bad:#e0897f;
  --caps:'Cinzel',Georgia,serif; --body:'EB Garamond',Georgia,'Times New Roman',serif;
  --measure:68ch;
}
:root:lang(ru){--caps:'Roboto Condensed',sans-serif;--body:'Roboto','Segoe UI',sans-serif}
*{box-sizing:border-box}
html,body{margin:0}
html{scroll-behavior:smooth}
body{background:var(--desk);color:var(--on-leather);font:400 17px/1.65 var(--body);-webkit-font-smoothing:antialiased;overflow-x:hidden}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1080px;margin:0 auto;padding:0 16px}
a{color:var(--gold)}

/* header: the live count rides here, as the best competitor site does, on every page */
header.top{position:sticky;top:0;z-index:5;background:rgba(19,13,8,.94);backdrop-filter:blur(6px);border-bottom:1px solid rgba(184,134,43,.3)}
.bar{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;min-height:54px;padding:.4rem 16px;max-width:1080px;margin:0 auto}
.brand{display:flex;align-items:center;gap:.5rem;color:var(--on-leather);text-decoration:none;font:600 1rem var(--caps);letter-spacing:.12em;text-transform:uppercase}
.brand img{width:28px;height:28px}
nav.main{display:none}
.pill{margin-left:auto;display:inline-flex;align-items:center;gap:.4rem;font:500 .8rem var(--caps);letter-spacing:.06em;
  text-transform:uppercase;color:var(--on-leather);border:1px solid var(--leather-edge);border-radius:999px;padding:.2rem .65rem;white-space:nowrap}
.dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--ink-faint);flex:none}
.dot.up{background:var(--ok);box-shadow:0 0 8px rgba(127,191,106,.7)}
.dot.down{background:var(--bad)}

/* THE HERO. The picture is the page's ground, not a banner on it. A still since 15 Nov (the clip was grainy): it
 * drifts to 1.02 over 48 s so the page is not dead, and stands still for anyone who asks for less motion. */
/* below 980 px the picture is fitted by height, which puts the moon behind the first lines: they start under it */
.hero{position:relative;isolation:isolate;overflow:hidden;padding:9.5rem 16px 2.6rem;text-align:center}
.scene{position:absolute;inset:0;z-index:-1;background:var(--desk)}
.scene img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.82) contrast(1.05) brightness(.92);
  transform-origin:50% 30%;animation:drift 48s ease-in-out infinite alternate}
@keyframes drift{from{transform:scale(1)}to{transform:scale(1.02)}}
.scene::after{content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse 120% 80% at 50% 40%,rgba(19,13,8,.14),rgba(19,13,8,.74) 66%,var(--desk) 100%)}
.hero-in{position:relative;max-width:620px;margin:0 auto}
/* the mark is centred on the same axis as everything under it, which nothing on the old page was */
.mark{display:block;margin:0 auto .7rem;width:56px;height:56px;opacity:.95}
.kicker{margin:0;font:400 .72rem var(--caps);letter-spacing:.2em;text-transform:uppercase;color:var(--on-leather-dim)}
/* the wordmark has to FIT: at 390 px the old clamp and tracking ran it off the screen as "DragonBrea".
   11 characters of Cinzel with .07em is wider than a phone, so the tracking goes with the size. */
h1{margin:.3rem 0 .5rem;font:400 clamp(2rem,10.5vw,3.6rem)/1.05 var(--caps);letter-spacing:.03em;color:var(--on-leather);
  text-shadow:0 2px 24px rgba(0,0,0,.85);overflow-wrap:anywhere}
.lede{margin:0 auto;max-width:34ch;color:var(--on-leather);font-size:1.03rem;text-shadow:0 1px 10px rgba(0,0,0,.8)}
.cta{display:flex;flex-direction:column;gap:.6rem;margin:1.3rem auto 0;max-width:19rem}
.btn{display:block;text-align:center;font:600 .95rem var(--caps);letter-spacing:.1em;text-transform:uppercase;text-decoration:none;
  color:var(--ink);background:linear-gradient(180deg,var(--ground),var(--ground-2));border:1.5px solid var(--deckle);
  border-radius:2px;padding:.78rem 1.3rem;box-shadow:0 6px 18px rgba(0,0,0,.5)}
.btn.primary{background:linear-gradient(180deg,var(--note),var(--ground));border-color:var(--rule)}
.btn:hover{background:var(--note);color:var(--ink)}
.btn.small{display:inline-block;padding:.5rem 1rem;font-size:.82rem;box-shadow:none;margin-top:.7rem}
.live{display:flex;align-items:center;justify-content:center;gap:.45rem;margin:1rem 0 0;font-size:.92rem;color:var(--on-leather-dim)}
.facts{display:flex;flex-wrap:wrap;gap:.3rem 1.1rem;justify-content:center;list-style:none;margin:1.1rem 0 0;padding:0;
  font:italic 400 .88rem var(--body);color:var(--on-leather-dim)}
.facts li::before{content:"\25C6";color:var(--gold);margin-right:.4rem;font-size:.62em;vertical-align:.18em}

/* sections on the leather */
section.wrap,section.strip{padding:2.2rem 16px}
h2{font:400 1.02rem var(--caps);letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin:0 0 1rem;
  display:flex;align-items:center;gap:.7rem}
h2::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--leather-edge),transparent)}
.strip-lede{max-width:var(--measure);color:var(--on-leather-dim);margin:0}

/* the cards: a picture on every one, which is what they all do and we did not */
.cards{display:grid;gap:1rem;grid-template-columns:1fr}
.card{margin:0;background:linear-gradient(180deg,var(--raised),var(--ground) 5%,var(--ground-2) 95%,var(--raised));
  border:2px solid var(--deckle);border-radius:2px;overflow:hidden;box-shadow:5px 6px 0 rgba(0,0,0,.4)}
.card img{width:100%;height:150px;object-fit:cover;display:block;border-bottom:2px solid var(--deckle);filter:saturate(.85)}
.card-t{padding:.9rem 1.05rem 1.05rem;color:var(--ink)}
.card h3{margin:0 0 .35rem;font:400 1rem var(--caps);letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.card p{margin:0;color:var(--ink-soft);font-size:.97rem}

/* three steps */
.steps{list-style:none;counter-reset:s;margin:0;padding:0;display:grid;gap:1rem;grid-template-columns:1fr}
.steps li{counter-increment:s;position:relative;padding:2.4rem 1.1rem 1.1rem;color:var(--ink);
  background:linear-gradient(180deg,var(--raised),var(--ground) 6%,var(--ground-2) 94%,var(--raised));
  border:2px solid var(--deckle);border-radius:2px;box-shadow:4px 5px 0 rgba(0,0,0,.35)}
.steps li::before{content:counter(s);position:absolute;top:.7rem;left:1.1rem;font:400 1.5rem/1 var(--caps);color:var(--rubric)}
.steps h3{margin:0 0 .3rem;font:400 .95rem var(--caps);letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.steps p{margin:0;color:var(--ink-soft);font-size:.96rem}
.needs{max-width:var(--measure);color:var(--on-leather-dim);font-size:.92rem;margin:1.1rem 0 0}

/* the real patch notes */
.news{display:grid;gap:1rem;grid-template-columns:1fr}
.post{background:linear-gradient(180deg,var(--raised),var(--ground) 6%,var(--ground-2) 94%,var(--raised));
  border:2px solid var(--deckle);border-radius:2px;padding:1rem 1.1rem;color:var(--ink);box-shadow:4px 5px 0 rgba(0,0,0,.35)}
.post h3{margin:.15rem 0 .4rem;font:400 1rem var(--caps);letter-spacing:.06em;color:var(--ink)}
.post p{margin:0;color:var(--ink-soft);font-size:.96rem}
.post .meta{font:400 .78rem var(--caps);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-faint)}
.post .ver{margin-top:.5rem;font-size:.85rem;color:var(--ink-faint)}
/* only the loading and fallback line, which sits on the leather. A descendant selector here also caught the
   post dates INSIDE the parchment cards and put leather ink on paper: 1.10. Direct child, not descendant. */
.news > .meta{color:var(--on-leather-dim)}

footer{padding:1.6rem 16px 2.4rem;text-align:center;color:var(--on-leather-dim);font-size:.9rem;
  border-top:1px solid var(--leather-edge);margin-top:1.4rem}
footer a{color:var(--gold)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ---- tablet ---- */
@media (min-width:620px){
  .hero{padding:7rem 16px 3.6rem}
  .cta{flex-direction:row;justify-content:center;max-width:none}
  .btn{display:inline-block}
  .cards{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:repeat(3,1fr)}
  .news{grid-template-columns:repeat(3,1fr)}
  .lede{max-width:46ch;font-size:1.1rem}
}
/* ---- desktop ---- */
@media (min-width:980px){
  nav.main{display:flex;gap:1.1rem;margin-left:1.4rem}
  nav.main a{font:500 .88rem var(--caps);letter-spacing:.1em;text-transform:uppercase;color:var(--on-leather);text-decoration:none}
  .hero{padding:5rem 16px 5rem}
  .hero-in{max-width:700px}
  h1{font-size:4.4rem;letter-spacing:.07em}
  .cards{grid-template-columns:repeat(3,1fr)}
  .card img{height:170px}
}
/* the still stands still */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .scene img{animation:none}
}


/* ---------------------------------------------------------------------------------------------------
 * THE DARK LEAF, home page. Same values as guides.css, on home.css's own names: the cards are the leaf
 * here (.card is a gradient through --raised, --ground and --ground-2, so all three are grounds), and
 * --ink / --ink-soft / --ink-faint are what guides.css calls --text / --text-dim / --meta.
 * The desk, the leather and their lettering are unchanged - they were already dark.
 * --------------------------------------------------------------------------------------------------- */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --ground:#1a1309; --ground-2:#221a0f; --raised:#2b2114;
    --deckle:#4a3a26; --rule:#3a2d1d; --note:#241b10;
    --ink:#efe3c8; --ink-soft:#cbb994; --ink-faint:#b9a681;
    --rubric:#e39a86; --gold:#d9ad53;
    --ok:#8fcb77; --bad:#e8a39a;
  }
}
:root[data-theme="dark"]{
  --ground:#1a1309; --ground-2:#221a0f; --raised:#2b2114;
  --deckle:#4a3a26; --rule:#3a2d1d; --note:#241b10;
  --ink:#efe3c8; --ink-soft:#cbb994; --ink-faint:#b9a681;
  --rubric:#e39a86; --gold:#d9ad53;
  --ok:#8fcb77; --bad:#e8a39a;
}
