/* Mundil. Night-sky palette; light and dark follow the system. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f8fd;
  --surface: #ffffff;
  --surface-2: #eaf0fb;
  --line: #ced9ee;
  --text: #0d1430;
  --muted: #475472;
  --link: #1a56b8;
  --kicker: #8f4400;
  --gold: #ffb33e;
  --gold-ink: #1a1204;
  --blue: #4f9dff;
  --focus: #1a56b8;
  --shadow: 0 1px 2px rgba(13, 20, 48, .08), 0 8px 24px rgba(13, 20, 48, .08);
  /* the hero is always night */
  --sky: #071426;
  --sky-2: #0e1d36;
  --sky-text: #eef3fc;
  --sky-muted: #b4c2dc;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071426;
    --surface: #0e1d36;
    --surface-2: #132647;
    --line: #26406b;
    --text: #e9eefa;
    --muted: #a9b8d3;
    --link: #8fc0ff;
    --kicker: #ffb33e;
    --focus: #ffb33e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-inline: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--gold-ink); padding: .6rem 1rem; border-radius: 8px; z-index: 20; font-weight: 600; }
.skip:focus { top: 8px; }

.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--kicker); margin: 0 0 .75rem; }
.muted { color: var(--muted); }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.25rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; flex-wrap: wrap; gap: .1rem .35rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: .45rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); font-weight: 700; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sky); color: var(--sky-text); padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 55% at 88% 8%, rgba(255, 179, 62, .30), transparent 70%),
    radial-gradient(35% 45% at 4% 100%, rgba(79, 157, 255, .22), transparent 70%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .lede, .hero p { color: var(--sky-muted); }
.hero .kicker { color: var(--gold); }
.hero a:not(.btn) { color: #a9d0ff; }
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero-art img { margin-inline: auto; width: min(100%, 480px); height: auto; }
.hero-art.round img { width: min(100%, 320px); border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.pills li { border: 1px solid rgba(180, 194, 220, .4); border-radius: 999px; padding: .25rem .8rem; font-size: .88rem; color: var(--sky-text); background: rgba(255, 255, 255, .06); }

.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: #ffc566; }
.btn-ghost { border-color: currentColor; color: var(--text); }
.hero .btn-ghost { color: var(--sky-text); border-color: rgba(238, 243, 252, .6); }
.btn-ghost:hover { background: rgba(127, 150, 200, .18); }

/* sections */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.alt { background: var(--surface-2); }
.story { font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; max-width: 34em; }
.story em { font-style: normal; color: var(--kicker); font-weight: 700; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 2rem 0 0; list-style: none; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.4rem; }
.card h3 { margin-bottom: .15rem; font-size: 1.45rem; }
.card .what { color: var(--kicker); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .5rem; }
.card p { color: var(--muted); }
.card .btns { margin-top: auto; padding-top: .5rem; }
.card .btn { min-height: 44px; padding: .55rem 1.05rem; font-size: .95rem; }

.grid3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 1.5rem 0 0; list-style: none; }
.grid2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.tile h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.tile p { margin: 0; color: var(--muted); font-size: 1rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.panel h2 { margin-bottom: .4em; }

/* shots */
.shots { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.shots .wide { grid-column: 1 / -1; }
.shot { margin: 0; }
.shot a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #05101f; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; }
.shot.tall img { max-height: 560px; width: auto; margin-inline: auto; }
.shot figcaption { color: var(--muted); font-size: .95rem; margin-top: .6rem; }

/* stats */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 1.5rem 0 .75rem; list-style: none; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; color: var(--kicker); }
.stat span { color: var(--muted); font-size: .98rem; }
.fine { font-size: .92rem; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; width: 9.5rem; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* quotes */
blockquote.dedication { margin: 1.25rem 0; padding: 1.1rem 1.4rem; border-left: 5px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.12rem; line-height: 1.6; box-shadow: var(--shadow); }
blockquote.dedication p { margin: 0 0 .6rem; }
blockquote.dedication footer { color: var(--muted); font-size: .95rem; }

.dedications { display: grid; gap: 1.25rem; }
.dedications h3 { margin: 1.25rem 0 0; }

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: .5rem; }
.next { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
.next a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 700; }
.next a span { display: block; color: var(--muted); font-weight: 400; font-size: .95rem; }
.next a:hover { border-color: var(--link); }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface-2); padding-block: 2.25rem; font-size: .96rem; color: var(--muted); }
.site-foot .cols { display: grid; gap: 1.5rem 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-foot h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: .6rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot .legal { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .88rem; }

.notfound { text-align: center; }
.notfound .btns { justify-content: center; }
.notfound .lede { margin-inline: auto; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(100%, 360px); }
  .hero-art.round img { width: min(100%, 240px); margin-inline: 0; }
  .cards, .grid3, .stats { grid-template-columns: 1fr; }
  .shots, .grid2, .next { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; }
  table { min-width: 0; }
  th, td { display: block; width: auto; border-bottom: 0; padding: .35rem 1rem; }
  th { padding-top: .8rem; }
  td { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
  tr:last-child td { border-bottom: 0; }
}

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