:root {
  /* RMG Creations brand: navy #0A1628, blue #1D4C8F, fern #8AAADC, white #F3F6F4 */
  --ground: #0A1628;
  --ground-2: #0F1E36;
  --ground-3: #172A49;
  --text: #F3F6F4;
  --muted: #9EB0CB;
  --line: #22385C;
  --tide: #8AAADC;
  --tide-dim: #1D4C8F;
  --flame: #FF7A59;

  --map-sea: #0E2A4F;
  --map-surf: #4F7FB8;
  --map-harbour: #17406B;
  --map-flats: #5B6F6A;
  --map-mangrove: #2F5A3C;
  --map-land: #2A3B2F;
  --map-edge: #5D7A63;
  --map-sand: #D9C48F;
  --map-forest: #3E6B48;
  --map-golf: #4E8A4F;
  --map-fairway: #6FAF63;
  --map-street: #E8E2CF;
  --map-block: #3A4C3E;
  --map-text: #F3F6F4;
  --map-farm: #3A4A2C;
  --map-farm-line: #556B3C;

  --r-xs: 4px;
  --r-md: 10px;
  --r-lg: 22px;

  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
a { color: var(--tide); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .9em; background: var(--ground-3); padding: 1px 6px; border-radius: var(--r-xs); }
img { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 36px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--tide); color: var(--ground); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; }

