@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* ============================================================
   Paris Field Guide — "Atlas"
   Editorial field-guide theme. Dark ink, vermilion accent,
   Newsreader serif headlines + Space Grotesk labels.
   Drop-in replacement: every original class name preserved.
   ============================================================ */

:root {
  color-scheme: dark;

  --bg: #0e0e10;
  --surface: #161618;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);

  --text: #f2efe9;
  --secondary: #a8a49b;
  --muted: #78746b;

  --accent: #cc7d6b;       /* Clay Rose — change this ONE value to re-tint the whole guide */
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 50%, transparent);
  --section: #cabfa6;      /* Sand — colour of MORNING / AFTERNOON dividers */
  --emergency: #d8503a;    /* stronger red, reserved for the 112 emergency number */
  --green: #7fc9a0;
  --error: #e56a5a;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --grot: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 448px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
}

/* ---- kicker / label helper ---- */
.eyebrow,
.kv-key,
.field-facts dt,
.emergency-label {
  font-family: var(--grot);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

a,
a:visited {
  color: var(--accent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

a:hover,
a:active { color: var(--text); }

::selection { background: var(--accent); color: #fff; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 1.05rem 1.4rem 0.85rem;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(14, 14, 16, 0.72));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--grot);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.top-nav { display: none; }

/* ============================================================
   Main column
   ============================================================ */
.site-main {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 0.5rem 1.4rem 7rem;
}

/* ============================================================
   Home — masthead
   ============================================================ */
.home-hero {
  padding: 1.6rem 0 1.4rem;
  border-top: 2px solid var(--accent);
  margin-top: 0.4rem;
}

.home-hero .eyebrow { color: var(--accent); }

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
}

h1, h2, h3, h4 { line-height: 1.06; font-weight: 500; }

.home-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.94;
}

.hero-copy {
  margin: 1.1rem 0 0;
  max-width: 24rem;
  color: var(--secondary);
  font-size: 1.12rem;
  line-height: 1.5;
}

/* orientation — "you are here" in the trip, computed on load */
.trip-now {
  display: grid;
  gap: 0.34rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.trip-now-kicker {
  font-family: var(--grot);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}

.trip-now-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* orientation head row + progress */
.trip-now-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.trip-now-count {
  font-family: var(--grot);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--muted);
}
.trip-now-bar {
  height: 2px;
  margin: 0.55rem 0 0.7rem;
  background: var(--line);
  overflow: hidden;
}
.trip-now-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.5s ease;
}

.trip-now-cue {
  font-family: var(--grot);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.trip-now:hover .trip-now-title,
.trip-now:hover .trip-now-cue { color: var(--accent); }

/* ============================================================
   "Open this first" today card
   ============================================================ */
.today-card {
  margin: 2rem 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.today-card .eyebrow { color: var(--accent); margin-bottom: 0.55rem; }

.today-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.today-card p {
  margin: 0 0 1.1rem;
  color: var(--secondary);
  font-size: 1.02rem;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-family: var(--grot);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent-line);
}
.primary-action::after { content: "\2192"; font-size: 1.05rem; }
.primary-action:hover { color: var(--text); border-color: var(--text); }

/* ============================================================
   Quick grid — ruled index cells
   ============================================================ */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 5rem;
  padding: 0.95rem 1rem 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.quick-card span {
  font-family: var(--grot);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.quick-card strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
}
.quick-card:hover { background: var(--surface); }
.quick-card:hover strong { color: var(--accent); }

/* ============================================================
   Section headings on home
   ============================================================ */
.panel { margin: 2.2rem 0; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
}

.panel > .section-heading h2,
.panel > h2 {
  margin: 0 0 0.2rem;
  font-family: var(--grot);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Day index — editorial ledger
   ============================================================ */
.day-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.day-list li { counter-increment: dayidx; }
.day-list { counter-reset: dayidx; }

.day-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0.1rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.day-link::before {
  content: counter(dayidx, decimal-leading-zero);
  font-family: var(--grot);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.day-link span {
  order: 3;
  font-family: var(--grot);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.day-link strong {
  order: 2;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
}

.day-link:hover strong { color: var(--accent); }
.day-link:hover { background: var(--surface); }

/* ============================================================
   Placeholder panels
   ============================================================ */
.placeholder-panel {
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
}
.placeholder-panel .eyebrow { color: var(--accent); }
.placeholder-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
}
.placeholder-panel p { color: var(--secondary); }

/* ============================================================
   Tickets — ruled ledger
   ============================================================ */
.ticket-summary h2 {
  margin: 0 0 0.2rem;
  font-family: var(--grot);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-list {
  display: block;
  border-bottom: 1px solid var(--line);
}

.ticket-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 0.95rem 0.1rem;
  border-top: 1px solid var(--line);
}

.ticket-card > div { grid-column: 1; }

.ticket-card h3 {
  margin: 0 0 0.15rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}

.ticket-card p {
  margin: 0;
  font-family: var(--grot);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-card > strong {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  font-family: var(--grot);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.ticket-card .ticket-note {
  grid-column: 1 / -1;
  margin-top: 0.1rem;
  font-family: var(--serif);
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--secondary);
}

.text-link {
  display: inline-flex;
  margin-top: 1.1rem;
  font-family: var(--grot);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.text-link:hover { color: var(--text); }

/* ============================================================
   Day page shell
   ============================================================ */
.page { margin: 0.4rem 0; }

.page-header {
  padding: 1.4rem 0 0;
  border-top: 2px solid var(--accent);
}

.page-date {
  margin: 0 0 0.65rem;
  font-family: var(--grot);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--text);
}

.day-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--grot);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day-nav > :first-child { justify-self: start; }
.day-nav > :nth-child(2) { justify-self: center; text-align: center; transform: translateX(-0.5rem); }
.day-nav > :last-child { justify-self: end; }

.day-nav a { color: var(--secondary); text-decoration: none; white-space: nowrap; }
.day-nav a:hover { color: var(--accent); }
.day-nav span { color: var(--muted); white-space: nowrap; }

/* ============================================================
   Markdown body
   ============================================================ */
.markdown-body { overflow-wrap: anywhere; }

.markdown-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 0.72;
  font-weight: 500;
  color: var(--accent);
  padding: 0.08em 0.14em 0 0;
}

/* h2 = chapter divider */
.markdown-body h2 {
  margin: 3rem 0 1.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-strong);
  font-family: var(--grot);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--section);
}

.markdown-body > h2:first-child { margin-top: 1.6rem; }

/* h3 = category kicker */
.markdown-body h3 {
  margin: 2.6rem 0 0.6rem;
  font-family: var(--grot);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* h4 = venue name */
.markdown-body h4 {
  margin: 0.15rem 0 0.9rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text);
}
.markdown-body h4 a { color: var(--text); text-decoration: none; }
.markdown-body h4 a:hover { color: var(--accent); }

.markdown-body p { margin: 0.85rem 0; }

.markdown-body p,
.markdown-body li,
.ticket-summary p,
.ticket-summary li {
  color: var(--secondary);
}

.markdown-body strong,
.ticket-summary strong { color: var(--text); font-weight: 600; }

/* generic bulleted lists */
.markdown-body ul,
.ticket-summary ul {
  margin: 0.85rem 0;
  padding-left: 0;
  list-style: none;
}
.markdown-body ul li,
.ticket-summary ul li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.4rem 0;
  line-height: 1.5;
}
.markdown-body ul li::before,
.ticket-summary ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 999px;
}
.markdown-body ul ul { margin: 0.3rem 0; }

