/* Layout: the same stack of ridgelines as the email, opened up to 960px. White sky at the top, then each section is one ridge a step deeper in the season's palette. A dark date bar stays pinned to the top of the screen so you always know which weekend you're reading; it turns rust once that weekend is over. Light-only on purpose: the season palette is the identity. */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --ink: #1C2420;
  --ink-soft: #505A53;
  --cream: #FFF8EC;
  --rule: #D5DAD2;
  --gold: #E4A62B;
  --temp: #A8481B;
  --rain: #3A78B5;
  --cloud: #B3BCC2;
  --cloud-dark: #8C979F;
  --moon: #97A2AB;
  --past: #9A3417;
  --gutter: 24px;
  --font-display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* band defaults, overwritten per section by the build */
  --bg: #FFFFFF; --fg: var(--ink); --muted: var(--ink-soft); --hook: #5E3600; --flag: #8E2F14;
  --line: rgba(28,36,32,.18); --chip: rgba(28,36,32,.08); --card: rgba(255,255,255,.62); --edge: #C9CEC6;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.site > main { flex: 1; display: flex; flex-direction: column; }
/* On short pages (like About) the last section stretches down to the footer, so no white gap shows on tall screens. */
.site > main > .band:last-child { flex: 1; }
.inner { width: 100%; max-width: 960px; margin-inline: auto; padding-inline: var(--gutter); }

/* date bar: always on screen, always says which weekend this is */
.datebar { position: sticky; top: 0; z-index: 10; background: var(--ink); color: var(--cream); padding-top: env(safe-area-inset-top, 0px); }
.datebar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 10px; }
.when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.state { font: 500 11.5px/1 var(--font-data); letter-spacing: 0.08em; text-transform: uppercase; background: var(--cream); color: var(--ink); padding: 5px 7px 4px; border-radius: 2px; white-space: nowrap; }
.when strong { font: 700 18px/1.2 var(--font-body); }
.issues { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-body); }
.issues select {
  font: 600 14px/1.2 var(--font-body); color: var(--cream); background-color: transparent;
  border: 1.5px solid rgba(255,248,236,.5); border-radius: 3px; padding: 7px 30px 7px 10px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23FFF8EC' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.issues select:hover { border-color: var(--cream); }
.issues option { color: var(--ink); background: #FFFFFF; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.nav-link { font: 700 14px/1 var(--font-body); color: var(--cream); padding: 8px 0; text-decoration-color: rgba(255,248,236,.45); }
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration-color: var(--cream); }
.when-link { text-decoration: none; }
.when-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.stale-note { flex-basis: 100%; font-size: 14.5px; line-height: 1.4; }
.stale-note a { font-weight: 700; }
.stale .datebar { background: var(--past); }
.stale .state { color: var(--past); }

/* masthead */
.mast { background: var(--paper); color: var(--ink); --card: #F3F5F0; --line: var(--rule); }
.mast-grid { display: grid; gap: 22px; padding-block: 30px 66px; }
.mast-title { display: grid; gap: 10px; align-content: start; }
.mast h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 7.4vw, 64px); line-height: 1; letter-spacing: 0.3px; max-width: 12ch; }
.mast h1 a { text-decoration: none; }
.tag { font-size: 16px; font-weight: 600; max-width: 42ch; }
.issue-line { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--ink-soft); }

