/* Snow Watch - Ramada Landscaping brand (Archivo / Archivo Narrow, deep green + cream, winter blue for live runs) */
:root {
  --ink: #16330F; --green: #2F6E25; --bright: #5BA946; --pale: #A9E08F; --brown: #64350F;
  --bg: #FCFAF5; --surface: #FFFFFF; --sand: #F5EFE2; --line: #E4DCC8; --fg: #1E2A1A; --muted: #5E6A58;
  --sky: #DCEBF5; --watch: #B8740F; --active: #1F5FA8; --complete: #2F6E25; --quiet: #5E6A58;
  --radius: 14px; --shadow: 0 1px 2px rgba(22,51,15,.06), 0 8px 24px -16px rgba(22,51,15,.25);
  --head: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; --ui: 'Archivo Narrow', 'Archivo', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1A0E; --surface: #162418; --sand: #1C2A1E; --line: #2A3A2C; --fg: #ECEFE6; --muted: #A3B09C; --sky: #1B2B3A; --pale: #7FBF6A; --quiet: #A3B09C;
  --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
} }
:root[data-theme="dark"] { --bg: #0F1A0E; --surface: #162418; --sand: #1C2A1E; --line: #2A3A2C; --fg: #ECEFE6; --muted: #A3B09C; --sky: #1B2B3A; --pale: #7FBF6A; --quiet: #A3B09C; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 16px/1.5 var(--head); }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 28px; }
.muted { color: var(--muted); font-family: var(--ui); font-weight: 500; font-size: .95rem; letter-spacing: .01em; }
.fine { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.h2 { font: 700 1.25rem/1.2 var(--head); margin: 0 0 14px; letter-spacing: -.01em; text-wrap: balance; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

/* header */
.top { background: var(--ink); color: #fff; }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--bright), var(--green)); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 11px 13px 13px 13px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: skewX(-12deg); border-radius: 0 0 0 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; } .brand-text span { font-family: var(--ui); color: var(--pale); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.phone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.1; }
.phone-label { font-family: var(--ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pale); }
.phone strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }

/* hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: 34px 30px; border-left: 6px solid var(--quiet); }
.hero[data-mode="watch"] .hero-inner { border-color: var(--watch); } .hero[data-mode="active"] .hero-inner { border-color: var(--active); }
.hero[data-mode="complete"] .hero-inner { border-color: var(--complete); } .hero[data-mode="quiet"] .hero-inner { border-color: var(--green); }
.eyebrow { margin: 0 0 8px; font-family: var(--ui); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--quiet); display: inline-block; }
.hero[data-mode="watch"] .dot { background: var(--watch); } .hero[data-mode="active"] .dot { background: var(--active); animation: pulse 1.6s ease-in-out infinite; }
.hero[data-mode="complete"] .dot, .hero[data-mode="quiet"] .dot { background: var(--green); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,95,168,.45);} 50% { box-shadow: 0 0 0 8px rgba(31,95,168,0);} }
@media (prefers-reduced-motion: reduce) { .dot { animation: none !important; } }
.hero-title { margin: 0; font: 800 clamp(2rem, 5vw, 3.1rem)/1.05 var(--head); letter-spacing: -.02em; text-wrap: balance; }
.hero-sub { margin: 10px 0 0; font-size: 1.1rem; max-width: 62ch; }
.hero-meta { margin: 14px 0 0; font-family: var(--ui); color: var(--muted); font-size: .92rem; display: flex; gap: 8px; flex-wrap: wrap; }

/* layout */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.grid-2.tight { gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-2.tight { grid-template-columns: 1fr; } }

/* zones */
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.zone { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 6px; min-width: 0; }
.zone-name { font-weight: 700; font-size: 1.02rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ui); font-size: .85rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--fg); width: fit-content; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--quiet); }
.pill[data-s="watch"]::before { background: var(--watch); }
.pill[data-s="dispatched"]::before, .pill[data-s="round1"]::before, .pill[data-s="round2"]::before, .pill[data-s="salting"]::before { background: var(--active); }
.pill[data-s="round1_done"]::before, .pill[data-s="clear"]::before { background: var(--complete); }
.zone-meta { color: var(--muted); font-family: var(--ui); font-size: .9rem; font-variant-numeric: tabular-nums; }
.zone-note { font-size: .92rem; }

