@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap');

:root {
  --ink: #082331;
  --ink-muted: #52717b;
  --paper: #f7f6f1;
  --surface: #ffffff;
  --line: #dbe4e1;
  --ocean: #047b8e;
  --ocean-dark: #075568;
  --seafoam: #d7f1e8;
  --sun: #f4be56;
  --coral: #e6765d;
  --shadow: 0 20px 60px rgba(8, 35, 49, 0.08);
}

[data-theme="night"] {
  --ink: #e4f1ee;
  --ink-muted: #a3c3c0;
  --paper: #071d2b;
  --surface: #0c2a38;
  --line: #234553;
  --ocean: #4bc0cb;
  --ocean-dark: #4bc0cb;
  --seafoam: #153f45;
  --sun: #f4be56;
  --coral: #ff977e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.45;
}
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 10; background: var(--surface); color: var(--ink); padding: .6rem .8rem; border-radius: .4rem; }
.skip-link:focus { top: 1rem; }
.page-shell { max-width: 1240px; margin: 0 auto; padding: 0 30px; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.03em; font-size: 1.12rem; }
.brand-mark { font-family: Newsreader, serif; color: var(--ocean); font-size: 2rem; line-height: .6; transform: translateY(-1px); }
.header-meta { display: flex; align-items: center; gap: .5rem; font: 500 .74rem "DM Mono", monospace; color: var(--ink-muted); }
.preferences-button { padding: .35rem; font: 600 .74rem "DM Sans", sans-serif; }
.live-dot { width: 7px; height: 7px; background: #39ab8a; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, #39ab8a 17%, transparent); }
.icon-button, .text-button { border: 0; color: var(--ocean-dark); background: transparent; font-weight: 600; }
.icon-button { margin-left: .55rem; font-size: 1.1rem; padding: .35rem; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 82px 0 42px; }
.eyebrow { text-transform: uppercase; margin: 0 0 .45rem; font: 500 .71rem "DM Mono", monospace; letter-spacing: .09em; color: var(--ink-muted); }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.02; }
h1 { max-width: 650px; margin-bottom: .75rem; font: 500 clamp(3.2rem, 7vw, 5.9rem)/.91 Newsreader, Georgia, serif; }
h2 { margin-bottom: .6rem; font-size: clamp(1.65rem, 3vw, 2.45rem); }
.hero-copy { margin-bottom: 0; color: var(--ink-muted); font-size: 1.05rem; }
.controls { display: flex; gap: .7rem; min-width: min(100%, 402px); }
.controls label { display: grid; gap: .4rem; flex: 1; font-size: .72rem; font-weight: 700; color: var(--ink-muted); }
select { min-width: 0; padding: .72rem 2.2rem .72rem .75rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 16px) 53%, calc(100% - 12px) 53%; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.signal-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; padding: clamp(2rem, 5vw, 4rem); background: var(--ocean-dark); color: #f4fffd; border-radius: 1rem; box-shadow: var(--shadow); }
.signal-card::after { content: ""; position: absolute; inset: -160px -60px auto auto; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255,255,255,.035), 0 0 0 94px rgba(255,255,255,.025); }
.signal-copy { position: relative; z-index: 1; max-width: 650px; }
.status-row { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.55rem; font: 500 .75rem "DM Mono", monospace; color: #c5e6e0; }
.status-pill { padding: .33rem .55rem; border-radius: 99px; background: var(--seafoam); color: #075568; font-weight: 600; }
.signal-card h2 { margin-bottom: .8rem; font: 500 clamp(2.2rem, 4vw, 3.7rem)/.98 Newsreader, Georgia, serif; }
.signal-card p { margin-bottom: 1.5rem; color: #c5e6e0; font-size: 1.02rem; }
.signal-actions { display: flex; align-items: center; gap: 1rem; }
.primary-button { border: 1px solid transparent; border-radius: .45rem; padding: .75rem 1rem; background: #f5fbf8; color: #075568; font-weight: 700; box-shadow: 0 3px 0 rgba(0,0,0,.09); }
.primary-button:hover { transform: translateY(-1px); }
.signal-card .text-button { color: #e7fffa; }
.score-wrap { position: relative; z-index: 1; width: 178px; text-align: center; }
.score-ring { width: 154px; height: 154px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: conic-gradient(#f5c964 var(--score), rgba(255,255,255,.19) 0); }
.score-inner { width: 128px; height: 128px; display: grid; place-content: center; border-radius: 50%; background: var(--ocean-dark); }
.score-inner strong { display: block; font: 500 3.3rem/.9 Newsreader, Georgia, serif; }
.score-inner span { margin-top: .25rem; color: #c5e6e0; font: 500 .65rem "DM Mono", monospace; }
.score-wrap p { margin: .75rem 0 0; color: #e7fffa; font: 600 .78rem "DM Sans", sans-serif; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 82px 0 23px; }
.section-heading.compact { padding-top: 0; }
.section-heading h2 { margin: 0; font: 500 clamp(1.9rem, 3.2vw, 2.8rem)/1 Newsreader, Georgia, serif; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric { min-height: 182px; padding: 1.35rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.metric-icon { font-size: 1.15rem; line-height: 1; }
.metric-name { margin-top: auto; color: var(--ink-muted); font-size: .82rem; font-weight: 600; }
.metric-value { margin-top: .1rem; letter-spacing: -.04em; font: 500 2rem/1 Newsreader, Georgia, serif; }
.metric-note { margin: .45rem 0 0; color: var(--ocean-dark); font-size: .76rem; font-weight: 600; }
.metric-note.watch { color: var(--coral); }
.split-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.panel { padding: clamp(1.35rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; }
.panel-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.panel-heading h2 { margin: 0; font: 500 1.7rem/1 Newsreader, Georgia, serif; }
.sunset, .alert-count { color: var(--ink-muted); font: 500 .7rem "DM Mono", monospace; white-space: nowrap; }
.timeline-key { display: flex; gap: .8rem; margin-top: 1.65rem; color: var(--ink-muted); font-size: .7rem; }
.key { display: inline-block; width: 7px; height: 7px; border-radius: 99px; margin-right: .22rem; }
.excellent { background: var(--ocean); }.good { background: var(--sun); }.watch { background: var(--coral); }
.timeline { display: grid; grid-template-columns: repeat(8, 1fr); gap: .55rem; height: 115px; align-items: end; padding-top: 1.1rem; }
.hour { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: .45rem; text-align: center; font: 500 .61rem "DM Mono", monospace; color: var(--ink-muted); }
.bar-wrap { display: flex; align-items: end; height: 100%; background: color-mix(in srgb, var(--line) 45%, transparent); border-radius: .2rem .2rem 0 0; overflow: hidden; }
.bar { width: 100%; border-radius: .2rem .2rem 0 0; background: var(--sun); }
.bar.excellent { background: var(--ocean); }.bar.watch { background: var(--coral); }
.timeline-note { margin: 1.45rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .83rem; }
.alerts-list { display: grid; gap: .95rem; padding: 1.25rem 0; margin: 0; list-style: none; }
.alerts-list li { display: grid; grid-template-columns: 1.8rem 1fr; gap: .65rem; color: var(--ink-muted); font-size: .84rem; }
.alert-symbol { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--seafoam); color: var(--ocean-dark); font-size: .85rem; }
.alert-title { display: block; margin-bottom: .1rem; color: var(--ink); font-weight: 700; }
.subtle-button { width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .4rem; background: transparent; color: var(--ink); font-size: .78rem; font-weight: 700; }
.subtle-button:hover { border-color: var(--ocean); color: var(--ocean-dark); }
.saved-section { padding: 82px 0; }
.spot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.spot-card { min-height: 144px; padding: 1.1rem; display: flex; flex-direction: column; border-radius: .6rem; color: #f5fffc; background: var(--spot-color, var(--ocean-dark)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); text-align: left; }
.spot-card:hover { transform: translateY(-2px); }
.spot-card.is-selected { outline: 3px solid var(--sun); outline-offset: 3px; }
.spot-card small { color: rgba(255,255,255,.7); font: 500 .63rem "DM Mono", monospace; }
.spot-card strong { margin-top: auto; letter-spacing: -.025em; font-size: 1.03rem; }
.spot-card span { margin-top: .3rem; color: #d5f0e9; font-size: .75rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .72rem; }
dialog { width: min(100% - 2rem, 430px); padding: 0; border: 0; border-radius: .8rem; background: var(--surface); color: var(--ink); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(3, 18, 26, .65); backdrop-filter: blur(2px); }
dialog form { position: relative; padding: 2rem; }
dialog h2 { font: 500 2.2rem/.98 Newsreader, Georgia, serif; } dialog p:not(.eyebrow) { color: var(--ink-muted); font-size: .92rem; }
.dialog-close { position: absolute; right: 1rem; top: .8rem; border: 0; background: transparent; color: var(--ink-muted); font-size: 1.5rem; }
.check-row { display: flex; gap: .65rem; margin: .85rem 0; font-size: .85rem; } dialog .primary-button { margin-top: 1rem; background: var(--ocean); color: #fff; }
.preferences-field { display: grid; gap: .4rem; margin-top: .85rem; color: var(--ink-muted); font-size: .78rem; font-weight: 700; }
.preferences-field select { width: 100%; }
.preferences-note { margin: .85rem 0 0 !important; font-size: .78rem !important; }
.reset-preferences { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.reset-preferences summary { width: fit-content; color: var(--ocean-dark); cursor: pointer; font-size: .78rem; font-weight: 700; }
.reset-preferences p { margin: .65rem 0 !important; font-size: .78rem !important; }
.reset-preferences .text-button { padding: 0; color: var(--coral); font-size: .78rem; }
.toast { position: fixed; z-index: 20; bottom: 1.5rem; left: 50%; max-width: calc(100% - 2rem); padding: .65rem .85rem; border-radius: .4rem; background: var(--ink); color: var(--paper); transform: translate(-50%, 120px); opacity: 0; transition: .25s ease; font-size: .78rem; font-weight: 600; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.recommendation-why { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.28); }
.recommendation-why summary { width: fit-content; color: #e7fffa; cursor: pointer; font-size: .82rem; font-weight: 700; }
.recommendation-why ul { display: grid; gap: .42rem; margin: .8rem 0 0; padding: 0; list-style: none; color: #d0ece8; font-size: .8rem; }
.recommendation-why li::before { content: "✓"; margin-right: .5rem; color: var(--ocean); font-weight: 700; }
.recommendation-why p { margin: .75rem 0 0; color: #bfe0dc; font-size: .72rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 800px) {
  .hero { display: grid; padding-top: 56px; }.controls { min-width: 0; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.split-grid { grid-template-columns: 1fr; }.spot-grid { grid-template-columns: repeat(2, 1fr); }.site-footer { flex-direction: column; }
}
@media (max-width: 550px) {
  .page-shell { padding: 0 18px; }.site-header { height: 68px; }.header-meta #updated-at { display: none; }.preferences-button { padding-inline: .15rem; }.hero { padding-bottom: 28px; }.controls { display: grid; }.signal-card { grid-template-columns: 1fr; gap: 2rem; padding: 1.6rem; }.score-wrap { width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left; }.score-ring { width: 85px; height: 85px; margin: 0; }.score-inner { width: 70px; height: 70px; }.score-inner strong { font-size: 2rem; }.score-inner span { font-size: .5rem; }.score-wrap p { margin: 0; }.signal-card h2 { font-size: 2.25rem; }.signal-actions { align-items: start; flex-direction: column; }.section-heading { padding-top: 54px; }.metric { min-height: 148px; padding: 1rem; }.metric-value { font-size: 1.65rem; }.timeline { gap: .35rem; }.panel-heading { display: grid; }.sunset, .alert-count { margin-top: .3rem; }.saved-section { padding: 54px 0; }
}
