/* Lumen website. Same materials as the game: parchment by day, night sea by night, brass for metalwork. */

:root {
  --paper: #f3e6c8;
  --paper-2: #efdcae;
  --card: #f8eed6;
  --card-2: #fbf4e2;
  --ink: #3a2a1d;
  --ink-2: #5c4633;
  --muted: #7a6550;
  --edge: #b99a6e;
  --edge-strong: #9c7b4d;
  --brass: #b9791f;
  --brass-2: #d39a35;
  --brass-3: #f2c14e;
  --accent: #9a3b1f;
  --good: #3f7a2a;
  --bad: #a63a2a;
  --shadow: rgba(58, 42, 29, 0.16);
  --glow: rgba(255, 205, 100, 0.45);
  --frame-bg: #e5d3ab;
  --grain-tint: 0.32 0 0 0 0 0.22 0 0 0 0 0.1 0 0 0 0.1 0;
  --radius: 18px;
  --display: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0f1726;
    --paper-2: #141e31;
    --card: #18233a;
    --card-2: #1d2a44;
    --ink: #f3ead6;
    --ink-2: #d9ccb2;
    --muted: #a79b86;
    --edge: #34435f;
    --edge-strong: #4a5b7c;
    --brass: #e2ab4a;
    --brass-2: #d39a35;
    --brass-3: #f2c14e;
    --accent: #f2a35c;
    --good: #8fd07a;
    --bad: #f08a7a;
    --shadow: rgba(0, 0, 0, 0.45);
    --glow: rgba(255, 200, 90, 0.22);
    --frame-bg: #0b1220;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #0f1726;
  --paper-2: #141e31;
  --card: #18233a;
  --card-2: #1d2a44;
  --ink: #f3ead6;
  --ink-2: #d9ccb2;
  --muted: #a79b86;
  --edge: #34435f;
  --edge-strong: #4a5b7c;
  --brass: #e2ab4a;
  --brass-2: #d39a35;
  --brass-3: #f2c14e;
  --accent: #f2a35c;
  --good: #8fd07a;
  --bad: #f08a7a;
  --shadow: rgba(0, 0, 0, 0.45);
  --glow: rgba(255, 200, 90, 0.22);
  --frame-bg: #0b1220;
  color-scheme: dark;
}

/* Which theme is showing, for images that have a light and a dark version.
   !important so layout rules like `.frame img { display: block }` can't bring both back. */
.when-dark {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .when-dark {
    display: block !important;
  }
  :root:not([data-theme='light']) .when-light {
    display: none !important;
  }
}
:root[data-theme='dark'] .when-dark {
  display: block !important;
}
:root[data-theme='dark'] .when-light {
  display: none !important;
}

/* ─── Base ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32  0 0 0 0 .22  0 0 0 0 .1  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(1100px 700px at 10% -10%, var(--glow), transparent 60%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
}
p {
  margin: 0;
}
.small {
  font-size: 0.85rem;
  color: var(--muted);
}
.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 32px);
}
.center {
  text-align: center;
  justify-content: center;
}
section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 10px;
}
.skip:focus {
  left: 12px;
}
:focus-visible {
  outline: 3px solid var(--brass-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─── Shared pieces ─────────────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow:
    0 3px 0 var(--edge),
    0 18px 30px -22px var(--shadow);
}
.frame {
  margin: 0;
  border-radius: 16px;
  border: 2px solid var(--edge-strong);
  background: var(--frame-bg);
  padding: 8px;
  box-shadow:
    0 4px 0 var(--edge),
    0 30px 60px -30px var(--shadow);
}
.frame img {
  display: block;
  width: 100%;
  border-radius: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  border: 2px solid #7a4a1a;
  background: linear-gradient(180deg, #f8d77a, #e0a43a);
  color: #3a2410;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow:
    inset 0 2px 0 rgba(255, 247, 214, 0.7),
    0 3px 0 #7a4a1a;
  transition:
    transform 0.12s,
    filter 0.12s;
}
.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 0 rgba(255, 247, 214, 0.7),
    0 1px 0 #7a4a1a;
}
.btn-ghost {
  background: var(--card);
  border-color: var(--edge-strong);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--edge);
}
.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cta-row:empty {
  display: none;
}
.soon {
  margin-top: 28px;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px dashed var(--brass-2);
  font-weight: 700;
  color: var(--ink);
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.numeral {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brass);
  margin-bottom: 8px;
}
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head p:not(.numeral) {
  margin-top: 16px;
  font-size: 1.1rem;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.meta .dot {
  color: var(--brass-2);
  font-size: 0.7rem;
  align-self: center;
}
.meta a {
  font-weight: 600;
}

/* ─── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--edge) 60%, transparent);
}
.nav-inner {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  border: 0;
  background: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 10px;
}
.theme-toggle img {
  width: 26px;
  height: 26px;
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(4rem, 11vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 10px;
}
.lede {
  margin-top: 18px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34em;
}
.hero-shot {
  transform: rotate(0.6deg);
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-shot {
    transform: none;
  }
}

/* ─── Story ─────────────────────────────────────────────────────────────── */
.story {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, #0b1220 6%, transparent) 30%, transparent);
}
.story h2 {
  margin-bottom: 28px;
}
.story-text p {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
  color: var(--ink);
  margin-top: 1em;
}
.story-text p:first-child {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  font-style: italic;
  margin-top: 0;
}
.story-text p:last-child {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Features ──────────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.feature {
  padding: 28px;
  position: relative;
}
.feature h3 {
  margin: 14px 0 10px;
}
.roman {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 2px solid var(--brass-2);
  font-family: var(--display);
  font-weight: 800;
  color: var(--brass);
  background: color-mix(in srgb, var(--brass-3) 18%, transparent);
}

/* ─── Places ────────────────────────────────────────────────────────────── */
.place {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.place + .place {
  margin-top: clamp(56px, 8vw, 96px);
}
.place.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}
.place.flip .place-copy {
  order: 2;
}
.place-icon {
  width: 64px;
  height: 64px;
}
.place h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 12px 0 10px;
}
.place p {
  font-size: 1.1rem;
}
.chips {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--edge);
  background: var(--card);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 860px) {
  .place,
  .place.flip {
    grid-template-columns: 1fr;
  }
  .place.flip .place-copy {
    order: 0;
  }
}

