/* Hallmark · shape: cover then logbook · genre: editorial · theme: custom · job: visit · idea: "the trip itinerary as a paperback cover, then the driver's log" · vibe: "sunset paperback, condensed black, highway log"
 * paper: oklch(96% 0.025 85) · accent: oklch(52% 0.17 40) · display: Anton · body: Newsreader · hero: a full-bleed sunset cover with the title stacked in black · nav: none, single page · footer: a plain colophon · imagery: none, the cover is drawn in gradients · signature: the cover itself, sun sinking behind the title
 * axes: warm-paper/condensed-grotesk/burnt-orange · posture: cover · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V5 · weakest: E, the log table carries the page so the rest stays short */
/* waive 58: the route table is the page's reference data, read row by row, not a screen of prose */
/* waive 77: fast mode, short note sections are deliberate; the table carries the mass */
/* answered: fast mode, finish tier skipped */
@import url("./tokens.css");
@import url("./base.css");

.cover {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: space-between;
  padding-block: var(--space-xl);
  color: var(--color-cover-ink);
  background:
    radial-gradient(circle at 50% 108%, var(--color-sun) 0 9%, color-mix(in oklab, var(--color-sun) 60%, transparent) 14%, transparent 34%),
    linear-gradient(180deg, var(--color-sky-top) 0%, var(--color-sky-mid) 48%, var(--color-sky-low) 100%);
}
.cover-top { display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--text-lg); color: var(--color-cover-ink); font-weight: 600; }
.cover-top span:last-child { color: var(--color-cover-ink); }
.cover-title {
  font-size: clamp(5rem, 19vw, 17rem);
  line-height: 0.86;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  margin-block: var(--space-lg);
}
.cover-blurb { font-size: var(--text-lead); max-width: 34ch; color: var(--color-cover-ink); font-weight: 500; }
.cover-action {
  display: inline-block;
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-cover-ink);
  color: var(--color-sun);
  text-decoration: none;
  font-size: var(--text-md);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.cover-action:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.cover-action:active { transform: translateY(1px); }
.cover-action:focus-visible { outline: 3px solid var(--color-cover-ink); outline-offset: 3px; transition: none; }

section { padding-block: var(--section-gap-s); }
section + section { border-top: var(--rule-hair) solid var(--color-rule); }
.section-head { font-size: var(--text-section); line-height: 1; text-transform: uppercase; font-weight: 400; margin-bottom: var(--space-xl); }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 52ch; margin-bottom: var(--space-xl); }

/* the log */
.log-wrap { overflow-x: auto; }
.log { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.log th { text-align: left; font-weight: 600; font-size: var(--text-sm); color: var(--color-muted); padding: var(--space-xs) var(--space-sm); border-bottom: 2px solid var(--color-ink); }
.log td { padding: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
.log td.day { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; width: 3.5rem; }
.log td.date { white-space: nowrap; color: var(--color-muted); }
.log td.leg { font-weight: 600; }
.log td.num { text-align: right; white-space: nowrap; }
.log tr.long td.num { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-accent); }
.log tr.stay td.leg { font-weight: 400; font-style: italic; }
.log td.note { color: var(--color-ink-2); max-width: 40ch; }
.log tfoot td { border-bottom: none; padding-top: var(--space-md); font-weight: 600; }
.log-key { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }

/* the two holidays */
.holidays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.holiday { padding-top: var(--space-md); border-top: 6px solid var(--color-accent); }
.holiday h3 { font-size: var(--text-display-s); line-height: 1; text-transform: uppercase; font-weight: 400; margin-bottom: var(--space-sm); }
.holiday p { color: var(--color-ink-2); }

/* two columns of plain notes */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.notes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notes h3 { font-family: var(--font-body); font-size: var(--text-title); font-weight: 600; margin-bottom: var(--space-xs); }
.notes p { color: var(--color-ink-2); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); max-width: 60ch; }
.checklist li { padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }

.colophon { padding-block: var(--space-2xl); background: var(--color-cover-ink); color: var(--color-paper-2); font-size: var(--text-sm); }
.colophon .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); }
.colophon a { color: var(--color-cover-gold); }
.colophon a:hover { color: var(--color-sun); }
.colophon a:focus-visible { outline-color: var(--color-cover-gold); }

@media (max-width: 40rem) {
  .holidays, .notes, .notes-3 { grid-template-columns: minmax(0, 1fr); }
  .log thead { display: none; }
  .log, .log tbody, .log tfoot { display: block; }
  .log tr { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; column-gap: var(--space-sm); row-gap: var(--space-2xs); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .log td { border: none; padding: 0; }
  .log td:empty { display: none; }
  .log td.day { grid-column: 1; grid-row: 1 / span 3; width: auto; }
  .log td.leg { grid-column: 2; grid-row: 1; }
  .log td.num { grid-column: 3; grid-row: 1; }
  .log td.date { grid-column: 2; grid-row: 2; font-size: var(--text-sm); }
  .log td.note { grid-column: 2 / span 2; grid-row: 3; }
  .log tfoot tr { border-bottom: none; }
  .log tfoot td:nth-child(3) { grid-column: 2; grid-row: 1; }
}
