:root {
  color-scheme: light;
  --jc-ink: #1d2725;
  --jc-graphite: #26312f;
  --jc-graphite-deep: #151c1a;
  --jc-mineral: #f2efe8;
  --jc-mineral-raised: #fffdf8;
  --jc-steel-200: #d3d5d0;
  --jc-steel-600: #5d6864;
  --jc-signal: #d77b24;
  --jc-signal-strong: #a95312;
  --jc-signal-soft: #f5dfc8;
  --jc-critical: #aa4038;
  --jc-font: Inter, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--jc-ink);
  background: var(--jc-mineral);
  font-family: var(--jc-font);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--jc-mineral);
  text-rendering: optimizeLegibility;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  border-top: 4px solid var(--jc-signal);
  border-bottom: 1px solid #d5cfc4;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 1px 0 rgba(29, 39, 37, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--jc-ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 7px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.brand-copy span {
  color: var(--jc-steel-600);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.header-label {
  color: var(--jc-steel-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-layout {
  width: min(1160px, calc(100% - 48px));
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: stretch;
  margin: clamp(38px, 7vh, 76px) auto;
  border: 1px solid #d6d1c7;
  border-top: 4px solid var(--jc-signal);
  border-radius: 6px;
  background: var(--jc-mineral-raised);
  box-shadow: 0 12px 32px rgba(21, 28, 26, 0.13);
  overflow: hidden;
}

.status-card {
  min-height: 545px;
  padding: clamp(42px, 6vw, 78px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--jc-signal-strong);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--jc-signal);
}

h1 {
  max-width: 12ch;
  margin: 0 0 22px;
  color: var(--jc-ink);
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

p {
  margin: 0;
  color: var(--jc-steel-600);
  font-size: 1rem;
  line-height: 1.6;
}

.summary {
  max-width: 680px;
  color: var(--jc-graphite);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.55;
}

.status-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 42px 0 38px;
}

.detail-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  padding-top: 16px;
  border-top: 1px solid #d6d1c7;
}

.detail-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 3px;
  color: var(--jc-ink);
  background: var(--jc-signal-soft);
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.detail-row strong {
  display: block;
  margin-bottom: 5px;
  color: var(--jc-ink);
  font-size: 0.9rem;
}

.detail-row p {
  font-size: 0.83rem;
  line-height: 1.55;
}

.status-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.retry {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid #c66713;
  border-radius: 3px;
  color: var(--jc-ink);
  background: var(--jc-signal);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.retry:hover {
  color: #fff;
  background: var(--jc-signal-strong);
}

.retry:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--jc-signal-strong);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(215, 123, 36, 0.34);
}

.status-actions p {
  font-size: 0.78rem;
}

.status-rail {
  padding: 38px 30px;
  color: #f8f4eb;
  background: var(--jc-graphite-deep);
  box-shadow: inset 3px 0 0 rgba(215, 123, 36, 0.22);
}

.rail-label {
  margin: 0 0 22px;
  color: rgba(248, 244, 235, 0.62);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rail-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.status-light {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--jc-critical);
  box-shadow: 0 0 0 4px rgba(170, 64, 56, 0.17);
}

.rail-status strong,
.rail-status span {
  display: block;
}

.rail-status strong {
  color: #fff;
  font-size: 0.95rem;
}

.rail-status span {
  margin-top: 5px;
  color: rgba(248, 244, 235, 0.64);
  font-size: 0.78rem;
}

.rail-rule {
  height: 1px;
  margin: 34px 0;
  background: rgba(255, 255, 255, 0.12);
}

.rail-note {
  color: rgba(248, 244, 235, 0.7);
  font-size: 0.82rem;
  line-height: 1.65;
}

footer {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  color: rgba(248, 244, 235, 0.64);
  background: var(--jc-graphite-deep);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .status-layout {
    grid-template-columns: 1fr;
  }

  .status-card {
    min-height: 0;
  }

  .status-rail {
    box-shadow: inset 0 3px 0 rgba(215, 123, 36, 0.22);
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .header-label {
    display: none;
  }

  .status-layout {
    width: calc(100% - 24px);
    margin: 18px auto;
  }

  .status-card {
    padding: 34px 24px 30px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.3rem);
  }

  .summary {
    font-size: 1rem;
  }

  .status-details {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 34px 0;
  }

  .status-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .retry {
    width: 100%;
  }

  .status-rail {
    padding: 28px 24px;
  }

  footer {
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 18px;
  }
}

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