/* The shared stylesheet for every page that is not the game or the landing:
   the guides, the updates, the blog, about, contact and the legal pages. It is
   the landing page's design (index.html, which keeps its own inline copy of
   the parts both use): night-ink ground, Outfit, gold eyebrows, ice accents,
   glass cards and the gold PLAY button — carried onto pages built for reading.

   A page is three blocks:
     <header class="phero">   the landing's header over a full-bleed shot of
                              the game, the page's eyebrow, title and tagline
     <main class="prose">     the reading column: sections, lists, tables,
                              figures, keys, notes, the timeline (.log)
     <footer class="site">    the landing's footer */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit.woff2') format('woff2');
}

:root {
  --ink: #0a1020;
  --ink2: #101a30;
  --ink3: #16223d;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --snow: #f3f6fb;
  --text: rgba(243, 246, 251, .84);
  --mute: #9eabc0;
  --dim: #6f7c93;
  --gold: #ffb627;
  --gold2: #ff7a1a;
  --ice: #8fd0ff;
  --r: 18px;
  --read: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ink);
  color: var(--snow);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
}
.brand {
  font-weight: 900; font-size: 15px; letter-spacing: .42em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px; color: var(--snow);
}
.brand svg { width: 26px; height: 26px; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-decoration: none;
  color: rgba(243, 246, 251, .78);
}
.top nav a:hover, .top nav a[aria-current] { color: #fff; }
.top nav a[aria-current]:not(.pill) { box-shadow: 0 2px 0 var(--gold); padding-bottom: 3px; }
.top nav .pill { color: var(--ink); background: var(--snow); padding: 9px 18px; border-radius: 99px; }
.top nav .pill:hover { background: var(--gold); color: var(--ink); }
/* on a phone the links ride under the header, a row that scrolls sideways */
.subnav { display: none; }

/* ------------------------------------------------------------ page hero */
.phero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(520px, 70svh);
  display: flex; flex-direction: column;
}
.phero .bg { position: absolute; inset: 0; z-index: -2; background: var(--ink2); }
.phero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.phero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 12, 26, .9) 0%, rgba(7, 12, 26, .66) 40%, rgba(7, 12, 26, .18) 75%, rgba(7, 12, 26, .1) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 16, 32, .6) 22%, rgba(10, 16, 32, 0) 52%),
    linear-gradient(180deg, rgba(7, 12, 26, .6) 0%, rgba(7, 12, 26, 0) 22%);
}
.phero .copy { margin-top: auto; padding: 40px 0 54px; max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .3em; color: var(--gold); text-transform: uppercase;
}
.phero h1 {
  margin-top: 14px; font-weight: 900; line-height: .98; letter-spacing: -.03em;
  font-size: clamp(40px, 6.2vw, 78px);
  background: linear-gradient(180deg, #fff 35%, #d8e4f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .25);
}
.phero .tag {
  margin-top: 18px; max-width: 600px;
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: rgba(243, 246, 251, .86);
}
.phero .meta { margin-top: 18px; font-size: 13px; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }

/* ------------------------------------------------------- reading column */
.prose { width: min(var(--read), 100% - 40px); margin: 0 auto; padding: 10px 0 80px; }
.prose > section, .prose > article > section { padding-top: 56px; }
.prose h2 {
  font-size: clamp(26px, 3.3vw, 36px); font-weight: 900; line-height: 1.1; letter-spacing: -.02em;
  color: #fff;
}
.prose h2::before {
  content: ''; display: block; width: 36px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2)); margin-bottom: 18px;
}
.prose h3 { margin-top: 30px; font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: #fff; }
.prose h2 + p, .prose h2 + ul, .prose h2 + ol, .prose h2 + table, .prose h2 + figure { margin-top: 16px; }
.prose h3 + p, .prose h3 + ul, .prose h3 + ol { margin-top: 10px; }
.prose p, .prose li, .prose dd { font-size: 17px; color: var(--text); }
.prose p + p, .prose p + ul, .prose p + ol, .prose ul + p, .prose ol + p,
.prose table + p, .prose figure + p, .prose p + table, .prose p + figure { margin-top: 16px; }
.prose ul, .prose ol { margin-top: 12px; padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold); font-weight: 800; }
.prose a { color: var(--ice); text-decoration-color: rgba(143, 208, 255, .4); text-underline-offset: 3px; }
.prose a:hover { color: #fff; text-decoration-color: #fff; }
.prose b, .prose strong { color: #fff; font-weight: 700; }
.prose i, .prose em { color: #cfe0f5; }
.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em;
  background: var(--ink3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* keys, as on the landing */
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 8px; margin: 0 1px;
  font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--snow);
  background: linear-gradient(180deg, #1d2a48, #141e36);
  border: 1px solid var(--line2); border-bottom-width: 3px; border-radius: 7px;
  vertical-align: 1px;
}

/* tables: glass, gold headings, scroll sideways on a phone */
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  font-size: 15.5px;
}
.prose th {
  text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .2em; color: var(--gold);
  padding: 13px 14px; background: rgba(255, 182, 39, .06); border-bottom: 1px solid var(--line);
}
.prose td { padding: 11px 14px; color: var(--text); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td b { color: #fff; }

/* figures: rounded, framed, a quiet caption */
.prose figure { margin-top: 28px; }
.prose figure img {
  width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--dim); }

/* a callout */
.note, .prose aside {
  margin-top: 22px; padding: 16px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  color: var(--text);
}
.note b { color: #fff; }

/* the last updated stamp of the legal pages */
.stamp { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }
.legal section { padding-top: 40px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); }

/* ------------------------------------------------- the updates timeline */
.log { padding-top: 40px; }
.log h2 { margin-top: 26px; }
.log > time, .log > h3 { margin-left: 30px; }
.log > ul, .log > p, .log > ol { margin-left: 30px; }
.log > time {
  position: relative; display: block; margin-top: 38px;
  font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--gold); text-transform: uppercase;
}
.log > time::before {
  content: ''; position: absolute; left: -30px; top: 3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 182, 39, .18);
}
.log > h3 { margin-top: 6px; }

/* ------------------------------------------------------- calls to action */
.play {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 34px; border-radius: 16px;
  font-size: 16px; font-weight: 800; letter-spacing: .14em; text-decoration: none !important;
  color: #1a1205 !important;
  background: linear-gradient(135deg, #ffd25e 0%, var(--gold) 45%, var(--gold2) 100%);
  box-shadow: 0 14px 40px -10px rgba(255, 150, 30, .65), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.play:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 20px 50px -10px rgba(255, 150, 30, .8), inset 0 1px 0 rgba(255, 255, 255, .55); }
.cta2 {
  margin-top: 64px; padding: 46px 28px; text-align: center; border-radius: 24px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 182, 39, .14), rgba(255, 182, 39, 0) 60%),
    linear-gradient(180deg, var(--ink3), var(--ink2));
  border: 1px solid var(--line);
}
.cta2 h2::before { margin-left: auto; margin-right: auto; }
.cta2 p { margin: 12px auto 26px; max-width: 520px; color: var(--mute); }