/* ─── Skills ────────────────────────────────────────────────────────────── */
.skill-group + .skill-group {
  margin-top: 44px;
}
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid color-mix(in srgb, var(--brass-2) 40%, transparent);
}
.group-head p {
  color: var(--muted);
  font-size: 0.95rem;
}
.count {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff6dc;
  background: var(--ink);
  border-radius: 999px;
  padding: 1px 9px;
}
:root[data-theme='dark'] .count {
  color: var(--paper);
}
.skill-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}
.skill {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--edge);
  background: var(--card);
  position: relative;
}
.skill img {
  width: 44px;
  height: 44px;
}
.skill h4 {
  font-size: 1.1rem;
}
.skill p {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 2px;
  color: var(--muted);
}
.skill .lv {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ─── Travellers ────────────────────────────────────────────────────────── */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.quote {
  margin: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
}
.quote figcaption {
  margin-top: auto;
  color: var(--muted);
}
.quote figcaption strong {
  color: var(--ink);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.stat,
.number-grid > div {
  display: flex;
  flex-direction: column;
}
.stat strong,
.number-grid strong {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--brass);
  line-height: 1.1;
}
.stat span,
.number-grid span {
  color: var(--muted);
}

/* ─── Lamp ──────────────────────────────────────────────────────────────── */
.lamp-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}
.lamp-track li {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--edge);
  background: var(--card);
  overflow: hidden;
}
/* Each tier glows a little brighter. */
.lamp-track li::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.lamp-track li:nth-child(2)::before {
  opacity: 0.45;
}
.lamp-track li:nth-child(3)::before {
  opacity: 0.65;
}
.lamp-track li:nth-child(4)::before {
  opacity: 0.85;
}
.lamp-track li:nth-child(5)::before {
  opacity: 1;
}
.lamp-track .nm {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brass);
}
.lamp-track h4 {
  font-size: 1.05rem;
  margin: 6px 0;
}
.lamp-track p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.lamp-track .tier {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
}
@media (max-width: 960px) {
  .lamp-track {
    grid-template-columns: 1fr;
  }
}

/* ─── Pets ──────────────────────────────────────────────────────────────── */
.pet-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.pet-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 18px 10px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--edge);
  background: var(--card);
}
.pet-grid img {
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
}
.pet-grid strong {
  font-family: var(--display);
  color: var(--ink);
}
.pet-grid span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Numbers ───────────────────────────────────────────────────────────── */
.numbers {
  padding: 56px 0;
  border-block: 1.5px solid color-mix(in srgb, var(--brass-2) 35%, transparent);
  background: color-mix(in srgb, var(--card) 55%, transparent);
}
.number-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  text-align: center;
}
.number-grid > div {
  align-items: center;
}
@media (max-width: 860px) {
  .number-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .number-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Said plainly ──────────────────────────────────────────────────────── */
.plain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.plain {
  padding: 28px;
}
.plain ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.plain li {
  position: relative;
  padding-left: 30px;
}
.checks li::before,
.crosses li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}
.checks li::before {
  content: '✓';
  color: var(--good);
}
.crosses li::before {
  content: '◇';
  color: var(--muted);
}

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1.5px solid var(--edge);
  border-radius: 14px;
  background: var(--card);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--brass);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 20px;
}

/* ─── Final call & footer ───────────────────────────────────────────────── */
.final {
  background: radial-gradient(700px 400px at 50% 30%, var(--glow), transparent 70%);
}
.final-icon {
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 0 28px var(--glow));
}
.footer {
  padding: 56px 0 96px;
  border-top: 1.5px solid color-mix(in srgb, var(--edge) 70%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 28px;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.footer-grid a:not(.brand) {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  padding: 3px 0;
}
.footer-grid a:not(.brand):hover {
  color: var(--accent);
}
.footer-grid > div:has(h4):not(:has(a)) {
  display: none;
}
.footer .brand {
  font-size: 1.3rem;
}
.footer .brand + p {
  margin-top: 8px;
}
.credits {
  margin-top: 36px;
}
@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Mobile play bar ───────────────────────────────────────────────────── */
.mobile-bar {
  display: none;
}
@media (max-width: 700px) {
  .mobile-bar:has(a) {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--edge);
  }
  .mobile-bar .btn {
    width: 100%;
  }
}

/* ─── Simple text pages (privacy) ───────────────────────────────────────── */
.doc {
  padding: 56px 0 96px;
}
.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 8px;
}
.doc h2 {
  font-size: 1.5rem;
  margin: 36px 0 10px;
}
.doc p,
.doc li {
  margin-top: 10px;
}
.doc ul {
  padding-left: 22px;
}
