:root {
  --bg: #f4f6f8;
  --ink: #0f1c2e;
  --muted: #5a6b7d;
  --hpcl: #1b4f8a;
  --hpcl-deep: #0d2f5a;
  --accent: #e87722;
  --card: #ffffff;
  --border: #d5dde6;
  --ok: #0d7a4f;
  --err: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(27, 79, 138, 0.18), transparent 60%),
    linear-gradient(180deg, #e8eef5 0%, var(--bg) 280px);
  min-height: 100vh;
}
a { color: var(--hpcl); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(90deg, var(--hpcl-deep), var(--hpcl));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.brand span { color: var(--accent); }
.nav { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.nav a { color: #e8f0fa; font-weight: 600; font-size: 0.92rem; }
.nav a:hover { color: #fff; text-decoration: none; }

.hero {
  max-width: 980px;
  margin: 2.2rem auto 1rem;
  padding: 0 1.5rem;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hpcl);
  margin-bottom: 0.4rem;
}
.hero h1 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.hero p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 46rem; }

.banner-note {
  max-width: 980px;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem;
  background: #fff8ef;
  border: 1px solid #f0d2b0;
  border-radius: 10px;
  color: #6a3d12;
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 1rem auto 3rem;
  padding: 0 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.btn {
  display: inline-block;
  background: var(--hpcl);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--hpcl-deep); }
.btn.secondary { background: transparent; color: var(--hpcl) !important; border: 1px solid var(--hpcl); }

.page {
  max-width: 560px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.panel h1 { margin-top: 0; font-size: 1.5rem; }
.muted { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
form label {
  display: block;
  margin-bottom: 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
}
form input, form select, form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500 !important;
}
.checkbox input { width: auto; margin-top: 0.2rem; }
.alert { margin: 0.75rem 0; padding: 0.65rem 0.8rem; border-radius: 8px; font-size: 0.9rem; }
.alert.ok { background: #e8f7ef; color: var(--ok); }
.alert.err { background: #fdecec; color: var(--err); }

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}
