/* MondoRoam holding page. Tokens from design/brand-spec.md. */
:root {
  --ink: #12233A;
  --paper: #FBF7F2;
  --mist: #685E57;
  --accent: #FF9F5A;
  --accent-deep: #B45109;
  --card-border: #EFE3D7;
  --on-ink-border: #24384F;
  --on-ink-muted: #A9B6C4;
  --on-ink-body: #C9D2DD;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 112px) 16px 56px;
  text-align: center;
}

h1, h2, p { margin: 0; text-wrap: pretty; }

.kicker {
  font: 700 11px/1 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

h1 {
  font: 900 clamp(36px, 4.4vw, 56px)/1.04 Figtree, system-ui, sans-serif;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}

.lead {
  max-width: 34em;
  margin: 0 auto 26px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--mist);
}

.tagline {
  font: 900 clamp(19px, 2.4vw, 23px)/1.3 Figtree, system-ui, sans-serif;
  letter-spacing: -.03em;
}

/* Brand rule: the second half carries the accent. Apricot fails as text on paper,
   so it takes the text-safe accent (700). */
.tagline span {
  white-space: nowrap;
  color: var(--accent-deep);
}

/* Logo lockup (design/brand.md, L2 Highlight + Portal). Everything scales from the
   font size f: mark box 1.037f (1.48 x cap height), gap 0.30f minus Portal's 7.25/48
   side bearing, mark nudged down by its 7/48 foot bearing so the arch stands on the
   wordmark baseline. ROAM block: .11em top/bottom, zero left, .045em right. */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: .1434em;
  margin-bottom: clamp(30px, 5vw, 44px);
  font: 900 clamp(34px, 10.5vw, 84px)/1 Figtree, system-ui, sans-serif;
  letter-spacing: -.045em;
  color: var(--ink);
}

.logo-mark {
  flex: none;
  display: inline-flex;
  transform: translateY(.1512em);
}

.logo-mark svg { width: 1.037em; height: 1.037em; }

.logo-word { display: inline-flex; align-items: baseline; }

.logo-roam {
  background: var(--accent);
  padding: .11em .045em .11em 0;
}

/* Departures card */
.departures {
  margin-top: clamp(40px, 7vw, 60px);
  padding: clamp(20px, 4vw, 28px) clamp(18px, 4vw, 32px);
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
}

.dep-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--on-ink-border);
}

.dep-head h2,
.dep-head span {
  font: 700 11px/1 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.departures ul { list-style: none; margin: 0; padding: 0; }

.departures li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 6px 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--on-ink-border);
}

.departures li:last-child { border-bottom: 0; padding-bottom: 2px; }

.door {
  font: 900 21px/1.1 Figtree, system-ui, sans-serif;
  letter-spacing: -.02em;
}

.what {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-ink-body);
}

.status {
  font: 700 11px/1 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

@media (max-width: 560px) {
  .departures li { grid-template-columns: 1fr auto; }
  .what { grid-column: 1 / -1; grid-row: 2; }
}

/* 404 */
.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 16px 30px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--ink);
  font: 700 13px/1 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: .03em;
  text-decoration: none;
}

.btn:hover { background: #FF8F40; }

.btn:focus-visible,
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

footer {
  padding: 22px 16px 28px;
  border-top: 1px solid var(--card-border);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
}

.nowrap { white-space: nowrap; }
