Restyle the status page in Cottage's brand

The page (pages/, components/, styles/) is rewritten in Cottage's brand, replacing Mantine.
- Brand files: tokens, fonts and component CSS copied from Hearth; logo, pod row, status
  pill and banner ported from the brand handbook.
- Themes: light by default, dark when the OS asks.
- Services: grouped; each has a status pill, uptime and 90 daily bars (30 on phones).
- Bars: each bar has a text label, keyboard navigation and a day card.
- Response-time chart: optional, drawn in brand colours.
- Notices: colour-coded posted notices and planned maintenance.
- Incident history: by month, with the brand's empty state.

The check worker, D1 storage, types and Terraform are untouched, so upstream merges stay
clean. uptime.config.ts lists Cottage's services (website, dashboard, apps in US East).
`npm run dev` shows sample data (?sample=outage|maintenance|empty) since there's no D1.

Deploys are gated on the CLOUDFLARE_DEPLOY repository variable until launch, Wrangler
telemetry is off, and a Check workflow lints, type-checks and builds every pull request.
Removed upstream's issue-translation workflow, funding file and translations.
This commit is contained in:
Michael Kinder committed 2026-11-21 14:04:00 -05:00
1 parent 8035521268
commit fdc16007e3
54 files changed
+2197 -2705

No files matched your search

