/* ==========================================================================
   Meet One Entrepreneur: site styles
   Colors and type come from the book cover: navy, cream, and gold, with
   Playfair Display for headings and Montserrat for body text.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, variable weight) ---------- */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --spine-top: #17293f;
  --spine: #0b1a2c;
  --navy: #132a45;
  --navy-steel: #1e3d60;
  --gold: #c4952f;
  --gold-light: #e4c377;
  --gold-pale: #f3e3be;
  --gold-deep: #85621a; /* gold that is dark enough for small text on light backgrounds */
  --cream: #fbefd5;
  --paper: #f8f4ec;
  --ink: #1d2b36;
  --muted: #56636f;
  --line: #e4dccb;
  --on-navy: #dbe3ec;
  --on-navy-muted: #a9b8c8;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1100px;
  --gutter: 28px;
  --radius: 3px;
  --shadow-book: 0 30px 60px -18px rgba(11, 26, 44, 0.5);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 6.5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.04;
}

h1 em {
  font-style: normal;
  color: var(--gold);
}

.h1-md {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}

h3,
.h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

p {
  margin: 0 0 1.15rem;
}

p:last-child {
  margin-bottom: 0;
}

cite {
  font-style: italic;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

blockquote,
figure {
  margin: 0;
}

/* ---------- Helpers ---------- */

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

.wrap-narrow {
  max-width: calc(780px + var(--gutter) * 2);
}

.center {
  text-align: center;
}

.small {
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--spine);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow-light {
  color: var(--gold-light);
}

.textlink {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.textlink:hover {
  text-decoration-color: var(--navy);
}

/* ---------- Surfaces ---------- */

.section {
  padding: 96px 0;
}

.bg-cream {
  background: var(--cream);
}

.bg-paper {
  background: var(--paper);
}

.bg-navy {
  background: var(--navy);
  color: var(--on-navy);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3 {
  color: #fff;
}

.bg-gold {
  background: var(--gold);
  color: var(--spine);
}

.bg-gold h2 {
  color: var(--spine);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.82rem;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-steel);
  border-color: var(--navy-steel);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: rgba(19, 42, 69, 0.07);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--spine);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-outline-light:hover {
  background: rgba(228, 195, 119, 0.12);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.actions-center {
  justify-content: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(180deg, var(--spine-top) 0%, var(--spine) 100%);
  border-bottom: 1px solid rgba(228, 195, 119, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 70px;
}

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

.mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.mark span {
  color: var(--gold-light);
}

.brand-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-title em {
  font-style: normal;
  color: var(--gold-light);
}

.brand-sep {
  width: 1px;
  height: 22px;
  background: var(--gold);
}

.brand-author {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.site-nav a {
  padding: 6px 0;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--gold-light);
}

.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

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

.hero {
  padding: 88px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 72px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 4px;
}

.hero-sub {
  margin: 20px 0 22px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--navy);
}

.bg-navy .hero-sub {
  color: var(--gold-pale);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 999px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Book cover with the gold block behind it */
.cover {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.cover::before {
  content: "";
  position: absolute;
  inset: -28px 36px 44px -36px;
  background: var(--gold-pale);
}

.cover img {
  position: relative;
  width: 100%;
  border-radius: 2px 8px 8px 2px;
  box-shadow: var(--shadow-book);
  transform: rotate(1.5deg);
}

/* ---------- Quote band ---------- */

.quote-band {
  padding: 92px 0;
  text-align: center;
}

.quote-band blockquote {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-style: italic;
  line-height: 1.28;
  color: var(--gold-light);
  text-wrap: balance;
}

.cite {
  margin-top: 26px;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

/* ---------- Layouts ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

/* Photo with a thin gold frame */
.frame {
  padding: 12px;
  border: 1.5px solid var(--gold);
  background: #fff;
}

.frame-light {
  background: transparent;
  border-color: var(--gold-light);
}

/* ---------- Pull quotes and endorsements ---------- */

.pull {
  margin: 30px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--gold);
}

.pull p {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.38;
  color: var(--navy);
}

.pull footer {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.pull-light p {
  color: var(--gold-light);
}

.pull-light footer {
  color: var(--on-navy-muted);
}

.endorsements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.endorsement {
  padding: 36px 36px 32px;
  background: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 18px 40px -24px rgba(11, 26, 44, 0.35);
}

.endorsement blockquote p {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--navy);
}

.endorsement figcaption {
  margin-top: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.endorsement-long blockquote p {
  font-size: 1.25rem;
}

.dedication {
  margin: 8px 0 28px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
}

/* ---------- Cards and lists ---------- */

.card-rule {
  padding-top: 22px;
  border-top: 2px solid var(--gold);
}

.card-rule h3 em {
  font-weight: 700;
}

.card-panel {
  padding: 34px 34px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -28px rgba(11, 26, 44, 0.35);
}

.ticks {
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-top: 1px solid var(--line);
}

.ticks li:first-child {
  border-top: 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.litany {
  list-style: none;
  margin: 8px 0 26px;
  padding-left: 22px;
  border-left: 2px solid var(--gold-pale);
}

.litany li {
  padding: 4px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.chips li {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
}

.chips-quiet li {
  background: #fff;
  border-color: var(--line);
}

.formats-title {
  margin-top: 36px;
  font-size: 1.1rem;
}

/* ---------- Stats ---------- */

.stats-band {
  padding: 64px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.stat {
  padding-left: 22px;
  border-left: 1px solid rgba(228, 195, 119, 0.45);
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--on-navy-muted);
}

/* ---------- Talks ---------- */

.talk-list {
  list-style: none;
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.talk-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.talk-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

.talk-format {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.talks {
  border-top: 1px solid var(--line);
}

.talk {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px 56px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.talk h3 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
}

.talk .talk-format {
  margin-bottom: 10px;
}

.talk-fit {
  font-size: 0.92rem;
  color: var(--muted);
}

.talk-fit span {
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Credentials strip ---------- */

.creds-band {
  padding: 28px 0;
  background: var(--spine);
  border-top: 1px solid rgba(228, 195, 119, 0.25);
}

.creds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 24px;
  list-style: none;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--on-navy-muted);
}

.creds li {
  padding-left: 16px;
  border-left: 1px solid rgba(228, 195, 119, 0.4);
}

.creds strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-light);
}

/* ---------- Table of contents ---------- */

.toc {
  list-style: none;
  margin: 8px 0 22px;
  border-top: 1px solid var(--line);
}

.toc li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.toc-num {
  flex: none;
  width: 2ch;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.toc-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.toc-leader {
  flex: 1;
  min-width: 24px;
  border-bottom: 1px dotted var(--gold);
  transform: translateY(-5px);
}

.toc-sub {
  font-family: var(--serif);
  font-style: italic;
  text-align: right;
  color: var(--muted);
}

.toc-note {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 26px 22px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
  background: #fff;
  border-top: 3px solid var(--gold);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
}

.steps-after {
  max-width: 720px;
  margin: 44px auto 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  color: var(--navy);
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  border-left: 1px solid var(--gold);
}

.timeline li {
  position: relative;
  padding: 0 0 30px 34px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px #fff;
}

.timeline h3 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.timeline p {
  color: var(--muted);
}

/* ---------- Author page ---------- */

.author-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: center;
}

.ted-words p {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.55;
  color: #fff;
}

.signature {
  margin-top: 28px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Call-to-action band ---------- */

.cta-band {
  padding: 72px 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 48px;
  align-items: center;
}

.cta-inner h2 {
  margin-bottom: 12px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bg-gold .btn-ghost {
  border-color: var(--spine);
  color: var(--spine);
}

.bg-gold .btn-ghost:hover {
  background: rgba(11, 26, 44, 0.08);
}

/* ---------- FAQ ---------- */

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold-deep);
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  max-width: 680px;
  padding-bottom: 24px;
  color: var(--muted);
}

/* ---------- Newsletter ---------- */

.signup-band {
  padding: 64px 0;
  color: var(--on-navy);
  background: linear-gradient(180deg, var(--navy) 0%, var(--spine-top) 100%);
}

.signup-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.signup-band h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #fff;
}

.signup-form {
  display: flex;
  gap: 10px;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  border-radius: var(--radius);
}

.signup-dark input[type="email"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.signup-dark input[type="email"]::placeholder {
  color: var(--on-navy-muted);
}

.signup-light input[type="email"] {
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--navy);
}

.signup-light input[type="email"]::placeholder {
  color: var(--muted);
}

.signup-form .btn {
  flex: none;
}

.signup-note {
  margin-top: 10px;
  font-size: 0.88rem;
  opacity: 0.85;
}

.newsletter-hero {
  padding: 100px 0 110px;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 72px;
  align-items: center;
}

.newsletter-grid .signup-form {
  margin-top: 30px;
}

.newsletter-grid .small {
  margin-top: 12px;
}

.message-page {
  padding: 120px 0 130px;
}

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

.site-footer {
  padding: 56px 0 28px;
  font-size: 0.9rem;
  color: var(--on-navy-muted);
  background: var(--spine);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 48px;
  padding-bottom: 36px;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-content: flex-start;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-legal {
  padding-top: 24px;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal p {
  margin: 0;
}

.contact-line {
  margin-top: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .brand-sep,
  .brand-author {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
  }

  html {
    scroll-padding-top: 0;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 56px 0 72px;
  }

  /* Header: brand and button on one row, nav on a second row */
  .site-header {
    position: static;
  }

  .creds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 10px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero-grid,
  .split,
  .split-reverse,
  .columns,
  .author-hero,
  .newsletter-grid,
  .cta-inner,
  .signup-band-inner,
  .talk {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .talk {
    gap: 8px;
  }

  .hero-grid .cover {
    order: -1;
    max-width: 240px;
    margin-top: 20px;
  }

  .speaking-hero .frame {
    order: -1;
  }

  .author-hero .frame,
  .split .frame {
    max-width: 420px;
  }

  .grid-3,
  .grid-2,
  .endorsements {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .brand-title {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .mark {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .site-nav {
    font-size: 0.78rem;
  }

  .actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .signup-form {
    flex-direction: column;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
  }

  .steps li::before {
    margin: 0;
    font-size: 2rem;
  }

  .toc li {
    display: grid;
    grid-template-columns: 2ch minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 2px;
  }

  .toc-leader {
    display: none;
  }

  .toc-sub {
    grid-column: 2;
    text-align: left;
  }

  .endorsement,
  .card-panel {
    padding: 26px 22px;
  }

  .header-cta {
    display: none;
  }

  .header-inner {
    padding-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
