:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #15803d;
  --brand-soft: #dcfce7;
  --danger: #dc2626;
  --background: #f7f9fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
}

main {
  width: min(820px, calc(100% - 32px));
  margin: 40px auto;
  padding: clamp(24px, 5vw, 52px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgb(15 23 42 / 8%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 850;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-radius: 12px;
}

h1 { margin: 22px 0 4px; font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.08; }
h2 { margin-top: 34px; font-size: 1.35rem; }
h3 { margin-bottom: 4px; }
p, li { color: var(--muted); }
a { color: var(--brand); font-weight: 650; }
.updated { margin-top: 0; font-size: .92rem; }

.notice {
  margin: 22px 0;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--brand-soft);
  border: 1px solid #86efac;
  border-radius: 16px;
}

.warning {
  background: #fff7ed;
  border-color: #fdba74;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

label { font-weight: 750; }
input[type="email"], input[type="text"] {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  color: var(--ink);
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font: inherit;
}

input:focus { outline: 3px solid rgb(34 197 94 / 20%); border-color: #22c55e; }

button {
  min-height: 50px;
  padding: 12px 18px;
  color: white;
  background: var(--brand);
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button.danger { background: var(--danger); }
button:disabled { cursor: not-allowed; opacity: .45; }
.hidden { display: none; }
.status { min-height: 26px; margin: 10px 0 0; font-weight: 650; }
.status.error { color: var(--danger); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  main { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
}
