:root {
  color-scheme: light;
  --canvas: #e9e7e1;
  --surface: #f7f6f2;
  --ink: #17201f;
  --muted: #616b68;
  --line: #bfc5c1;
  --line-dark: #78827f;
  --accent: #126754;
  --accent-dark: #0b493c;
  --warning: #8a6315;
  --danger: #8a382f;
  --console: #17201f;
  --console-line: #3b4744;
  --console-ink: #e7ece9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
input,
textarea,
select {
  font: inherit;
}

.topbar,
main,
footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  border: 1px solid var(--ink);
  font: 750 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.overview {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(52px, 8vw, 104px);
  align-items: center;
  padding: 82px 0 96px;
}

.section-label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font: 700 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 710px;
  margin-bottom: 26px;
  font-size: clamp(42px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 690px;
  margin-bottom: 38px;
  color: #46514e;
  font-size: clamp(17px, 1.8vw, 20px);
}

.lead p {
  margin-bottom: 16px;
}

.lead p:last-child {
  margin-bottom: 0;
}

dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 650;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.status-console {
  padding: 28px;
  color: var(--console-ink);
  background: var(--console);
  border: 1px solid #090f0e;
  box-shadow: 10px 10px 0 rgba(23, 32, 31, 0.12);
}

.console-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--console-line);
}

.console-heading h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.status-value {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 6px 9px;
  text-align: center;
  border: 1px solid currentColor;
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.status-value[data-state="checking"] {
  color: #e2bd6a;
}

.status-value[data-state="ready"] {
  color: #80d0ae;
}

.status-value[data-state="error"] {
  color: #e69288;
}

.status-list {
  margin: 0;
}

.status-list > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--console-line);
}

.status-list dt {
  margin: 0;
  color: #94aaa3;
}

.status-list dd {
  text-align: right;
}

.check-message {
  min-height: 42px;
  margin: 18px 0 16px;
  color: #b9c5c1;
  font-size: 13px;
}

button {
  appearance: none;
  width: 100%;
  padding: 11px 16px;
  color: var(--console);
  background: #dce5e1;
  border: 1px solid #dce5e1;
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: white;
  border-color: white;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.documentation h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.documentation {
  max-width: 820px;
  padding: 78px 0 88px;
  border-top: 1px solid var(--line-dark);
}

.documentation p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}

@media (max-width: 860px) {
  .overview {
    grid-template-columns: 1fr;
  }

  .overview {
    min-height: 0;
    padding: 66px 0 78px;
  }

  .status-console {
    max-width: 620px;
  }
}

@media (max-width: 590px) {
  .topbar,
  main,
  footer {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    min-height: 72px;
  }

  nav {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .status-console {
    padding: 21px;
    box-shadow: 6px 6px 0 rgba(23, 32, 31, 0.12);
  }

  .console-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .status-value {
    width: 100%;
  }

  .status-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .status-list dd {
    text-align: left;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
