/* Made of Secrets - one shared stylesheet. System fonts only, no external requests. */

:root {
  /* Brand colours, sampled from the icon and the title logo */
  --bg: #161b23;
  --bg-deep: #10141a;
  --panel: #1f2735;
  --panel-2: #283246;
  --line: #3a4560;
  --text: #f3e9d2;
  --muted: #bdb9cc;
  --gold: #ffd27a;
  --gold-deep: #e5b958;
  --violet: #c387f4;
  --violet-mid: #7b5996;
  --violet-dark: #4b3273;
  --ink: #261857;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --measure: 68ch;
  color-scheme: dark;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

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

/* Pixel art stays crisp wherever it is scaled up */
.pixel {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

a {
  color: var(--violet);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 10;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 700;
}

.skip:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg-deep);
  border-bottom: 4px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  display: block;
}

.brand .icon {
  border-radius: 50%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold-deep);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--violet-dark);
}

.btn:hover {
  background: #fff0c4;
  color: var(--ink);
}

.btn-ghost {
  background: var(--bg-deep);
  color: var(--gold);
  border-color: var(--violet-dark);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-ghost:hover {
  background: var(--panel-2);
  color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg-deep) url("img/hero-night.png") center 70% / cover no-repeat;
  image-rendering: pixelated;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 20, 26, 0.55), rgba(16, 20, 26, 0.3) 45%, rgba(22, 27, 35, 0.85));
}

.hero .wrap {
  padding-top: 40px;
  padding-bottom: 44px;
}

.hero-panel {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 28px;
  text-align: center;
  background: rgba(16, 20, 26, 0.86);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--violet-dark);
}

.hero h1 {
  margin: 0 0 18px;
  line-height: 0;
}

.hero h1 img {
  width: min(100%, 352px);
  height: auto;
}

.hook {
  margin: 0 auto 8px;
  max-width: 30ch;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--gold);
}

.sub {
  margin: 0 auto 24px;
  max-width: 44ch;
  color: var(--text);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin: 0;
}

/* ---------- Sections ---------- */

main {
  display: block;
  flex: 1 0 auto;
}

.section {
  padding: 44px 0 8px;
}

.section h2,
.prose h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--gold);
}

.section p {
  max-width: var(--measure);
  margin: 0 0 1em;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.panel {
  background: var(--panel);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--violet-dark);
}

/* Steps */

.steps {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 14px 16px 14px 70px;
  min-height: 70px;
  background: var(--panel);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--violet-dark);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--violet-dark);
  color: var(--gold);
  border: 3px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.steps strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
}

.steps span {
  display: block;
  margin-top: 2px;
}

/* Where to watch */

.platforms {
  display: grid;
  gap: 14px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.platform {
  display: block;
  padding: 16px 18px;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--violet-dark);
}

.platform:hover {
  background: var(--panel-2);
  color: var(--text);
}

.platform .name {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.platform .handle {
  display: block;
  color: var(--text);
}

.platform .go {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--violet);
}

.platform:hover .go {
  color: var(--gold);
}

.note {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Text pages (rules, privacy, terms, 404) ---------- */

.prose {
  padding-top: 36px;
  padding-bottom: 24px;
}

/* Same left edge as the header, with a readable column */
.prose > * {
  max-width: 760px;
}

.prose.lost > * {
  margin-left: auto;
  margin-right: auto;
}

.prose h1 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 7vw, 2.5rem);
  line-height: 1.2;
  color: var(--gold);
}

.prose h2 {
  margin-top: 2em;
  padding-top: 0.2em;
}

.prose h3 {
  margin: 1.6em 0 0.4em;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold);
}

.prose p,
.prose li {
  max-width: var(--measure);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin: 0 0 0.5em;
}

.updated {
  margin: 0 0 1.4em;
  color: var(--muted);
  font-size: 0.95rem;
}

.rules-box {
  margin: 20px 0 22px;
  padding: 6px 20px 14px;
  background: var(--panel);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--violet-dark);
}

.rules-box .rules-title {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold);
}

.rules-box ol {
  margin: 0;
  padding-left: 1.5em;
}

.rules-box li::marker {
  color: var(--gold);
  font-weight: 700;
}

.callout {
  margin: 1.2em 0;
  padding: 12px 16px;
  background: var(--panel);
  border-left: 6px solid var(--violet-mid);
}

.callout p {
  margin: 0;
}

.lost {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.lost .icon {
  display: block;
  margin: 0 auto 18px;
  border-radius: 50%;
}

.lost p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 56px;
  padding: 28px 0 36px;
  background: var(--bg-deep);
  border-top: 4px solid var(--ink);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer p {
  margin: 0 0 8px;
  max-width: 70ch;
}

/* ---------- Larger screens ---------- */

@media (max-width: 383px) {
  .hero-panel {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (min-width: 640px) {
  .platforms {
    grid-template-columns: repeat(3, 1fr);
  }

  .hook {
    font-size: 1.75rem;
  }
}

@media (min-width: 800px) {
  .hero .wrap {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .hero-panel {
    padding: 36px 40px 40px;
  }

  .hero h1 img {
    width: min(100%, 704px);
  }

  .hook {
    max-width: 36ch;
    font-size: 2rem;
  }
}

@media (min-width: 900px) {
  .section {
    padding-top: 60px;
  }
}

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