@font-face {
  font-family: Geospan;
  src: url("fonts/AkiraExpanded.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2b2621;
  --muted: #6d6259;
  --line: #ded6c7;
  --surface: #ffffff;
  --soft: #f3f1eb;
  --cream: #f4e8c8;
  --deep: #2b2621;
  --olive: #7b8b55;
  --olive-dark: #53643b;
  --earth: #a47149;
  --green: #53643b;
  --green-soft: #eef1e5;
  --amber: #995529;
  --amber-soft: #f9eee0;
  --red: #b4232d;
  --red-soft: #fde9ea;
  --grey-soft: #edeae2;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
}

button { font: inherit; }

.shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  color: #fff;
  background: var(--deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-inner,
.footer-inner,
.section-heading,
.component-row,
.summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner { min-height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-family: Geospan, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid #c8a46a;
  border-radius: 50%;
  background: #efe6cc;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-name {
  color: #f4e8c8;
  font-size: 0.88rem;
}

.summary-band {
  color: var(--ink);
  background: var(--cream);
  padding: 48px 0 52px;
}

.summary-inner { gap: 40px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--earth);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-band .eyebrow { color: #775034; }

h1, h2, h3, p { letter-spacing: 0; }

h1 {
  margin: 0;
  font-family: Geospan, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.9rem;
  line-height: 1.32;
  font-weight: 400;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: Geospan, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 400;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

.summary-detail {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.summary-detail:empty { display: none; }

.section { padding: 44px 0; }
.section-heading { gap: 20px; margin-bottom: 20px; }

.subscription-band {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.subscription-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr);
  gap: 64px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.subscription-copy > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.subscription-form label {
  display: block;
  margin-bottom: 7px;
  font-size: .78rem;
  font-weight: 750;
}

.subscription-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

.subscription-controls input[type="email"] {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bdb3a1;
  border-radius: 5px;
}

.subscription-controls input[type="email"]:focus {
  outline: 3px solid rgba(123,139,85,.25);
  border-color: var(--olive-dark);
}

.subscription-controls button {
  min-height: 42px;
  padding: 0 17px;
  color: var(--cream);
  background: var(--olive-dark);
  border: 1px solid var(--olive-dark);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 720;
}

.subscription-controls button:hover { background: var(--earth); border-color: var(--earth); }
.subscription-controls button:disabled { cursor: wait; opacity: .65; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; }
.form-note { margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.form-note a { color: inherit; }
.subscription-message { min-height: 1.1em; margin: 7px 0 0; font-size: .78rem; font-weight: 650; }
.subscription-message.success { color: var(--green); }
.subscription-message.error { color: var(--red); }

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--deep);
  background: #fff;
  border: 1px solid #bdb3a1;
  border-radius: 5px;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 650;
}

.refresh-button:hover { border-color: var(--olive-dark); color: var(--olive-dark); }
.refresh-button:focus-visible { outline: 3px solid rgba(123,139,85,.25); outline-offset: 2px; }
.refresh-button:disabled { cursor: wait; opacity: .6; }
.refresh-symbol { font-size: 1rem; line-height: 1; }

.component-list { border-top: 1px solid var(--line); }

.component-row {
  display: block;
  min-height: 132px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
}

.component-main { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.component-copy { min-width: 0; }
.component-copy p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-size: .86rem;
  font-weight: 720;
}

.status-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a8a399;
}

.status-label.status-operational { color: var(--green); }
.status-label.status-operational::before { background: var(--green); }
.status-label.status-degraded_performance { color: var(--amber); }
.status-label.status-degraded_performance::before { background: var(--amber); }
.status-label.status-partial_outage,
.status-label.status-major_outage { color: var(--red); }
.status-label.status-partial_outage::before,
.status-label.status-major_outage::before { background: var(--red); }

.uptime-block { margin-top: 15px; }
.uptime-bars {
  display: grid;
  grid-template-columns: repeat(48, minmax(2px, 1fr));
  gap: 3px;
  height: 25px;
}

.uptime-bar {
  min-width: 0;
  height: 100%;
  border-radius: 2px;
  background: #d9d6cb;
}

.uptime-bar.status-operational { background: var(--green); }
.uptime-bar.status-degraded_performance { background: #c48542; }
.uptime-bar.status-partial_outage,
.uptime-bar.status-major_outage { background: var(--red); }
.uptime-scale { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: .7rem; }
.uptime-value { color: var(--ink); font-weight: 650; }

.skeleton-row {
  background: linear-gradient(90deg, transparent, var(--soft), transparent);
  background-size: 220% 100%;
  animation: loading 1.25s linear infinite;
}

@keyframes loading { to { background-position: -220% 0; } }

.history-band { background: var(--soft); border-top: 1px solid var(--line); }

.incident-list { border-top: 1px solid var(--line); }
.incident { padding: 22px 0; border-bottom: 1px solid var(--line); }
.incident-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.incident p { max-width: 760px; margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.incident time { color: var(--muted); font-size: .8rem; }

.incident-state {
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.incident-state.resolved { color: var(--green); background: var(--green-soft); }
.incident-state.investigating { color: var(--red); background: var(--red-soft); }
.muted { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 72px; gap: 20px; color: var(--muted); font-size: .78rem; }

.result-page {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  padding: 52px 0 80px;
  background: var(--cream);
}

.result-content { max-width: 620px; }
.result-content h1 { color: var(--deep); }
.result-content h2 { margin-top: 17px; }
.result-content > p:not(.eyebrow) {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.result-link {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 18px;
  color: var(--cream);
  background: var(--olive-dark);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 720;
}

.result-link:hover { background: var(--earth); }

.result-form { margin-top: 28px; }
.result-form button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--cream);
  background: var(--olive-dark);
  border: 1px solid var(--olive-dark);
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
}
.result-form button:hover { background: var(--earth); border-color: var(--earth); }

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1040px); }
  .header-inner { min-height: 60px; }
  .summary-band { padding: 40px 0 44px; }
  h1 { font-size: 1.22rem; line-height: 1.5; }
  h2 { font-size: .78rem; }
  .result-content h2 { font-size: .9rem; }
  .subscription-inner { grid-template-columns: 1fr; gap: 20px; }
  .subscription-controls { grid-template-columns: 1fr; }
  .component-main { align-items: flex-start; flex-direction: column; gap: 12px; }
  .uptime-bars { gap: 2px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
  .result-page { min-height: calc(100vh - 60px); }
}

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

