* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #101211;
  --panel: #171a18;
  --text: #f5f5f5;
  --muted: #b8beb9;
  --line: #303630;
  --accent: #7ef0a6;
  --warning: #ffd166;
  --soft: #20251f;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.site-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

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

.brand {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.notice,
.legal-page {
  max-width: 760px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.legal-page {
  padding: 0;
  border: 0;
  background: transparent;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
}

h2 {
  margin: 42px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
  line-height: 1.25;
}

h3 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

li + li {
  margin-top: 6px;
}

strong {
  color: var(--text);
}

.lead {
  color: var(--text);
  font-size: 1.16rem;
}

.draft-banner,
.tbd-box {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--line));
  border-radius: 8px;
  color: var(--text);
  background: color-mix(in srgb, var(--warning) 10%, var(--soft));
}

.draft-banner p,
.tbd-box p {
  margin: 0;
  color: var(--text);
}

.meta {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.section-note p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.placeholder {
  color: var(--warning);
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
}

.reset-page {
  max-width: 560px;
  margin: 0 auto;
}

.reset-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.reset-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text);
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--soft);
  font: inherit;
}

.field input:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 1px;
}

.button-primary {
  justify-content: center;
  border-color: var(--accent);
  color: #07150c;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button-primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.reset-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--soft);
}

.reset-status[data-kind="error"] {
  border-color: #9d4545;
  color: #ffb4b4;
}

.reset-status[data-kind="success"] {
  border-color: var(--accent);
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 40px;
  }

  .nav {
    justify-content: flex-start;
  }

  .notice {
    padding: 22px;
  }
}
