:root {
  color-scheme: dark;
  --ink: #141918;
  --ink-soft: #202725;
  --paper: #e9e6dc;
  --paper-dim: #babbb0;
  --line: rgba(233, 230, 220, 0.16);
  --line-dark: rgba(20, 25, 24, 0.18);
  --signal: #f07b4b;
  --signal-on-paper: #a74321;
  --moss: #b7d09d;
  --card-muted: #596158;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--ink); }

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(233, 230, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 230, 220, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 56px 56px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
a { color: inherit; }

.site-shell {
  width: min(1240px, calc(100% - 72px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  color: var(--ink);
  background: var(--paper);
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark, .topbar-meta { display: flex; align-items: center; }
.wordmark { gap: 12px; text-decoration: none; font-size: 0.75rem; font-weight: 750; letter-spacing: 0.12em; }
.wordmark b { color: var(--signal); font-weight: 500; }
.wordmark-icon { position: relative; display: flex; width: 25px; height: 25px; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--paper-dim); transform: rotate(-8deg); }
.wordmark-icon i { display: block; width: 3px; height: 13px; background: var(--signal); }
.wordmark-icon i:nth-child(2) { height: 18px; background: var(--paper); }
.wordmark-icon i:nth-child(3) { height: 8px; background: var(--moss); }
.topbar-meta { gap: 22px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; }
.topbar-code { color: var(--paper-dim); }
.environment-tag { padding: 8px 10px; border: 1px solid var(--line); color: var(--moss); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.72fr);
  gap: clamp(46px, 9vw, 130px);
  align-items: center;
  padding: clamp(68px, 10vw, 136px) 0 104px;
}

.eyebrow {
  margin: 0;
  color: var(--paper-dim);
  font: 600 0.65rem/1.4 var(--mono);
  letter-spacing: 0.12em;
}

.eyebrow > span { margin-right: 9px; color: var(--signal); }

h1, h2, p { margin-top: 0; }

h1 {
  margin: 24px 0 20px;
  font: 400 clamp(3.8rem, 8vw, 7.2rem)/0.91 var(--display);
  letter-spacing: -0.065em;
}

h1 em { color: var(--signal); font-weight: 400; }
.hero-description { max-width: 480px; margin-bottom: 35px; color: #c2c4b9; font-size: 1rem; line-height: 1.7; }
.branch-track { display: flex; max-width: 490px; align-items: center; gap: 12px; color: var(--paper-dim); font: 0.68rem var(--mono); }
.branch-symbol { color: var(--moss); font-size: 1.35rem; }
.branch-name { color: var(--paper); }
.track-line { height: 1px; flex: 1; background: var(--line); }
.track-label { letter-spacing: 0.04em; }

.release-card {
  position: relative;
  overflow: hidden;
  padding: 27px 28px 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 16px 17px 0 rgba(0, 0, 0, 0.12);
}

.release-card::after {
  position: absolute;
  top: -42px;
  right: -42px;
  width: 110px;
  height: 110px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(20, 25, 24, 0.035), 0 0 0 29px rgba(20, 25, 24, 0.025);
  content: "";
  pointer-events: none;
}

.card-topline { display: flex; align-items: center; justify-content: space-between; }
.card-topline .eyebrow { color: var(--card-muted); }
.card-topline .eyebrow span { color: var(--signal-on-paper); }
.card-index { color: var(--card-muted); font: 0.62rem var(--mono); }
.service-state { display: flex; align-items: center; gap: 17px; margin: 44px 0 36px; }
.state-orbit { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid #a5aaa0; border-radius: 50%; }
.state-orbit > span { width: 11px; height: 11px; border-radius: 50%; background: #878d84; }
.state-orbit[data-state="online"] { border-color: #6b8c59; }
.state-orbit[data-state="online"] > span { background: #527b3d; box-shadow: 0 0 0 5px rgba(82, 123, 61, 0.15); }
.state-orbit[data-state="offline"] > span { background: var(--signal); }
.service-state h2 { margin: 0 0 6px; font: 500 1.14rem/1.25 var(--sans); letter-spacing: -0.03em; }
.state-caption, .update-label { margin: 0; color: var(--card-muted); font: 0.59rem var(--mono); letter-spacing: 0.1em; }
.commit-panel { display: flex; min-height: 67px; flex-direction: column; justify-content: center; gap: 8px; padding: 13px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.commit-panel .eyebrow { color: var(--card-muted); font-size: 0.56rem; }
.commit-panel code { color: #3e4841; font: 600 0.88rem var(--mono); }
.card-foot { display: flex; justify-content: space-between; padding: 17px 0 18px; }
.card-foot time { color: #39433b; font: 0.68rem var(--mono); }
.refresh-button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 15px; border: 0; color: var(--paper); background: var(--ink); cursor: pointer; font-size: 0.78rem; transition: background 160ms ease, transform 160ms ease; }
.refresh-button:hover { background: #2d3933; transform: translateY(-1px); }
.refresh-button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.refresh-button:disabled { cursor: wait; opacity: 0.72; }
.refresh-button span { color: var(--signal); font-size: 1rem; }

.system-map { padding: 28px 0 59px; border-top: 1px solid var(--line); }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.map-heading h2 { margin: 11px 0 0; font: 400 clamp(1.8rem, 4vw, 2.8rem)/1.1 var(--display); letter-spacing: -0.04em; }
.map-note { margin: 0 0 4px; color: var(--paper-dim); font: 0.6rem var(--mono); letter-spacing: 0.08em; }
.map-note span { color: var(--signal); }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.pipeline-step { position: relative; display: grid; min-height: 120px; grid-template-columns: 31px 1fr; grid-template-rows: 30px auto auto; column-gap: 13px; padding: 17px 20px 0 0; border-top: 1px solid var(--line); }
.pipeline-step:not(:last-child)::after { position: absolute; top: -3px; right: 16px; width: 5px; height: 5px; border-radius: 50%; background: #5a645c; content: ""; }
.step-number { grid-column: 1; grid-row: 1 / span 3; color: #9ba59b; font: 0.6rem var(--mono); }
.step-symbol { grid-column: 2; grid-row: 1; color: var(--signal); font: 1rem var(--mono); }
.step-title { grid-column: 2; color: var(--paper); font: 500 0.88rem var(--sans); }
.step-detail { grid-column: 2; margin-top: 5px; color: #90988e; font: 0.62rem var(--mono); }
.pipeline-step-current { border-color: var(--signal); }
.pipeline-step-current .step-number, .pipeline-step-current .step-title { color: var(--moss); }

.footer { display: flex; min-height: 63px; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: #828b81; font: 0.58rem var(--mono); letter-spacing: 0.08em; }
.footer-separator { padding: 0 5px; color: var(--signal); }
.footer-dot { display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: var(--moss); }
.visually-hidden { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 38px, 560px); }
  .topbar { min-height: 70px; }
  .topbar-meta { gap: 10px; }
  .topbar-code { display: none; }
  .hero { grid-template-columns: 1fr; gap: 47px; padding: 70px 0 74px; }
  .hero-description { max-width: 560px; }
  .release-card { max-width: 520px; }
  .pipeline-step { grid-template-columns: 22px 1fr; column-gap: 8px; padding-right: 8px; }
}

@media (max-width: 520px) {
  .site-shell { width: calc(100% - 32px); }
  .wordmark { gap: 8px; font-size: 0.62rem; }
  .wordmark-icon { width: 22px; height: 22px; }
  .environment-tag { padding: 7px; font-size: 0.52rem; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(3.6rem, 17vw, 5.5rem); }
  .hero-description { font-size: 0.92rem; }
  .release-card { padding: 22px 20px 20px; }
  .map-heading { align-items: start; flex-direction: column; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 15px; }
  .pipeline-step { min-height: 105px; }
  .pipeline-step:nth-child(2)::after { display: none; }
  .footer { align-items: start; flex-direction: column; justify-content: center; padding: 16px 0; font-size: 0.53rem; }
}

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