-33
View File
@@ -1,33 +0,0 @@
.header {
height: rem(56px);
margin-bottom: rem(100px);
background-color: var(--mantine-color-body);
border-bottom: rem(1px) solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));
}
.inner {
height: rem(56px);
display: flex;
justify-content: space-between;
align-items: center;
}
.link {
display: block;
line-height: 1;
padding: rem(8px) rem(12px);
border-radius: var(--mantine-radius-sm);
text-decoration: none;
color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-dark-0));
font-size: var(--mantine-font-size-sm);
font-weight: 500;
@mixin hover {
background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));
}
[data-mantine-color-scheme] &[data-active] {
background-color: var(--mantine-color-blue-filled);
color: var(--mantine-color-white);
}
}
+198
View File
@@ -0,0 +1,198 @@
/* ---------- base ---------- */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
.ct-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ct-num { text-align: right; font-variant-numeric: tabular-nums; }
.ct-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-5); }
.ct-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); max-width: 420px; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct-spin { animation: ct-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ct-spin { animation: none; } }
/* ---------- Logo ---------- */
.ct-logo { display: inline-flex; align-items: center; gap: 0.32em; color: inherit; line-height: 1; }
.ct-logo__mark { display: block; flex: none; }
.ct-logo__roof { stroke: var(--moss); }
.ct-logo__pod { fill: var(--moss); }
.ct-logo__pod--lit { fill: var(--hearth); }
.ct-logo__mark--mono .ct-logo__roof { stroke: currentColor; }
.ct-logo__mark--mono .ct-logo__pod { fill: currentColor; }
.ct-logo--lockup { align-items: flex-end; }
.ct-logo__word { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-variation-settings: 'opsz' 36; color: var(--ink); line-height: 0.8; padding-bottom: 0.13em; }
/* ---------- Button ---------- */
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-sans); font-weight: 600; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 120ms cubic-bezier(0.2, 0, 0, 1), border-color 120ms, color 120ms; }
.ct-btn--sm { height: var(--control-sm); padding: 0 var(--space-3); font-size: 14px; line-height: 20px; }
.ct-btn--md { height: var(--control-md); padding: 0 var(--space-4); font-size: 14px; line-height: 20px; }
.ct-btn--lg { height: var(--control-lg); padding: 0 var(--space-6); font-size: 16px; line-height: 24px; }
.ct-btn--block { width: 100%; }
.ct-btn--primary { background: var(--moss); color: var(--on-moss); }
.ct-btn--primary:hover { background: var(--moss-hover); }
.ct-btn--secondary { background: var(--paper-raised); color: var(--ink); border-color: var(--line-strong); }
.ct-btn--secondary:hover { background: var(--paper-sunken); }
.ct-btn--quiet { background: transparent; color: var(--ink); }
.ct-btn--quiet:hover { background: var(--paper-sunken); }
.ct-btn--danger { background: var(--paper-raised); color: var(--danger); border-color: var(--danger); }
.ct-btn--danger:hover { background: var(--danger-soft); }
.ct-btn--inverse { background: transparent; color: var(--on-moss); border-color: var(--on-moss); }
.ct-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ct-btn__icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
/* ---------- TextField ---------- */
.ct-field { display: flex; flex-direction: column; gap: var(--space-2); }
.ct-field__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ct-field__control { display: flex; align-items: stretch; background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.ct-field__control:focus-within { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); border-color: var(--focus); }
.ct-field__control--sm { height: var(--control-sm); }
.ct-field__control--md { height: var(--control-md); }
.ct-field__control--lg { height: var(--control-lg); }
.ct-field__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 var(--space-3); font: inherit; font-size: 15px; color: var(--ink); outline: none; box-shadow: none !important; }
.ct-field__input::placeholder { color: var(--ink-subtle); }
.ct-field__affix { display: inline-flex; align-items: center; padding: 0 var(--space-3); background: var(--paper-sunken); color: var(--ink-muted); font-size: 14px; border-left: 1px solid var(--line); }
.ct-field__affix:first-child { border-left: 0; border-right: 1px solid var(--line); }
.ct-field__hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.ct-field__error { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--danger); }
.ct-field--error .ct-field__control { border-color: var(--danger); }
/* ---------- Badge ---------- */
.ct-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-xs); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.ct-badge--neutral { background: var(--paper-sunken); color: var(--ink-muted); }
.ct-badge--outline { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ct-badge--moss { background: var(--moss-soft); color: var(--moss); }
.ct-badge--hearth { background: var(--hearth-soft); color: var(--hearth-ink); }
.ct-badge--honey { background: var(--honey-soft); color: var(--honey-ink); }
.ct-badge__dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--honey); box-shadow: 0 0 0 1px var(--honey-ink); }
/* ---------- StatusPill ---------- */
.ct-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--radius-full); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.ct-pill--success { background: var(--success-soft); color: var(--success); }
.ct-pill--warning { background: var(--warning-soft); color: var(--warning); }
.ct-pill--danger { background: var(--danger-soft); color: var(--danger); }
.ct-pill--neutral { background: var(--paper-sunken); color: var(--ink-muted); }
/* ---------- Banner ---------- */
.ct-banner { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); }
.ct-banner__icon { flex: none; margin-top: 2px; }
.ct-banner__body { flex: 1; min-width: 0; }
.ct-banner__title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ct-banner__text { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ct-banner__action { flex: none; align-self: center; }
.ct-banner--info { background: var(--info-soft); color: var(--info); }
.ct-banner--success { background: var(--success-soft); color: var(--success); }
.ct-banner--warning { background: var(--warning-soft); color: var(--warning); }
.ct-banner--danger { background: var(--danger-soft); color: var(--danger); }
/* ---------- AppIcon ---------- */
.ct-appicon { display: inline-flex; flex: none; align-items: center; justify-content: center; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ct-appicon__letter { font-family: var(--font-display); font-weight: 600; color: var(--moss); background: var(--moss-soft); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-variation-settings: 'opsz' 24; }
/* ---------- AppCard ---------- */
.ct-appcard { position: relative; display: flex; flex-direction: column; gap: var(--space-3); min-height: 196px; box-sizing: border-box; padding: var(--space-5); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: box-shadow 120ms, border-color 120ms; }
.ct-appcard:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.ct-appcard__head { display: flex; gap: var(--space-3); align-items: center; }
.ct-appcard__titles { min-width: 0; }
.ct-appcard__name { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.ct-appcard__link { color: inherit; text-decoration: none; }
.ct-appcard__link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-md); }
.ct-appcard__cat { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.ct-appcard__tagline { margin: 0; flex: 1; font-size: 14px; line-height: 20px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-appcard__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.ct-appcard__price { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ct-appcard__price strong { color: var(--ink); font-weight: 600; }
/* ---------- PriceEstimate ---------- */
.ct-price { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: var(--space-6); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ct-price__rows { display: flex; flex-direction: column; }
.ct-stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; border-bottom: 1px solid var(--line); }
.ct-stepper:last-child { border-bottom: 0; }
.ct-stepper__label { font-size: 14px; line-height: 20px; font-weight: 600; }
.ct-stepper__control { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; height: var(--control-md); }
.ct-stepper__btn { width: 40px; height: 100%; border: 0; background: var(--paper-raised); color: var(--ink); font-size: 18px; cursor: pointer; }
.ct-stepper__btn:hover { background: var(--paper-sunken); }
.ct-stepper__btn:disabled { color: var(--ink-subtle); cursor: not-allowed; background: var(--paper-raised); }
.ct-stepper__value { min-width: 96px; text-align: center; font-size: 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 38px; }
.ct-price__total { display: flex; flex-direction: column; justify-content: center; padding: var(--space-5); background: var(--paper-sunken); border-radius: var(--radius-md); }
.ct-price__caption { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
.ct-price__amount { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 52px; color: var(--hearth-ink); font-variation-settings: 'opsz' 72; font-variant-numeric: tabular-nums lining-nums; }
.ct-price__amount span { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; }
.ct-price__hourly { margin: var(--space-2) 0 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ct-price__note { margin: var(--space-3) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 640px) { .ct-price { grid-template-columns: 1fr; } }
/* ---------- BalanceCard ---------- */
.ct-balance { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); padding: var(--space-5); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.ct-balance__label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
.ct-balance__amount { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-balance__runway { margin: 0 0 var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ct-balance__runway--warning { color: var(--warning); font-weight: 600; }
.ct-balance__runway--danger { color: var(--danger); font-weight: 600; }
.ct-balance--compact { padding: var(--space-3); align-items: stretch; }
.ct-balance--compact .ct-balance__amount { font-size: 18px; line-height: 26px; }
.ct-balance--compact .ct-balance__runway { font-size: 12px; line-height: 16px; margin-bottom: var(--space-2); }
/* ---------- AppTable ---------- */
.ct-table-wrap { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.ct-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.ct-table th { height: 40px; padding: 0 var(--space-4); text-align: left; font-weight: 600; color: var(--ink-muted); background: var(--paper-sunken); border-bottom: 1px solid var(--line); }
.ct-table th.ct-num { text-align: right; }
.ct-table td { height: var(--table-row); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.ct-table tr:last-child td { border-bottom: 0; }
.ct-table tbody tr:hover td { background: var(--paper-sunken); cursor: pointer; }
.ct-table__app { display: flex; align-items: center; gap: var(--space-3); }
.ct-table__name { margin: 0; font-weight: 600; }
.ct-table__type { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.ct-table__addr { color: var(--ink-muted); font-size: 13px; }
.ct-table__size { color: var(--ink-muted); font-size: 13px; white-space: nowrap; }
/* ---------- EmptyState ---------- */
.ct-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); background: var(--paper-raised); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.ct-empty__title { margin: var(--space-2) 0 0; font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; font-variation-settings: 'opsz' 24; }
.ct-empty__text { margin: 0; max-width: 420px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ct-empty__actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; justify-content: center; }
/* ---------- PodRow + RoofRule ---------- */
.ct-podrow { display: block; flex: none; }
.ct-podrow__roof { stroke: var(--moss); }
.ct-pod--full { fill: var(--moss); }
.ct-pod--lit { fill: var(--hearth); }
.ct-pod--empty { fill: var(--moss-soft); stroke: var(--moss); stroke-width: 1.5; }
.ct-roof-rule { display: flex; align-items: center; gap: var(--space-3); width: 100%; }
.ct-roof-rule__line { flex: 1; height: 1px; background: var(--line); }
.ct-roof-rule__peak { flex: none; stroke: var(--moss); }
/* ---------- SiteHeader ---------- */
.ct-site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.ct-site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); height: var(--site-header-height); max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }
.ct-site-header__home { display: inline-flex; text-decoration: none; border-radius: var(--radius-sm); }
.ct-site-header__nav { display: flex; gap: var(--space-8); }
.ct-site-header__link { position: relative; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); text-decoration: none; padding: var(--space-2) 0; }
.ct-site-header__link:hover, .ct-site-header__link.is-current { color: var(--ink); }
.ct-site-header__link.is-current::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--moss); border-radius: 2px; }
.ct-site-header__actions { display: flex; gap: var(--space-2); }
@media (max-width: 1023px) { .ct-site-header__nav { display: none; } }
/* ---------- AppSidebar ---------- */
.ct-sidebar { display: flex; flex-direction: column; width: var(--sidebar-width); box-sizing: border-box; min-height: 100%; padding: var(--space-5) var(--space-4); background: var(--paper-sunken); border-right: 1px solid var(--line); }
.ct-sidebar__brand { height: 40px; display: flex; align-items: center; padding: 0 var(--space-1); margin-bottom: var(--space-6); }
.ct-sidebar__nav { display: flex; flex-direction: column; gap: var(--space-1); }
.ct-sidebar__item { display: flex; align-items: center; gap: var(--space-3); height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.ct-sidebar__item:hover { background: var(--paper-raised); color: var(--ink); }
.ct-sidebar__item.is-active { background: var(--moss-soft); color: var(--moss); }
.ct-sidebar__rule { border: 0; border-top: 1px solid var(--line); margin: var(--space-3) 0; width: 100%; }
.ct-sidebar__foot { margin-top: auto; padding-top: var(--space-6); }
/* ---------- Layout helpers used by the page showcases ---------- */
.ct-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }
.ct-band { padding: var(--space-24) 0; }
.ct-band--sunken { background: var(--paper-sunken); }
.ct-band--moss { background: var(--moss); color: var(--on-moss); }
.ct-eyebrow { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss); }
.ct-display-xl { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 68px; letter-spacing: -0.02em; font-variation-settings: 'opsz' 96; }
.ct-display-l { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 52px; letter-spacing: -0.015em; font-variation-settings: 'opsz' 72; }
.ct-h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 46px; letter-spacing: -0.01em; font-variation-settings: 'opsz' 48; }
.ct-h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; font-variation-settings: 'opsz' 36; }
.ct-h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; font-variation-settings: 'opsz' 24; }
.ct-lede { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.ct-muted { color: var(--ink-muted); }
.ct-caption { font-size: 12px; line-height: 16px; color: var(--ink-subtle); font-weight: 500; }
+33
View File
@@ -0,0 +1,33 @@
/* Self-hosted fonts (SIL OFL 1.1), latin subset. */
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url(/fonts/Fraunces-400-700.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Hanken Grotesk';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url(/fonts/HankenGrotesk-400-700.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/fonts/JetBrainsMono-400.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/fonts/JetBrainsMono-500.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
+124
View File
@@ -0,0 +1,124 @@
/* Cottage — generated from tokens.json */
:root, [data-theme="light"] {
--paper: #FBF7EF;
--paper-raised: #FFFFFF;
--paper-sunken: #F3ECDF;
--ink: #23201B;
--ink-muted: #5F584D;
--ink-subtle: #6F675A;
--moss: #2F5D46;
--moss-hover: #264D3A;
--on-moss: #FFFFFF;
--moss-soft: #E3EDE5;
--hearth: #C2541C;
--on-hearth: #FFFFFF;
--hearth-ink: #A3441A;
--hearth-soft: #F8E6DA;
--honey: #E5B54A;
--honey-ink: #7A5A10;
--honey-soft: #FAF0D4;
--line: #E4DACA;
--line-strong: #958670;
--focus: var(--moss);
--success: #2A7349;
--success-soft: #E2F0E6;
--warning: #8C5900;
--warning-soft: #FBEFD6;
--danger: #B3261E;
--danger-soft: #FBE4E1;
--info: #2F5E8A;
--info-soft: #E3ECF5;
--scrim: rgba(35, 32, 27, 0.48);
--shadow-sm: 0 1px 2px rgba(35, 32, 27, 0.06);
--shadow-md: 0 6px 16px rgba(35, 32, 27, 0.08), 0 1px 3px rgba(35, 32, 27, 0.06);
--shadow-lg: 0 20px 48px rgba(35, 32, 27, 0.14), 0 2px 6px rgba(35, 32, 27, 0.06);
}
[data-theme="dark"] {
--paper: #191714;
--paper-raised: #221F1B;
--paper-sunken: #14120F;
--ink: #F2ECE0;
--ink-muted: #B8AE9D;
--ink-subtle: #8F8676;
--moss: #86BD9F;
--moss-hover: #9CCBB1;
--on-moss: #10201A;
--moss-soft: #1F2E26;
--hearth: #EE8A50;
--on-hearth: #2A1408;
--hearth-ink: #F29B66;
--hearth-soft: #3A2418;
--honey: #E9BF5C;
--honey-ink: #F0CB72;
--honey-soft: #352B14;
--line: #36322B;
--line-strong: #76705F;
--focus: var(--moss);
--success: #6FC08E;
--success-soft: #1B2C21;
--warning: #E2A93B;
--warning-soft: #33280F;
--danger: #F08A80;
--danger-soft: #3A1D1A;
--info: #8DB8E3;
--info-soft: #1A2633;
--scrim: rgba(0, 0, 0, 0.6);
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
--shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45);
--shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
}
:root {
--space-0-5: 2px;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-8: 32px;
--space-10: 40px;
--space-12: 48px;
--space-16: 64px;
--space-20: 80px;
--space-24: 96px;
--space-32: 128px;
--radius-xs: 4px;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 24px;
--radius-full: 9999px;
--container-max: 1200px;
--prose-max: 720px;
--dashboard-max: 1120px;
--site-header-height: 72px;
--topbar-height: 56px;
--sidebar-width: 248px;
--control-sm: 32px;
--control-md: 40px;
--control-lg: 48px;
--table-row: 52px;
--app-icon-md: 40px;
--app-icon-lg: 64px;
--bp-sm: 640px;
--bp-md: 768px;
--bp-lg: 1024px;
--bp-xl: 1280px;
--font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
--font-sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
.display-xl { font-family: var(--font-display); font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: 'opsz' 96; }
.display-l { font-family: var(--font-display); font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: -0.015em; font-variation-settings: 'opsz' 72; }
.h1 { font-family: var(--font-display); font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: 'opsz' 48; }
.h2 { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: 'opsz' 36; }
.h3 { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; font-variation-settings: 'opsz' 24; }
.h4 { font-family: var(--font-sans); font-size: 18px; line-height: 26px; font-weight: 600; }
.body-l { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.body-s { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; }
.eyebrow { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; }
.mono { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 400; }
.mono-s { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; }
+155
View File
@@ -0,0 +1,155 @@
/* Cottage status page. Builds on styles/brand (tokens + component CSS copied from Hearth);
only layout and status-specific pieces live here. Tokens only: no hard-coded colours. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body { min-height: 100vh; display: flex; flex-direction: column; }
#__next { flex: 1; display: flex; flex-direction: column; }
a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.ct-btn, .ct-site-header__link, .ct-site-header__home, .st-footer__brand { text-decoration: none; }
.ct-btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.ct-h1 { color: var(--ink); }
.st-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------- layout ---------- */
.st-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }
.st-container--narrow { max-width: calc(880px + 2 * var(--space-8)); }
.st-main { flex: 1; padding: var(--space-16) 0 var(--space-20); }
@media (max-width: 639px) {
.st-container { padding: 0 var(--space-5); }
.st-main { padding: var(--space-10) 0 var(--space-16); }
}
/* ---------- header ---------- */
.st-header__home { display: inline-flex; align-items: flex-end; gap: var(--space-3); }
.st-header__tag { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); padding: 0 0 1px var(--space-3); border-left: 1px solid var(--line-strong); }
.st-header__nav { display: flex; gap: var(--space-8); margin-right: auto; margin-left: var(--space-4); }
@media (max-width: 1023px) {
.st-header__nav { gap: var(--space-5); margin-left: 0; }
}
@media (max-width: 767px) {
/* nav drops to a second row so incident history stays one tap away */
.ct-site-header__inner { flex-wrap: wrap; height: auto; padding: var(--space-3) var(--space-5) 0; gap: var(--space-3) var(--space-4); }
.st-header__actions .ct-btn--quiet { display: none; }
.st-header__nav { order: 3; width: 100%; margin: 0; gap: var(--space-6); }
.st-header__nav .ct-site-header__link { padding: var(--space-2) 0 var(--space-3); }
.st-header__nav .ct-site-header__link.is-current::after { bottom: -1px; }
}
/* ---------- hero ---------- */
.st-hero { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-12); }
.st-hero .ct-podrow { margin-bottom: var(--space-3); }
.st-hero__title { display: flex; align-items: center; gap: var(--space-4); }
.st-hero__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-full); }
.st-hero__icon svg { width: 18px; height: 18px; }
.st-tone--success { background: var(--success-soft); color: var(--success); }
.st-tone--warning { background: var(--warning-soft); color: var(--warning); }
.st-tone--danger { background: var(--danger-soft); color: var(--danger); }
.st-tone--neutral { background: var(--paper-sunken); color: var(--ink-muted); }
.st-hero__lede { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.st-hero__sep { margin: 0 var(--space-2); color: var(--ink-subtle); }
.st-notices { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; margin-top: var(--space-5); }
.st-upcoming { width: 100%; margin-top: var(--space-2); }
.st-upcoming > .ct-btn { margin-left: calc(-1 * var(--space-3)); }
.st-upcoming .st-notices { margin-top: var(--space-2); }
@media (max-width: 639px) {
.st-hero__title { font-size: 32px; line-height: 38px; font-variation-settings: 'opsz' 36; align-items: flex-start; }
.st-hero__icon { width: 36px; height: 36px; margin-top: 1px; }
}
/* ---------- notices (Banner) ---------- */
.ct-banner__text p { margin: 0; }
.st-notice__when { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.st-notice__body { margin-top: var(--space-1) !important; color: var(--ink); white-space: pre-line; }
.st-notice__affected { margin-top: var(--space-2) !important; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
/* ---------- service groups ---------- */
.st-groups { display: flex; flex-direction: column; gap: var(--space-8); }
.st-group { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.st-group__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-5); background: var(--paper-sunken); border-bottom: 1px solid var(--line); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.st-group__name { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.st-group__count { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.st-group__list { list-style: none; margin: 0; padding: 0; }
.st-monitor { padding: var(--space-5); border-top: 1px solid var(--line); }
.st-monitor:first-child { border-top: 0; }
.st-monitor__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.st-monitor__titles { min-width: 0; }
.st-monitor__name { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.st-monitor__name a { color: inherit; text-decoration: none; }
.st-monitor__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.st-monitor__desc { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.st-monitor__meta { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.st-monitor__uptime { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-monitor__uptime strong { color: var(--ink); font-weight: 600; }
.st-monitor__nodata { margin: var(--space-3) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
@media (max-width: 639px) {
.st-monitor { padding: var(--space-4); }
.st-monitor__head { flex-direction: column; gap: var(--space-2); }
}
/* ---------- 90-day bars ---------- */
.st-bars-wrap { margin-top: var(--space-4); }
.st-bars { position: relative; display: flex; gap: 2px; height: 32px; }
.st-bar { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 2px; cursor: default; transition: opacity 120ms cubic-bezier(0.2, 0, 0, 1); }
.st-bar--success { background: var(--success); }
.st-bar--warning { background: var(--warning); }
.st-bar--danger { background: var(--danger); }
.st-bar--neutral { background: var(--line); }
.st-bars:hover .st-bar { opacity: 0.55; }
.st-bars .st-bar:hover, .st-bars .st-bar:focus-visible { opacity: 1; }
.st-bar:focus-visible { box-shadow: 0 0 0 2px var(--paper-raised), 0 0 0 4px var(--focus); position: relative; z-index: 1; }
.st-bars__axis { display: flex; justify-content: space-between; margin-top: var(--space-2); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
/* phones show the last 30 days */
.st-bars__from--short { display: none; }
@media (max-width: 639px) {
.st-bars { height: 28px; }
.st-bar:nth-child(-n+60) { display: none; }
.st-bars__from--long { display: none; }
.st-bars__from--short { display: inline; }
}
.st-daycard { position: absolute; bottom: calc(100% + var(--space-2)); z-index: 5; width: max-content; max-width: min(340px, 80vw); padding: var(--space-3) var(--space-4); background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); pointer-events: none; }
.st-daycard p { margin: 0; }
.st-daycard__date { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.st-daycard__line { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.st-daycard__events { margin: var(--space-2) 0 0; padding: var(--space-2) 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--ink-muted); display: flex; flex-direction: column; gap: var(--space-1); }
.st-daycard__time { font-size: 12px; color: var(--ink); }
/* ---------- response times ---------- */
.st-disclosure { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-3); margin-left: calc(-1 * var(--space-2)); height: var(--control-sm); padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent; font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); cursor: pointer; transition: background-color 120ms cubic-bezier(0.2, 0, 0, 1); }
.st-disclosure:hover { background: var(--paper-sunken); color: var(--ink); }
.st-disclosure svg { transition: transform 200ms cubic-bezier(0.2, 0, 0, 1); }
.st-disclosure svg.is-open { transform: rotate(90deg); }
.st-chart { height: 168px; margin-top: var(--space-3); }
@media (prefers-reduced-motion: reduce) {
.st-disclosure svg, .st-bar { transition: none; }
}
.st-note { margin: var(--space-8) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
/* ---------- incident history ---------- */
.st-pagehead { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-10); }
.st-pagehead .ct-lede { max-width: 560px; }
.st-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.st-monthnav { display: flex; align-items: center; gap: var(--space-3); }
.st-monthnav .ct-btn { width: var(--control-sm); padding: 0; }
.st-monthnav__label { margin: 0; min-width: 160px; text-align: center; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.st-select select { height: var(--control-md); min-width: 200px; padding: 0 var(--space-10) 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink); font: inherit; font-size: 14px; 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% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.st-select select:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); }
.st-pagehead .ct-h1 { font-size: 40px; }
@media (max-width: 639px) {
.st-pagehead .ct-h1 { font-size: 32px; line-height: 38px; }
.st-select, .st-select select { width: 100%; }
}
/* ---------- footer ---------- */
.st-footer { background: var(--paper-sunken); padding: var(--space-12) 0 var(--space-8); color: var(--ink-muted); }
.st-footer__top { display: flex; align-items: center; gap: var(--space-5); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.st-footer__brand { display: inline-flex; color: var(--ink); border-radius: var(--radius-sm); }
.st-footer__about { margin: 0; max-width: 520px; font-size: 14px; line-height: 20px; }
.st-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding-top: var(--space-6); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
.st-footer__bottom a { color: var(--ink-subtle); }
.st-footer__bottom a:hover { color: var(--ink-muted); }
/* ---------- embed (#monitor-id) ---------- */
.st-embed { padding: var(--space-4); background: var(--paper-raised); }