/* ==========================================================================
   Naidoo's Quest - public site styles
   ========================================================================== */

:root {
  --sand:        #f6f1e7;
  --sand-deep:   #ece3d3;
  --ink:         #22201c;
  --ink-soft:    #5d574c;
  --line:        #ded3bf;
  --card:        #fffdf8;
  --clay:        #c25a3a;
  --clay-dark:   #a4472b;
  --teal:        #1f6f6a;
  --gold:        #d99a2b;
  --shadow:      0 1px 2px rgba(34, 32, 28, .06), 0 12px 32px -12px rgba(34, 32, 28, .22);
  --radius:      14px;
  --wrap:        1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand:      #16150f;
    --sand-deep: #1e1c15;
    --ink:       #f2ece0;
    --ink-soft:  #a9a294;
    --line:      #35312a;
    --card:      #201e17;
    --clay:      #e07a58;
    --clay-dark: #c25a3a;
    --teal:      #4fada6;
    --gold:      #e6b455;
    --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

a { color: var(--clay-dark); }
@media (prefers-color-scheme: dark) { a { color: var(--clay); } }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--sand);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--clay), var(--gold));
  color: #fff;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

.brand-tag {
  font-size: .78rem;
  color: var(--ink-soft);
  letter-spacing: .01em;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .94rem;
  transition: background .15s ease, color .15s ease;
}

.site-nav a:hover { background: var(--sand-deep); }

.site-nav a.is-active {
  background: var(--ink);
  color: var(--sand);
}

.site-nav .ext { font-size: .72em; margin-left: 3px; opacity: .6; }

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 720px) {
  .header-inner { min-height: 64px; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }
  .site-nav {
    flex-basis: 100%;
    display: none;
    padding-bottom: 14px;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { display: block; border-radius: 10px; }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 8vw, 88px);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(194, 90, 58, .16), transparent 62%),
    radial-gradient(760px 420px at 88% 8%, rgba(31, 111, 106, .16), transparent 60%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.1rem);
  max-width: 15ch;
  margin-bottom: .35em;
}

.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-1px); }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); transform: translateY(-1px); }

/* --- Sections and cards ------------------------------------------------- */

.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-alt { background: var(--sand-deep); border-block: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section-head p { color: var(--ink-soft); margin: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}

a.card:hover { transform: translateY(-3px); border-color: var(--clay); }

.card-icon { font-size: 1.7rem; line-height: 1; }
.card h3 { font-size: 1.15rem; margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.card-more {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--clay-dark);
}
@media (prefers-color-scheme: dark) { .card-more { color: var(--clay); } }

/* --- Page body ---------------------------------------------------------- */

.page-head {
  padding: clamp(44px, 7vw, 72px) 0 clamp(20px, 3vw, 32px);
  background:
    radial-gradient(760px 340px at 12% -20%, rgba(31, 111, 106, .14), transparent 60%);
}

.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .25em; }
.page-head .subtitle { color: var(--ink-soft); font-size: 1.1rem; margin: 0; max-width: 62ch; }

.prose {
  max-width: 68ch;
  padding-bottom: clamp(48px, 7vw, 84px);
}
.prose p { margin: 0 0 1.15em; }

.breadcrumb {
  font-size: .86rem;
  color: var(--ink-soft);
  padding-top: 24px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.empty-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--ink-soft);
  background: var(--card);
}

/* --- Flash messages ----------------------------------------------------- */

.flash {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: .94rem;
}
.flash-success { border-color: #86b7a0; background: rgba(31, 111, 106, .1); }
.flash-error   { border-color: #d99a8a; background: rgba(194, 90, 58, .1); }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sand-deep);
  padding: 34px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-note { margin: 0; font-weight: 500; }
.footer-meta { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.footer-meta a { color: inherit; }