.eyebrow { font-weight: 600; color: var(--tide); margin: 0 0 14px; font-size: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; text-decoration: none; padding: 9px 16px; border-radius: 999px; transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.btn--lg { padding: 14px 26px; font-size: 1.08rem; }
.btn--play { background: var(--tide); color: var(--ground); }
.btn--play:hover { background: #B4CBEE; }
.btn--play:active { transform: translateY(1px); }
.btn--ghost { color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--tide); }
.is-soon { cursor: not-allowed; opacity: .55; }
.btn.is-soon::after { content: "Soon"; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-left: 8px; padding: 1px 6px; border-radius: var(--r-xs); background: #0A162833; }
.btn--ghost.is-soon::after { background: var(--ground-3); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo__fern { height: 40px; width: auto; }
.logo__word { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.03em; }
.logo__tag { font-size: .78rem; color: var(--muted); align-self: flex-end; margin-bottom: 5px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: var(--r-xs); font-weight: 500; transition: color .15s var(--ease); }
.nav a:not(.btn):hover { color: var(--tide); }
.nav a[aria-current="page"] { color: var(--tide); }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; font: inherit; font-weight: 600; color: var(--text); background: var(--ground-3); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 10px 0 0; }
}

/* Hero */
.hero { padding: 48px 0 72px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.hero h1 { max-width: 13ch; }
.hero__lede { font-size: 1.22rem; color: var(--muted); max-width: 46ch; margin: 24px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__map { position: relative; }
.map-hint { margin: 10px 0 0; font-size: .92rem; color: var(--muted); text-align: center; }

/* Map */
.map { width: 100%; height: auto; display: block; border-radius: var(--r-lg); }
.map__harbour { fill: var(--map-harbour); }
.map__flats { fill: var(--map-flats); opacity: .55; }
.map__land { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 1.5; }
.map__land--spit { stroke: none; }
.map__sand { fill: var(--map-sand); }
.map__golf { fill: var(--map-golf); }
.map__fairway { fill: var(--map-fairway); }
.map__reserve { fill: var(--map-forest); }
.map__contour { fill: none; stroke: #ffffff1f; stroke-width: 1.2; }
.map__street { fill: none; stroke: var(--map-street); stroke-width: 2; stroke-linecap: round; opacity: .75; }
.map__street--main { stroke-width: 4; opacity: 1; }
.map__blocks rect { fill: var(--map-block); }
.map__blocks--industrial rect { fill: #4A4F57; }
.map__road { fill: none; stroke: #E9C46A; stroke-width: 4; stroke-linecap: round; }
.map__road--sh1 { stroke-width: 5.5; }
.map__road--minor { stroke-width: 2.5; stroke: var(--map-street); opacity: .7; }
.map__bridge { stroke: #E9C46A; stroke-width: 6; }
.map__bridge-rail { stroke: #F3F6F4; stroke-width: 1.2; opacity: .8; }
.map__jetty { stroke: var(--map-street); stroke-width: 3; stroke-linecap: round; }
.map__shield { font-family: var(--mono); font-size: 13px; fill: #E9C46A; }
.map__water { font-family: var(--body); font-style: italic; font-size: 14px; fill: #8FB0D8; }
.map__water--harbour { font-size: 13px; fill: #A9C3E3; }
.map__minor-label { font-family: var(--body); font-size: 11px; fill: var(--map-text); opacity: .8; }
.map__compass circle { fill: none; stroke: var(--map-edge); stroke-width: 1.5; }
.map__compass path { fill: var(--tide); }
.map__compass text { font-family: var(--mono); font-size: 13px; fill: var(--muted); text-anchor: middle; }
.pin { cursor: pointer; outline: none; }
.pin__halo { fill: var(--tide); opacity: .16; transition: opacity .2s var(--ease); }
.pin__dot { fill: var(--tide); stroke: var(--ground); stroke-width: 2.5; }
.pin--town .pin__dot { fill: var(--flame); }
.pin--town .pin__halo { fill: var(--flame); }
.pin__label { font-family: var(--body); font-weight: 600; font-size: 15px; fill: var(--text); paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-linejoin: round; }
.pin__label--left { text-anchor: end; }
.pin__label--town { font-family: var(--display); font-weight: 800; font-size: 22px; }
.pin:hover .pin__halo, .pin:focus-visible .pin__halo, .pin.is-active .pin__halo { opacity: .45; }
.pin:focus-visible .pin__dot, .pin.is-active .pin__dot { stroke: var(--text); }

/* A day in Pukenui */
.day { padding: 80px 0; background: var(--ground-2); }
.day h2 { margin-bottom: 40px; }
.day__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 860px; }
.day__list li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .day__list li { grid-template-columns: 140px 1fr; gap: 32px; } }
.day__time { font-family: var(--mono); font-size: .95rem; color: var(--tide); padding-top: 4px; }
.day__list p { margin: 6px 0 0; color: var(--muted); max-width: 56ch; }

/* Jobs teaser */
.jobs-teaser { padding: 88px 0; }
.jobs-teaser__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .jobs-teaser__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; } }
.jobs-teaser p { color: var(--muted); max-width: 42ch; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " \2192"; }
.job-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.job-tags a { display: block; padding: 10px 18px; border-radius: 999px; background: var(--ground-3); color: var(--text); text-decoration: none; font-weight: 500; transition: background-color .18s var(--ease), color .18s var(--ease); }
.job-tags a:hover { background: var(--tide); color: var(--ground); }
.job-tags li:nth-child(-n+3) a { box-shadow: inset 0 0 0 2px var(--flame); background: transparent; }
.job-tags li:nth-child(-n+3) a:hover { background: var(--flame); color: var(--ground); }

/* Getting started */
.start { padding: 0 0 96px; }
.start h2 { margin-bottom: 32px; }
.start__steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .start__steps { grid-template-columns: 1.3fr 1fr 1fr; } }
.start__steps li { counter-increment: s; background: var(--ground-2); border-radius: var(--r-md); padding: 26px 24px 24px; position: relative; }
.start__steps li:first-child { background: var(--tide); color: var(--ground); }
.start__steps li:first-child p { color: #0A1628CC; }
.start__steps li:first-child a { color: var(--ground); }
.start__steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; display: block; margin-bottom: 14px; opacity: .35; }
.start__steps p { color: var(--muted); margin: 8px 0 14px; }
.start__steps a { font-weight: 600; }
.start__steps a.is-soon { opacity: .6; }
.start__steps a.is-soon::after { content: " (link coming soon)"; font-weight: 400; }

/* Inner pages */
.page-top { padding: 56px 0 40px; }
.page-top--tall { padding: 120px 0 140px; }
.page-top h1 { max-width: 16ch; }
.page-top__lede { font-size: 1.2rem; color: var(--muted); max-width: 58ch; margin: 20px 0 0; }
.fineprint { font-size: .92rem; color: var(--muted); margin-top: 24px; }

/* Region explorer */
.explorer { padding-bottom: 64px; }
.explorer__grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .explorer__grid { grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; } .place-panel { position: sticky; top: 96px; } }
.place-panel { background: var(--ground-2); border-radius: var(--r-lg); padding: 28px; min-height: 280px; }
.place-panel h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin: 4px 0 12px; }
.place-panel p { color: var(--muted); margin: 0; }
.place-panel__kind { color: var(--tide) !important; font-weight: 600; }
.place-panel__label { margin-top: 22px !important; font-weight: 600; color: var(--text) !important; }
.place-panel ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.place-panel li { background: var(--ground-3); padding: 5px 12px; border-radius: var(--r-xs); font-size: .95rem; }
.place-panel__empty { font-size: 1.1rem; }

.place-index { padding: 32px 0 96px; }
.place-index h2 { margin-bottom: 20px; }
.place-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.place-list__item { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px 24px; width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .place-list__item { grid-template-columns: 140px 260px 1fr; align-items: baseline; } }
.place-list__item:focus-visible { outline: 3px solid var(--tide); outline-offset: 2px; }
.place-list__kind { color: var(--muted); font-size: .95rem; }
.place-list__name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; transition: color .15s var(--ease); }
.place-list__blurb { color: var(--muted); }
.place-list__item:hover .place-list__name { color: var(--tide); }

/* Jobs page */
.jobs { padding-bottom: 96px; }
.jobs__group { font-size: 1.9rem; margin: 40px 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.jobs__group span { font-family: var(--body); font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.jobs__group:first-child { margin-top: 0; }
.job-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.job { display: grid; gap: 10px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
@media (min-width: 900px) { .job { grid-template-columns: 240px 1fr 340px; } }
.job:target { background: linear-gradient(90deg, #8AAADC14, transparent 70%); }
.job__where { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.job > p { margin: 0; color: var(--muted); max-width: 56ch; }
.job__facts { margin: 0; display: grid; gap: 6px; align-content: start; font-size: .97rem; }
.job__facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.job__facts dt { color: var(--muted); }
.job__facts dd { margin: 0; font-weight: 500; }
.job__facts a.is-soon::after { content: " (soon)"; }

.job__opps-title { font-weight: 600; margin: 0 0 6px; }
.job__opps ul { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.job__opps li { background: var(--ground-3); padding: 4px 10px; border-radius: var(--r-xs); font-size: .93rem; }
.job__opps a { font-weight: 600; font-size: .97rem; }
.job__opps a.is-soon::after { content: " (soon)"; }

/* Fire service page */
.page-top__actions { margin-top: 28px; }
.service { padding: 24px 0 96px; }
.service__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .service__grid { grid-template-columns: 1.2fr .8fr; gap: 64px; } }
.service h2 { font-size: 2rem; margin-bottom: 18px; }
.service__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service__list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.service__list strong { color: var(--text); }
.service__copy { color: var(--muted); max-width: 46ch; }

/* Rules */
.rules { padding-bottom: 96px; }
.rules__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .rules__grid { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; } .rules__toc { position: sticky; top: 96px; } }
.rules__toc { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (min-width: 900px) { .rules__toc { flex-direction: column; border-left: 2px solid var(--line); padding-left: 16px; } }
.rules__toc a { color: var(--muted); text-decoration: none; font-weight: 500; }
.rules__toc a:hover { color: var(--tide); }
.rules h2 { font-size: 2rem; margin: 48px 0 16px; scroll-margin-top: 90px; }
.rules h2:first-child { margin-top: 0; }
.rule-list { margin: 0; padding-left: 2.2em; max-width: 68ch; }
.rule-list li { padding: 8px 0 8px 6px; }
.rule-list li::marker { font-family: var(--mono); color: var(--tide); font-size: .9em; }
.rule-list strong { color: var(--text); }
.table-scroll { overflow-x: auto; max-width: 68ch; }
.punish { width: 100%; border-collapse: collapse; }
.punish th { text-align: left; font-weight: 600; color: var(--muted); font-size: .92rem; padding: 10px 16px 10px 0; border-bottom: 2px solid var(--line); }
.punish td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.punish tr:last-child td:last-child { color: var(--flame); font-weight: 600; }

/* Updates */
.updates { padding-bottom: 96px; }
.updates__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .updates__grid { grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; } }
.updates h2 { font-size: 2rem; margin-bottom: 20px; }
.log { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.log li { padding: 0 0 28px 24px; position: relative; }
.log li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--tide); }
.log time { font-family: var(--mono); font-size: .9rem; color: var(--tide); }
.log h3 { margin: 4px 0 8px; font-size: 1.5rem; }
.log ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.roadmap { background: var(--ground-2); border-radius: var(--r-lg); padding: 28px; }
.roadmap__list { list-style: none; margin: 0; padding: 0; }
.roadmap__list li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.status { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.status--doing { color: var(--tide); }

/* Legal pages */
.legal { padding-bottom: 96px; }
.legal__body > * { max-width: 760px; }
.legal__body h2 { font-size: 1.45rem; margin: 36px 0 10px; letter-spacing: -.01em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--muted); }
.legal__body ul { padding-left: 1.2em; }
.legal__body li { margin-bottom: 6px; }
.legal__body strong { color: var(--text); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--ground-2); }
.foot__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.foot__brand { grid-column: span 2; min-width: 0; }
@media (max-width: 520px) { .foot__brand { grid-column: 1 / -1; } }
.foot__logo { width: 240px; height: auto; margin-bottom: 14px; }
.foot__word { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -.03em; margin: 0 0 8px; }
.foot__brand p:last-child { color: var(--muted); max-width: 40ch; margin: 0; }
.foot__title { font-weight: 600; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot ul a { color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--tide); }
.foot ul a.is-soon::after { content: " (soon)"; }
.foot__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot__legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px !important; }
.foot__legal-links a { color: var(--text); font-weight: 500; }
.foot__legal p { margin: 0; font-size: .88rem; color: var(--muted); max-width: 80ch; }

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