/* Halcyon — halcyon-weather.com
   Tokens mirror the iOS app (Halcyon/DesignSystem/Theme.swift).
   Text colours are checked against WCAG: --ink-2 on --card 5.1:1, --link on --card 5.4:1,
   white on --brand-fill 5.4:1; dark: --link on --card 6.1:1, --ink on --brand-fill 6.6:1. */

:root {
  color-scheme: light dark;
  --canvas: #f2f1f0;
  --card: #ffffff;
  --field: #ffffff;
  --inert: #e9e8e7;
  --ink: #111114;
  --ink-2: #6e6e73;
  --hairline: #e2e1e0;
  --brand: #d84622;          /* decorative accents, large type */
  --brand-fill: #c03c1a;     /* buttons with white text */
  --on-brand: #ffffff;
  --link: #c03c1a;
  --brand-soft: #fdede9;
  --sun: #f4a62a;
  --rain: #2f7bd0;
  --rain-accent: #7c93a8;
  --snow: #6fa8d8;
  --cloud: #a3a3a8;
  --dawn: #fff5e4;
  --dusk: #fde7dd;
  --daylight-ink: #7a4a1e;
  --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px rgb(0 0 0 / 6%);
  --radius-control: 12px;
  --radius-card: 18px;
  --radius-sheet: 26px;
  --gutter: 16px;
  --max: 1120px;
  --text: 1.0625rem; /* 17px, the iOS body size */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0b0b0d;
    --card: #1a1a1d;
    --field: #232327;
    --inert: #2a2a2e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --hairline: #323238;
    --brand: #ff6945;
    --brand-fill: #ff6945;
    --on-brand: #111114;
    --link: #ff7a5a;
    --brand-soft: #3a1a12;
    --sun: #ffc050;
    --rain: #6aaef0;
    --rain-accent: #94aec6;
    --snow: #8fc4ee;
    --cloud: #b4b4ba;
    --dawn: #2a1f12;
    --dusk: #2c1813;
    --daylight-ink: #f6cfa0;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0b0b0d; --card: #1a1a1d; --field: #232327; --inert: #2a2a2e;
  --ink: #f5f5f7; --ink-2: #a1a1a6; --hairline: #323238;
  --brand: #ff6945; --brand-fill: #ff6945; --on-brand: #111114; --link: #ff7a5a;
  --brand-soft: #3a1a12; --sun: #ffc050; --rain: #6aaef0; --rain-accent: #94aec6;
  --snow: #8fc4ee; --cloud: #b4b4ba; --dawn: #2a1f12; --dusk: #2c1813; --daylight-ink: #f6cfa0;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%);
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 var(--text)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 100; background: var(--card); padding: 10px 14px; border-radius: var(--radius-control); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(720px + 2 * var(--gutter)); }

/* ---------- Header: a translucent bar, the one place glass is used ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.nav a:hover { background: var(--inert); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .nav-cta { background: var(--brand-fill); color: var(--on-brand); font-weight: 600; margin-left: 6px; min-height: 36px; padding: 0 16px; }
.nav .nav-cta:hover { background: var(--brand-fill); filter: brightness(1.08); }
.nav .hide-sm { display: none; }
.nav a { white-space: nowrap; }
@media (max-width: 440px) { .nav .hide-xs { display: none; } }
@media (min-width: 640px) { .nav .hide-sm { display: inline-flex; } }
@media (max-width: 380px) { .nav a { padding: 0 8px; } .nav .nav-cta { padding: 0 12px; } }
.theme-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  display: inline-grid; place-items: center; background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { background: var(--inert); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: transform .3s ease, opacity .2s ease; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
}
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
/* Narrow phones: the icon carries the brand, the word makes room for the toggle. */
@media (max-width: 420px) { .brand .wordmark { display: none; } }

