:root {
  --canvas: #faf9fe;
  --paper: #fff;
  --ink: #282245;
  --muted: #625d79;
  --line: #e8e3f4;
  --accent: #6245ce;
  --accent-hover: #4930af;
  --accent-soft: #f0eaff;
  --hero: #f3eeff;
  --green: #21674f;
  --green-soft: #e4f8ef;
  --success-line: #ccebdd;
  --radius: 18px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.9vw, 3.55rem); font-weight: 740; letter-spacing: -.058em; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); letter-spacing: -.03em; }
h3 { font-size: 1rem; letter-spacing: -.015em; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; }
.shell { width: min(1120px, 100%); padding-inline: 24px; margin-inline: auto; }
.skip { position: absolute; z-index: 4; inset: 8px auto auto 16px; padding: 8px 16px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.mast-inner { min-height: 68px; }
.wordmark, .foot-brand { color: var(--ink); font-weight: 750; text-decoration: none; letter-spacing: -.022em; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; white-space: nowrap; }
.wordmark:visited { color: var(--ink); }
.wordmark svg { flex: none; }
.brand-tld { color: var(--accent); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 630; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-hover); }

.intro { padding: 42px 0 24px; }
.home-intro { position: relative; margin: 24px 0 16px; padding: 42px 24px 38px; border-radius: 24px; background: var(--hero); text-align: center; }
.home-intro .zone-control { position: absolute; inset-inline-end: 18px; bottom: 18px; }
.inner-intro, .prose, .faq { width: min(100%, 780px); margin-inline: auto; }
.inner-intro { text-align: center; }
.kicker { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.lede { margin-top: 10px; color: var(--muted); font-size: 16px; }
.home-intro .lede { font-size: 17px; }
.zone-control { flex: none; min-height: 42px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--accent); font-size: 13px; font-weight: 680; cursor: pointer; }
.zone-control:hover { background: var(--accent-soft); border-color: #d5c9fb; }
.today-panel { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: 10px 14px; padding: 19px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.today-panel.is-confirmed { border-color: var(--success-line); background: #f4fcf8; }
.state-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.is-confirmed .state-icon { color: var(--green); background: var(--green-soft); }
.state-confirmed, .is-confirmed .state-clock { display: none; }
.is-confirmed .state-confirmed { display: block; }
.today-main h2 { font-size: 15px; }
.today-answer { margin-top: 4px; font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 720; line-height: 1.4; }
.is-confirmed .today-answer { color: var(--green); }
.today-note, .today-review { color: var(--muted); font-size: 13px; }
.today-note { margin-top: 6px; }
.today-review { white-space: nowrap; }
.status-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 20px #34275908; }
.panel-header { display: flex; justify-content: space-between; align-items: center; min-height: 53px; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.panel-header span { color: var(--muted); font-size: 12px; }
.panel-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 0 20px; }
.panel-footer a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font-size: 14px; font-weight: 680; text-decoration: none; }
.panel-footer a:hover { text-decoration: underline; }

.calendar-body { padding: 12px 16px 16px; }
.calendar-nav { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; font-size: 14px; font-weight: 730; }
.calendar-nav button { height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--accent); font-size: 25px; line-height: 1; cursor: pointer; }
.calendar-nav button:hover:not(:disabled) { background: var(--accent-soft); }
.calendar-nav button:disabled { opacity: .52; cursor: default; }
.calendar-table { width: 100%; margin-top: 6px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; text-align: center; font-variant-numeric: tabular-nums; }
.calendar-table th { color: var(--muted); font-size: 12px; font-weight: 620; }
.calendar-table td { height: 36px; padding: 0; }
.date-cell { display: grid; place-items: center; position: relative; width: 100%; min-height: 36px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; }
.date-cell[aria-current="date"] { border-color: #b5a4ef; }
.reset-date { background: var(--accent-soft); color: var(--accent-hover); font-weight: 740; cursor: pointer; }
.reset-date::after, .calendar-key span { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.reset-date::after { position: absolute; right: 5px; top: 4px; }
.reset-date:hover { border-color: var(--accent); }
.reset-date[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.calendar-key { display: flex; gap: 7px; align-items: center; padding: 8px 4px 0; color: var(--muted); font-size: 12px; }
.calendar-key span { flex: none; color: var(--accent); }
.calendar-selection { padding: 8px 10px; margin: 8px 4px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); }
.calendar-selection p { margin: 2px 0; }
.calendar-selection a { display: block; font-size: 13px; font-weight: 680; }
.calendar-selection time { font-size: 12px; color: var(--muted); }
.announcement-body { padding: 18px 20px 20px; }
.announcement-title { margin: 0 0 12px; font-size: clamp(1.2rem, 3vw, 1.45rem); line-height: 1.25; font-weight: 750; letter-spacing: -.027em; }
.announcement-post { margin: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbf9ff; }
.post-author { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-size: 14px; }
.post-author span { color: var(--muted); overflow-wrap: anywhere; }
.announcement-post blockquote, .post-summary { margin: 10px 0 0; }
.announcement-post blockquote p { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; }

.announcement-post figcaption { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
.announcement-post figcaption a { display: inline-block; min-height: 26px; }
.home-prose, .faq { margin-top: 36px; }
.article-body, .faq { padding: clamp(18px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.prose h2, .faq h2 { margin-bottom: 12px; text-align: center; }
.prose h2:not(:first-child) { margin-top: 27px; }
.prose h3 { margin: 22px 0 8px; }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 1.42em; }
.prose li + li { margin-top: 5px; }
.prose a { overflow-wrap: anywhere; }
.prose code { padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--accent-soft); overflow-wrap: anywhere; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 12px 0; font-weight: 650; cursor: pointer; }
.faq p { color: var(--muted); padding-bottom: 14px; }
.status-meta { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 0 12px; color: var(--muted); font-size: 13px; }
.history-meta, .history-list { width: min(100%, 940px); margin-inline: auto; }
.history-list { list-style: none; margin-block: 0 32px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.history-entry { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 8px 20px; align-items: start; padding: 16px 20px; }
.history-entry + .history-entry { border-top: 1px solid var(--line); }
.history-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; margin-bottom: 4px; color: var(--accent); font-size: 12px; font-weight: 720; }
.history-main h2 { font-size: 17px; }
.history-main p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.source-link { display: inline-block; font-size: 14px; font-weight: 660; }
.footer { margin-top: 52px; padding: 22px 0; background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { align-items: flex-start; }
.footer p { color: var(--muted); font-size: 14px; }
.footer nav { flex-shrink: 0; }
.footer nav a { min-height: 36px; }

@media (max-width: 920px) {
  .home-intro .zone-control { position: static; margin-top: 14px; }
}
@media (max-width: 820px) {
  .today-panel { grid-template-columns: 40px minmax(0, 1fr); }
  .today-review { grid-column: 2; }
  .history-entry { grid-template-columns: minmax(0, 1fr) auto; }
  .history-date { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .shell { padding-inline: 16px; }
  .mast-inner { min-height: 60px; gap: 6px; }
  nav a { padding-inline: 8px; font-size: 13px; }
  .intro { padding-top: 32px; }
  .home-intro { margin-top: 16px; padding: 26px 16px 22px; border-radius: 18px; }
  .home-intro .lede { font-size: 15px; }
  .today-panel { padding: 14px 12px; gap: 8px 10px; grid-template-columns: 34px minmax(0, 1fr); }
  .state-icon { width: 34px; height: 34px; border-radius: 11px; }
  .status-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-header, .announcement-body, .panel-footer { padding-inline: 16px; }
  .footer-inner { flex-direction: column; }
  .footer nav { flex-shrink: 1; }
}
@media (max-width: 440px) {
  .mast-inner { padding-block: 9px 6px; flex-direction: column; }
  .mast nav { justify-content: center; }
  .history-entry { grid-template-columns: minmax(0, 1fr); }
}


.hero-scope { max-width: 54ch; margin: 8px auto 0; color: var(--muted); font-size: 14px; }
.footer .wordmark { margin-bottom: 8px; }


.archive-table { width: min(100%, 940px); margin: 0 auto 25px; border: 1px solid var(--line); border-radius: var(--radius); border-spacing: 0; background: var(--paper); table-layout: fixed; overflow: hidden; }
.archive-date-col { width: 21%; }
.archive-source-col { width: 17%; }
.archive-table th, .archive-table td { padding: 10px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.archive-table thead th { font-size: 13px; }
.archive-table tbody th, .archive-table tbody td { font-size: 14px; }
.archive-table tbody th { color: var(--muted); font-weight: 600; }
.archive-table .archive-month th { background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.archive-month span, .archive-table td > p:not(.archive-event-title) { color: var(--muted); }
.archive-table tbody tr[id] { scroll-margin-top: 14px; }
.archive-table tbody tr:target { background: var(--hero); }
.archive-table tbody tr:last-child > * { border-bottom: 0; }
.archive-event-title { font-weight: 720; margin-bottom: 4px; }
.archive-stats, .recent-resets { padding: clamp(15px, 3vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.archive-stats { margin-bottom: 24px; }
.scope-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 8px; }
.scope-counts > div { padding: 8px 10px; border-radius: 9px; background: var(--accent-soft); }
.scope-counts dt { font-size: 13px; }
.scope-counts dd { margin: 0; font-size: 18px; font-weight: 720; }
.recent-resets { margin-top: 16px; }
.recent-resets ol { list-style: none; padding: 0; margin: 0 0 12px; }
.recent-resets li { display: flex; flex-wrap: wrap; gap: 0 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.recent-resets li time { color: var(--muted); font-size: 13px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.prose table th, .prose table td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.prose table th { background: var(--accent-soft); }
@media (max-width: 560px) {
  .archive-table th, .archive-table td { padding: 8px 6px; }
  .archive-table tbody th, .archive-table tbody td, .archive-table .source-link { font-size: 12px; }
  .archive-date-col { width: 24%; }
  .archive-source-col { width: 19%; }
}


.breadcrumb { justify-content: center; margin: 0 0 10px; color: var(--muted); }
.breadcrumb ol { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.breadcrumb li + li::before { content: '/'; margin-inline: 8px; }
.breadcrumb a { min-height: auto; padding: 4px 6px; font-size: inherit; color: var(--accent); }