/* subscribe box */
.subscribe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; background: var(--card); border: 1.5px solid var(--line); border-radius: 3px; padding: 16px; min-width: 0; }
.subscribe label { font-weight: 700; font-size: 16px; line-height: 1.3; }
.sub-row { display: flex; gap: 8px; }
.sub-row input { flex: 1; min-width: 0; font: 16px/1.2 var(--font-body); color: var(--ink); background: #FFFFFF; border: 1.5px solid rgba(28,36,32,.45); border-radius: 3px; padding: 11px 12px; }
.sub-row input::placeholder { color: #7A847D; }
.sub-row button { font: 700 15px/1 var(--font-body); color: var(--cream); background: var(--ink); border: 0; border-radius: 3px; padding: 11px 16px; cursor: pointer; white-space: nowrap; }
.sub-row button:hover { filter: brightness(1.25); }
.sub-note { font-size: 13px; color: var(--muted); }
.sub-note.ok { color: var(--fg); font-weight: 600; }

/* bands */
.band { position: relative; background: var(--bg); color: var(--fg); scroll-margin-top: 72px; }
.band .edge { position: absolute; left: 0; top: -33px; width: 100%; height: 34px; display: block; pointer-events: none; }
.band .edge .fill { fill: var(--bg); }
.band .edge .ridge { fill: none; stroke: var(--edge); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.band-in { padding-block: 22px 62px; display: grid; gap: 20px; position: relative; }
.band-in > h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; padding-bottom: 8px; border-bottom: 3px solid var(--fg); }
.dek { color: var(--muted); max-width: 64ch; margin-top: -6px; }

/* intro: the one-thing box, then the explainer (web only) */
.lede { font-size: 17px; }
.short { border: 1.5px solid var(--line); border-radius: 3px; padding: 16px 18px; display: grid; gap: 10px; background: var(--card); }
.short h2 { font: 700 15.5px/1.3 var(--font-body); }
.short ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.short li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: baseline; }

/* weather */
.wx-grid { display: grid; gap: 16px; }
.wx-plan { max-width: 62ch; }
.wxchart-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 12px 12px 10px; display: grid; gap: 6px; min-width: 0; }
.chart-title { font-size: 13.5px; font-weight: 600; }
.wxchart { position: relative; width: 100%; min-height: 282px; touch-action: pan-y; }
.wxchart svg { display: block; overflow: visible; }
.wxchart text { font-family: var(--font-body); font-size: 11px; fill: var(--muted); }
.wxchart text.lab { font-family: var(--font-data); font-size: 11.5px; fill: var(--fg); font-weight: 500; }
.wxchart text.low { fill: var(--muted); }
.wxchart text.dayname { font-size: 12px; font-weight: 700; fill: var(--fg); }
.wxchart .c-grid { stroke: var(--line); stroke-width: 1; }
.wxchart .c-mid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.wxchart .c-night { fill: rgba(28,36,32,.06); }
.wxchart .c-line { fill: none; stroke: var(--temp); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wxchart .c-area { fill: var(--temp); opacity: 0.07; }
.wxchart .c-dot { fill: var(--temp); stroke: var(--paper); stroke-width: 2; }
.wxchart .c-rain { fill: var(--rain); opacity: 0.55; }
.wxchart .c-lead { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; }
.wxchart .c-cross { stroke: var(--muted); stroke-width: 1; }
.wxchart .tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12.5px; line-height: 1.35; padding: 7px 9px; border-radius: 3px; max-width: 190px; z-index: 2; }
.wxchart .tip b { font-family: var(--font-data); font-size: 14px; }
.chart-key { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.chart-key span { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: -6px; }
.k-night { background: rgba(28,36,32,.1); }
.k-line { background: var(--temp); height: 2px !important; }
.k-rain { background: var(--rain); opacity: 0.55; }
.src { font-size: 12.5px; color: var(--muted); max-width: 90ch; }

/* glance: each day by time of day */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.g-day { display: grid; gap: 12px; align-content: start; min-width: 0; }
.g-day h3 { font: 700 17px/1.2 var(--font-body); padding-bottom: 6px; border-bottom: 1.5px solid var(--line); }
.g-wx { font-size: 13px; color: var(--muted); margin-top: -6px; }
.g-slot { display: grid; gap: 6px; }
.g-slot .day { justify-self: start; }
.g-slot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.35; }
.g-slot a { font-weight: 600; }
.g-slot li { display: grid; gap: 1px; }
.g-slot li a { justify-self: start; }
.g-meta { font-size: 13px; color: var(--muted); }

/* picks */
.picks { display: grid; margin-bottom: -20px; }
.pick { display: grid; gap: 7px; align-content: start; padding-block: 20px; border-top: 1.5px solid var(--line); scroll-margin-top: 72px; min-width: 0; }
.picks > .pick:first-child { border-top: 0; padding-top: 2px; }
.hook { font: italic 700 15.5px/1.3 var(--font-body); color: var(--hook); margin-bottom: -3px; }
.pick h3 { font: 700 20px/1.25 var(--font-body); }
.meta { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.day { font: 500 11px/1 var(--font-data); letter-spacing: 0.06em; text-transform: uppercase; background: var(--chip); color: var(--fg); border-radius: 2px; padding: 4px 6px; white-space: nowrap; }
.venue { color: var(--fg); font-weight: 600; }
.map { font-size: 12.5px; font-weight: 600; margin-left: 2px; }
.pick > p { max-width: 62ch; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; font-weight: 600; }
.links.inline { display: inline-flex; font-size: 13px; margin-left: 6px; gap: 2px 12px; }
span.sp { font-weight: 600; }
.group { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.group h3 { font: 700 13.5px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; background: var(--fg); color: var(--bg); border-radius: 999px; padding: 9px 16px 8px; }
.group p { font-size: 14px; color: var(--muted); line-height: 1.4; max-width: 64ch; }
.radar, .specials { margin: 0; padding-left: 18px; display: grid; gap: 10px; max-width: 80ch; }

/* about page */
.about-text { display: grid; gap: 14px; font-size: 17px; max-width: 62ch; }
.about-text a { font-weight: 700; }

/* footer band */
.foot-grid { display: grid; gap: 20px; padding-block: 24px 56px; }
.foot-text { display: grid; gap: 10px; align-content: start; }
.foot h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.foot .small { font-size: 13px; color: var(--muted); max-width: 52ch; }

/* preview-only controls (never in the production build) */
.preview-kit { position: fixed; right: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--cream); border-radius: 3px; padding: 8px 8px 8px 12px; font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,.2); max-width: calc(100% - 24px); }
.preview-kit button { font: 700 13px/1 var(--font-body); color: var(--ink); background: var(--cream); border: 0; border-radius: 3px; padding: 8px 10px; cursor: pointer; white-space: nowrap; }

@media (min-width: 820px) {
  .wx-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr); gap: 32px; align-items: start; }
  .mast-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: end; gap: 40px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .picks > .pick:nth-child(2) { border-top: 0; padding-top: 2px; }
  .band .edge { top: -45px; height: 46px; }
  .band-in > h2 { font-size: 34px; }
}

@media (max-width: 580px) {
  :root { --gutter: 16px; }
  .when strong { font-size: 16px; }
  .stale-note { font-size: 13.5px; }
  .band-in { padding-block: 18px 54px; }
  .mast-grid { padding-block: 22px 56px; }
  .glance { grid-template-columns: 1fr; gap: 24px; }
  .links.inline { display: flex; margin-left: 0; margin-top: 2px; }
  .sub-row { flex-wrap: wrap; }
  .sub-row input { flex-basis: 100%; }
  .sub-row button { flex: 1; }
  .preview-kit { left: 12px; justify-content: space-between; }
}
