/* Retreat Media — shared design system (light)
   A calm, gallery-on-paper feel: warm off-white ground, white cards,
   candlelight gold with category-coded accents. Spectral headings, Instrument Sans UI. */

:root {
  --ground: #f6f4ef;
  --ground-2: #efece4;
  --surface: #ffffff;
  --surface-2: #f7f5f1;
  --border: rgba(43, 39, 33, 0.12);
  --border-strong: rgba(43, 39, 33, 0.22);

  --text: #2b2721;
  --text-muted: #6f685c;
  --text-faint: #9c9484;

  --gold: #c6a15b;   --gold-ink: #8a6a24;
  --sage: #7fa08c;   --sage-ink: #3f6e54;
  --slate: #93a2b8;  --slate-ink: #4e5c71;
  --danger: #b4472f;

  --radius: 4px;
  --radius-lg: 9px;
  --shadow: 0 12px 30px -20px rgba(43, 39, 33, 0.40);
  --shadow-soft: 0 3px 10px -6px rgba(43, 39, 33, 0.25);
  --maxw: 1120px;

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 80% at 50% -20%, rgba(198, 161, 91, 0.10), transparent 55%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 500;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--gold); color: #241d0c; border-color: var(--gold); }
.btn-primary:hover { background: #b8934c; border-color: #b8934c; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--gold-ink); color: var(--gold-ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(180, 71, 47, 0.35); }
.btn-danger:hover { background: rgba(180, 71, 47, 0.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Forms ---- */
label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; font-family: var(--font-ui); font-size: 0.98rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 11px 13px; transition: border-color 0.16s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-ink); }
input::placeholder { color: var(--text-faint); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f685c' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

/* ---- Category accents ---- */
.cat-metanoia { --accent: var(--gold);  --accent-ink: var(--gold-ink); }
.cat-ais      { --accent: var(--sage);  --accent-ink: var(--sage-ink); }
.cat-other    { --accent: var(--slate); --accent-ink: var(--slate-ink); }

.notice { border-left: 2px solid var(--accent, var(--gold)); padding: 2px 0 2px 16px; color: var(--text-muted); font-size: 0.95rem; }

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
