/* ══════════════════════════════════════════════════
   Diamond Peak — Shared Base Styles
   ══════════════════════════════════════════════════ */

/* ── VARIABLES ───────────────────────── */
:root {
  --bg: #f8f5ef;
  --card: #fff;
  --ink: #18160f;
  --ink2: #4a4535;
  --muted: #9a9080;
  --border: #ddd8cc;
  --green: #1d6840;
  --green-bg: #e6f4ec;
  --blue: #1a5276;
  --red: #b53a1e;
  --red-bg: #fdeee9;
  --amber: #b87c20;
}

/* ── RESET ───────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE CONTAINER ──────────────────── */
.page { max-width: 820px; margin: 0 auto; padding: 36px 16px 72px; }
@media(min-width:600px) { .page { padding: 56px 24px 80px; } }

/* ── BACK LINK ───────────────────────── */
.back {
  color: var(--muted);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.back:hover { color: var(--ink); }

/* ── KICKER / EYEBROW ────────────────── */
.kicker {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 20px;
}

/* ── HEADINGS ────────────────────────── */
h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

/* ── INTRO PARAGRAPH ─────────────────── */
.intro {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── PANELS / CARDS ──────────────────── */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
@media(min-width:520px) { .panel { padding: 24px; } }
.panel-title {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── FORM FIELDS ─────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink2);
  margin-bottom: 5px;
  line-height: 1.3;
}
.field input,
.field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.hint {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.input-row { display: flex; gap: 12px; }
.input-row > .field { flex: 1; }

/* ── FOOTER ──────────────────────────── */
.footer {
  text-align: center;
  padding: 24px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
