/* ===========================================================
   Seshat Oshun — Brand Tokens
   =========================================================== */
:root {
  --clay: #A85C36;
  --teal: #0F6B64;
  --plum: #4A1942;
  --cream: #EAD0B5;
  --gold: #B8863C;
  --espresso: #3D2314;
  --charcoal: #2B2725;

  --cream-soft: #F3E4D0;
  --white: #FFFBF6;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Work Sans", -apple-system, sans-serif;

  --radius: 6px;
  --shadow-soft: 0 8px 24px rgba(61, 35, 20, 0.12);
  --max-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--plum); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--espresso);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--plum);
  margin-bottom: 0.6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: #123736; color: var(--white); }

.btn-accent {
  background: var(--plum);
  color: var(--white);
}
.btn-accent:hover { background: #350f30; color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--clay);
  color: var(--espresso);
}
.btn-outline:hover { background: var(--clay); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(61, 35, 20, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo .logo-mark { height: 52px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso);
  opacity: 0.75;
  margin-top: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--espresso);
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--espresso);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--plum); }

.nav-cta {
  background: var(--plum);
  color: var(--white) !important;
  padding: 0.5em 1.1em;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--teal); color: var(--white) !important; }

/* ---------- Nav dropdown ---------- */
.main-nav .has-dropdown { position: relative; display: flex; align-items: center; gap: 4px; }
.dropdown-toggle {
  background: none;
  border: none;
  color: var(--espresso);
  font-size: 0.7rem;
  line-height: 1;
  padding: 2px;
  cursor: pointer;
}
.dropdown-toggle:hover { color: var(--plum); }

.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--cream);
  border: 1px solid rgba(61, 35, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 10px 0;
  min-width: 190px;
  flex-direction: column;
  gap: 0;
  z-index: 120;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .dropdown.is-open { display: flex; }
.main-nav .dropdown li { width: 100%; }
.main-nav .dropdown a {
  display: block;
  padding: 8px 18px;
  text-transform: none;
  font-size: 0.9rem;
  letter-spacing: 0;
}
.main-nav .dropdown a:hover { background: var(--cream-soft); color: var(--plum); }

/* ---------- Social links ---------- */
.social-links { display: flex; gap: 14px; margin-top: 18px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(234, 208, 181, 0.35);
  color: var(--cream-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.social-links a:hover { background: var(--gold); color: var(--espresso); border-color: var(--gold); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav .has-dropdown { flex-wrap: wrap; }
  .main-nav .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 6px 0 0 16px;
    min-width: 0;
  }
  /* :not(.is-open) matters — on a touch screen a tap also counts as a hover,
     so without it this rule would out-specify .is-open and close the menu
     the instant it was tapped open. */
  .main-nav .has-dropdown:hover .dropdown:not(.is-open) { display: none; }
  .main-nav .dropdown.is-open { display: flex; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 14px; padding: 18px 0; }
  .site-header .container { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-soft) 60%, var(--white) 100%);
  padding: 72px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--clay);
  margin-bottom: 1em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.4em; }
.hero-image img { background: transparent; }

@media (max-width: 780px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Section ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-soft); }
.section-dark {
  background: var(--espresso);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-header { max-width: 640px; margin: 0 auto 40px; text-align: center; }

/* ---------- Series picker ---------- */
.series-picker {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}
.series-picker label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 10px;
}
.series-picker select {
  width: 100%;
  padding: 0.8em 1em;
  border-radius: var(--radius);
  border: 1px solid var(--clay);
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
}
.series-picker select:focus { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Featured Books (Home) ---------- */
.featured-section { padding: 72px 0; }

.featured-heading {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clay);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 44px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 44px 32px;
  max-width: 980px;
  margin: 0 auto;
}

.featured-item { text-align: center; }

.featured-status {
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.featured-cover { display: block; }
.featured-cover img {
  margin: 0 auto;
  max-width: 260px;
  width: 100%;
  box-shadow: var(--shadow-soft);
  border-radius: 2px;
  transition: transform 0.18s ease;
}
.featured-cover:hover img { transform: translateY(-4px); }

.featured-series {
  color: var(--clay);
  font-weight: 700;
  font-size: 1.35rem;
  margin-top: 20px;
}

.featured-date {
  color: var(--charcoal);
  font-size: 0.95rem;
  margin-top: 6px;
}

.featured-empty {
  text-align: center;
  color: var(--teal);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ---------- Book cards ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.book-card img { aspect-ratio: 2 / 3; object-fit: cover; background: var(--cream-soft); }
.book-card-body { padding: 18px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.book-card .series-tag {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.book-card h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.book-card .subtitle { color: var(--clay); font-style: italic; margin-bottom: 0.6em; font-size: 0.95rem; }
.book-card .blurb { font-size: 0.92rem; color: var(--charcoal); flex: 1; }
.book-card .buy-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.book-card .buy-links a {
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--gold);
  color: var(--espresso);
  padding: 0.4em 0.85em;
  border-radius: 999px;
}
.book-card .buy-links a:hover { background: var(--gold); color: var(--white); }

.spicy-badge {
  display: inline-block;
  background: var(--plum);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Newsletter box ---------- */
.newsletter-box {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.newsletter-box h2 { color: var(--white); }
.newsletter-box p { color: var(--cream-soft); }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 22px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85em 1.1em;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-note { font-size: 0.8rem; color: var(--cream-soft); margin-top: 10px; }

/* ---------- Cards / generic ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.tag {
  display: inline-block;
  background: var(--cream-soft);
  color: var(--plum);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: var(--cream-soft);
  padding: 56px 0 28px;
}
.site-footer a { color: var(--cream-soft); }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-logo img { height: 62px; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(234, 208, 181, 0.15);
  padding-top: 22px;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(234, 208, 181, 0.6);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Password gate ---------- */
.gate-wrap {
  max-width: 460px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
}
.gate-wrap input[type="password"] {
  width: 100%;
  padding: 0.9em 1.1em;
  border-radius: var(--radius);
  border: 1px solid var(--clay);
  font-size: 1rem;
  margin: 18px 0;
}
.gate-error { color: var(--plum); font-weight: 600; display: none; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
ul.plain { padding-left: 1.1em; }
ul.plain li { margin-bottom: 0.5em; }

/* ---------- Goddess Row district guide ---------- */
.district-map {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 40px auto 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.district-category { margin-top: 64px; }
.district-category-header { text-align: center; margin-bottom: 32px; }
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 24px;
  justify-content: center;
}
.district-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.district-card h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--espresso);
}
.district-card p:last-child { margin-bottom: 0; }
.district-card .located-on {
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
}

.special-heading {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clay);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 32px;
}

.special-block { max-width: 560px; margin: 0 auto; }
.center-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--espresso);
}
.center-list li { margin-bottom: 6px; }

/* ---------- Newsletter success message ---------- */
.newsletter-success { max-width: 440px; margin: 22px auto 0; text-align: center; }
.newsletter-success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 6px;
}
.newsletter-success p:not(.newsletter-success-title) { color: var(--cream-soft); margin: 0; }
