/* Onward Honestly — shared site stylesheet
   Brand system: see ONWARD_HONESTLY_BRAND_GUIDE.md */

:root {
  --plum-deep: #24131F;
  --plum: #3B2034;
  --coral: #F05A3C;
  --gold: #E5B746;
  --cream: #FFF1D6;
  --ink: #211A1E;
  --mauve: #BDAFB6;
  --cream-soft: #FFF8E9;
  --max-w: 1120px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(36, 19, 31, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--plum-deep);
  color: var(--cream);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, .display {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  color: var(--plum-deep);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.1em; }
a { color: var(--coral); }

.utility, button, .btn, nav, footer, .eyebrow, .tag, .meta {
  font-family: "Source Sans 3", Arial, sans-serif;
}

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

/* Header / nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 241, 214, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(36, 19, 31, 0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand-logo img { height: 34px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a {
  color: var(--plum-deep);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-color: var(--coral);
  color: var(--coral);
}

.nav-cta {
  background: var(--plum-deep);
  color: var(--cream) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
}
.nav-cta:hover { background: var(--coral); }

.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #d8492e; color: #fff; }

.btn-secondary {
  background: transparent;
  border-color: var(--plum-deep);
  color: var(--plum-deep);
}
.btn-secondary:hover { background: var(--plum-deep); color: var(--cream); }

.btn-gold { background: var(--gold); color: var(--plum-deep); }
.btn-gold:hover { background: #d1a53b; }

.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero {
  padding: 84px 0 64px;
  text-align: left;
  overflow: hidden;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 14px;
  display: inline-block;
}
.hero p.lede {
  font-size: 1.2rem;
  max-width: 46ch;
  color: var(--plum);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-split > div:first-child { position: relative; z-index: 1; }
.hero .quote-card {
  isolation: isolate;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero .quote-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  top: -78px;
  right: -48px;
  z-index: -1;
  border: 1px solid rgba(229,183,70,.35);
  border-radius: 46% 54% 58% 42% / 52% 42% 58% 48%;
  transform: rotate(18deg);
}
.hero .quote-card::after {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: -1;
  border: 1px solid rgba(255,241,214,.1);
  border-radius: calc(var(--radius) - 4px);
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
}

/* Sections */
section { padding: 64px 0; }
section.tinted { background: var(--cream-soft); }
section.deep {
  background: var(--plum-deep);
  color: var(--cream);
}
section.deep h1, section.deep h2, section.deep h3 { color: var(--cream); }
section.deep p { color: rgba(255, 241, 214, 0.85); }
section.deep a:not(.btn) { color: var(--gold); }

.section-head { max-width: 62ch; margin-bottom: 36px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral);
}

/* Pillars grid */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(36, 19, 31, 0.06);
}
.card .num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--mauve);
  display: block;
  margin-bottom: 6px;
}

/* Book showcase */
.book-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) {
  .book-panel { grid-template-columns: 1fr; }
}
.book-cover {
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%);
  border-radius: var(--radius);
  aspect-ratio: 6/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-align: center;
  padding: 28px;
  box-shadow: var(--shadow);
}
.book-cover .imprint {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.truths-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.truths-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(36, 19, 31, 0.1);
  display: flex;
  gap: 14px;
}
.truths-list li:first-child { border-top: none; }
.truths-list .n {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: var(--coral);
  min-width: 2.4ch;
}

/* Quote cards */
.quote-card {
  background: var(--plum-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  box-shadow: var(--shadow);
}
.quote-card blockquote {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 14px;
}
.quote-card cite {
  font-family: "Source Sans 3", sans-serif;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote-card.light { background: #fff; color: var(--plum-deep); }
.quote-card.light blockquote { color: var(--plum-deep); }
.quote-card.light cite { color: var(--coral); }

/* Forms */
.signup-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(36,19,31,0.06);
}
.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--mauve);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
}
.signup-form input[type="email"]:focus { outline: 2px solid var(--coral); border-color: var(--coral); }
.form-note { font-size: 0.85rem; color: var(--plum); font-family: "Source Sans 3", sans-serif; margin-top: 10px; }

/* Ladder / CTA list */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ladder a.btn { justify-content: space-between; }

/* Footer */
footer.site-footer {
  background: var(--plum-deep);
  color: var(--cream);
  padding: 56px 0 34px;
  margin-top: 40px;
}
footer.site-footer a { color: var(--cream); text-decoration: none; opacity: 0.85; }
footer.site-footer a:hover { opacity: 1; color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-signup {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, .8fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 34px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,241,214,.15);
}
.footer-signup h3 { color: var(--cream); margin-bottom: 8px; }
.footer-signup p { max-width: 52ch; margin: 0; opacity: .78; }
.footer-signup .signup-form { margin: 0; }
.footer-signup .signup-form input { min-width: 0; background: rgba(255,255,255,.96); }
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-signup { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--gold);
  font-family: "Source Sans 3", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 0.95rem; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,241,214,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  font-family: "Source Sans 3", sans-serif;
  opacity: 0.75;
}

/* Author strip */
.author-strip {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  align-items: center;
}
.author-strip img {
  border-radius: 50%;
  width: 140px;
  height: 140px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .author-strip { grid-template-columns: 1fr; text-align: center; }
  .author-strip img { margin: 0 auto; }
}

/* Mobile nav */
@media (max-width: 760px) {
  nav.main-nav ul {
    position: fixed;
    inset: 62px 0 auto 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 16px;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.25);
    display: none;
  }
  nav.main-nav ul.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--plum-deep);
    cursor: pointer;
  }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(240, 90, 60, 0.12);
  color: var(--coral);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Real book cover image */
.book-cover-img {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(36,19,31,.7), 0 2px 6px rgba(36,19,31,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.book-cover-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 70px -24px rgba(36,19,31,.78);
}
.book-cover-img img { width: 100%; height: auto; display: block; }

/* Legal / long-form pages */
.legal { max-width: 46rem; }
.legal h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.legal h2:first-of-type { margin-top: .4em; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5em; }
.legal .updated {
  font-family: "Source Sans 3", sans-serif;
  font-size: .85rem; color: var(--plum); opacity: .8;
}

/* Journal */
.journal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.journal-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
  border: 1px solid rgba(36,19,31,.1);
  border-radius: var(--radius);
  background: var(--cream-soft);
}
.journal-card h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.journal-card h2 a { color: var(--plum-deep); text-decoration: none; }
.journal-card h2 a:hover { color: var(--coral); }
.journal-card .meta { margin-top: auto; padding-top: 18px; color: var(--plum); font-size: .85rem; }

.article-shell { max-width: 760px; }
.article-shell .article-dek { font-size: 1.25rem; color: var(--plum); }
.article-shell .meta { color: var(--plum); font-size: .9rem; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.45em; }
.article-body blockquote {
  margin: 2rem 0;
  padding: 22px 26px;
  border-left: 5px solid var(--coral);
  background: var(--cream-soft);
  color: var(--plum-deep);
  font-size: 1.15rem;
}
.article-cta { margin-top: 48px; }

@media (max-width: 680px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-top: 58px; }
  .hero .quote-card { min-height: 250px; }
  .journal-list { grid-template-columns: 1fr; }
  .signup-form { flex-direction: column; }
  .signup-form input[type="email"],
  .signup-form .btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
