/* Airport Board landing page. Colors and type follow design/logo/README.md. */

@font-face {
  font-family: "Oswald";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Oswald-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
}

:root {
  --yellow: #ffcc1a;
  --board: #0a0a0a;
  --flap: #1c1c1c;
  --ink: #121212;
  --panel: #141414;
  --line: #262626;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --dim: #737373;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--board);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--yellow); }
a:hover { color: #fff; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.04em; }

p { margin: 0 0 1em; }
p.lede { font-size: 1.2rem; color: var(--muted); max-width: 38em; }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--yellow);
  margin-bottom: 0.6em;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header .logo img { height: 36px; width: auto; display: block; }
.site-header nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 22px;
}
.site-header nav a:hover { color: var(--yellow); }
@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-header nav a { margin: 0 22px 0 0; }
}

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
@media (min-width: 800px) { section { padding: 96px 0; } }

/* Hero */
.hero { padding-top: 56px; }
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 5fr 7fr; gap: 56px; }
}
.hero h1 .accent { color: var(--yellow); }

.cta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 28px 0 12px;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff;
  border: 1px solid #a6a6a6; border-radius: 8px;
  padding: 7px 14px 7px 10px;
  text-decoration: none; line-height: 1.1;
  min-height: 48px;
}
.store-badge:hover { color: #fff; border-color: #fff; }
.store-badge svg { width: 26px; height: 26px; flex: none; fill: #fff; }
.store-badge small { display: block; font-size: 0.65rem; letter-spacing: 0.02em; }
.store-badge span { display: block; font-size: 1.15rem; font-weight: 700; font-family: var(--body); letter-spacing: -0.01em; }

.coffee { display: inline-block; border-radius: 8px; line-height: 0; }
.coffee img { width: 217px; height: 60px; border-radius: 8px; transition: transform 0.15s ease; }
.coffee:hover img { transform: scale(1.04); }

.fineprint { color: var(--dim); font-size: 0.9rem; margin-top: 8px; }

/* Live split-flap board */
.board {
  background: var(--board);
  border: 2px solid #2a2a2a;
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55), inset 0 0 0 1px #000;
  font-family: var(--display);
  text-transform: uppercase;
  user-select: none;
}
.board-head {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--yellow);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.board-head time { font-variant-numeric: tabular-nums; }
.board-cols, .board-row {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
  gap: 0.6em;
  align-items: center;
}
.board-cols {
  color: var(--dim);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 0 0 6px;
  border-bottom: 1px solid #1a1a1a;
}
.board-row {
  padding: 7px 0;
  border-bottom: 1px solid #141414;
  /* 35 flaps have to fit across the board; these sizes are tuned so they do
     at every width, with the title column clipping as a last resort. */
  font-size: clamp(0.7rem, 1.9vw, 1rem);
  letter-spacing: 0.02em;
}
@media (min-width: 900px) {
  .board-row { font-size: clamp(0.62rem, 1.1vw, 0.9rem); }
}
.board-row:last-child { border-bottom: 0; }
.cell { display: flex; gap: 2px; white-space: nowrap; }
.cell.title { overflow: hidden; }
.flap {
  display: inline-block; flex: none;
  width: 0.92em; height: 1.5em; line-height: 1.5em;
  text-align: center;
  background: linear-gradient(#232323 0 50%, #191919 50% 100%);
  border-radius: 2px;
  color: var(--text);
  position: relative;
}
.flap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid #000; opacity: 0.8;
}
.flap.blank { color: transparent; }
.board-row.now .flap { color: var(--yellow); }
.board-row.now .status .flap { background: var(--yellow); color: #000; }
.board-row.soon .status .flap { color: var(--yellow); }
.board-row.cancelled .flap { color: var(--dim); }
.board-row.cancelled .title .flap { text-decoration: line-through; }
.board-caption { color: var(--dim); font-size: 0.85rem; text-align: center; margin: 14px 0 0; font-family: var(--body); text-transform: none; }

@media (max-width: 560px) {
  .board { padding: 14px 12px 12px; border-radius: 14px; }
  .board-cols, .board-row { grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 0.4em; }
  .board .code, .board-cols .code { display: none; }
  .board-row { font-size: clamp(0.6rem, 2.6vw, 0.9rem); }
}

/* How it works */
.steps {
  display: grid; gap: 28px; margin-top: 36px;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step .num {
  font-family: var(--display); color: var(--yellow);
  font-size: 2rem; line-height: 1; margin-bottom: 10px;
}
.step p { color: var(--muted); margin: 0; }

/* Themes */
.themes {
  display: grid; gap: 24px; margin-top: 36px;
}
@media (min-width: 720px) { .themes { grid-template-columns: repeat(2, 1fr); } }
.theme {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.theme img { display: block; width: 100%; border-bottom: 1px solid var(--line); }
.theme figcaption { padding: 16px 18px 18px; }
.theme figcaption p { color: var(--muted); margin: 4px 0 0; font-size: 0.95rem; }

/* Details */
.details {
  display: grid; gap: 22px 32px; margin-top: 36px;
}
@media (min-width: 720px) { .details { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .details { grid-template-columns: repeat(3, 1fr); } }
.details h3 { margin-bottom: 0.3em; }
.details p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Privacy strip */
.privacy { background: var(--ink); }
.privacy .wrap { max-width: 760px; text-align: center; }
.privacy p { color: var(--muted); }

/* Requirements */
.requirements ul {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 12px;
}
@media (min-width: 720px) { .requirements ul { grid-template-columns: repeat(3, 1fr); } }
.requirements li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px;
}
.requirements li strong { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem; }
.requirements li span { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--dim);
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav a { color: var(--muted); text-decoration: none; margin-right: 18px; }
.site-footer nav a:hover { color: var(--yellow); }

/* Secondary pages */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 720px; }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
.page .updated { color: var(--dim); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
