/* ============================================================
   Theunis Pienaar — Author site
   Option 4: warm charcoal · cream · terracotta
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500;1,9..144,700&family=Inter:wght@300;400;500;600;700&family=Cardo:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- tokens ---------- */
:root {
  --bg:            #1a1310;
  --bg-elev:       #221a14;
  --bg-card:       #241c16;
  --bg-deep:       #120d0a;
  --line:          rgba(242, 232, 216, 0.07);
  --line-strong:   rgba(242, 232, 216, 0.14);

  --text:          #ede2cf;
  --text-muted:    #9a8d7d;
  --text-dim:      #8b8275;     /* bumped from #6f6458 for WCAG AA on charcoal */

  --terracotta:    #c46330;
  --terracotta-2:  #d77548;
  --terracotta-3:  #e08758;
  --terracotta-dim:#a04f24;
  --sage:          #7a9a6a;   /* sprout green from the logo — used sparingly as a "growing/waiting" accent */

  --display: 'Fraunces', 'Times New Roman', serif;
  --sans:    'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  /* Prose body face. Set to var(--sans) to revert. */
  --prose:   'Cardo', 'Georgia', 'Times New Roman', serif;

  --container: 1200px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 30px 60px -30px rgba(0,0,0,0.6);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; margin: 0; }