/* inline link lists (older pattern) */
.markdown-body ul:has(a) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  padding: 0;
}
.markdown-body ul:has(a) li { margin: 0; padding: 0; }
.markdown-body ul:has(a) li::before { display: none; }
.markdown-body ul:has(a) a {
  font-family: var(--grot);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.markdown-body ul:has(a) a:hover { color: var(--text); }

hr {
  height: 0;
  margin: 0;
  border: 0;
}

/* ============================================================
   Markdown components (custom divs)
   ============================================================ */
.today-callout {
  display: grid;
  gap: 0.4rem;
  margin: 1.2rem 0 1.4rem;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 2px solid var(--accent);
}
.today-callout strong {
  font-family: var(--grot);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.today-callout span {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.5;
  color: var(--text);
}

/* arrival flow — editorial numbered list */
.arrival-flow { margin: 1.1rem 0 1.4rem; }
.arrival-flow ol {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.arrival-flow li {
  counter-increment: step;
  position: relative;
  padding: 0.8rem 0.1rem 0.8rem 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  line-height: 1.45;
}
.arrival-flow li::before {
  content: counter(step);
  position: absolute;
  left: 0.1rem;
  top: 0.72rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
/* nested sub-steps inside a flow item */
.arrival-flow li ul,
.arrival-flow li ol { margin: 0.4rem 0 0; }
.arrival-flow strong { color: var(--text); }

/* driver card — bordered plate */
.driver-card {
  display: grid;
  gap: 0.4rem;
  margin: 1.1rem 0 1.4rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}
.driver-card strong {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.05;
  color: var(--text);
}
.driver-card span {
  font-family: var(--grot);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--secondary);
}

/* base camp — ruled definition list */
.base-camp-card {
  margin: 1.1rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}
.kv-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0.1rem;
  border-top: 1px solid var(--line);
}
.kv-key {
  font-size: 0.64rem;
  color: var(--muted);
}
.kv-value {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
}
.kv-value a { color: var(--accent); text-decoration: none; font-family: var(--grot); font-size: 0.92rem; }
.kv-value a:hover { color: var(--text); }

/* emergency — big serif numeral */
.emergency-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 1.1rem;
  margin: 1.1rem 0 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.emergency-card strong {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--emergency);
}
.emergency-label {
  align-self: end;
  font-size: 0.64rem;
  color: var(--secondary);
}
.emergency-note {
  align-self: start;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--muted);
}

