/* Platted site. Weftworks chrome around a small amber board. No scripts, no cookies. */

:root {
  --calico: #ECEAE3;
  --undyed: #FBFAF6;
  --loom: #23262B;
  --muted: #4F535A;
  --flannel: #C9C6BC;
  --woad: #2F4E7E;
  --midnight: #1B2A44;
  --gall: #3F4650;

  --black: #000000;
  --amber: #FFB000;
  --amber-dim: rgba(255, 176, 0, 0.4);
  --amber-soft: rgba(255, 176, 0, 0.62);
  --red: #FF3B30;
  --flap: #1A1916;

  --serif: "Besley", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, Consolas, monospace;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--calico);
  color: var(--loom);
  font: 400 1rem/1.6 var(--sans);
}

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

a { color: var(--woad); text-underline-offset: 0.15em; }
a:hover { color: var(--midnight); }
:focus-visible { outline: 2px solid var(--woad); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--undyed);
  border: 1px solid var(--flannel);
  border-radius: 4px;
  padding: 0.5rem 1rem;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap { max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.75rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.stitch { display: block; width: 28px; height: 3px; background: var(--gall); }

/* Header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--loom);
  text-decoration: none;
}
.brand:hover { color: var(--loom); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { font-weight: 500; text-decoration: none; padding-block: 0.5rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* Home hero */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: 2rem 4rem;
}
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 34rem; }
.price-line { color: var(--muted); font-size: 0.9375rem; max-width: 34rem; }

@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 4rem; padding-block: 4rem 6.5rem; }
}

/* The board. Amber on black, no borders, no shadows. */
.board-figure { margin: 0; }
.board {
  background: var(--black);
  color: var(--amber);
  border-radius: 6px;
  padding: 1.25rem 1rem 1.5rem;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 30rem) {
  .board { padding: 1.5rem 1.5rem 1.75rem; }
}
.board-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.clock { display: flex; align-items: center; gap: 3px; }
.clock .colon { font-size: 1.25rem; font-weight: 600; line-height: 1; padding-inline: 2px; }
.board .date,
.board .day-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-soft);
}
.board .day-label { margin: 0 0 12px; }

.flap {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 60px;
  background: var(--flap);
  border-radius: 4px;
  color: var(--amber);
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.flap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--black);
}
.flap.small { width: 24px; height: 34px; font-size: 24px; border-radius: 3px; }
.flap.mid { width: 40px; height: 46px; font-size: 28px; }
.flap.dim { color: var(--amber-dim); }
.flap.red { color: var(--red); }

.journey + .journey { margin-top: 30px; }
.leg + .leg { margin-top: 16px; }
.leg-main { display: flex; align-items: center; gap: 12px; }
.leg-time { font-size: 22px; font-weight: 600; }
.leg-dest {
  flex: 1;
  min-width: 0;
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leg-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 6px;
}
.sub {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-soft);
}
.status { font-size: 13px; font-weight: 500; }
.status.dim { color: var(--amber-soft); }
.sub.red, .status.red { color: var(--red); }

.board-caption { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--muted); }

/* Motion: the flap flips once in two frames, the waiting dots step. */
.flap.flip { animation: flip 180ms steps(2, end) 700ms both; transform-origin: 50% 50%; }
.flap.flip.later { animation-delay: 1300ms; }
@keyframes flip {
  from { transform: perspective(300px) rotateX(-90deg); }
  to { transform: perspective(300px) rotateX(0deg); }
}
.dots span { animation: tick 1.2s steps(1, end) infinite; opacity: 0.15; }
.dots span:nth-child(2) { animation-delay: 0.4s; }
.dots span:nth-child(3) { animation-delay: 0.8s; }
@keyframes tick {
  0% { opacity: 1; }
  33.333% { opacity: 0.15; }
  100% { opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
  .flap.flip { animation: fade 180ms linear 700ms both; }
  .flap.flip.later { animation-delay: 700ms; }
  .dots span { animation: none; opacity: 1; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
.section { border-top: 1px solid var(--flannel); padding-block: 3.5rem; }
@media (min-width: 56rem) { .section { padding-block: 5rem; } }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.card {
  background: var(--undyed);
  border: 1px solid var(--flannel);
  border-radius: 6px;
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.375rem; }
.card > :last-child { margin-bottom: 0; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; }
.steps > li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.after-steps { margin-top: 1.5rem; max-width: 40rem; color: var(--muted); }

.legend {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  margin: 0;
}
.legend dd { margin: 0.875rem 0 0; }
.chip {
  display: inline-block;
  background: var(--black);
  color: var(--amber);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.chip.red { color: var(--red); }

.split { display: grid; gap: 2rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
}

.notices { display: grid; gap: 0.75rem; max-width: 26rem; margin: 0; padding: 0; list-style: none; }
.notice {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  background: var(--undyed);
  border: 1px solid var(--flannel);
  border-radius: 6px;
  padding: 1rem;
}
.notice-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--black);
}
.notice-icon .flap { width: 22px; height: 26px; font-size: 18px; border-radius: 3px; }
.notice-meta { font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.25rem; }
.notice-text { margin: 0; font-weight: 500; }

.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checklist li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.75rem;
  height: 2px;
  background: var(--gall);
}

.price-card { max-width: 32rem; }
.price { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--flannel); color: var(--muted); font-size: 0.9375rem; padding-block: 2rem 3rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-foot p { margin: 0; }
.site-foot nav { display: flex; gap: 1.25rem; }

/* Privacy and support */
.page { padding-block: 1.5rem 4rem; }
.page-head { max-width: 42rem; margin-bottom: 2rem; }
.page-head .stitch { margin-bottom: 0.75rem; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.375rem; }
.prose .card { margin-bottom: 1em; }
.prose .card-title { margin-top: 0; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2 14rem; column-gap: 2rem; }
.toc li { margin-bottom: 0.375rem; break-inside: avoid; }

.states { margin: 0 0 1em; padding: 0; }
.states > div { display: flex; gap: 1rem; align-items: flex-start; padding-block: 0.875rem; }
.states > div + div { border-top: 1px solid var(--flannel); }
.states dt { flex: none; }
.states dd { margin: 0; }
.states .state-name { display: block; font-weight: 600; }
.tile { display: inline-flex; padding: 6px; background: var(--black); border-radius: 6px; }
