:root {
  --bg: #e8edf2;
  --bg-elevated: #f7f9fb;
  --ink: #1a2332;
  --ink-strong: #0f1620;
  --muted: #5c6b7a;
  --line: #c5d0db;
  --line-strong: #8fa0b2;
  --accent: #1f4e79;
  --accent-2: #c45c26;
  --ok: #1b6b3a;
  --danger: #8b1e2d;
  --warn: #8a6d1d;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 22, 32, 0.08);
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 78, 121, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 92, 38, 0.08), transparent 55%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 251, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink-strong);
  text-decoration: none;
}
.site-nav { display: flex; gap: 1rem; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer {
  margin-top: auto;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.page { width: min(960px, 100% - 2rem); margin: 1.5rem auto 2.5rem; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
h1, h2 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  line-height: 1.2;
}
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }
.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--ink);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.flash-wrap { width: min(960px, 100% - 2rem); margin: 1rem auto 0; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0 0.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}
.flash-success { border-color: #9fd0ad; background: #eaf7ef; color: var(--ok); }
.flash-danger { border-color: #e2a0a8; background: #fceced; color: var(--danger); }
.flash-warning { border-color: #e2d29a; background: #fff8e6; color: var(--warn); }

label { display: block; font-weight: 600; margin: 0.85rem 0 0.35rem; }
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.check input { width: auto; }
