/* ============================================================
   Deb Chantson — Writer / Narrative Designer
   Shared stylesheet
   ------------------------------------------------------------
   Palette
     Carbon Black   #191716
     Jungle Teal    #028D7D
     Deep Twilight  #060642
     Indigo         #40056D
     Off-white bg   #FAF8F4
   ============================================================ */

:root {
  --carbon:        #191716;
  --teal:          #028D7D;
  --teal-dark:     #016B5E;
  --twilight:      #060642;
  --indigo:        #40056D;
  --bg:            #FAF8F4;
  --bg-soft:       #F2EFE8;
  --card:          #FFFFFF;
  --line:          #E4DFD5;
  --muted:         #5C5853;

  --maxw:          1120px;
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 1px 2px rgba(25, 23, 22, .04),
                   0 12px 32px rgba(6, 6, 66, .07);
  --shadow-sm:     0 1px 2px rgba(25, 23, 22, .05),
                   0 6px 18px rgba(6, 6, 66, .06);

  --font-display:  'Crimson Text', Georgia, 'Times New Roman', serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease:          cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--carbon);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--indigo); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--twilight);
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1rem; }

::selection { background: var(--teal); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

.section-head { max-width: 62ch; margin-bottom: 2.5rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--twilight);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--twilight);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--twilight); }
.brand .brand-mark {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--carbon);
  position: relative;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--carbon);
  font-size: .96rem;
  font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--bg-soft); color: var(--indigo); }
.nav-links a[aria-current="page"] {
  color: var(--teal-dark);
  background: rgba(2, 141, 125, .1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--dark { background: var(--twilight); color: #fff; }
.btn--dark:hover { background: var(--indigo); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--twilight); background: var(--card); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(64, 5, 109, .12), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(2, 141, 125, .14), transparent 50%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero h1 { color: var(--twilight); }
.hero h1 .accent { color: var(--teal-dark); }
.hero .lead { margin-bottom: 2rem; }

.hero-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, var(--indigo), var(--twilight) 60%, var(--teal-dark));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual::after {
  content: "Portrait placeholder";
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: rgba(255, 255, 255, .55);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-visual .blob {
  position: absolute;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .5;
}
.hero-visual .blob--1 { background: var(--teal); top: -10%; right: -8%; }
.hero-visual .blob--2 { background: var(--indigo); bottom: -12%; left: -10%; }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-soft), #e7e2d8);
  border: 1px dashed var(--line);
  display: grid;
  place-content: center;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  aspect-ratio: 16 / 10;
}
.ph[data-ratio="square"] { aspect-ratio: 1 / 1; }
.ph[data-ratio="tall"]   { aspect-ratio: 3 / 4; }

/* ---------- Real images in feature/hero slots ---------- */
.feature-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero-visual.has-img { background: var(--twilight); }
.hero-visual.has-img::after { content: none; }
.feature-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-figure .feature-img {
  border-radius: 0;
  box-shadow: none;
}
.hero-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: .9rem .85rem .55rem;
  font-size: .72rem;
  line-height: 1.4;
  text-align: right;
  color: rgba(255, 255, 255, .9);
  background: linear-gradient(to top, rgba(6, 6, 66, .8), transparent);
}
.hero-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.hero-credit a:hover { color: var(--teal); }
.tl-media {
  margin-top: 1rem;
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* ---------- Events: stacked entries, videos, media ---------- */
.event-stack { display: grid; gap: 1.8rem; }
.event-stack .card > p:first-child { margin-top: 0; }
.event-media {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1.2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.event-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.event-fig { margin: 0; }
.event-fig img { display: block; width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.media-credit { font-size: .8rem; color: var(--muted); margin-top: .45rem; }
.event-bullets { margin: .7rem 0 0; padding-left: 1.2rem; }
.event-bullets li { margin-bottom: .5rem; }
@media (max-width: 700px) { .event-photos { grid-template-columns: 1fr; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9d3c7; }
.card h3 { color: var(--twilight); margin-bottom: .4rem; }
.card .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(2, 141, 125, .1);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}

/* Feature row (alternating media + text) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.feature--reverse .feature-media { order: 2; }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--teal-dark);
  line-height: 1;
}
.stat .label { color: var(--muted); font-size: .95rem; margin-top: .4rem; }

/* ---------- Article / list rows ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.list-row:first-child { border-top: 1px solid var(--line); }
.list-row .title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--twilight);
  flex: 1 1 60%;
}
.list-row .source { color: var(--muted); font-size: .95rem; }
.list-row .source em { color: var(--teal-dark); font-style: normal; font-weight: 600; }

/* ---------- Article cards ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.article-card .ph,
.article-card .article-thumb {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.article-card .article-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--bg-soft);
}
.article-card .article-body {
  padding: 1.3rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.article-card .read {
  margin-top: auto;
  padding-top: .9rem;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: .92rem;
}
.article-card:hover .read { color: var(--indigo); }

/* ---------- Store buttons (book retailers) ---------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.store-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .45rem;
  padding: 1.6rem 1rem;
  min-height: 132px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.store-btn:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow); }
.store-btn .store-ico { width: 30px; height: 30px; color: var(--teal-dark); }
.store-btn .store-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--twilight);
  line-height: 1.12;
}
.store-btn .store-note { font-size: .78rem; color: var(--muted); }
@media (max-width: 880px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .store-grid { grid-template-columns: 1fr; } }

/* ---------- Bookstore directory (accordion) ---------- */
.directory { margin-top: 2.5rem; }
.directory .country {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 1rem;
}
.region {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: .7rem;
  box-shadow: var(--shadow-sm);
}
.region > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--twilight);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.region > summary::-webkit-details-marker { display: none; }
.region > summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.region[open] > summary::after { transform: rotate(-135deg); }
.region > summary:hover { color: var(--indigo); }
.region-body { padding: 0 1.25rem .6rem; }
.store-list { list-style: none; margin: 0; padding: 0; }
.store-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .5rem;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
}
.store-list li .city { color: var(--muted); }
.store-list li .sep { color: var(--line); }

/* ---------- Timeline (events) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding: 0 0 2rem 2.4rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--teal);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .when {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.timeline h3 { margin: .25rem 0 .35rem; font-size: 1.2rem; }
.timeline .where { color: var(--muted); font-size: .92rem; margin-bottom: .5rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(64, 5, 109, .1), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(2, 141, 125, .12), transparent 50%);
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
}
.page-hero h1 { margin-bottom: .6rem; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--twilight), var(--indigo));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 52ch; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-method { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-method:last-child { border-bottom: 0; }
.contact-method .ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-content: center;
  background: rgba(2, 141, 125, .12);
  color: var(--teal-dark);
}
.contact-method .label { font-size: .82rem; color: var(--muted); }
.contact-method .value { font-weight: 600; color: var(--twilight); }

.socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: .92rem;
  font-weight: 500;
  color: var(--carbon);
}
.social-link:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); transition: all .2s var(--ease); }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p { color: #2c2926; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }

/* Pills / chips */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-size: .88rem;
  font-weight: 500;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--carbon);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--twilight);
  color: rgba(255, 255, 255, .8);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand .brand-mark { color: var(--teal); }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  justify-content: space-between;
  font-size: .86rem;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.2rem, 4vw, 2.5rem) 1.5rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .8rem 1rem; border-radius: var(--radius-sm); }

  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; order: -1; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: 1fr; gap: 1.8rem; }
}