/* Roszak Family Road Trip — styles modeled on wanatah.andyroszak.com */
:root {
  --ink: #251f18;
  --ink-soft: #5c5142;
  --brand: #e08a1e;
  --brand-dark: #b0450f;
  --brand-deep: #6b1f2e;
  --wheat: #f0e2c8;
  --wheat-light: #faf4e6;
  --sky: #2f6690;
  --sky-dark: #204a69;
  --sky-light: #e4eef4;
  --forest: #3f6b4a;
  --pine: #d7e8d2;
  --pine-dark: #274a30;
  --gold: #d9a520;
  --gold-light: #fbf1de;
  --aqua: #1f7a8c;
  --aqua-light: #e0f1f4;
  --snow: #f7f4ee;
  --paper: #ffffff;
  --mist: #ece2d0;
  --line: rgba(37, 31, 24, 0.13);
  --shadow: 0 16px 40px rgba(37, 31, 24, 0.14);
  --card-shadow: 0 2px 10px rgba(37, 31, 24, 0.07);
  --warn: #8c2418;
  --warn-light: #fdece9;
  --good: #245c38;
  --status-confirmed: #145c32;
  --status-tentative: #6a4708;
  --status-open: #8c2418;
  --nav-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2ebe0;
    --ink-soft: #c9bda9;
    --snow: #17130f;
    --paper: #221c16;
    --mist: #3a3026;
    --line: rgba(242, 235, 224, 0.14);
    --wheat-light: #2b241b;
    --gold-light: #33291a;
    --sky-light: #1b2a36;
    --pine: #1e2c21;
    --pine-dark: #bfe0c3;
    --aqua-light: #16292d;
    --warn-light: #3a1c18;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    --sky-dark: #9cc3e2;
    --brand-dark: #f0a24a;
    --good: #9ed6ae;
    --status-confirmed: #b7ebc4;
    --status-tentative: #f3d07a;
    --status-open: #ffc7be;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #f2ebe0;
  --ink-soft: #c9bda9;
  --snow: #17130f;
  --paper: #221c16;
  --mist: #3a3026;
  --line: rgba(242, 235, 224, 0.14);
  --wheat-light: #2b241b;
  --gold-light: #33291a;
  --sky-light: #1b2a36;
  --pine: #1e2c21;
  --pine-dark: #bfe0c3;
  --aqua-light: #16292d;
  --warn-light: #3a1c18;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  --sky-dark: #9cc3e2;
  --brand-dark: #f0a24a;
  --good: #9ed6ae;
  --status-confirmed: #b7ebc4;
  --status-tentative: #f3d07a;
  --status-open: #ffc7be;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--snow);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.58;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); text-underline-offset: 0.16em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: 30px; margin-bottom: 10px; }
h3 { font-size: 19px; margin-bottom: 6px; }
button, input { font: inherit; }
@media (max-width: 640px) { h2 { font-size: 24px; } }
@media (min-width: 720px) {
  .hero h1 { font-size: 46px; }
}

.skip {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-140%);
  z-index: 40;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus { transform: none; }

/* HERO */
.hero {
  background: linear-gradient(160deg, #2b1420 0%, #6b1f2e 48%, #8a3a14 100%);
  color: #fff;
  padding: calc(22px + env(safe-area-inset-top)) 20px 26px;
}
.hero__inner { max-width: 960px; margin: 0 auto; }
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0 0 6px;
}
.hero .eyebrow { color: #fff; margin: 0; }
.hero h1 { font-size: 34px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.hero__subtitle { color: #fff; margin: 0 0 14px; font-size: 16px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero__facts span {
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 8px 12px;
  border-radius: 99px;
  overflow-wrap: anywhere;
}
.nextup {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 12px 16px;
}
.nextup__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fff;
  background: #6b1f2e;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 8px;
  border-radius: 99px;
}
.nextup__when { font-size: 13px; font-weight: 700; margin-left: 8px; color: #fff; }
.nextup__what { font-size: 19px; font-weight: 800; margin-top: 6px; color: #fff; }
.nextup__sub { font-size: 14px; color: #fff; margin-top: 2px; }
.theme-toggle {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 64px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* STICKY DAY NAV */
.daynav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--brand-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.daynav__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.daynav__inner::-webkit-scrollbar { display: none; }
.daynav a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}
.daynav a.is-active { background: var(--brand); border-color: var(--brand); color: #251f18; }
.daynav a.is-today { box-shadow: inset 0 0 0 2px var(--gold); }
.offline-pill {
  display: none;
  flex-shrink: 0;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 0 12px;
}
.offline-pill.show { display: inline-flex; }

/* LAYOUT */
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.band { padding: 36px 0; scroll-margin-top: var(--nav-h); }
.band + .band { border-top: 1px solid var(--line); }
.band--pine { background: var(--pine); }
.band--brand { background: linear-gradient(135deg, #2b1420 0%, #6b1f2e 62%, #8a3a14 100%); color: #fff; }
.band--brand h2, .band--brand h3 { color: #fff; }
.band--brand .eyebrow { color: #fff; }
.band--brand .section-heading p { color: #fff; }
.section-heading { margin-bottom: 20px; }
.section-heading p { color: var(--ink-soft); font-size: 16px; margin: 0; max-width: 68ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.card, .day-card, .callout, .tl-title, .tl-place, .tl-notes, .wx, .people {
  overflow-wrap: anywhere;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--card-shadow);
  color: var(--ink);
}
.card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 4px;
}
.card p, .card li { font-size: 15px; color: var(--ink-soft); }
.card b, .card strong { color: var(--ink); }
.card p { margin: 0 0 8px; }
.card li { color: var(--ink); }
.muted { color: var(--ink-soft); font-size: 15px; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { margin: 0 0 8px; color: var(--ink); }
.legend { display: grid; gap: 8px; margin: 0 0 16px; }
.legend div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; color: var(--ink-soft); }

/* DAY CARDS */
.day-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 18px;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.day-card--today { outline: 3px solid var(--gold); outline-offset: -1px; }
.day-card__header {
  display: flex;
  gap: 14px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.day-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #251f18;
}
.day-badge .n { font-size: 22px; font-weight: 800; line-height: 1; }
.day-badge .m { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.day-badge--drive { background: var(--sky); color: #fff; }
.day-badge--swim { background: var(--aqua); color: #fff; }
.day-badge--event { background: var(--forest); color: #fff; }
.day-card__summary { font-size: 15px; color: var(--ink-soft); margin: 4px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--mist);
  color: var(--ink);
}
.tag--today { background: var(--gold); color: #251f18; }
.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: normal;
  line-height: 1.3;
}
.status--confirmed { background: var(--pine); color: var(--status-confirmed); border: 1px solid var(--status-confirmed); }
.status--tentative { background: var(--gold-light); color: var(--status-tentative); border: 1px dashed var(--status-tentative); }
.status--not-booked { background: var(--warn-light); color: var(--status-open); border: 1px solid var(--status-open); }
.timeline { list-style: none; margin: 0; padding: 8px 16px 16px; }
.tl-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--wheat-light);
  border: 1px solid var(--mist);
}
.tl-time { font-size: 14px; font-weight: 800; color: var(--brand-dark); }
.tl-title { font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--ink); }
.tl-place, .tl-notes { font-size: 15px; color: var(--ink-soft); }
.tl-notes { margin-top: 3px; }
.tl-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.tl-item--charge .tl-icon { background: var(--aqua-light); }
.tl-item--confirmed .tl-title::after { content: " ★"; color: var(--gold); }
.variant {
  margin: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--snow);
}
.variant summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  min-height: 44px;
  list-style-position: inside;
}
.variant .timeline { padding-top: 0; }
.callout {
  border-left: 3px solid var(--gold);
  background: var(--gold-light);
  color: var(--ink);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 15px;
  margin: 10px 16px 16px;
}
.callout--info { border-color: var(--sky); background: var(--sky-light); }
.callout--warn { border-color: var(--gold); background: var(--gold-light); }
.callout--flag { border-color: var(--warn); background: var(--warn-light); }
.callout--good { border-color: var(--good); background: var(--pine); }
.stack-callout { margin: 0 0 14px; }

/* ACTION BUTTONS (≥44px tap targets) */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: left;
  white-space: normal;
  border: 1.5px solid var(--sky);
  background: var(--sky-light);
  color: var(--sky-dark);
  cursor: pointer;
  font-family: inherit;
}
.btn--tel { border-color: var(--forest); background: var(--pine); color: var(--pine-dark); }
.btn--link { border-color: var(--brand-dark); background: var(--gold-light); color: var(--brand-dark); }
.btn--ghost { border-color: var(--line); background: var(--snow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* WEATHER */
.wx {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 16px;
}
.wx h3 { font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; margin-bottom: 2px; }
.wx .row, .wx-live, .wx-dates { font-size: 15px; color: #fff; margin: 6px 0; }
.wx .lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }

/* PACKING */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist label {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
}
.checklist input { width: 24px; height: 24px; accent-color: var(--forest); flex-shrink: 0; }
.checklist input:checked + span { text-decoration: line-through; color: var(--ink-soft); }
.progress { font-size: 15px; font-weight: 700; color: var(--good); }

.site-footer {
  text-align: center;
  padding: 28px 16px calc(90px + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 700;
}
.jump-today {
  position: fixed;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: none;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 99px;
  border: 0;
  background: var(--brand-deep);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow);
  font-family: inherit;
  cursor: pointer;
}
.jump-today.show { display: inline-flex; align-items: center; }

@media print {
  .daynav, .jump-today, .theme-toggle, .actions, .skip { display: none !important; }
  .band--brand, .hero { background: #fff !important; color: #000 !important; }
  .hero h1, .hero__subtitle, .nextup, .nextup__what, .nextup__sub { color: #000 !important; }
  .day-card { break-inside: avoid; }
}
