:root {
  --bg: #F7EFE6;
  --card: #FFFAF4;
  --ink: #2C2026;
  --muted: #7A6A6E;
  --faint: #A8979A;
  --rule: rgba(44, 32, 38, .14);
  --gold: #D59A38;
  --sage: #6F8A6B;
  --rose: #BC4E63;
  --plum: #5B3A55;
  --accent: var(--rose);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  --col: min(100% - 44px, 440px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(120% 60% at 50% 0%, #FBE3D3 0%, rgba(251, 227, 211, 0) 70%),
    linear-gradient(180deg, var(--bg) 0%, #F5ECE2 55%, #EFE1DD 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
i, em { font-style: italic; }

.col { width: var(--col); margin-inline: auto; }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- masthead ---- */

.mast { padding: max(40px, calc(env(safe-area-inset-top) + 28px)) 0 18px; text-align: center; }

.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }

.mast h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100;
  font-weight: 340;
  font-size: clamp(44px, 13.5vw, 62px);
  line-height: .98;
  letter-spacing: -.02em;
}
.mast h1 em {
  display: block;
  margin: .04em 0 .06em;
  font-weight: 300;
  font-size: .62em;
  color: var(--rose);
}

.lede {
  margin: 18px auto 0;
  max-width: 19em;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-weight: 350;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

.arc { margin: 30px -6px 0; }
.arc svg { display: block; width: 100%; height: auto; overflow: visible; }
.arc .sky-path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 1.5 5; stroke-linecap: round; opacity: .55; }
.arc .ground { stroke: var(--ink); stroke-width: 1; opacity: .5; }
.arc .sun { filter: drop-shadow(0 0 10px rgba(231, 169, 74, .55)); }
.arc .pt circle { stroke: var(--bg); stroke-width: 2.5; }
.arc text {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  fill: var(--ink); font-variant-numeric: tabular-nums;
}
.arc text.end { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 8.5px; fill: var(--muted); }

/* ---- route spine ---- */

.route {
  list-style: none;
  position: relative;
  padding: 26px 0 max(72px, calc(env(safe-area-inset-bottom) + 52px));
}

.route > li { position: relative; padding-left: 34px; }

.route > li::before {
  content: "";
  position: absolute; left: 6px; top: 0; bottom: 0;
  border-left: 1.5px solid var(--rule);
}
.route > li.walk::before,
.route > li.start::before { border-left: 2px dotted rgba(44, 32, 38, .42); }
.route > li.ride::before { border-left: 1.5px solid rgba(44, 32, 38, .42); }
.route > li.start::before { top: 10px; }
.route > li.finale::before { bottom: auto; height: 12px; }

.node {
  position: absolute; left: 1px; top: 5px; z-index: 1;
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--bg);
}
.node.fill { background: var(--ink); }

.leg, .rest, .finale { padding-top: 26px; padding-bottom: 26px; }
.leg .node, .rest .node, .finale .node { top: 30px; }
.leg.start { padding-top: 4px; }
.leg.start .node { top: 8px; }

.leg h3, .rest h3, .finale h3 {
  margin-top: 4px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 380;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.rest h3 i, .finale h3 i { font-weight: 330; color: var(--plum); }

.how {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 2px;
  font-size: 14.5px; color: var(--muted);
}
.how .mode { width: 17px; height: 17px; align-self: center; color: var(--ink); margin-right: 2px; }
.how b {
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-style: italic;
  font-weight: 420; font-size: 20px; color: var(--ink);
}
.how .or { flex-basis: 100%; padding-left: 25px; font-size: 13.5px; color: var(--faint); }

.aside {
  margin-top: 6px;
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-style: italic;
  font-size: 16px; color: var(--muted);
}

/* ---- stops ---- */

.stop { padding-top: 8px; padding-bottom: 8px; }
.stop .node { top: 32px; border: 0; width: 13px; height: 13px; left: .5px; background: var(--tone); box-shadow: 0 0 0 3px var(--bg); }

.stop.morning { --tone: var(--gold); --wash: #FBEFD9; }
.stop.midday { --tone: var(--sage); --wash: #EEF1E6; }
.stop.afternoon { --tone: var(--rose); --wash: #FAE6E4; }
.stop.evening { --tone: var(--plum); --wash: #F1E6EC; }

.card {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--wash) 0%, var(--card) 62%);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(44, 32, 38, .05), 0 16px 34px -20px rgba(44, 32, 38, .28);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; right: -46px; top: -46px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--tone); opacity: .1;
}

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.time {
  font-family: var(--serif); font-variation-settings: "SOFT" 100;
  font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums; color: var(--tone);
}
.time small { margin-left: 4px; font-family: var(--sans); font-size: 11px; font-weight: 650; letter-spacing: .14em; vertical-align: .9em; }
.time.word { font-style: italic; font-weight: 360; font-size: 30px; }

.card h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 420;
  font-size: clamp(36px, 11vw, 46px);
  line-height: .98;
  letter-spacing: -.025em;
}
.card h2 i { display: block; font-weight: 320; color: var(--tone); }

.kind {
  margin-top: 12px;
  font-family: var(--serif); font-variation-settings: "SOFT" 100;
  font-size: 17px; line-height: 1.35;
}
.addr { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.note {
  margin-top: 14px; padding: 10px 12px;
  border-radius: 12px; background: rgba(188, 78, 99, .08);
  font-size: 13.5px; line-height: 1.4; color: var(--ink);
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  min-height: 46px; padding: 0 20px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  transition: transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn.primary { background: var(--ink); color: var(--card); }
.btn:active { transform: scale(.96); }
.btn svg { width: 14px; height: 14px; }

/* ---- nap + finale ---- */

.node.moon { border: 0; background: transparent; box-shadow: inset -4px 1px 0 0 var(--plum); transform: rotate(-24deg); width: 13px; height: 13px; }
.rest h3 { font-size: 30px; }

.finale { padding-top: 34px; padding-bottom: 0; }
.finale .node.star { border: 0; background: var(--gold); top: 37px; clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); width: 14px; height: 14px; left: 0; }
.finale h3 { font-size: 32px; }
.finale .label { color: var(--rose); }

/* ---- motion ---- */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(12px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .rise.d1 { animation-delay: .05s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .32s; } .rise.d4 { animation-delay: .48s; }
  .arc .sun { animation: climb 1.6s .5s cubic-bezier(.2, .7, .2, 1) both; transform-box: fill-box; transform-origin: center; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes climb { from { opacity: 0; transform: translateY(26px) scale(.8); } to { opacity: 1; transform: none; } }
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

@media (min-width: 700px) {
  .mast { padding-top: 64px; }
}