/* ---------- Buttons ---------- */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 22px 10px 12px; border-radius: 14px; min-height: 60px;
  border: 1px solid #000;
  transition: transform .15s ease;
}
.btn-store:hover { transform: translateY(-1px); text-decoration: none; }
.btn-store img { width: 40px; height: 40px; border-radius: 9px; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; }
.btn-store small { font-size: 0.75rem; opacity: .85; }
.btn-store b { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-store { background: #fff; color: #000; border-color: #fff; } }
:root[data-theme="dark"] .btn-store { background: #fff; color: #000; border-color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--brand-fill); color: var(--on-brand); font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--hairline); }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.2vw, 4.75rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.875rem, 4.4vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; letter-spacing: -0.012em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow { font-size: 0.9375rem; font-weight: 600; color: var(--link); margin: 0 0 12px; letter-spacing: 0; }
.lede { font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); line-height: 1.42; color: var(--ink-2); max-width: 38em; }
.lede strong, .section-head p strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9375rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 0; text-align: center; }
.hero h1 { max-width: 13ch; margin: 0 auto 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { margin: 0 auto 28px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 40px; }
.hero-cta .muted { font-size: 0.9375rem; margin: 0; }

/* The date strip: the product in one picture — a run of days, and the one to pick. */
.days {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  width: 100%; max-width: 560px; margin: 0 auto -44px; position: relative; z-index: 2;
  background: var(--card); padding: 8px; border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
  list-style: none;
}
.day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 15px; transition: background-color .35s ease, color .35s ease, transform .35s ease; }
.day .dow { font-size: 0.75rem; color: var(--ink-2); font-weight: 500; }
.day .num { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.day svg { width: 30px; height: 30px; }
.day .t { font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.day.is-best { background: var(--brand); color: #fff; transform: scale(1.04); }
.day.is-best .dow, .day.is-best .t { color: rgb(255 255 255 / 92%); }
.day.is-scan { background: var(--inert); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .day.is-best { color: #111114; } :root:not([data-theme="light"]) .day.is-best .dow, :root:not([data-theme="light"]) .day.is-best .t { color: rgb(17 17 20 / 85%); } }
:root[data-theme="dark"] .day.is-best { color: #111114; } :root[data-theme="dark"] .day.is-best .dow, :root[data-theme="dark"] .day.is-best .t { color: rgb(17 17 20 / 85%); }
@media (max-width: 400px) { .day svg { width: 24px; height: 24px; } .day .num { font-size: 1.0625rem; } .days { padding: 6px; gap: 2px; } }
.days-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hero-art { position: relative; border-radius: var(--radius-sheet); overflow: hidden; background: var(--inert); aspect-ratio: 16 / 5; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .hero-art { aspect-ratio: 4 / 3; border-radius: 20px; } .hero-art img { object-position: 50% 60%; } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 10vw, 120px) 0 0; }
.section-head { max-width: 760px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1875rem; color: var(--ink-2); margin: 0; }

.grid-2 { display: grid; gap: 16px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card); border-radius: var(--radius-card); padding: 28px; border: 1px solid var(--hairline); }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-soft); color: var(--brand); }
.card .icon svg { width: 26px; height: 26px; }
.big-card { padding: clamp(28px, 4vw, 44px); }
.big-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.025em; line-height: 1.12; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%23d84622' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* Horizon: three bands on a real time axis — forecast, long-range, past years. */
.horizon { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-sheet); padding: clamp(24px, 4vw, 44px); }
.horizon-bar { display: grid; grid-template-columns: 1fr 1.4fr 1.6fr; height: 14px; border-radius: 999px; overflow: hidden; margin: 8px 0 28px; }
.horizon-bar span:nth-child(1) { background: var(--brand); }
.horizon-bar span:nth-child(2) { background: var(--sun); }
.horizon-bar span:nth-child(3) { background: repeating-linear-gradient(90deg, var(--rain-accent) 0 6px, transparent 6px 10px); opacity: .75; }
.horizon-cols { display: grid; gap: 24px; }
@media (min-width: 760px) { .horizon-cols { grid-template-columns: 1fr 1.4fr 1.6fr; } }
.horizon-cols h3 { display: flex; align-items: center; gap: 10px; }
.horizon-cols h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.horizon-cols > div:nth-child(1) h3::before { background: var(--brand); }
.horizon-cols > div:nth-child(2) h3::before { background: var(--sun); }
.horizon-cols > div:nth-child(3) h3::before { background: var(--rain-accent); }
.horizon-cols .range { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.horizon-cols p { margin: 0; }

/* Steps: a real sequence, so numbers carry meaning. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 28px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--canvas); font-weight: 700; margin-bottom: 16px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); }

/* Plans people search for */
.plans { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 22px 22px 20px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.plan .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--dawn); color: var(--daylight-ink); font-size: 1.375rem; }
.plan h3 { font-size: 1.0625rem; margin: 2px 0 4px; }
.plan p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

/* Pricing */
.price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--inert); color: var(--ink); }
.tag.pro { background: var(--brand-soft); color: var(--link); }

