/* Lakou Studio — self-hosted, no external CDNs. */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Lora-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Lora-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Lora-400italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Lora-400italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Lora-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Lora-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PermanentMarker-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f1e6;
  --paper-2: #efe8d6;
  --card: #fffdf8;
  --ink: #1c2748;
  --ink-soft: #3a4568;
  --muted: #5c6788;
  --rule: rgba(80, 110, 160, 0.22);
  --rule-strong: rgba(80, 110, 160, 0.35);
  --margin: #d96a74;
  --blue: #1b46c4;
  --blue-ink: #14369a;
  --blue-soft: #e7edff;
  --red: #c52626;
  --green: #148a45;
  --orange: #d9690a;
  --line: #1c2748;
  --shadow: rgba(28, 39, 72, 0.16);
  --bezel: #1c2748;
  --focus: #1b46c4;
  --header-bg: rgba(246, 241, 230, 0.9);
  --grid-size: 36px;
  --margin-x: 52px;
  --wrap: 1120px;
  --font: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --marker: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121728;
    --paper-2: #191f33;
    --card: #1a2138;
    --ink: #eef1f8;
    --ink-soft: #c8cede;
    --muted: #9aa3bf;
    --rule: rgba(150, 175, 220, 0.14);
    --rule-strong: rgba(150, 175, 220, 0.24);
    --margin: #c45d68;
    --blue: #7b93ff;
    --blue-ink: #9db0ff;
    --blue-soft: #242c4d;
    --red: #ff6b6b;
    --green: #3dce74;
    --orange: #ffa24a;
    --line: #e8edf8;
    --shadow: rgba(0, 0, 0, 0.45);
    --bezel: #d5dcf0;
    --focus: #9db0ff;
    --header-bg: rgba(18, 23, 40, 0.9);
    color-scheme: dark;
  }

  .btn-primary {
    color: #121728;
    background: var(--blue);
    border-color: var(--blue);
  }
  .btn-primary:hover {
    background: var(--blue-ink);
    border-color: var(--blue-ink);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent calc(var(--grid-size) - 1px),
      var(--rule) calc(var(--grid-size) - 1px),
      var(--rule) var(--grid-size)
    );
  background-attachment: fixed;
  background-size: 100% var(--grid-size);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Red Seyes margin, desktop and up. */
@media (min-width: 720px) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--margin-x);
    width: 2px;
    background: var(--margin);
    opacity: 0.85;
    pointer-events: none;
    z-index: 30;
  }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-ink); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}
@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 4.5rem));
    padding-left: 1.25rem;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-strong);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.7rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--rule-strong);
}
.brand-mark svg { display: block; width: 32px; height: 32px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 550;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-play {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  border: 1.5px solid var(--blue-ink);
  font-weight: 650;
}
.site-nav .nav-play:hover { color: #fff; filter: brightness(1.08); }

@media (prefers-color-scheme: dark) {
  .site-nav .nav-play { color: #121728; border-color: var(--blue); }
  .site-nav .nav-play:hover { color: #121728; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 3.2rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 880px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    min-height: 32rem;
  }
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.12rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 3px 4px 0 var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.btn:hover { color: inherit; }
@media (hover: hover) {
  .btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 6px 0 var(--shadow);
  }
  .btn:active {
    transform: translate(1px, 2px);
    box-shadow: 1px 1px 0 var(--shadow);
  }
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue-ink);
}
.btn-primary:hover { color: #fff; }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { color: var(--ink); background: var(--paper-2); }

.actions-after { margin-bottom: 2.5rem; }

/* Phone device frame */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.device {
  width: min(280px, 72vw);
  background: var(--bezel);
  border-radius: 32px;
  padding: 8px;
  box-shadow:
    8px 18px 40px var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--bezel) 70%, transparent);
  transform: rotate(-2.2deg);
}
.device img {
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  object-fit: cover;
  border-radius: 24px;
  background: var(--paper-2);
}
@media (min-width: 880px) {
  .device { width: min(320px, 100%); }
}

/* ---------- Sections ---------- */
section { padding: 3.25rem 0; }
@media (min-width: 880px) {
  section { padding: 4.25rem 0; }
}

.section-kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.prose {
  max-width: 38rem;
  color: var(--ink-soft);
}
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

/* Featured game */
.game {
  border-top: 1px solid var(--rule-strong);
}
.game-head {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: 2.25rem;
}
@media (min-width: 800px) {
  .game-head {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.wordmark {
  font-family: var(--marker);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  display: inline-block;
}
.wordmark i { font-style: normal; display: inline; }
.wordmark .c0, .wordmark .c4 { color: var(--blue); }
.wordmark .c1 { color: var(--red); }
.wordmark .c2 { color: var(--green); }
.wordmark .c3 { color: var(--orange); }
.wordmark .c5 { color: var(--red); }

.game-tag {
  margin: 0.35rem 0 0;
  font-style: italic;
  color: var(--muted);
  font-size: 1.15rem;
}

.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .highlights { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .highlights { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.highlight {
  background: var(--card);
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 14px;
  padding: 1.05rem 1.1rem 1.15rem;
  box-shadow: 3px 4px 0 var(--shadow);
}
.highlight h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.highlight p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.highlight .icon {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--blue);
}
.highlight:nth-child(2) .icon { color: var(--green); }
.highlight:nth-child(3) .icon { color: var(--orange); }
.highlight:nth-child(4) .icon { color: var(--red); }
.highlight:nth-child(5) .icon { color: var(--blue); }
.highlight .icon svg { width: 100%; height: 100%; display: block; }

.gallery {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
.shot {
  margin: 0;
}
.shot .device {
  width: min(260px, 70vw);
  transform: none;
  margin: 0 auto;
}
.shot figcaption {
  text-align: center;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.85rem;
}

/* What's next + About */
.band {
  border-top: 1px solid var(--rule-strong);
}
.card {
  background: var(--card);
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  box-shadow: 4px 6px 0 var(--shadow);
  max-width: 44rem;
}
@media (min-width: 720px) {
  .card { padding: 2rem 2.1rem; }
}
.card h2 { margin-bottom: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule-strong);
  padding: 2rem 0 2.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}
.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Legal / 404 ---------- */
.page-main {
  padding: 3rem 0 4.5rem;
}
.legal {
  max-width: 42rem;
}
.legal-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.legal .updated {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 2rem;
}
.legal h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}
.legal p, .legal li {
  color: var(--ink-soft);
}
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li { margin: 0.3rem 0; }
.legal a { font-weight: 600; }

.not-found {
  text-align: left;
  max-width: 34rem;
  padding: 4rem 0 6rem;
}
.not-found h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .device { transition: none; }
  .device { transform: none; }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }
  body::before, .site-header, .site-footer .foot-links .nav-play { display: none; }
  a { color: inherit; }
}