/* ============================================================
   Field-guide stop components (rich days)
   ============================================================ */
.field-stop { margin: 0.6rem 0 1rem; color: var(--secondary); }
.field-stop p { margin: 0.6rem 0; }
.field-stop ul { margin: 0.7rem 0; }

.field-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.7rem;
  margin: 0.6rem 0 1.2rem;
}
.field-nav p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;      /* vertically center the separators */
  gap: 0.3rem 0.65rem;
  margin: 0;
  font-size: 0.72rem;       /* match the • to the link size */
  line-height: 1;
  color: var(--muted);
}
.field-nav a {
  font-family: var(--grot);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  text-decoration: none;
}
.field-nav a:hover { color: var(--text); }

.field-facts {
  margin: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.field-facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0.1rem;
  border-top: 1px solid var(--line);
}
.field-facts dt {
  font-size: 0.62rem;
  color: var(--muted);
}
.field-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.4;
  color: var(--text);
}
.field-facts dd strong { color: var(--accent); }

.field-notes {
  margin: 1rem 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 2px solid var(--line-strong);
}
.field-notes strong {
  display: block;
  font-family: var(--grot);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.field-notes p { margin: 0.3rem 0 0; color: var(--secondary); }
.field-notes a { color: var(--accent); }

.field-next {
  margin: 1.2rem 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.field-next p {
  margin: 0;
  font-family: var(--grot);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   Tables, quotes, code
   ============================================================ */
table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 1.1rem 0;
  border-collapse: collapse;
  font-family: var(--grot);
  font-size: 0.82rem;
}
th, td {
  padding: 0.7rem 0.8rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
td { color: var(--secondary); }

blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--text);
}
blockquote p { color: var(--text); }

code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--surface-2);
  font-size: 0.86em;
  color: var(--text);
}

/* ============================================================
   Bottom navigation — ruled bar
   ============================================================ */
.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: space-around;
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 0.9rem 1.4rem calc(0.9rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.6), var(--bg) 55%);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  font-family: var(--grot);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.bottom-nav a:hover,
.bottom-nav a[aria-current="page"] { color: var(--accent); }

/* ============================================================
   Wider screens — keep the phone column, add margin
   ============================================================ */
@media (min-width: 720px) {
  body { background: var(--bg); }
  .site-header,
  .site-main,
  .bottom-nav { width: min(var(--wrap), 100%); }
  .site-main { padding-top: 0.8rem; }
}

/* ============================================================
   Day identity — subtitle beneath the title
   ============================================================ */
.page-subtitle {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--secondary);
}

/* ============================================================
   Today's Anchor — the one unmissable commitment
   ============================================================ */
.day-anchor {
  display: grid;
  gap: 0.3rem;
  margin: 1.2rem 0 0.4rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}
.day-anchor-label {
  font-family: var(--grot);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.day-anchor-value {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
}

/* ============================================================
   Before You Leave — standard daily ritual checklist
   ============================================================ */
.day-checklist {
  margin: 1.4rem 0 0.6rem;
  padding: 0;
}
.day-checklist-label {
  margin: 0 0 0.6rem;
  font-family: var(--grot);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--section);
}
.day-checklist ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.3rem;
  row-gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.day-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.1rem;
  color: var(--secondary);
  font-size: 0.86rem;
  line-height: 1.25;
  cursor: pointer;
  user-select: none;
  transition: color 0.12s ease;
}
.day-checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--muted);
  border-radius: 3px;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.day-checklist li:hover { color: var(--text); }
.day-checklist li:hover::before { border-color: var(--secondary); }
.day-checklist li.checked {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}
.day-checklist li.checked::before {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e0e10' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E");
  background-size: 74%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Keep the checklist's own form after it is moved inside .markdown-body
   (override the generic markdown list / label rules that would otherwise apply) */
.markdown-body .day-checklist-label {
  margin: 0 0 0.6rem;
  font-family: var(--grot);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--section);
}
.markdown-body .day-checklist ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.3rem;
  row-gap: 0.1rem;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}
.markdown-body .day-checklist li {
  position: static;
  margin: 0;
  padding: 0.42rem 0.1rem;
}
.markdown-body .day-checklist li::before {
  position: static;
  top: auto;
  left: auto;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--muted);
  border-radius: 3px;
  background: none;
}
.markdown-body .day-checklist li::marker { content: none; }
.markdown-body .day-checklist li.checked::before {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e0e10' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E");
  background-size: 74%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   Logistics day (transition / operational)
   ============================================================ */
.is-logistics .page-header { border-top-color: var(--secondary); }
.is-logistics .page-subtitle { color: var(--text); }
.day-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0.2rem;
}
.day-ops span {
  font-family: var(--grot);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line-strong);
}
.is-logistics .day-anchor {
  border-color: var(--secondary);
  background: color-mix(in srgb, var(--secondary) 8%, transparent);
}
.is-logistics .day-anchor-label { color: var(--secondary); }
