:root {
  color-scheme: dark;
  --background: #111619;
  --surface: #1a2227;
  --text: #e2e6e4;
  --muted: #9da9ac;
  --soft: #bdc6c6;
  --line: #2c363b;
  --accent: #b8c9bd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; color: var(--text); font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
svg { display: block; }
h1, h2, p, figure, dl, dd { margin: 0; }
h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 400; line-height: 1.17; letter-spacing: -1.5px; }
h2 { font-size: 13px; font-weight: 500; }
.muted { color: var(--muted); }
.site-shell { width: min(1120px, calc(100% - 88px)); margin: 0 auto; }
.site-header { height: 118px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 500; letter-spacing: -.5px; }
.brand-mark { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.site-header nav { display: flex; gap: 30px; font-size: 13px; color: var(--muted); }
.site-header nav a { padding: 10px 0; }
.site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.page-intro { padding: 49px 0 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.coordinates { color: var(--muted); text-align: right; font-size: 12px; line-height: 1.9; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.section-heading p, .section-heading a { color: var(--muted); font-size: 12px; }
.section-heading a:hover { color: var(--text); }
.section-heading a span { margin-left: 7px; color: var(--accent); }
.frame-heading { margin-bottom: 12px; }
.frame-heading h2 { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.separator { padding: 0 9px; color: #67757b; }
.main-frame > a { display: block; background: var(--surface); }
.main-frame img { aspect-ratio: 16 / 9; object-fit: cover; }
.main-frame figcaption { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 11px; padding: 12px 0 17px; border-bottom: 1px solid var(--line); }
.main-frame figcaption > span:first-child { color: var(--soft); }
.weather-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.conditions { display: flex; align-items: center; gap: 18px; color: var(--soft); font-size: 12px; }
.conditions strong { color: var(--text); font-size: 29px; font-weight: 400; line-height: 1.3; letter-spacing: -1px; }
.conditions strong span { padding-left: 2px; font-size: 20px; color: var(--muted); }
.weather-values { display: flex; gap: clamp(26px, 4.5vw, 58px); }
.weather-values dt { color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.weather-values dd { font-size: 13px; font-variant-numeric: tabular-nums; }
.weather-values dd span { color: var(--muted); font-size: 11px; }
.recent-section { padding-top: 37px; }
.recent-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.frame-tile { display: block; min-width: 0; }
.frame-tile img { aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); transition: filter .15s; }
.frame-tile:hover img, .day-row:hover img { filter: brightness(1.13); }
.tile-caption { display: flex; flex-wrap: wrap; gap: 3px 9px; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.tile-caption > span { font-size: 9px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding: 24px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-dot { padding: 0 8px; }
.private-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--soft); }
.private-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1; }
.private-link .muted { margin-left: 3px; }
.archive-intro { padding: 48px 0 39px; }
.page-note { margin-top: 18px; color: var(--muted); font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 33px; font-size: 12px; color: var(--muted); }
.day-list { border-top: 1px solid var(--line); }
.day-row { display: flex; align-items: center; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.day-row img { width: 176px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); transition: filter .15s; }
.day-description { display: flex; flex-direction: column; gap: 8px; }
.day-description > .muted { font-size: 11px; }
.day-date { font-size: 19px; letter-spacing: -.4px; }
.day-arrow { margin-left: auto; padding: 0 8px; font-size: 22px; color: var(--accent); }
.archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.archive-grid .tile-caption { font-size: 11px; }
.text-page { padding: 58px 0 16px; }
.text-page h1 { margin-bottom: 36px; }
.about-layout { display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 88px; }
.prose { max-width: 620px; color: var(--soft); font-size: 15px; line-height: 1.9; }
.prose p + p { margin-top: 21px; }
.about-aside { padding-left: 27px; border-left: 1px solid var(--line); }
.about-aside dl { display: grid; gap: 23px; }
.about-aside dt { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.about-aside dd { color: var(--soft); font-size: 12px; }
.text-link { display: inline-block; margin-top: 36px; font-size: 13px; }
.text-link span { padding-left: 9px; color: var(--accent); }
.missing-page { min-height: 52vh; }
.empty-state { padding: 80px 25px; background: var(--surface); text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--text); font-size: 24px; margin-bottom: 10px; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 8px 14px; background: var(--text); color: var(--background); z-index: 10; }
.skip-link:focus { top: 14px; }

@media (min-width: 1500px) {
  .site-shell { width: min(1240px, calc(100% - 120px)); }
}

@media (max-width: 850px) {
  .site-shell { width: calc(100% - 48px); }
  .site-header { height: 95px; }
  .page-intro { padding-top: 39px; }
  .recent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 15px; }
  .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .conditions { gap: 12px; }
  .weather-values { gap: 24px; }
  .about-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 36px; }
  .about-aside { padding-left: 22px; }
}

@media (max-width: 600px) {
  .site-shell { width: calc(100% - 32px); }
  .site-header { height: 82px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand-mark { width: 25px; height: 25px; }
  .site-header nav { gap: 19px; font-size: 11px; }
  .page-intro { padding: 33px 0 30px; }
  .coordinates { display: none; }
  .eyebrow { font-size: 10px; margin-bottom: 10px; }
  h1 { font-size: 35px; letter-spacing: -1px; }
  .frame-heading { flex-wrap: wrap; gap: 5px; }
  .frame-heading h2 { font-size: 11px; }
  .frame-heading p { font-size: 10px; }
  .separator { padding: 0 4px; }
  .main-frame figcaption { font-size: 9px; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; }
  .main-frame figcaption .muted { display: block; }
  .weather-strip { gap: 20px; flex-wrap: wrap; padding: 18px 0; }
  .conditions { width: 100%; gap: 14px; }
  .conditions strong { font-size: 28px; }
  .weather-values { justify-content: space-between; width: 100%; gap: 12px; }
  .weather-values dt { font-size: 10px; }
  .weather-values dd { font-size: 12px; }
  .recent-section { padding-top: 28px; }
  .section-heading h2 { font-size: 12px; }
  .section-heading a { font-size: 10px; }
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .site-footer { flex-direction: column; gap: 13px; margin-top: 43px; padding-top: 21px; font-size: 10px; }
  .archive-intro { padding-top: 34px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 12px; }
  .day-row { gap: 15px; padding: 18px 0; }
  .day-row img { width: 114px; }
  .day-description { gap: 5px; }
  .day-date { font-size: 15px; }
  .day-description > .muted { font-size: 9px; }
  .day-description .separator { display: block; height: 2px; visibility: hidden; }
  .day-arrow { font-size: 17px; padding-right: 0; }
  .text-page { padding-top: 38px; }
  .about-layout { grid-template-columns: 1fr; gap: 35px; }
  .prose { font-size: 14px; }
  .about-aside { padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .about-aside dl { grid-template-columns: 1fr 1fr; gap: 24px 15px; }
  .text-page h1 { margin-bottom: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .frame-tile img, .day-row img { transition: none; }
}
