:root {
  color-scheme: dark;
  --bg: #111111;
  --text: #f7f4f0;
  --muted: #c6c1bf;
  --line: #33302f;
  --accent: #ff5054;
  --red: #ff353b;
  font-family: Inter, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, p, ul { margin: 0; }
.wrap { width: min(1152px, calc(100% - 96px)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: 1rem; z-index: 5; padding: .7rem 1rem;
  transform: translateY(-200%); background: var(--text); color: var(--bg);
}
.skip:focus { transform: none; }
.top { background: #0c0c0c; border-bottom: 1px solid var(--line); }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 71px; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 900; font-size: 1.9rem; letter-spacing: -.075em; line-height: 1; }
.brand img { object-fit: cover; border-radius: 5px; }
.brand-period { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 2.5rem); }
.top nav a, .footer a { color: var(--muted); font-size: .9375rem; font-weight: 600; padding: .65rem 0; }
.top nav a:hover, .footer a:hover { color: var(--accent); }
.hero {
  display: grid;
  min-height: 495px;
  align-items: center;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #422125;
  background: #0a0909;
}
.hero::before {
  position: absolute; inset: 0; z-index: -1; content: "";
  background:
    linear-gradient(90deg, #0a0909 0%, #0a0909f7 20%, #0a0909c9 40%, #0a090930 67%, transparent 100%),
    linear-gradient(0deg, #0a090970, transparent 38%),
    url("assets/storys.webp") 100% 49% / cover no-repeat;
}
.hero-inner { padding-block: 3.5rem 3.8rem; }
.hero h1 {
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif;
  font-size: clamp(4rem, 8vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -.073em;
  line-height: .87;
}
.hero h1 span { color: var(--red); }
.hero p { margin-top: 1.65rem; max-width: 31ch; color: #f0e9e5; font-size: clamp(1rem, 2vw, 1.16rem); line-height: 1.55; }
.button {
  display: inline-flex; margin-top: 1.6rem; padding: .82rem 1.35rem; align-items: center;
  font-weight: 750; color: #100707; background: var(--red); border-radius: 4px;
}
.button:hover { background: #ff7073; }
.layout {
  display: grid;
  grid-template-columns: minmax(225px, 272px) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 5vw, 5.25rem);
  padding-block: 3.5rem 4.5rem;
}
.sidebar { position: sticky; top: 2rem; align-self: start; }
.index h2 { font-size: .875rem; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; margin: .25rem 0 1rem .85rem; }
.index a {
  display: flex; align-items: baseline; gap: .7rem; padding: .68rem .75rem;
  color: var(--muted); border-left: 2px solid transparent; font-size: .9375rem; line-height: 1.3;
}
.index a span, .terms h2 span { color: var(--accent); font-family: Consolas, monospace; font-size: .875rem; font-weight: 700; }
.index a:hover, .index a[aria-current] { color: var(--text); background: #22191a; border-left-color: var(--accent); }
.print { margin: 1.5rem 0 0 .85rem; color: var(--muted); background: transparent; border: 1px solid var(--line); padding: .55rem .8rem; border-radius: 4px; cursor: pointer; }
.print:hover { border-color: var(--accent); color: var(--text); }
.terms section { padding: 1.85rem 0; border-top: 1px solid var(--line); scroll-margin-top: 2rem; }
.terms section:first-child { padding-top: .15rem; border-top: 0; }
.terms h2 { display: flex; align-items: baseline; gap: .85rem; margin-bottom: .75rem; font-size: clamp(1.4rem, 2.5vw, 1.95rem); line-height: 1.2; letter-spacing: -.035em; }
.terms ul { padding-left: 1.15rem; }
.terms li + li { margin-top: .35rem; }
.terms li::marker { color: var(--accent); }
.terms p, .terms ul, .support p { color: var(--muted); line-height: 1.7; }
.support {
  grid-column: 2; display: grid; align-items: center; min-height: 160px;
  padding: 1.55rem clamp(1.2rem, 4vw, 2rem); border: 1px solid #50282b;
  border-left: 3px solid var(--accent); border-radius: 4px; scroll-margin-top: 2rem;
  background: linear-gradient(115deg, #271719, #171414 72%);
}
.support h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.25; margin-bottom: .5rem; letter-spacing: -.035em; }
.support p { max-width: 58ch; }
.footer { background: #0c0c0c; border-top: 1px solid var(--line); }
.footer .brand { display: inline; font-size: 1.55rem; }

@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .layout { gap: 1.5rem; grid-template-columns: minmax(190px, 32%) minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .hero { min-height: 397px; }
  .hero::before { background-position: center, center, 72% center; }
  .hero h1 { font-size: clamp(3.55rem, 12.6vw, 5.65rem); }
  .hero p { max-width: 26ch; }
  .hero-inner { padding-block: 3rem; }
  .top-inner, .footer-inner { min-height: 62px; }
  .layout { grid-template-columns: minmax(0, 1fr); padding-block: 1.75rem 2.5rem; gap: 2.25rem; }
  .sidebar { position: static; padding: .9rem; border: 1px solid var(--line); border-radius: 4px; }
  .index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index h2 { grid-column: 1 / -1; margin-bottom: .55rem; margin-left: .5rem; }
  .index a { padding-inline: .4rem; gap: .45rem; }
  .print { margin: .6rem 0 0 .45rem; }
  .support { grid-column: 1; }
}
@media (max-width: 352px) {
  .index { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  :root { color-scheme: light; --text: #111; --muted: #222; --line: #ccc; --accent: #802025; --red: #111; }
  body, .top, .hero, .support { background: #fff; }
  .hero::before, .button, .sidebar, .footer, .top nav, .brand img, .skip { display: none; }
  .hero { display: block; min-height: auto; }
  .hero-inner, .layout { padding-block: 1rem; }
  .wrap { width: 100%; }
  .hero h1 { font-size: 2rem; line-height: 1; }
  .hero h1 br { display: none; }
  .hero h1 span::before { content: " "; white-space: pre; }
  .hero p { color: #222; max-width: none; margin-top: .75rem; }
  .layout { display: block; }
  .terms section, .support { break-inside: avoid; }
  .terms section { padding-block: .8rem; }
}