/* ---------- accessibility primitives ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* visible focus ring — terracotta so it harmonises with the palette */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--terracotta-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 3px;
  border-radius: 999px;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--terracotta-2);
  outline-offset: 1px;
  border-radius: 999px;
}
.socials a:focus-visible,
.store-badge:focus-visible {
  outline-offset: 3px;
}
.book-cover:focus-visible,
.book-hero__cover:focus-visible {
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---------- the stitching motif ----------
   Used as the page signature, echoing the book's "stitch by little stitch"
   metaphor. Appears as a small dashed terracotta underline beneath a few
   thematic headings (not every section break) and as a standalone divider. */
.stitch {
  display: block;
  height: 1px;
  width: 56px;
  border: 0;
  margin: 1.25rem auto 0;
  background-image: linear-gradient(to right, var(--terracotta-2) 50%, transparent 50%);
  background-size: 14px 1px;
  background-repeat: repeat-x;
  opacity: 0.65;
}
.stitch--lg { width: 96px; background-size: 16px 1px; }

.about-hero h1::after,
.post__head h1::after,
.throughline__head h2::after,
.work-with h2::after,
.work-with-section h2::after,
.book-hero h1::after {
  content: '';
  display: block;
  height: 1px;
  width: 56px;
  margin: 1.4rem auto 0;
  background-image: linear-gradient(to right, var(--terracotta-2) 50%, transparent 50%);
  background-size: 14px 1px;
  background-repeat: repeat-x;
  opacity: 0.55;
}

/* respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* subtle paper-grain noise on the body */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 99, 48, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(196, 99, 48, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
section { padding: 6rem 0; }
@media (max-width: 720px) { section { padding: 4rem 0; } .container { padding: 0 1.25rem; } }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0;
  background: rgba(26, 19, 16, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
  z-index: 50;
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 88px;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 1.5rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
  display: inline-block;
  padding: 4px 0;
  white-space: nowrap;
}
.brand span { color: var(--terracotta-2); }
.nav-links {
  display: flex; gap: 2.5rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--terracotta-2); }
.nav-links a.is-active { color: var(--terracotta-2); }
.nav-links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--terracotta-2);
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--text); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, border-bottom-color 0.3s ease, padding 0.3s ease;
  }
  .nav-links.is-open {
    max-height: 600px;
    padding: 0.5rem 0;
    border-bottom-color: var(--line);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* ---------- typographic primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-2);
  margin: 0 0 1.25rem 0;
}
.lede {
  font-family: var(--prose);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 0 2.25rem 0;
}
.display-italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: #1a1310;
}
.btn-primary:hover { background: var(--terracotta-2); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--terracotta-2); color: var(--terracotta-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ============================================================
   HOME
   ============================================================ */

/* ---------- hero ---------- */
.hero {
  padding: 5rem 0 7rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4rem;
  align-items: start;
}
.hero__copy h1 {
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0 0 1.75rem 0;
  font-weight: 400;
}
.hero__copy h1 em {
  font-style: italic;
  color: var(--terracotta-2);
  font-weight: 500;
}
.hero__copy .lede { max-width: 42ch; }

.hero__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.55) 100%),
    url('../images/theunis-portrait.jpg') center 22% / cover no-repeat,
    linear-gradient(165deg, var(--terracotta-3) 0%, var(--terracotta) 45%, #6d3417 100%);
  box-shadow: var(--shadow-card);
}
.hero__portrait::after {
  /* faint grain to keep the placeholder block from looking flat */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 10%, rgba(255, 220, 180, 0.18), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero__portrait-caption {
  position: absolute; left: 1.75rem; right: 1.75rem; bottom: 1.5rem;
  font-family: var(--display); font-style: italic;
  color: var(--cream, #f6ecd8);
  font-size: 1rem;
  letter-spacing: 0.005em;
}

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__portrait { max-width: 480px; }
}

/* ---------- latest book ---------- */
.latest-book {
  padding-top: 1rem;
}
.latest-book__head { text-align: center; margin-bottom: 3.5rem; }
.latest-book__head .eyebrow { margin-bottom: 0; }

.latest-book__grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.book-cover {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 6px;
  background-image: url('../brand/logo-portrait.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f4ead4;
  position: relative;
  display: block;
  padding: 0;
  text-align: center;
  box-shadow:
    0 30px 50px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    inset 6px 0 12px -6px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.book-cover:hover {
  transform: translateY(-2px);
  box-shadow:
    0 36px 60px -22px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    inset 6px 0 12px -6px rgba(0,0,0,0.12);
}
.book-cover__title { display: none; }
.book-cover__author {
  position: absolute;
  left: 0; right: 0;
  bottom: 1.1rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #6f6458;
}
.latest-book__copy h2 {
  font-size: 2.25rem;
  margin: 0 0 1rem 0;
}
.latest-book__copy p {
  color: var(--text-muted);
  margin: 0 0 1.75rem 0;
}
@media (max-width: 720px) {
  .latest-book__grid { grid-template-columns: 1fr; gap: 2rem; justify-items: center; text-align: center; }
  .book-cover { max-width: 220px; }
}

/* ---------- pull quote ---------- */
.pullquote {
  padding: 5rem 0;
}
.pullquote__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  color: var(--text);
}
.pullquote em { color: var(--terracotta-2); font-style: italic; }

/* ---------- throughline ---------- */
.throughline__head { text-align: center; margin-bottom: 3.5rem; }
.throughline__head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card__label {
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta-2);
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}
.card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 0.75rem 0;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- newsletter ---------- */
.newsletter {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.newsletter h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 1rem 0; }
.newsletter p { color: var(--text-muted); margin: 0; }
.newsletter form {
  display: flex; gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter input[type='email'] {
  flex: 1; min-width: 220px;
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  outline: none;
}
.newsletter input[type='email']::placeholder { color: var(--text-dim); }
.newsletter input[type='email']:focus { border-color: var(--terracotta-2); }
.newsletter small { display: block; color: var(--text-dim); margin-top: 0.75rem; font-size: 0.82rem; }
@media (max-width: 820px) { .newsletter__inner { grid-template-columns: 1fr; } }

/* ---------- enquiry / intake forms (coaching, speaking) ---------- */
.enquiry { padding: 1rem 0 5rem; }
.enquiry-form { max-width: 620px; margin: 0 auto; }
.enquiry-form .field { margin-bottom: 1.4rem; }
.enquiry-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.enquiry-form label .req { color: var(--terracotta-2); }
.enquiry-form label .opt { color: var(--text-dim); font-size: 0.82em; }
.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
}
.enquiry-form textarea { min-height: 130px; resize: vertical; }
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder { color: var(--text-dim); }
.enquiry-form input:focus,
.enquiry-form textarea:focus { border-color: var(--terracotta-2); outline: none; }
.enquiry-form .btn { margin-top: 0.5rem; }
.enquiry-form small { display: block; color: var(--text-dim); margin-top: 0.9rem; font-size: 0.82rem; }

/* Actionable card link — terracotta, distinct from the sage "coming soon" pill. */
.connect-card__cta {
  margin-top: 0.5rem;
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terracotta-2);
  border: 1px solid currentColor;
  padding: 4px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.connect-card__cta:hover { background: var(--terracotta-2); color: #fdf6ec; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-deep);
  padding: 4rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1rem 0;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a:hover { color: var(--terracotta-2); }
.site-footer .brand { font-size: 1.35rem; }
.site-footer__tag { margin: 0.75rem 0 0; max-width: 28ch; }
.site-footer .socials { margin-top: 0.75rem; }
.site-footer__base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.socials { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.socials a:hover { color: var(--terracotta-2); border-color: var(--terracotta-2); transform: translateY(-1px); }
.socials svg { width: 18px; height: 18px; }
.socials a span { display: none; }

/* Larger labelled version for the contact page */
.contact-social {
  margin-top: 3rem;
  text-align: center;
}
.contact-social__label {
  color: var(--text-dim);
  margin: 0 0 1.25rem 0;
  font-size: 0.95rem;
}
.socials--lg {
  justify-content: center;
  gap: 1rem;
}
.socials--lg a {
  width: auto; height: auto;
  padding: 0.65rem 1.1rem 0.65rem 0.85rem;
  border-radius: 999px;
  gap: 0.55rem;
}
.socials--lg a span {
  display: inline;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.socials--lg svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT page
   ============================================================ */
.about-hero { padding: 5rem 0 3rem; }
.about-hero__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center;
}
.about-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.1; margin: 0 0 1.5rem 0; }
.about-hero h1 em { color: var(--terracotta-2); font-weight: 500; }
.about-portrait {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background:
    url('../images/theunis-portrait.jpg') center 22% / cover no-repeat,
    linear-gradient(165deg, var(--terracotta-3), var(--terracotta) 50%, #6d3417);
  box-shadow: var(--shadow-card);
}
.prose { max-width: 680px; margin: 0 auto; }
.prose p {
  font-family: var(--prose);
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.65;
  margin: 0 0 1.4rem 0;
}
.prose p:first-of-type::first-line { color: var(--text); }
.prose h2 {
  font-size: 1.6rem; color: var(--text);
  margin: 2.5rem 0 1rem 0;
  font-family: var(--display); font-style: italic; font-weight: 500;
}
@media (max-width: 820px) {
  .about-hero__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BOOK page
   ============================================================ */
.book-hero { padding: 5rem 0 4rem; }
.book-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 4rem; align-items: center;
}
.book-hero__cover {
  aspect-ratio: 2/3;
  width: 100%;
  border-radius: 6px;
  background-image: url('../brand/logo-portrait.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f4ead4;
  position: relative;
  padding: 0;
  text-align: center;
  box-shadow:
    0 40px 60px -25px rgba(0,0,0,0.7),
    inset 6px 0 12px -6px rgba(0,0,0,0.12);
}
.book-hero__cover .book-cover__title { display: none; }
.book-hero__cover .book-cover__author {
  position: absolute;
  left: 0; right: 0;
  bottom: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: #6f6458;
}
.book-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin: 0 0 0.5rem 0;
  font-style: italic;
}
.book-hero__tagline { color: var(--terracotta-2); font-family: var(--display); font-style: italic; margin-bottom: 1.5rem; }
.buy-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.buy-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.buy-link:hover { border-color: var(--terracotta-2); color: var(--terracotta-2); }

.book-section { padding: 4rem 0; border-top: 1px solid var(--line); }
.book-section h2 {
  text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 2.5rem 0;
}
.endorsements {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  max-width: 960px; margin: 0 auto;
}
.endorsement {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
}
.endorsement blockquote {
  margin: 0 0 1rem 0; font-family: var(--display); font-style: italic;
  font-size: 1.1rem; line-height: 1.5;
}
.endorsement cite {
  font-style: normal; color: var(--terracotta-2);
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 720px) {
  .book-hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .book-hero__cover { max-width: 240px; }
  .endorsements { grid-template-columns: 1fr; }
  .buy-links { justify-content: center; }
}

/* ============================================================
   APP page
   ============================================================ */
.app-hero { padding: 5rem 0 4rem; text-align: center; }
.app-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 0 0 1.5rem 0; }
.app-hero h1 em { color: var(--terracotta-2); font-style: italic; font-weight: 500; }
.app-hero p.lede { margin: 0 auto 2.5rem; max-width: 50ch; }
.store-badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.app-privacy-note {
  margin: 3.5rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.app-privacy-note a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.app-privacy-note a:hover {
  color: var(--terracotta-2);
  border-bottom-color: var(--terracotta-2);
}
.store-badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.store-badge:hover { border-color: var(--terracotta-2); color: var(--terracotta-2); transform: translateY(-1px); }
.store-badge svg { width: 22px; height: 22px; }
.store-badge__main { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }

/* Not-yet-launched state: present but plainly unavailable. */
.store-badge.is-soon { cursor: default; color: var(--text-muted); }
.store-badge.is-soon:hover { border-color: var(--line-strong); color: var(--text-muted); transform: none; }
.store-badge__text { display: inline-flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge.is-soon .store-badge__main { color: var(--text); }
.store-badge__soon {
  margin-top: 2px;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--terracotta-2);
}

.app-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-top: 4rem;
}
@media (max-width: 820px) { .app-features { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.85rem;
}
.feature__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(196, 99, 48, 0.15);
  color: var(--terracotta-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.2rem; margin: 0 0 0.6rem 0; }
.feature p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ============================================================
   CONTACT page
   ============================================================ */
.contact-hero { padding: 5rem 0; text-align: center; }
.contact-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin: 0 0 1.25rem 0; }
.contact-hero p { max-width: 50ch; margin: 0 auto 2.5rem; color: var(--text-muted); }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  max-width: 880px; margin: 0 auto;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem;
  text-align: center;
}
.contact-card h3 { font-size: 1.15rem; margin: 0 0 0.5rem 0; color: var(--terracotta-2); font-style: italic; }
.contact-card a { color: var(--text); border-bottom: 1px solid transparent; }
.contact-card a:hover { border-bottom-color: var(--terracotta-2); }

/* ============================================================
   PRIVACY / Journal stub
   ============================================================ */
.simple-hero { padding: 5rem 0 2rem; text-align: center; }
.simple-hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin: 0 0 1rem 0; }
.simple-hero p { color: var(--text-muted); max-width: 50ch; margin: 0 auto; }
.legal { max-width: 760px; margin: 0 auto; padding: 2rem 0 6rem; }
.legal h2 { font-size: 1.4rem; color: var(--text); margin: 2rem 0 0.75rem 0; font-style: italic; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.25rem; }

