﻿:root {
  --bg: #f4efe6;
  --paper: #fffaf2;
  --ink: #1e1d1a;
  --muted: #6d665d;
  --line: #ded3c3;
  --accent: #8c3c20;
  --accent-2: #204b57;
  --ok: #1f6b3f;
  --err: #8f2f2f;
  --shadow: 0 18px 48px rgba(45, 33, 18, 0.12);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #15171b;
  --paper: rgba(27, 31, 37, 0.96);
  --ink: #f3eadf;
  --muted: #b8ae9f;
  --line: #3a4048;
  --accent: #d06f44;
  --accent-2: #5b8ea0;
  --ok: #71c38b;
  --err: #ef9a9a;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(140, 60, 32, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(32, 75, 87, 0.14), transparent 30%),
    linear-gradient(180deg, #efe5d5 0%, var(--bg) 100%);
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(208, 111, 68, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(91, 142, 160, 0.16), transparent 28%),
    linear-gradient(180deg, #0f1216 0%, var(--bg) 100%);
}

.page { max-width: 980px; margin: 0 auto; padding: 26px 18px 56px; }
.theme-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.theme-toggle {
  padding: 0;
  line-height: 1;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
}
.theme-toggle:hover {
  background: rgba(140, 60, 32, 0.08);
}
:root[data-theme="dark"] .theme-toggle:hover {
  background: rgba(208, 111, 68, 0.12);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.hero, .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero { padding: 28px; margin-bottom: 18px; }
.card { padding: 22px; margin-bottom: 14px; }
.notice-only { text-align: center; font-size: 1.2rem; font-weight: 700; }

h1, h2, h3 { margin: 0 0 10px; line-height: 1.08; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: 1.45rem; }

p, .small, .meta { color: var(--muted); line-height: 1.6; }

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(140, 60, 32, 0.12);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 6px 6px 0;
}

form { display: grid; gap: 12px; }
label { font-size: 0.95rem; color: var(--muted); display: grid; gap: 8px; }
input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.95);
  color: var(--ink);
  font-size: 1rem;
}
:root[data-theme="dark"] input { background: rgba(18, 21, 26, 0.9); }

.button, button, .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: #fff9f2;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

button:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary { background: var(--accent-2); }
.err { color: var(--err); font-weight: 700; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

a { color: var(--accent-2); }

.access-form { gap: 10px; }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1rem;
}
.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.check-row span { line-height: 1.2; }

@media (max-width: 640px) {
  .page { padding: 16px 12px 40px; }
}

