/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:      #fafafa;
  --color-text:    #1a1a1a;
  --color-muted:   #555;
  --color-accent:  #2563eb;  /* blue-600 */
  --color-ok:      #16a34a;  /* green-600 */
  --color-err:     #dc2626;  /* red-600 */
  --max-width:     720px;
  --radius:        6px;
  --gap:           1.5rem;
}

html { font-size: 17px; }

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ──────────────────────────────────────────────────── */
header, main, footer {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--gap) 1rem;
}

main { flex: 1; }

/* ── Nav ─────────────────────────────────────────────────────── */
header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: var(--gap);
}

.site-name { font-weight: 700; color: var(--color-text); text-decoration: none; }

nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a  { color: var(--color-accent); text-decoration: none; }
nav a:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding-block: 3rem; }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p   { color: var(--color-muted); }

.status-badges {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.badge--ok     { background: #dcfce7; color: var(--color-ok); }
.badge--action { background: var(--color-accent); color: #fff; }
.badge--action:hover { background: #1d4ed8; }

/* ── Info section ────────────────────────────────────────────── */
.info { border-top: 1px solid #e5e7eb; padding-top: var(--gap); }
.info h2 { margin-bottom: 0.75rem; }
.info ul { padding-left: 1.25rem; }
.info li { margin-bottom: 0.4rem; }
.info p  { margin-top: 1rem; color: var(--color-muted); }
code { font-size: 0.875em; background: #f3f4f6; padding: 0.1em 0.4em; border-radius: 3px; }

/* ── Article (single pages) ──────────────────────────────────── */
article h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
article p  { margin-bottom: var(--gap); color: var(--color-muted); }

/* ── Banners ─────────────────────────────────────────────────── */
.banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: var(--gap);
  font-size: 0.9rem;
}
.banner--success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.banner--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Form ────────────────────────────────────────────────────── */
.field { margin-bottom: 1.25rem; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
label span { color: var(--color-err); }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  transition: border-color 0.15s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Hide honeypot field visually but keep it in the DOM */
.field--hidden {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  pointer-events: none;
}

button[type="submit"] {
  padding: 0.6rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
button[type="submit"]:hover  { background: #1d4ed8; }
button[type="submit"]:disabled { background: #93c5fd; cursor: not-allowed; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: var(--color-muted);
  padding-top: var(--gap);
}
footer a { color: var(--color-accent); }