/* Privacy band */
.band { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-sheet); padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .band { grid-template-columns: 1.1fr 1fr; } }
.band h2 { margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.facts div { background: var(--canvas); border-radius: 14px; padding: 16px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 2px 0 0; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 380px) { .facts { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Final call to action */
.closing { margin-top: clamp(64px, 10vw, 120px); position: relative; border-radius: var(--radius-sheet); overflow: hidden; color: #fff; min-height: 460px; display: grid; align-items: end; }
.closing > picture, .closing > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0%) 15%, rgb(0 0 0 / 45%) 50%, rgb(0 0 0 / 80%) 100%); }
.closing h2, .closing p { text-shadow: 0 1px 12px rgb(0 0 0 / 35%); }
.closing-inner { position: relative; z-index: 1; padding: clamp(24px, 5vw, 56px); max-width: 640px; }
.closing h2 { color: #fff; }
.closing p { color: rgb(255 255 255 / 90%); font-size: 1.1875rem; }
.closing .btn-store { background: #fff; color: #000; border-color: #fff; }

/* ---------- Article & legal pages ---------- */
.page-head { padding: clamp(40px, 7vw, 80px) 0 28px; }
.page-head h1 { font-size: clamp(2.25rem, 5.6vw, 3.75rem); }
.crumbs { font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 16px; }
.crumbs a { color: var(--ink-2); }
.prose { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-sheet); padding: clamp(24px, 5vw, 56px); font-size: 1.125rem; line-height: 1.62; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 2em 0; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--dawn); color: var(--daylight-ink); border-radius: 14px; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 0 0 1.2em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { font-weight: 600; }
.updated { color: var(--ink-2); font-size: 0.9375rem; }
.key { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--sun) 38%, transparent) 58%); padding: 0 .08em; font-weight: 600; color: var(--ink); }

.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 0.9375rem; }
.tldr { background: var(--brand-soft); border-radius: 16px; padding: 20px 22px; margin: 0 0 28px; font-size: 1.0625rem; }
.tldr strong:first-child { display: block; margin-bottom: 4px; color: var(--link); }
.inline-cta { margin: 2em 0 0; padding: 24px; border-radius: 18px; background: var(--canvas); display: grid; gap: 16px; align-items: center; }
@media (min-width: 640px) { .inline-cta { grid-template-columns: 64px 1fr auto; } }
.inline-cta img { width: 64px; height: 64px; border-radius: 15px; }
.inline-cta p { margin: 0; font-size: 1rem; }

