@import url("./brand-status.css");

@font-face { font-family: Inter; src: url("./inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Grotesk; src: url("./grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Instrument; src: url("./instrument-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --surface: #fff;
  --ink: #202d27;
  --muted: #59645d;
  --faint: #647067;
  --green: #224e3b;
  --paper: #f5f6ef;
  --line: #d9dfd6;
  --line-strong: #d2d9cf;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Grotesk, Inter, sans-serif;
  --serif: Instrument, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--green); }
button { font: inherit; }
:focus-visible { outline: 3px solid #14775a; outline-offset: 5px; }
::selection { background: #dbe8d8; color: #173025; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
em { font-family: var(--serif); font-weight: 400; }
.shell { width: min(1180px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 2; padding: 12px 20px; background: var(--green); color: #fff; border-radius: 5px; }
.skip-link:focus { top: 12px; color: #fff; }
.site-header { display: flex; align-items: center; gap: 24px; min-height: 94px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 650; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.brand img { flex-shrink: 0; }
.brand-caption { border-left: 1px solid var(--line); padding-left: 24px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.header-links { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.website-link, .support-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; font-size: 12px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.support-link { padding: 10px 16px; border: 1px solid var(--green); border-radius: 5px; color: var(--green); }
.support-link:hover { background: var(--paper); }
.overview-grid { display: grid; grid-template-columns: 1fr 1.06fr; gap: 70px; align-items: center; padding-block: 62px 48px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 650; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.hero h1 { margin-top: 18px; font-size: clamp(46px, 4.5vw, 66px); letter-spacing: -.055em; line-height: 1.05; }
.hero h1 em { color: var(--green); letter-spacing: -.035em; }
.hero-description { max-width: 355px; margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.summary-panel { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--state-fg); border-radius: 8px; padding: 25px 27px 17px; min-width: 0; }
.summary-label { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.summary-copy { display: flex; align-items: flex-start; gap: 16px; }
.summary-indicator { width: 42px; height: 42px; border-radius: 50%; background: var(--state-bg); color: var(--state-fg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 23px; font-weight: 500; }
.summary-copy h2 { font-size: 25px; letter-spacing: -.025em; max-width: 310px; line-height: 1.25; }
.summary-copy p { color: var(--muted); font-size: 14px; margin-top: 9px; line-height: 1.8; }
.summary-meta { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 15px; font-size: 12px; color: var(--muted); }
.refresh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
#refresh-state { font-size: 12px; }
#refresh-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; border: 0; border-radius: 4px; background: transparent; color: var(--green); padding: 7px 0 7px 8px; min-height: 44px; cursor: pointer; font-size: 12px; font-weight: 600; }
#refresh-button span { font-size: 20px; line-height: 1; }
#refresh-button:hover { color: #163c2a; text-decoration: underline; text-underline-offset: 4px; }
#refresh-button:disabled { cursor: wait; opacity: .65; }
.page-nav { display: flex; flex-wrap: wrap; gap: 0 32px; border-block: 1px solid var(--line); }
.page-nav a { display: inline-flex; align-items: center; min-height: 57px; font-size: 14px; text-decoration: none; font-weight: 550; }
.page-nav a:hover { text-decoration: underline; }
.services-section, .history-section, .incidents-section { margin-top: 57px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { margin-top: 10px; font-size: 33px; }
.section-note { color: var(--muted); font-size: 12px; }
.service-list-heading { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 12px 20px; background: var(--paper); border-radius: 6px 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 550; }
.service-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 20px; border-bottom: 1px solid var(--line); }
.service-card > div:first-child { min-width: 0; }
.service-heading { display: flex; align-items: center; gap: 16px; }
.service-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.service-card h3 { font-size: 19px; letter-spacing: -.025em; }
.service-description { margin: 7px 0 0 32px; max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.service-checked { margin: 6px 0 0 32px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.status-chip { display: inline-flex; gap: 7px; align-items: center; padding: 6px 10px; border: 1px solid transparent; border-radius: 5px; background: var(--state-bg); color: var(--state-fg); font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
[data-status="operational"] { --state-fg: var(--status-ok-fg); --state-bg: var(--status-ok-bg); }
[data-status="degraded"] { --state-fg: var(--status-warn-fg); --state-bg: var(--status-warn-bg); }
[data-status="outage"] { --state-fg: var(--status-error-fg); --state-bg: var(--status-error-bg); }
[data-status="unknown"] { --state-fg: var(--status-neutral-fg); --state-bg: var(--status-neutral-bg); }
.section-description { color: var(--muted); font-size: 14px; margin-top: -5px; max-width: 790px; line-height: 1.8; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 19px 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend-mark { display: inline-block; width: 9px; height: 9px; background: var(--state-fg); border-radius: 2px; }
.legend-mark[data-status="unknown"] { background: var(--line-strong); }
.history-list { border-top: 1px solid var(--line); }
.history-card { padding: 25px 0 24px; border-bottom: 1px solid var(--line); }
.history-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.history-heading h3 { font-size: 17px; letter-spacing: -.02em; }
.history-metric { font-size: 12px; color: var(--muted); text-align: right; }
.history-metric strong { color: var(--ink); font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; }
.history-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 5px; height: 34px; margin-top: 15px; }
.history-bar { background: linear-gradient(to top, var(--state-fg) var(--coverage, 0%), var(--line-strong) var(--coverage, 0%)); border-radius: 3px; min-width: 0; }
.history-bar[data-status="unknown"] { background: var(--line-strong); }
.history-labels { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 12px; margin-top: 9px; }
.history-coverage { margin-top: 7px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.method-note { color: var(--muted); font-size: 14px; max-width: 840px; margin-top: 20px; line-height: 1.8; }
.empty-state, .notice { padding: 26px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.incident { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 26px 28px; margin-top: 17px; }
.incident-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.incident h3 { font-size: 21px; letter-spacing: -.025em; }
.incident-date { color: var(--faint); font-size: 12px; margin-top: 7px; }
.incident-scope { color: var(--muted); font-size: 14px; margin-top: 14px; }
.incident-updates { list-style: none; padding: 0 0 0 11px; margin: 24px 0 0; border-left: 1px solid var(--line); }
.incident-updates li { position: relative; padding: 0 0 19px 16px; }
.incident-updates li:last-child { padding-bottom: 0; }
.incident-updates li::before { content: ""; position: absolute; left: -15px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #748474; box-shadow: 0 0 0 4px var(--surface); }
.incident-updates p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.incident-updates time { font-size: 12px; color: var(--faint); display: block; margin-top: 5px; }
.incident-updates strong { color: var(--ink); font-weight: 600; }
.about-panel { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; margin-top: 64px; padding: 36px; background: var(--paper); border-radius: 8px; }
.about-heading h2 { font-size: 31px; line-height: 1.2; margin-top: 13px; }
.about-heading h2 em { color: var(--green); }
.about-copy { display: grid; gap: 22px; }
.about-copy h3 { font-size: 17px; }
.about-copy p { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.8; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 55px; padding: 22px 0 29px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer p span { padding: 0 6px; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .site-header { gap: 20px; }
  .brand-caption { padding-left: 20px; }
  .header-links { gap: 20px; }
  .website-link { display: none; }
  .overview-grid { gap: 32px; padding-block: 48px 39px; }
  .hero h1 { font-size: 54px; }
  .summary-panel { padding: 23px 23px 15px; }
  .summary-copy { gap: 13px; }
  .summary-copy h2 { font-size: 23px; }
  .refresh-row { gap: 8px; align-items: flex-start; }
  #refresh-state { padding-top: 11px; }
  .about-panel { gap: 36px; padding: 30px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 78px; gap: 14px; flex-wrap: wrap; }
  .brand { font-size: 25px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-caption { display: none; }
  .support-link { font-size: 12px; padding-inline: 11px; gap: 9px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-block: 34px 31px; }
  .hero h1 { margin-top: 14px; font-size: 48px; }
  .hero h1 br { display: none; }
  .hero h1 em { display: block; }
  .hero-description { max-width: 380px; margin-top: 16px; font-size: 14px; }
  .summary-panel { padding: 21px 20px 12px; }
  .summary-label { margin-bottom: 18px; }
  .summary-copy h2 { font-size: 24px; max-width: none; }
  .summary-meta { margin-top: 19px; }
  .page-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding-block: 5px; }
  .page-nav a { min-height: 44px; font-size: 13px; }
  .page-nav a:last-child { grid-column: 1 / -1; }
  .services-section, .history-section, .incidents-section { margin-top: 39px; }
  .section-heading { gap: 13px; flex-wrap: wrap; margin-bottom: 22px; }
  .section-heading h2 { font-size: 29px; margin-top: 8px; }
  .service-list-heading { padding-inline: 0; background: transparent; }
  .service-card { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 0 14px; padding: 20px 0; }
  .service-card > div:first-child { display: contents; }
  .service-heading { grid-column: 1; grid-row: 1; gap: 10px; min-height: 32px; }
  .service-card h3 { font-size: 17px; }
  .service-card > .status-chip { grid-column: 2; grid-row: 1; align-self: start; padding: 6px 8px; }
  .service-description, .service-checked { grid-column: 1 / -1; margin-left: 26px; }
  .legend { gap: 9px 17px; }
  .history-heading { flex-wrap: wrap; gap: 7px 12px; }
  .history-heading h3 { font-size: 17px; }
  .history-metric strong { font-size: 17px; }
  .history-bars { gap: 3px; height: 30px; }
  .history-bar { border-radius: 2px; }
  .empty-state, .notice { padding: 21px 20px; }
  .incident { padding: 21px 20px; }
  .incident h3 { font-size: 19px; }
  .incident-heading { flex-wrap: wrap; gap: 11px; }
  .about-panel { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-top: 43px; padding: 26px 23px; }
  .about-heading h2 { font-size: 30px; }
  .about-copy { gap: 22px; }
  .site-footer { margin-top: 35px; gap: 7px; padding-top: 20px; }
  .site-footer div { gap: 21px; }
}
@media (max-width: 370px) {
  .shell { width: calc(100% - 32px); }
  .site-header { gap: 8px; }
  .brand { font-size: 23px; }
  .brand img { width: 27px; height: 27px; }
  .support-link { padding-inline: 9px; gap: 5px; }
  .hero h1 { font-size: 44px; }
  .summary-panel { padding-inline: 17px; }
  .summary-copy { gap: 12px; }
  .summary-indicator { width: 34px; height: 34px; font-size: 20px; }
  .summary-copy h2 { font-size: 21px; }
  .refresh-row { gap: 6px; }
  #refresh-state { max-width: 150px; }
  .history-bars { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
