@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/brand/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/brand/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/brand/inter-700.woff2') format('woff2');
}

:root {
  --white: #ffffff;
  --navy: #02052d;
  --deep: #010674;
  --royal: #305cde;
  --amber: #ebae0c;
  --line: #dce0e4;
  --muted: rgba(2, 5, 45, 0.65);
  --body: rgba(2, 5, 44, 0.8);
  --ok: #1f7a4d;
  --degraded: #9a7208;
  --partial: #b45309;
  --down: #b42318;
  --maint: #305cde;
  --shadow: 0 4px 17px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 34px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  background:
    radial-gradient(900px 420px at 8% -10%, #e2eeff 0%, transparent 60%),
    radial-gradient(700px 380px at 100% 0%, #fff4d2 0%, transparent 55%), #f7f7f7;
  font:
    400 16px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

a {
  color: inherit;
}

.nav-wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 20px auto 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 17px rgba(0, 0, 0, 0.04);
}

.brand {
  display: flex;
  line-height: 0;
}

.brand img {
  width: 126px;
  height: 28px;
}

.nav-label {
  color: var(--muted);
  font-weight: 600;
}

.nav-subscribe {
  margin-left: auto;
  color: var(--royal);
  font-weight: 600;
  text-decoration: none;
}

.nav-subscribe + .nav-action {
  margin-left: 0;
}

.nav-action {
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--royal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}

.banner h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card,
.incident {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.card {
  padding: 8px 8px;
  margin-bottom: 8px;
}

.system-block {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.system-block:last-child {
  border-bottom: 0;
}

.system-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.system-top strong {
  font-size: 16px;
}

.status-word {
  font-weight: 600;
  font-size: 14px;
}

.status-word.operational {
  color: var(--ok);
}

.status-word.degraded_performance {
  color: var(--degraded);
}

.status-word.partial_outage {
  color: var(--partial);
}

.status-word.major_outage {
  color: var(--down);
}

.status-word.under_maintenance {
  color: var(--maint);
}

.day-bars {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 34px;
}

.day-bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: var(--ok);
  cursor: pointer;
}

.day-tip {
  position: fixed;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  line-height: 1.3;
  pointer-events: none;
  white-space: nowrap;
}

.day-tip[hidden] {
  display: none;
}

.day-bar.degraded_performance {
  background: var(--amber);
}

.day-bar.partial_outage {
  background: var(--partial);
}

.day-bar.major_outage {
  background: var(--down);
}

.day-bar.under_maintenance {
  background: var(--maint);
}

.day-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.row:last-child {
  border-bottom: 0;
}

.row strong {
  font-weight: 600;
}

.system-name {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.row.head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dot.spacer {
  background: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill.operational {
  background: #e7f6ee;
  color: var(--ok);
}

.pill.degraded_performance,
.pill.sev3 {
  background: #fff6d8;
  color: #7a5b08;
}

.pill.partial_outage,
.pill.sev2 {
  background: #fff1e6;
  color: var(--partial);
}

.pill.major_outage,
.pill.sev1 {
  background: #fdeceb;
  color: var(--down);
}

.pill.under_maintenance,
.pill.sev4 {
  background: #e8efff;
  color: var(--royal);
}

.quiet {
  margin: 0 0 8px;
  color: var(--muted);
}

.incident-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.incident-head h3 {
  margin: 0;
}

.latest {
  margin: 12px 0 0;
  max-width: 68ch;
}

.due {
  margin: 8px 0 0;
  font-weight: 600;
}

.timeline {
  margin-top: 12px;
}

.timeline summary {
  cursor: pointer;
  color: var(--royal);
  font-weight: 600;
}

.year h3 {
  margin: 8px 0 12px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.when {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.uptime {
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.row.head .uptime {
  color: var(--muted);
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
}

.dot.operational {
  background: var(--ok);
}

.dot.degraded_performance {
  background: var(--degraded);
}

.dot.partial_outage {
  background: var(--partial);
}

.dot.major_outage {
  background: var(--down);
}

.dot.under_maintenance {
  background: var(--maint);
}

h2 {
  margin: 32px 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
}

.incident {
  padding: 18px 20px;
  margin-bottom: 12px;
}

.incident h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

.update {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.update p {
  margin: 0 0 6px;
}

form {
  display: grid;
  gap: 16px;
  scroll-margin-top: 24px;
  margin: 8px 0 28px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

form h2 {
  margin-top: 0;
}

form.embedded {
  margin: 16px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

form input,
form select,
form textarea {
  width: 100%;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  padding: 10px 12px;
}

button {
  width: fit-content;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.staff-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.staff-bar p {
  margin: 0;
}

.signin {
  max-width: 36rem;
}

.signin .nav-action {
  display: inline-block;
  margin: 18px 0 0;
}

.split {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .split {
    grid-template-columns: 1.4fr 1fr;
  }
}

.hint {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.times {
  display: none;
  gap: 14px;
}

.times.show {
  display: grid;
}

@media (min-width: 720px) {
  .times.show {
    grid-template-columns: 1fr 1fr;
  }
}

.picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 720px) {
  .picks {
    grid-template-columns: 1fr 1fr;
  }
}

.system-pick {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.system-pick.on {
  border-color: var(--navy);
  background: #f8fbff;
}

.system-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.system-pick-name {
  font-weight: 600;
}

.status-choices {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
}

.system-pick.on .status-choices {
  display: flex;
}

.status-choice {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f6f8;
  color: var(--navy);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.status-choice.on {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

button.danger {
  background: transparent;
  color: var(--down);
  border: 1px solid #f3c7c4;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.banner-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e7f6ee;
  color: var(--ok);
  font-weight: 600;
}

.banner-note.bad {
  background: #fdeceb;
  color: var(--down);
}

.phase-label {
  font-weight: 400;
  color: var(--muted);
}

.error {
  color: var(--down);
  font-weight: 600;
}

footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--royal);
}