/* Blog index */
.posts { display: grid; gap: 16px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.post-card .cover { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.post-card .cover svg { width: 64px; height: 64px; }
.cover.c-sun { background: linear-gradient(135deg, var(--dawn), var(--dusk)); color: var(--brand); }
.cover.c-rain { background: linear-gradient(135deg, color-mix(in srgb, var(--rain) 18%, var(--card)), color-mix(in srgb, var(--snow) 26%, var(--card))); color: var(--rain); }
.cover.c-past { background: linear-gradient(135deg, var(--inert), color-mix(in srgb, var(--sun) 22%, var(--card))); color: var(--daylight-ink); }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; margin: 0; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.post-card .meta { margin-top: auto; padding-top: 8px; font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 10vw, 120px); border-top: 1px solid var(--hairline); padding: 40px 0 48px; font-size: 0.9375rem; color: var(--ink-2); }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .about { grid-column: 1 / -1; }
@media (min-width: 760px) { .site-footer .about { grid-column: auto; } }
.site-footer h2 { font-size: 0.9375rem; color: var(--ink); letter-spacing: 0; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { color: var(--ink-2); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer .legal p { margin: 0; }
.site-footer .legal a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Interactive blog components (assets/js/blog-widgets.js)
   Temperature = vermilion, rain & snow = rain blue (validated pair,
   ΔE 24.8 under CVD). Ratings = one green, light → dark.
   ===================================================================== */
:root {
  --temp: #d84622; --precip: #2f7bd0; --closed: #7c93a8; --today: #111114;
  --seq-1: #dceee2; --seq-2: #a8d8b8; --seq-3: #7cc39a; --seq-4: #2b8253; --seq-5: #155d3a;
  --seq-ink-1: #111114; --seq-ink-2: #111114; --seq-ink-3: #111114; --seq-ink-4: #ffffff; --seq-ink-5: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --temp: #ff6945; --precip: #6aaef0; --closed: #94aec6; --today: #f5f5f7;
    --seq-1: #1d3326; --seq-2: #23573a; --seq-3: #2f7a4f; --seq-4: #3fa56b; --seq-5: #6fd39a;
    --seq-ink-1: #f5f5f7; --seq-ink-2: #f5f5f7; --seq-ink-3: #f5f5f7; --seq-ink-4: #111114; --seq-ink-5: #111114;
  }
}
:root[data-theme="dark"] {
  --temp: #ff6945; --precip: #6aaef0; --closed: #94aec6; --today: #f5f5f7;
  --seq-1: #1d3326; --seq-2: #23573a; --seq-3: #2f7a4f; --seq-4: #3fa56b; --seq-5: #6fd39a;
  --seq-ink-1: #f5f5f7; --seq-ink-2: #f5f5f7; --seq-ink-3: #f5f5f7; --seq-ink-4: #111114; --seq-ink-5: #111114;
}

.js-only { display: none !important; }
.js .js-only { display: revert !important; }
.js .js-only.viz-flex { display: flex !important; }
.js .enhanced > .fallback { display: none; }

/* Wide article layout: text column stays readable, widgets get room. */
.article-wide { max-width: calc(860px + 2 * var(--gutter)); }

.viz { margin: 1.6em 0 2em; background: var(--canvas); border-radius: 20px; padding: clamp(16px, 3vw, 24px); font-size: 1rem; line-height: 1.45; }
.viz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.viz-title { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; margin: 0; }
.viz-sub { color: var(--ink-2); font-size: 0.875rem; margin: 2px 0 0; }
.viz-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; background: var(--inert); border-radius: 10px; padding: 2px; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 500; padding: 0 12px; min-height: 36px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px rgb(0 0 0 / 12%); font-weight: 600; }
.viz-chart { position: relative; touch-action: pan-y; }
.viz-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz-chart svg:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
.viz text { fill: var(--ink-2); font-size: 12px; font-family: var(--font); }
.viz text.strong { fill: var(--ink); font-weight: 600; }
.viz .grid { stroke: var(--hairline); stroke-width: 1; }
.viz .freeze { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.viz .col-hi { fill: var(--ink); opacity: .06; }
.viz-tip { position: absolute; top: 0; left: 0; pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--hairline); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 12px; font-size: 0.875rem; line-height: 1.35; min-width: 150px; opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease; z-index: 3; }
.viz-tip.on { opacity: 1; transform: none; }
.viz-tip b { display: block; margin-bottom: 4px; }
.viz-tip .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.viz-tip .row span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.key-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8125rem; color: var(--ink-2); margin-top: 10px; }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hatch-swatch { background: repeating-linear-gradient(135deg, var(--closed) 0 2px, transparent 2px 5px); border: 1px solid var(--closed); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.stat { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.stat .v { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 0.8125rem; color: var(--ink-2); }
@media (max-width: 480px) { .stat .v { font-size: 1.0625rem; } }
.viz details { margin-top: 12px; font-size: 0.9375rem; }
.viz details summary { cursor: pointer; color: var(--link); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.viz details table { font-size: 0.875rem; background: var(--card); border-radius: 12px; }

/* Goal picker */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; border: 1px solid var(--hairline); background: var(--card); color: var(--ink); font: inherit; font-size: 0.9375rem; padding: 0 14px; min-height: 40px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--on-brand); font-weight: 600; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin: 16px 0 8px; }
.months div { text-align: center; font-size: 0.75rem; color: var(--ink-2); }
.months div i { display: block; height: 34px; border-radius: 8px; background: var(--inert); margin-bottom: 4px; transition: background-color .25s ease; }
.months div.l1 i { background: color-mix(in srgb, var(--brand) 38%, var(--card)); }
.months div.l2 i { background: var(--brand); }
.months div.l2 { color: var(--ink); font-weight: 600; }
.goal-detail { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-top: 8px; }
.goal-detail .when { font-weight: 700; margin: 0 0 2px; }
.goal-detail p { margin: 0; color: var(--ink-2); }
.goals-fallback { display: grid; gap: 10px; }
.goals-fallback .goal { background: var(--card); border-radius: 14px; padding: 14px 16px; }
.goals-fallback h3 { font-size: 1rem; margin: 0 0 2px; }
.goals-fallback p { margin: 0; font-size: 0.9375rem; }

/* Road timeline */
.gantt-row-label { font-size: 13px; }
.gantt .bar-closed { fill: var(--closed); }
.gantt .bar-maybe { fill: url(#hatch); }
.gantt .bar-open { fill: none; stroke: var(--seq-3); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.gantt .today line { stroke: var(--today); stroke-width: 1.5; }
.gantt .today text { fill: var(--ink); font-weight: 600; }
.gantt .row-hit { fill: transparent; cursor: pointer; }
.gantt .row-sel { fill: var(--card); }
.road-detail { background: var(--card); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.road-detail h3 { font-size: 1rem; margin: 0 0 6px; }
.road-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; font-size: 0.9375rem; }
.road-detail dt { color: var(--ink-2); }
.road-detail dd { margin: 0; font-weight: 600; }
.road-detail p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
.roads-fallback { display: grid; gap: 10px; }

/* Planner heatmap */
.heat { display: grid; grid-template-columns: minmax(84px, auto) repeat(12, minmax(0, 1fr)); gap: 3px; align-items: stretch; }
.heat .hdr { font-size: 0.75rem; color: var(--ink-2); text-align: center; padding-bottom: 2px; }
.heat .rl { font-size: 0.8125rem; color: var(--ink); font-weight: 600; display: flex; align-items: center; padding-right: 6px; line-height: 1.2; }
.heat button.cell { appearance: none; border: 0; font: inherit; min-height: 44px; border-radius: 8px; cursor: pointer; font-size: 0.6875rem; font-weight: 600; padding: 2px; display: grid; place-items: center; line-height: 1.1; }
.heat button.cell.s0 { background: repeating-linear-gradient(135deg, var(--inert) 0 4px, transparent 4px 8px); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.heat button.cell.s1 { background: var(--seq-1); color: var(--seq-ink-1); }
.heat button.cell.s2 { background: var(--seq-2); color: var(--seq-ink-2); }
.heat button.cell.s3 { background: var(--seq-3); color: var(--seq-ink-3); }
.heat button.cell.s4 { background: var(--seq-4); color: var(--seq-ink-4); }
.heat button.cell.s5 { background: var(--seq-5); color: var(--seq-ink-5); }
.heat button.cell[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--ink); }
.heat .hdr.sel { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) { .heat { grid-template-columns: 64px repeat(12, minmax(0, 1fr)); gap: 2px; } .heat button.cell { font-size: 0; min-height: 40px; } .heat .rl { font-size: 0.75rem; } }
.month-detail { background: var(--card); border-radius: 14px; padding: 16px; margin-top: 14px; }
.month-detail h3 { font-size: 1.125rem; margin: 0 0 8px; }
.month-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.9375rem; }
.month-detail dt { color: var(--ink-2); }
.month-detail dd { margin: 0; }
.months-fallback { display: grid; gap: 10px; }
.months-fallback .m { background: var(--card); border-radius: 14px; padding: 14px 16px; font-size: 0.9375rem; }
.months-fallback h3 { font-size: 1rem; margin: 0 0 4px; }

/* Season switcher and photos */
.seasons { margin: 1.4em 0 2em; }
.season-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.season-tabs::-webkit-scrollbar { display: none; }
.season-panel figure, figure.photo { margin: 0; }
.season-panel img, figure.photo img { width: 100%; height: auto; border-radius: 18px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--inert); }
.season-panel .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0 0; }
.season-panel .facts div { background: var(--canvas); border-radius: 12px; padding: 10px 12px; }
.season-panel .facts dt { font-size: 0.8125rem; color: var(--ink-2); }
.season-panel .facts dd { margin: 2px 0 0; font-weight: 600; font-size: 0.9375rem; }
.season-panel h3 { margin: 14px 0 4px; }
.season-panel p { margin: 6px 0 0; }
.js .seasons.enhanced .season-panel[hidden] { display: none; }
.seasons:not(.enhanced) .season-panel + .season-panel { margin-top: 28px; }
figure.photo { margin: 1.6em 0; }
figcaption { font-size: 0.875rem; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
figcaption .credit { display: block; font-size: 0.75rem; opacity: .9; }
figcaption .credit a { color: var(--ink-2); }

/* Table of contents */
.toc { background: var(--canvas); border-radius: 16px; padding: 16px 18px; margin: 0 0 28px; font-size: 0.9375rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: 24px; }
.toc li { margin: 3px 0; break-inside: avoid; }

/* Halcyon hint inside article text */
.hint { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--brand-soft); border-radius: 16px; padding: 14px 16px; margin: 1.4em 0; font-size: 1rem; }
.hint img { width: 40px; height: 40px; border-radius: 10px; }
.hint p { margin: 0; }

/* Blog cards with photos */
.post-card .cover.photo { padding: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card .cover.photo img { width: 100%; height: 100%; object-fit: cover; }
.posts.single { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .posts.single .post-card { flex-direction: row; }
  .posts.single .post-card .cover { flex: 0 0 52%; aspect-ratio: auto; min-height: 320px; }
  .posts.single .post-card .body { padding: 32px; justify-content: center; }
  .posts.single .post-card h2 { font-size: 1.75rem; letter-spacing: -0.025em; line-height: 1.15; }
  .posts.single .post-card p { font-size: 1.0625rem; }
}
.months-fallback dl, .road dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.months-fallback dt, .road dt { color: var(--ink-2); }
.months-fallback dd, .road dd { margin: 0; }
.road { background: var(--card); border-radius: 14px; padding: 14px 16px; font-size: 0.9375rem; }
.road h3 { font-size: 1rem; margin: 0 0 6px; }
.road p { margin: 8px 0 0; color: var(--ink-2); }
.viz table caption { text-align: left; font-weight: 600; padding: 10px 12px 4px; }
.season-panel { padding: 0; }
/* Note for AI readers: in the HTML, never on screen. */
.ai-note { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
