/* Tio Uptomizer site: a pocket timetable laid open on a lit teal light table.
   Role tokens come from tokens.css (brand); the world's own tokens are defined here. */
@import url("fonts/fonts.css");

:root {
  --bed: #0e716d;            /* lit teal bed: ivory text reads at 5:1 on it */
  --bed-edge: #0a5956;       /* the darker rim of the bed */
  --bed-light: rgba(42, 164, 157, .28); /* the travelling light, faint enough to keep AA under it */
  --carbon: #141a1f;
  --carbon-2: #1f272e;
  --slate: #2f3a46;
  --ivory: #f6f1e3;          /* bible ivory, prose panes */
  --ivory-2: #ece5d2;
  --vermilion: #c33b22;
  --green: #1f6b3a;
  --green-bright: #58c27a;   /* confirms on carbon */
  --gold: #e2b43a;           /* block-id tags only */
  --ink: #141a1f;
  --ink-on-bed: #f6f1e3;
  --ink-on-bed-muted: #d2ebe6;   /* secondary text tinted from the bed's hue, 4.6:1 on it */
  --rule: rgba(20, 26, 31, .55);
  --rule-light: rgba(246, 241, 227, .35);
  --rake: 11deg;
  --body: 17px;              /* the one type size */
  --display: "Archivo", "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;
  --prose: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  color-scheme: light;
}
@media (max-width: 720px) { :root { --rake: 6deg; } }

* { box-sizing: border-box; }
html { background: var(--bed-edge); }
body {
  margin: 0; font-family: var(--prose); font-size: var(--body); line-height: 1.5; color: var(--ink-on-bed);
  background: var(--bed); position: relative; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--carbon); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 62, "wght" 800; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
h2, h3, h4 { font-size: var(--body); }
p { margin: 0; }
.caps { font-family: var(--display); font-variation-settings: "wdth" 62, "wght" 700; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.num { font-family: var(--display); font-variation-settings: "wdth" 75, "wght" 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* the light: one composited layer that travels the bed along the rake */
.bed-light {
  position: fixed; inset: -40vh -40vw; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 38% 28% at var(--lx, 30%) var(--ly, 25%), var(--bed-light) 0%, rgba(42,164,157,0) 70%);
  mix-blend-mode: screen;
  transform: skewX(calc(-1 * var(--rake))) translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) { .bed-light { --lx: 30%; --ly: 25%; } }
.page { position: relative; z-index: 1; }

/* raked containers: the slide and its counter-sheared content */
.slide { transform: skewX(calc(-1 * var(--rake))); }
.slide > .in { transform: skewX(var(--rake)); }
.plate { background: var(--carbon); color: var(--ivory); }
.pane { background: var(--ivory); color: var(--ink); }

.tag { display: inline-block; min-width: 2.4em; padding: .15em .5em; text-align: center; font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 700; font-weight: 700; letter-spacing: .04em; }
.tag.gold { background: var(--gold); color: var(--carbon); }
.tag.green { background: var(--green); color: var(--ivory); }
.tag.red { background: var(--vermilion); color: var(--ivory); }
.tag.slate { background: var(--slate); color: var(--ivory); }
.tag.ivory { background: var(--ivory); color: var(--carbon); }

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

/* masthead */
.mast { display: flex; align-items: stretch; gap: 0; border-bottom: 2px solid var(--carbon); position: sticky; top: 0; z-index: 5; background: var(--bed); }
.mast .wrap { display: flex; align-items: stretch; gap: 12px; width: 100%; }
.brand { display: flex; flex-direction: column; justify-content: center; padding: 12px 0; text-decoration: none; }
.brand .word { font-family: var(--display); font-variation-settings: "wdth" 62, "wght" 900; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: 22px; line-height: 1; }
.brand .sub { font-family: var(--display); font-variation-settings: "wdth" 75, "wght" 500; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--ink-on-bed-muted); margin-top: 4px; }
.tabs { display: flex; align-items: stretch; margin-left: 12px; }
.tabs a { display: flex; align-items: center; padding: 0 18px; text-decoration: none; border: 2px solid var(--carbon); border-right-width: 0; }
.tabs a:last-child { border-right-width: 2px; }
.tabs a .in { display: block; }
.tabs a:hover, .tabs a:focus-visible, .tabs a[aria-current="page"] { background: var(--carbon); color: var(--ivory); }
.mast .right { margin-left: auto; display: flex; align-items: stretch; gap: 12px; }
.lang { display: flex; align-items: center; gap: 0; }
.lang a, .lang span { padding: 6px 10px; text-decoration: none; border: 1px solid var(--rule-light); }
.lang [aria-current="true"] { background: var(--ivory); color: var(--carbon); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; text-decoration: none; border: 2px solid var(--carbon); font-family: var(--display); font-variation-settings: "wdth" 62, "wght" 700; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; background: transparent; color: inherit; font-size: var(--body); }
.btn.primary { background: var(--carbon); color: var(--ivory); }
.btn.primary:hover, .btn.primary:focus-visible { background: var(--ivory); color: var(--carbon); border-color: var(--ivory); }
.btn.secondary:hover, .btn.secondary:focus-visible { background: var(--carbon); color: var(--ivory); }
.btn.on-pane { color: var(--carbon); }
.btn.on-pane.primary { color: var(--ivory); }
.mast .btn { min-height: 0; margin: 10px 0; }
@media (max-width: 920px) {
  .mast .wrap { flex-wrap: wrap; }
  .mast { position: static; }
  .tabs { order: 10; width: 100%; margin: 0 0 10px; flex-wrap: wrap; }
  .tabs a { padding: 8px 12px; white-space: nowrap; border-right-width: 2px; margin: 0 -2px -2px 0; font-size: 15px; }
  .brand .sub { display: none; } .brand .word { font-size: 18px; white-space: nowrap; } .mast .btn { padding: 0 14px; }
}

