/* Shared Fareward chrome — carbon, cream, copper. Not Autopilot indigo. */
:root {
  --carbon: #12100e; --carbon-2: #1b1815; --carbon-3: #26211c; --ink: #1c1712;
  --paper: #f3ead3; --paper-2: #e8dcc0; --cream: #f6efe0;
  --mute: #9a9083; --mute-2: #6f675c;
  --copper: #c46238; --copper-deep: #8d3c1e; --copper-lit: #e4a07a;
  --ledger: #2f6a45; --brick: #9b2f24;
  --rule: rgba(243, 234, 211, 0.16); --focus: #e8b089;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 240, 210, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0; background: var(--carbon); color: var(--paper);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--copper-lit); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 12px; }
.wrap { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(820px, calc(100% - 40px)); }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; border-bottom: 1px dashed var(--rule); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.wordmark svg { display: block; }
.wordmark-name { font-family: Fraunces, "Iowan Old Style", Georgia, serif; font-size: 1.4rem; font-weight: 560; letter-spacing: -0.02em; line-height: 1; }
.wordmark-name .d { color: var(--copper); letter-spacing: inherit; }
nav.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px 22px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
nav.top-nav a { color: var(--mute); text-decoration: none; }
nav.top-nav a:hover { color: var(--paper); }
nav.top-nav a[aria-current="page"] { color: var(--copper-lit); }
.kicker { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-lit); margin: 0 0 14px; }
h1 { font-family: Fraunces, "Iowan Old Style", Georgia, serif; font-optical-sizing: auto; font-weight: 560; font-size: clamp(2.05rem, 4.2vw, 3.4rem); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--cream); }
.sub { margin: 0 0 18px; max-width: 38em; color: #d8cbb3; font-size: 1.02rem; line-height: 1.45; }
.btn {
  display: inline-block; height: 40px; padding: 0 18px; border: none;
  background: var(--copper); color: var(--paper);
  font: 600 12px/40px "IBM Plex Sans", sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--carbon), inset 0 0 0 3px var(--copper); white-space: nowrap;
}
.btn:hover { background: #d46d3e; color: var(--paper); }
.hero { padding: 36px 0 8px; }
.hero .cta-row { margin: 0 0 12px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 4px 0 56px; }
.ticket {
  position: relative; display: grid; grid-template-columns: 72px 1fr; min-height: 340px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.ticket::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.board .ticket:nth-child(odd) { transform: rotate(-0.45deg); }
.board .ticket:nth-child(even) { transform: rotate(0.4deg); }
.stub {
  position: relative; writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 8px; background: #e7d8b6;
}
.stub-mark { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--copper-deep); }
.stub-no { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--mute-2); }
.perf {
  position: absolute; top: 0; bottom: 0; right: -7px; width: 14px; z-index: 2;
  background-image: radial-gradient(circle, var(--carbon) 5px, transparent 5.6px);
  background-size: 14px 20px; background-repeat: repeat-y; background-position: center -4px;
}
.pass { position: relative; z-index: 1; padding: 20px 22px 16px 26px; display: flex; flex-direction: column; min-width: 0; }
.pass-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid #cbb89a; padding-bottom: 10px; margin-bottom: 14px; }
.pass-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute-2); }
.pass-watch {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper); background: var(--copper); border: 1px solid var(--copper); padding: 3px 7px;
}
.route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; margin-bottom: 8px; }
.city-code { font-family: Fraunces, Georgia, serif; font-size: 38px; line-height: 0.9; letter-spacing: -0.03em; }
.city-name { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-2); }
.route-mid { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--mute-2); padding-bottom: 8px; }
.legs { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; color: #3d372f; margin: 0 0 10px; line-height: 1.55; }
.meta { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-deep); margin: 0 0 8px; }
.fare-block { margin-top: auto; }
.fare-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px dashed #cbb89a; }
.fare-row dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-2); }
.fare-row dt .per { letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.fare-row dd { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fare-row.is-down dd { text-decoration: line-through; color: var(--mute-2); }
.fare-row.now-fare.is-up dd, .now-num.is-up, .now-word.is-up { color: var(--brick); }
.fare-row.now-fare.is-flat dd, .now-num.is-flat, .now-word.is-flat { color: var(--ink); }
.fare-row.now-fare.is-drop dd, .now-num.is-drop, .now-word.is-drop { color: var(--ledger); }
.status { margin: 10px 0 0; font-size: 0.92rem; color: var(--copper-deep); }
.status .now-word { font-weight: 500; }
.fare-legend {
  margin: 0 0 22px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--mute);
}
.bars { display: flex; gap: 2px; align-items: flex-end; align-self: flex-start; height: 22px; margin-top: 12px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
button.bars { appearance: none; -webkit-appearance: none; cursor: pointer; }
button.bars[disabled] { cursor: default; }
button.bars:not([disabled]):hover span,
button.bars:not([disabled]):focus-visible span { opacity: 1; background: #0d0b09; }
.bars span { display: block; width: 3px; background: var(--ink); opacity: 0.72; }
body.hist-open { overflow: hidden; }
.hist-root, .hist-layer {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.hist-layer { background: rgba(18, 16, 14, 0.74); }
.hist-root[hidden], .hist-layer[hidden] { display: none !important; }
.hist-backdrop { position: absolute; inset: 0; background: rgba(18, 16, 14, 0.74); }
.hist-sheet {
  position: relative; z-index: 1; width: min(640px, 100%);
  background: var(--paper); color: var(--ink);
  padding: 26px 26px 20px; box-shadow: var(--shadow);
}
.hist-sheet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.hist-sheet h2 {
  position: relative; z-index: 1;
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-weight: 560; font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 36px 16px 0; color: var(--ink);
}
.hist-x, .hist-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border: 1px solid #cbb89a;
  background: var(--paper); color: var(--ink);
  font: 500 22px/1 "IBM Plex Sans", sans-serif; cursor: pointer;
}
.hist-x:hover, .hist-close:hover { background: #e8dcc0; }
.hist-chart { position: relative; z-index: 1; background: var(--cream); border: 1px solid #cbb89a; padding: 8px 6px 4px; }
.hist-chart svg, .hist-svg { display: block; width: 100%; height: auto; }
.hist-caption { position: relative; z-index: 1; margin: 14px 0 0; font-size: 0.92rem; color: var(--mute-2); }
.hist-grid { stroke: #1c1712; stroke-opacity: 0.12; fill: none; }
.hist-axis { stroke: #1c1712; stroke-width: 1.2; fill: none; }
.hist-tick { fill: #1c1712; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; }
.hist-paid { stroke: #c46238; stroke-width: 1.4; stroke-dasharray: 5 4; fill: none; }
.hist-paid-label { fill: #c46238; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; }
.hist-now-line { stroke-width: 2.2; fill: none; }
.hist-dot-paid { fill: #c46238; stroke: #c46238; }
.hist-now-label { font-family: Fraunces, Georgia, serif; font-size: 14px; }
.hist-xlab { fill: #1c1712; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; }
.paper-page { padding: 36px 0 72px; }
.paper-sheet { background: var(--paper); color: var(--ink); padding: 36px 38px; box-shadow: var(--shadow); }
.paper-sheet h1 { color: var(--ink); font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 16ch; }
.paper-sheet .kicker { color: var(--copper-deep); }
.paper-sheet .lead { color: #3d372f; max-width: 40em; margin: 0 0 22px; }
.paper-sheet ul { margin: 0; padding: 0; list-style: none; }
.paper-sheet li { padding: 16px 0; border-top: 1px solid #cbb89a; color: #3d372f; }
.paper-sheet li:last-child { border-bottom: 1px solid #cbb89a; }
.paper-sheet li strong { color: var(--ink); font-weight: 600; }
.paper-sheet p { color: #3d372f; max-width: 40em; }
.paper-sheet p.end { margin: 22px 0 0; color: var(--mute-2); font-size: 0.92rem; }
footer.site { position: relative; z-index: 1; border-top: 1px dashed var(--rule); padding: 28px 0 48px; color: var(--mute); font-size: 13px; }
footer.site .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site p { margin: 0; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
footer.site a { color: var(--mute); text-decoration: none; }
footer.site a:hover { color: var(--paper); }

.profile-banner {
  margin: 0 0 22px;
  padding: 12px 16px;
  background: #241910;
  border: 1px solid var(--copper);
  color: var(--paper);
  font-size: 0.98rem;
}
.profile-banner[hidden] { display: none !important; }
.profile-banner a { color: var(--copper-lit); }
.acct-status { margin: 0 0 16px; color: var(--copper-deep); }
.acct-form { display: grid; gap: 16px; max-width: 36em; }
.acct-grid { display: grid; gap: 14px; }
.acct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-form .field { display: flex; flex-direction: column; gap: 6px; }
.acct-form .field label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute-2);
}
.acct-form input[type="text"],
.acct-form input[type="email"],
.acct-form input[type="tel"],
.acct-form input[type="date"] {
  appearance: none; width: 100%;
  background: var(--cream); color: var(--ink);
  border: 1px solid #cbb89a; border-bottom: 1.5px solid #8a6a4a;
  border-radius: 0; padding: 10px 12px;
  font: 500 15px/1.2 "IBM Plex Sans", sans-serif;
}
.acct-form input:focus { outline: 2px solid var(--copper); outline-offset: 2px; }
.acct-form .agent-check {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink); font-size: 1.02rem; cursor: pointer; line-height: 1.35;
}
.acct-form .agent-check input {
  margin-top: 3px; accent-color: var(--copper); width: 16px; height: 16px; flex: 0 0 auto;
}
.acct-never { margin: 0; color: var(--mute-2); font-size: 0.9rem; max-width: 42em; }
.acct-form .btn { justify-self: start; }
@media (max-width: 720px) {
  .acct-row2 { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .board { grid-template-columns: 1fr; }
  .board .ticket { transform: none; }
  .wrap, .wrap-narrow { width: min(1180px, calc(100% - 28px)); }
}
@media (max-width: 720px) {
  header.top { flex-direction: column; align-items: flex-start; padding: 16px 0 14px; }
  nav.top-nav { justify-content: flex-start; gap: 14px 18px; }
  .ticket { grid-template-columns: 1fr; }
  .stub { writing-mode: horizontal-tb; transform: none; flex-direction: row; padding: 10px 16px; }
  .perf { top: auto; left: 0; right: 0; bottom: -7px; width: auto; height: 14px; background-image: radial-gradient(circle, var(--carbon) 5px, transparent 5.6px); background-size: 20px 14px; background-repeat: repeat-x; background-position: -4px center; }
  .pass { padding: 22px 16px 16px; }
  .city-code { font-size: 34px; }
  .paper-sheet { padding: 26px 20px; }
  .hist-sheet { padding: 22px 16px 16px; }
  .btn { width: 100%; text-align: center; }
}

.account-form { display: grid; gap: 16px; max-width: 36em; }
.account-form .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.account-form label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute-2);
}
.account-form .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="tel"],
.account-form input[type="date"] {
  appearance: none; width: 100%;
  background: var(--cream); color: var(--ink);
  border: 1px solid #cbb89a; border-bottom: 1.5px solid #8a6a4a;
  border-radius: 0; padding: 10px 12px;
  font: 500 15px/1.2 "IBM Plex Sans", sans-serif;
}
.account-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-form .agent-check {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink); font-size: 1.02rem; cursor: pointer; line-height: 1.35;
  text-transform: none; letter-spacing: 0; font-family: "IBM Plex Sans", sans-serif;
}
.account-form .agent-check input { margin-top: 3px; accent-color: var(--copper); width: 16px; height: 16px; }
.account-form .note { margin: 0; color: var(--mute-2); font-size: 0.9rem; }
.account-form .signup-done { display: block; margin: 8px 0 0; color: var(--copper-deep); }
@media (max-width: 720px) { .account-form .row { grid-template-columns: 1fr; } }