/* weather */
.wx { background: var(--sky); border-radius: var(--radius); padding: 18px; min-width: 0; }
.wx-alert { background: var(--surface); border-left: 4px solid var(--watch); padding: 10px 12px; border-radius: 8px; margin: 0 0 10px; }
.wx-alert strong { display: block; } .wx-alert a { font-family: var(--ui); font-size: .9rem; }
.wx-ok { font-family: var(--ui); color: var(--muted); margin: 0 0 10px; }
.wx-now { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 0 0 14px; font-family: var(--ui); }
.wx-now strong { font: 700 1.6rem/1 var(--head); font-variant-numeric: tabular-nums; }
.gauge { background: var(--surface); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.gauge-head { display: flex; justify-content: space-between; font-family: var(--ui); margin-bottom: 8px; }
.gauge-head strong { font: 700 1.1rem var(--head); font-variant-numeric: tabular-nums; }
.gauge-bar { position: relative; height: 12px; border-radius: 6px; background: var(--sand); overflow: visible; }
.gauge-bar > span:first-child { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--pale), var(--active)); transition: width .6s ease; max-width: 100%; }
.gauge-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--brown); left: 50%; }
.gauge-text { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.periods { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.periods li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; background: var(--surface); border-radius: 8px; padding: 8px 12px; font-size: .95rem; }
.periods .pname { font-weight: 700; } .periods .psnow { font-family: var(--ui); font-weight: 700; color: var(--active); font-variant-numeric: tabular-nums; white-space: nowrap; }
.periods .psnow.none { color: var(--muted); font-weight: 500; }
.periods .pdesc { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
.hourly-wrap { overflow-x: auto; margin: 0 -4px 10px; padding: 0 4px; }
.hourly { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 6px; }
.hourly li { flex: none; width: 64px; background: var(--surface); border-radius: 8px; padding: 6px 4px; text-align: center; font-family: var(--ui); font-size: .8rem; line-height: 1.25; }
.hourly li strong { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
.hourly li.snow { outline: 2px solid var(--active); outline-offset: -2px; }

/* log */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.log li { position: relative; padding: 10px 0 14px 22px; }
.log li::before { content: ""; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--green); }
.log li.wx::before { border-color: var(--watch); } .log li.active::before { border-color: var(--active); }
.log time { display: block; font-family: var(--ui); color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.log .what { font-weight: 700; } .log .detail { color: var(--muted); }
.log .sample { font-family: var(--ui); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; background: var(--sand); padding: 1px 8px; border-radius: 999px; margin-left: 8px; color: var(--brown); }
.log .empty, .season .empty { color: var(--muted); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card p { margin: 0 0 12px; }
label { display: block; font-family: var(--ui); font-weight: 700; font-size: .9rem; margin: 10px 0 4px; }
select, input[type="text"] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .88rem; color: var(--muted); margin-top: 12px; }
.check input { margin-top: 3px; }
.btn { margin-top: 14px; font: 700 1rem var(--head); background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; }
.btn:hover { background: var(--ink); } .btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { margin: 10px 0 0; font-family: var(--ui); min-height: 1.3em; }
.form-msg.ok { color: var(--complete); } .form-msg.err { color: #A12B2B; }
.how dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.how dt { font-family: var(--ui); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); padding-top: 3px; }
.how dd { margin: 0; }

/* season table */
.table-wrap { overflow-x: auto; }
.season { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.season th, .season td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.season th { font-family: var(--ui); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); }

/* footer */
.foot { background: var(--sand); margin-top: 20px; }
.foot-row { padding-block: 24px; } .foot p { margin: 0 0 6px; }
.offline { background: #FFF4E0; color: #6B4A00; text-align: center; padding: 8px 12px; font-family: var(--ui); }
