/* Lanternfish Studios site: one stylesheet, no external fonts or scripts (the privacy page shouldn't load trackers). */
:root {
  --bg: #eef6f7;
  --surface: #ffffff;
  --text: #15202b;
  --muted: #55636f;
  --accent: #0a7589;
  --border: #d5e3e7;
  --deep: #0d1b33;
  --deep-2: #18305a;
  --glow: #4fe0d2;
  --gold: #ffbf2e;
  --todo-bg: #fff4d6;
  --todo-border: #e0b84a;
  --todo-text: #5c4300;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1424;
    --surface: #12213a;
    --text: #e4ecf3;
    --muted: #9db0c2;
    --accent: #5fd6e6;
    --border: #22385a;
    --todo-bg: #3a2f10;
    --todo-border: #8f7120;
    --todo-text: #f3dc9a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header: always the deep-sea navy, whatever the colour scheme. */
header.site {
  background: var(--deep);
  color: #fff;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--round);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}
.brand-logo { height: 48px; width: auto; display: block; }

nav a {
  color: #b9c9de;
  text-decoration: none;
  margin-right: 18px;
  font-weight: 500;
}
nav a:last-child { margin-right: 0; }
nav a:hover { color: #fff; }
nav a[aria-current="page"] { color: var(--glow); font-weight: 700; }

main { padding-top: 24px; padding-bottom: 48px; }

h1, h2, h3 { font-family: var(--round); }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.4em 0 0.2em; }
h2 { font-size: 1.3rem; margin: 2em 0 0.5em; padding-top: 0.6em; border-top: 1px solid var(--border); }
h3 { font-size: 1.05rem; margin: 1.5em 0 0.4em; }

p, li { overflow-wrap: anywhere; }

a { color: var(--accent); }

.meta { color: var(--muted); font-size: 0.95rem; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px 12px 36px;
}

.table-scroll { overflow-x: auto; margin: 1em 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border: 1px solid var(--border);
}
th { background: var(--bg); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
}
.card h2 { border: 0; margin-top: 0; padding-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---- Home page ---- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(79, 224, 210, 0.22), transparent 55%),
    linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
}
.hero .wrap { position: relative; padding-top: 40px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 0.2em 0 0.15em; letter-spacing: -0.01em; }
.tagline { color: #c4d3e6; font-size: 1.1rem; margin: 0 auto; max-width: 30em; }
.hero h1 { margin: 0; }
.hero-logo {
  display: block;
  width: min(460px, 86vw);
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 22px rgba(79, 224, 210, 0.35));
  animation: swim 6s ease-in-out infinite;
}
/* Floating specks of light, like the game's deep water. */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 12% 30%, var(--glow), transparent),
    radial-gradient(2px 2px at 22% 75%, #b48cff, transparent),
    radial-gradient(3px 3px at 80% 22%, var(--glow), transparent),
    radial-gradient(2px 2px at 88% 68%, var(--glow), transparent),
    radial-gradient(2px 2px at 64% 85%, #b48cff, transparent),
    radial-gradient(2px 2px at 40% 15%, #ffffff, transparent);
  opacity: 0.8;
}
.hero::after { transform: translate(4%, 8%); opacity: 0.45; }

@keyframes swim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

.home main { padding-top: 0; }
.home main > .info { margin-top: 24px; }

.game {
  position: relative;
  margin-top: -28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(13, 27, 51, 0.18);
}
.game-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4%;
  min-height: 260px;
  padding: 28px 20px 0;
  background: url("img/ocean.jpg") center 38% / cover no-repeat;
}
.game-logo {
  width: min(420px, 62%);
  align-self: center;
  padding-bottom: 20px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}
.game-marv { width: min(170px, 30%); margin-bottom: -4px; }
.game-body { padding: 20px 24px 24px; }
.game-body h2 { border: 0; margin: 0 0 0.3em; padding: 0; font-size: 1.7rem; }
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.school {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 18px 0 0;
}
.school li {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
}
.school img { width: 46px; }

.lede { font-size: 1.05rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55em 1.3em;
  border-radius: 999px;
  font-family: var(--round);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-soon { background: var(--deep); color: var(--gold); border-color: var(--deep-2); cursor: default; }
.btn-ghost { color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--bg); }

.section { margin-top: 44px; }
.section-title { border: 0; padding: 0; margin: 0 0 16px; font-size: 1.5rem; text-align: center; }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}
.feature img { height: 56px; width: auto; display: block; margin-bottom: 6px; }
.feature h3 { margin: 0 0 0.3em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.oceans {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px 10px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 560px) { .oceans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .oceans { grid-template-columns: repeat(5, 1fr); } }
.oceans img { width: min(130px, 80%); display: block; margin: 0 auto 6px; }
.oceans strong { display: block; font-family: var(--round); }
.oceans span { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }

.marv-band {
  margin-top: 44px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 22px 22px 0;
  border-radius: 20px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 70%, rgba(79, 224, 210, 0.25), transparent 50%),
    linear-gradient(160deg, var(--deep-2), var(--deep));
}
.marv-band img { width: min(150px, 34%); flex: none; }
.marv-band div { padding-bottom: 22px; }
.marv-band h2 { border: 0; padding: 0; margin: 0 0 0.4em; }
.marv-band p { color: #c4d3e6; margin: 0; }

/* ---- Support FAQ ---- */

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 10px 0;
  padding: 0 16px;
}
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  list-style-position: outside;
  margin-left: 16px;
}
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details > :not(summary) { margin: 12px 0; }
.faq h2 { margin-top: 1.6em; }
.where { font-family: var(--round); font-weight: 700; white-space: nowrap; }

/* ---- Press kit ---- */

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 8px; }
}
.assets { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .assets { grid-template-columns: repeat(4, 1fr); } }
.assets li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
}
.assets .thumb {
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--deep);
  margin-bottom: 8px;
}
.assets .thumb img { max-height: 96px; width: auto; max-width: 90%; }

.info { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .info { grid-template-columns: 1fr 1fr; } }

/* Draft markers. Hidden on the live site; delete the `display: none` rule below to review them. */
.todo { display: none !important; }
.todo {
  background: var(--todo-bg);
  border: 1px dashed var(--todo-border);
  color: var(--todo-text);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 1em 0;
  font-size: 0.95rem;
}
.todo::before { content: "TODO: "; font-weight: 700; }

footer.site {
  background: var(--deep);
  color: #9fb2c9;
  font-size: 0.9rem;
}
footer.site .wrap { padding-top: 18px; padding-bottom: 26px; }
footer.site a { color: #c8d6e8; }
