:root {
  --navy: #0d1b2a;
  --navy-deep: #07111d;
  --teal: #4cb5ae;
  --cream: #f5f2eb;
  --ink: #d7e2ee;
  --slate: #9aafc2;
  --line: rgba(159, 176, 196, 0.26);
  --paper: #0e2135;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 88%, rgba(76, 181, 174, 0.1), transparent 52%),
    radial-gradient(circle at 86% 90%, rgba(102, 112, 133, 0.1), transparent 56%),
    linear-gradient(180deg, #07111d 0%, #0d1b2a 56%, #102131 100%);
}

a {
  color: #8fd8d2;
}

a:hover {
  color: #b9ebe8;
}

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

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

.brand img {
  width: 44px;
  height: 44px;
}

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

.brand-name {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.82rem;
  color: var(--slate);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.top-nav a {
  color: #c7d7e7;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--cream);
}

.document {
  background: rgba(12, 26, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.document-header {
  padding: 28px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  color: var(--cream);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #9db0c3;
}

.content {
  padding: 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.content h2 {
  color: var(--cream);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 32px 0 10px;
  font-size: 1.45rem;
  line-height: 1.3;
}

.content h3 {
  color: var(--cream);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 24px 0 8px;
  font-size: 1.12rem;
  line-height: 1.4;
}

.content p {
  margin: 0 0 16px;
}

.content form {
  margin: 0 0 16px;
}

.content button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #68cbc4 0%, #4cb5ae 100%);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}

.content button[disabled] {
  background: rgba(255, 255, 255, 0.04);
  color: #b1c2d2;
  border-style: dashed;
  cursor: not-allowed;
}

.status-message {
  margin: 0 0 16px;
  min-height: 1.2em;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #9db0c3;
}

.status-message.is-pending {
  color: #bbcede;
}

.status-message.is-success {
  color: #9de0da;
}

.status-message.is-error {
  color: #f0b8b8;
}

.content ul {
  margin: 0 0 18px 22px;
  padding: 0;
}

.content li {
  margin-bottom: 8px;
}

.content pre {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 20, 34, 0.72);
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.site-footer {
  margin-top: 20px;
  padding: 20px 6px 0;
  color: #8fa5ba;
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), 980px);
    padding-top: 18px;
    padding-bottom: 32px;
  }

  .document-header,
  .content {
    padding-left: 18px;
    padding-right: 18px;
  }
}