/* ============================================================
   WORK WITH THEUNIS / CONNECT cards (used on contact + home)
   ============================================================ */
.work-with {
  margin-top: 4rem;
  text-align: center;
}
.work-with h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}
.work-with__lede {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

.work-with-section { padding: 5rem 0; }

.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 820px) { .connect-grid { grid-template-columns: 1fr; } }

.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  transition: border-color 0.2s ease;
}
.connect-card:hover { border-color: var(--line-strong); }
.connect-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(196, 99, 48, 0.15);
  color: var(--terracotta-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.connect-card__icon svg { width: 22px; height: 22px; }
.connect-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}
.connect-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

/* State badge — outlined sage, distinct from terracotta CTAs. Sage echoes the
   sprout in the logo: this thing is growing/coming, not a call to act. */
.pill--soon {
  background: transparent;
  color: var(--sage);
  border: 1px solid currentColor;
  padding: 3px 11px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  opacity: 0.95;
}

/* Get the book CTA (contact page) */
.get-the-book {
  margin-top: 4rem;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.get-the-book .eyebrow { margin-bottom: 0.75rem; }
.get-the-book h2 {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}
.get-the-book__tagline {
  margin: 0 0 1.75rem 0;
  font-size: 1.05rem;
}

/* ============================================================
   JOURNAL list + POST
   ============================================================ */
.journal-list { padding: 3rem 0 5rem; }
.journal-empty { text-align: center; color: var(--text-muted); padding: 2rem 0; }
.journal-entries {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}
.journal-entry {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.journal-entry:first-child { padding-top: 0; }
.journal-entry:last-child { border-bottom: 0; }
.journal-entry__date {
  color: var(--terracotta-2);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.75rem 0;
}
.journal-entry h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}
.journal-entry h2 a {
  color: var(--text);
  transition: color 0.2s;
}
.journal-entry h2 a:hover { color: var(--terracotta-2); }
.journal-entry__excerpt {
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  font-size: 1.025rem;
}
.journal-entry__more {
  color: var(--terracotta-2);
  font-size: 0.9rem;
  font-family: var(--display);
  font-style: italic;
}
.journal-entry__more:hover { color: var(--terracotta-3); }

.post { padding: 4rem 0 6rem; }
.post__head { max-width: 760px; text-align: center; margin-bottom: 3rem; }
.post__date { margin: 0 0 1rem 0; }
.post__head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0;
  font-weight: 500;
}
.post__body {
  max-width: 680px;
  font-family: var(--prose);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
}
.post__body p { margin: 0 0 1.5rem 0; color: var(--text); }
.post__body h2 {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1.6rem;
  color: var(--text);
  margin: 2.5rem 0 1rem 0;
}
.post__body h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem 0;
}
.post__body blockquote {
  margin: 1.75rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 2px solid var(--terracotta-2);
  font-family: var(--display);
  font-style: italic;
  color: var(--text);
  font-size: 1.15rem;
}
.post__body a {
  color: var(--terracotta-2);
  border-bottom: 1px solid rgba(215, 117, 72, 0.3);
  transition: border-color 0.2s;
}
.post__body a:hover { border-bottom-color: var(--terracotta-2); }
.post__body ul, .post__body ol { padding-left: 1.5rem; margin: 0 0 1.5rem 0; }
.post__body li { margin: 0 0 0.5rem 0; color: var(--text); }
.post__body img {
  max-width: 100%; height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.post__foot { max-width: 680px; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post__back { color: var(--text-muted); font-size: 0.9rem; }
.post__back:hover { color: var(--terracotta-2); }