/* -------------------------------------------------------------- the blog */
.posts { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); margin-top: 26px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important;
  background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(255, 182, 39, .35); }
.post-card .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink3); }
.post-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.post-card:hover .pic img { transform: scale(1.05); }
.post-card .txt { padding: 20px 22px 24px; }
.post-card .kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.post-card h3 { margin-top: 8px; font-size: 22px; line-height: 1.2; }
.post-card p { margin-top: 8px; font-size: 15.5px; color: var(--mute); }
.post-card.lead { grid-column: 1 / -1; }
.post-card.lead .pic { aspect-ratio: 21 / 9; }
.post-card.lead h3 { font-size: clamp(24px, 3vw, 32px); }
.changes { list-style: none; padding: 0 !important; margin-top: 18px; display: grid; gap: 10px; }
.changes li { margin: 0 !important; }
.changes a {
  display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
  padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  text-decoration: none !important; color: var(--snow) !important;
}
.changes a:hover { border-color: rgba(143, 208, 255, .45); background: var(--ink3); }
.changes time { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.byline { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.more { margin-top: 40px; }
.more h2 { font-size: 22px; }

/* --------------------------------------------------------------- footer */
footer.site {
  margin-top: 30px; border-top: 1px solid var(--line); padding: 34px 0 48px; text-align: center;
  font-size: 13px; color: var(--dim);
}
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 14px; }
footer.site nav a { text-decoration: none; color: var(--mute); font-weight: 600; letter-spacing: .04em; }
footer.site nav a:hover { color: #fff; }

/* ---------------------------------------------------------------- small */
@media (max-width: 760px) {
  .posts { grid-template-columns: 1fr; }
  .post-card.lead .pic { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .top nav a:not(.pill) { display: none; }
  .subnav {
    display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
    padding: 0 20px 10px; margin-top: -8px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a {
    flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-decoration: none;
    color: rgba(243, 246, 251, .78); padding: 6px 0;
  }
  .subnav a[aria-current] { color: #fff; box-shadow: 0 2px 0 var(--gold); }
  .phero { min-height: 440px; }
  .phero::before {
    background: linear-gradient(0deg, var(--ink) 0%, rgba(10, 16, 32, .84) 40%, rgba(10, 16, 32, .35) 72%, rgba(10, 16, 32, .55) 100%);
  }
  .phero .copy { padding: 30px 0 34px; }
  .prose p, .prose li, .prose dd { font-size: 16.5px; }
  .prose table { display: block; overflow-x: auto; }
  .prose th, .prose td { white-space: nowrap; }
  .prose td { white-space: normal; min-width: 140px; }
  .play { width: 100%; }
  .log > time, .log > h3, .log > ul, .log > p, .log > ol { margin-left: 24px; }
  .log > time::before { left: -24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
