/* ── Custom Properties ────────────────────────────────────────── */
:root {
  --bg:          #0b0906;
  --surface:     #171410;
  --surface2:    #1c1712;
  --border:      rgba(199,166,94,0.18);
  --text:        #ede8de;
  --text-dim:    #8f7d69;
  --gold:        #c7a65e;
  --gold-hover:  #d4b46f;
  --focus-ring:  0 0 0 3px rgba(199,166,94,0.65);
  color-scheme:  dark;
}

[data-theme="light"] {
  --bg:         #f5f0e8;
  --surface:    #ede8de;
  --surface2:   #e4ddd0;
  --border:     rgba(90,68,20,0.15);
  --text:       #1c1712;
  --text-dim:   #6b5d4f;
  --gold:       #7a5c1a;
  --gold-hover: #5e4412;
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:         #f5f0e8;
    --surface:    #ede8de;
    --surface2:   #e4ddd0;
    --border:     rgba(90,68,20,0.15);
    --text:       #1c1712;
    --text-dim:   #6b5d4f;
    --gold:       #7a5c1a;
    --gold-hover: #5e4412;
    color-scheme: light;
  }
}

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

/* ── Base ─────────────────────────────────────────────────────── */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Skip link ────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 200;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── Focus ────────────────────────────────────────────────────── */
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 3px; }

/* ── Header / Nav ─────────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  user-select: none;
}
.logo-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.1rem;
  flex: 1;
}
nav ul a {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
nav ul a:hover { color: var(--gold); background: rgba(199,166,94,0.08); }
nav ul a[aria-current="page"] { color: var(--gold); }

.theme-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ── Main ─────────────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  width: 100%;
}
main:focus { outline: none; }

/* ── Page header ──────────────────────────────────────────────── */
.page-header {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.page-header h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
}
.page-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

/* ── Content body ─────────────────────────────────────────────── */
.content h2 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.content h2:first-child { margin-top: 0; }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content li { margin-bottom: 0.35rem; }
.content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: var(--gold-hover); }

/* ── Card grid (index) ────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2.5rem;
  gap: 1px;
  background: var(--border);
}
.card {
  background: var(--surface);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.15s;
}
.card:hover, .card:focus-visible { background: var(--surface2); outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.card-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ── FAQ (support) ────────────────────────────────────────────── */
.faq { margin-top: 0.5rem; }
.faq-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.faq-a { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ── Contact block ────────────────────────────────────────────── */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-block .contact-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-block a { color: var(--text); font-weight: 500; text-decoration: none; }
.contact-block a:hover { color: var(--gold); }

/* ── Hero (index) ─────────────────────────────────────────────── */
.hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.hero-sub { font-size: 15px; color: var(--text-dim); max-width: 480px; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .sep { margin: 0 0.5rem; opacity: 0.4; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { gap: 0.75rem; }
  nav ul { gap: 0; }
  .logo-text { display: none; }
}