/* route strip */
.route { display: flex; align-items: center; gap: 12px; padding: 18px 0 0; flex-wrap: wrap; list-style: none; margin: 0; }
.route li { margin: 0; padding: 0; }
.route .step { display: flex; align-items: center; gap: 10px; }
.route .n { width: 36px; height: 24px; display: grid; place-items: center; font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 700; font-weight: 700; letter-spacing: .04em; }
.route .line { flex: 1 1 40px; height: 2px; background: var(--rule); min-width: 24px; }
@media (max-width: 720px) { .route .line { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .95fr); gap: var(--gutter); align-items: start; padding: 28px 0 0; }
.hero > div:first-child { position: relative; z-index: 2; padding-bottom: 36px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 108px); font-variation-settings: "wdth" 62, "wght" 900; font-weight: 900; letter-spacing: .005em; line-height: .92; max-width: 11ch; text-wrap: balance; }
.hero .lead { max-width: 52ch; margin-top: 22px; }
.hero .cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero .cta .fine { width: 100%; color: var(--ink-on-bed-muted); font-size: var(--body); }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } .board { margin-bottom: 0; } .shot { margin-top: 24px; } }
@media (max-width: 720px) { .hero h1 { max-width: none; font-size: clamp(40px, 12vw, 56px); } .route { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* departures board */
.board { padding: 0; position: relative; z-index: 1; margin-bottom: -44px; align-self: end; }   /* the board lies over the slide below: depth by overlap */
.board .in { padding: 14px 18px 10px; }
.board .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--rule-light); padding-bottom: 8px; }
.board .head .right { color: var(--ink-on-bed-muted); }
.board table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.board th { text-align: left; font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 500; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--ink-on-bed-muted); padding: 10px 6px 6px; }
.board td { padding: 9px 6px; border-top: 1px solid var(--rule-light); vertical-align: middle; white-space: nowrap; }
.board td.item { white-space: normal; font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 700; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.board td.size { font-family: var(--display); font-variation-settings: "wdth" 75, "wght" 700; font-variant-numeric: tabular-nums; }
.board td.to { color: var(--ink-on-bed-muted); font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 500; text-transform: uppercase; letter-spacing: .08em; }
.board td.status { text-align: right; font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 700; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status.ok { color: var(--green-bright); }
.status.never { color: #ff7a63; }
tr.struck td.item, tr.struck td.size, tr.struck td.to { text-decoration: line-through; text-decoration-color: #ff7a63; text-decoration-thickness: 2px; }
.board .foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; margin-top: 6px; border-top: 2px solid var(--rule-light); color: var(--ink-on-bed-muted); flex-wrap: wrap; font-size: 15px; }
@media (max-width: 480px) { .board td.to { display: none; } .board th:nth-child(4) { display: none; } .board .head { flex-direction: column; align-items: flex-start; gap: 2px; } .board .head .right { font-size: 15px; } }

/* the screenshot slide under the fold */
.shot { margin: 0; position: relative; z-index: 0; }
.shot .slide { overflow: hidden; border: 2px solid var(--carbon); background: var(--slate); position: relative; }
.shot img { transform: skewX(var(--rake)) scale(1.08); transform-origin: center; }
.shot .slide::after { content: ""; position: absolute; inset: 0; background: rgba(14, 113, 109, .32); pointer-events: none; }   /* the tinted glass over the slide */
.shot figcaption { margin-top: 10px; color: var(--ink-on-bed-muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* sections */
section { padding: 72px 0 0; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 40px); font-variation-settings: "wdth" 62, "wght" 800; }
.sec-head .line { flex: 1; height: 2px; background: var(--rule); }
.sec-head .id { padding: 2px 10px; }

/* two problems: two slides side by side on the rack */
.rack { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.rack .slide { border: 2px solid var(--carbon); position: relative; }
@media (min-width: 720px) { .rack .slide + .slide { margin-left: -22px; z-index: 1; } }   /* the second slide lies over the first's edge */
.rack .in { padding: 20px 22px 22px; }
.rack h3 { font-size: var(--body); font-variation-settings: "wdth" 70, "wght" 800; letter-spacing: .06em; margin-bottom: 10px; }
.rack p { max-width: 48ch; }
.pane p, .pane li { color: var(--ink); }
.pane .muted { color: #5b5648; }

/* three steps as a timetable: time / code / item / notes */
.steps { border: 2px solid var(--carbon); --rake: 8deg; }
.steps .in { padding: 4px 0; }
.steps .row { display: grid; grid-template-columns: 72px 64px 1fr 2fr; gap: 16px; align-items: start; padding: 18px 22px; border-top: 1px solid var(--rule); }
.steps .row:first-child { border-top: 0; }
.steps .t { font-family: var(--display); font-variation-settings: "wdth" 75, "wght" 800; font-weight: 800; font-size: 28px; line-height: 1; }
.steps .k { font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 800; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 720px) { .steps .row { grid-template-columns: 56px 1fr; } .steps .row .tag { grid-column: 2; justify-self: start; } .steps .row .k { grid-column: 2; } .steps .row p { grid-column: 2; } }

/* features: departures-style ruled list with a mark cell */
.feat { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-light); }
.feat li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule-light); align-items: start; }
.feat .mark { width: 20px; height: 20px; margin-top: 3px; border: 2px solid var(--ivory); }
.feat .mark.filled { background: var(--ivory); }
.feat .mark.hollow { background: transparent; }
.feat h3 { font-variation-settings: "wdth" 70, "wght" 800; letter-spacing: .05em; margin-bottom: 4px; }
.feat p { color: var(--ink-on-bed-muted); max-width: 64ch; }
.feat .soon { font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--ink-on-bed-muted); margin-left: 8px; }
.parity { margin-top: 18px; color: var(--ink-on-bed-muted); max-width: 70ch; }

/* fares: nested cut lines, the recommended tier solid, the others dashed */
.fares { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.fare { border: 2px dashed var(--carbon); }
.fare.solid { border-style: solid; }
.fare .in { padding: 18px 20px 20px; }
.fare .name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fare .price { font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 900; font-weight: 900; font-size: 40px; line-height: 1; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.fare .for { color: var(--ink-on-bed-muted); }
.fare.pane .for { color: #5b5648; }
.fare ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--rule-light); }
.fare.pane ul { border-top-color: var(--rule); }
.fare li { padding: 8px 0; border-bottom: 1px solid var(--rule-light); }
.fare.pane li { border-bottom-color: var(--rule); }
.fare-notes { margin-top: 18px; color: var(--ink-on-bed-muted); max-width: 70ch; }
.fare-notes.pane-text { color: var(--ink-on-bed-muted); }

/* service notes (FAQ) */
.notes { border: 2px solid var(--carbon); --rake: 6deg; }
.notes .in { padding: 6px 22px; }
.notes details { border-top: 1px solid var(--rule); }
.notes details:first-child { border-top: 0; }
.notes summary { list-style: none; cursor: pointer; padding: 16px 0; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: center; font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 800; text-transform: uppercase; letter-spacing: .05em; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary .mark { width: 18px; height: 18px; border: 2px solid var(--carbon); }
.notes details[open] summary .mark { background: var(--carbon); }
.notes details p { padding: 0 0 18px 42px; max-width: 64ch; }

/* final board + waitlist */
.final { margin: 72px 0 0; border: 2px solid var(--carbon); --rake: 6deg; }
.final .in { padding: 28px 26px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.final h2 { font-size: clamp(28px, 3.6vw, 44px); font-variation-settings: "wdth" 62, "wght" 900; line-height: .95; }
.final .cta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.waitlist label, .waitlist p { display: block; margin-bottom: 8px; }
.waitlist .placeholder { border: 2px dashed var(--ivory); padding: 14px 16px; color: var(--ink-on-bed-muted); }
.waitlist .field { display: flex; gap: 0; }
.waitlist input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 2px solid var(--ivory); background: var(--ivory); color: var(--carbon); font: inherit; font-family: var(--display); font-variation-settings: "wdth" 75, "wght" 600; letter-spacing: .04em; }
.waitlist input::placeholder { color: #6b665a; }
.waitlist input:focus-visible { outline-offset: 0; }
.waitlist button { border-color: var(--ivory); background: var(--ivory); color: var(--carbon); }

.waitlist .fine { margin-top: 8px; color: var(--ink-on-bed-muted); }
.waitlist .sent { margin-top: 8px; color: var(--green-bright); display: none; }
.waitlist.done .sent { display: block; }
.waitlist.done .field, .waitlist.done .fine { display: none; }
@media (max-width: 720px) { .final .in { grid-template-columns: 1fr; } }

/* footer: the timetable's reverse, small print */
footer { margin-top: 56px; padding: 22px 0 40px; border-top: 2px solid var(--carbon); color: var(--ink-on-bed-muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

/* legal / support (Read): one prose pane on the bed */
.doc { padding: 40px 0 0; }
/* a tall prose pane cannot be skewed (its top edge would travel under the first lines); the silhouette is cut instead */
.doc .raked { --cut: 44px; background: var(--carbon); padding: 2px; clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.doc .pane { clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
@media (max-width: 720px) { .doc .raked { --cut: 18px; } }
.doc .pane .in { padding: 32px clamp(28px, 5vw, 64px) 40px clamp(60px, 7vw, 96px); max-width: 84ch; }
@media (max-width: 720px) { .doc .pane .in { padding: 24px 24px 32px 32px; } }
.doc h1 { font-size: clamp(36px, 5vw, 64px); font-variation-settings: "wdth" 62, "wght" 900; line-height: .95; }
.doc h2 { margin: 32px 0 8px; font-variation-settings: "wdth" 70, "wght" 800; letter-spacing: .05em; }
.doc p, .doc li { color: var(--ink); max-width: 70ch; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 6px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .notice { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; background: var(--ivory-2); color: var(--carbon); padding: 12px 14px; margin: 18px 0 0; border: 1px solid var(--rule); }
.doc .notice .mark { width: 18px; height: 18px; border: 2px solid var(--carbon); margin-top: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-top: 1px solid var(--rule); color: var(--ink); }
.doc th { font-family: var(--display); font-variation-settings: "wdth" 70, "wght" 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; background: var(--ivory-2); padding: 1px 5px; }
.doc .meta { color: #5b5648; margin-top: 8px; }
