:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #202124;
  --muted: #62666d;
  --line: #dfe2e7;
  --accent: #2d6658;
  --accent-strong: #214d43;
  --danger: #a0332c;
  --success: #276749;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid #d1a33b; outline-offset: 3px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.header-inner {
  width: min(100% - 32px, 1040px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
nav a { min-height: 48px; display: inline-flex; align-items: center; font-size: 14px; }

main { width: min(100% - 40px, 760px); margin: 0 auto; padding: 64px 0 80px; }

.page-header { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 14px; font-weight: 700; }
h1 { margin: 0; font-size: 3rem; line-height: 1.14; letter-spacing: 0; overflow-wrap: anywhere; }
.summary { max-width: 68ch; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.updated { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.content-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.content-section h2, .status h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.3; letter-spacing: 0; }
.content-section p { margin: 12px 0 0; }
.content-section ul { margin: 16px 0 0; padding-left: 24px; }
.content-section li + li { margin-top: 8px; }

.status { margin: 32px 0 0; padding: 20px 0; border-bottom: 2px solid var(--danger); }
.status.success { border-color: var(--success); }
.status p { margin: 8px 0 0; }
code { overflow-wrap: anywhere; }

.delete-form { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 650; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #90959d;
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.confirm { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin: 8px 0 24px; }
.confirm input { width: 22px; height: 22px; margin: 2px 0 0; }
button {
  min-width: 180px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--danger);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #812720; }

footer {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 0; }

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 4px; padding: 12px 0; }
  nav { width: 100%; }
  main { padding-top: 40px; }
  h1 { font-size: 2rem; }
  footer { flex-direction: column; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151718;
    --surface: #202325;
    --text: #f2f3f4;
    --muted: #b4b9bf;
    --line: #3a3f43;
    --accent: #82c7b3;
    --accent-strong: #abe0d1;
    --danger: #d96b62;
    --success: #65bd8c;
  }
}
