/* True Love: shared stylesheet for every page */

:root {
  --night: #0e1a2b;
  --night-2: #15283d;
  --ink: #1d2230;
  --body: #363a45;
  --paper: #f8f2e9;
  --paper-2: #efe3d2;
  --white: #fffdf8;
  --red: #b9561c;
  --red-dark: #8f3e0e;
  --gold: #f0b84e;
  --rose-light: #f4a04a;
  --muted: #6b6660;
  --light-text: #f3ece2;
  --light-muted: #b7c0cc;
  --line: rgba(29, 34, 48, .12);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
p { margin: 0 0 20px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}
h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 24px;
}
h1 { font-size: clamp(38px, 5.6vw, 62px); }
h2 { font-size: clamp(31px, 4vw, 46px); }
h3 { font-family: var(--serif); font-size: 21px; line-height: 1.35; margin: 0 0 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(233, 228, 218, .45); color: var(--light-text); }
.btn-ghost:hover { border-color: var(--light-text); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header { background: var(--night); color: var(--light-text); font-family: var(--sans); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { font-family: var(--display); color: var(--light-text); text-decoration: none; letter-spacing: .14em; font-size: 19px; font-weight: 700; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand span { color: var(--rose-light); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--light-muted); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.header-cta { white-space: nowrap; }

/* ---------- Page heading (inner pages) ---------- */
.page-head {
  color: var(--light-text);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(240, 184, 78, .18), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(232, 120, 40, .14), transparent 50%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  padding: 72px 0 64px;
}
.page-head h1 { color: var(--light-text); margin-bottom: 14px; }
.page-head .eyebrow { color: var(--gold); }
.page-head .lede { color: var(--light-muted); font-size: 19px; max-width: 660px; margin: 0; }

/* ---------- Home hero ---------- */
.hero {
  color: var(--light-text);
  background:
    radial-gradient(ellipse at 75% 30%, rgba(240, 184, 78, .22), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(232, 120, 40, .16), transparent 50%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(56px, 9vw, 112px); line-height: .95; margin: 0 0 20px; letter-spacing: .01em; color: var(--light-text); }
.hero h1 .small { display: block; font-size: .36em; color: var(--paper-2); letter-spacing: .12em; }
.hero h1 .big { display: block; color: var(--rose-light); font-style: italic; text-shadow: 0 2px 30px rgba(232, 120, 40, .45); }
.byline { font-family: var(--display); font-weight: 700; letter-spacing: .26em; font-size: 17px; color: var(--gold); margin: 0 0 28px; }
.hook { font-size: clamp(21px, 2.4vw, 27px); font-style: italic; line-height: 1.45; margin: 0 0 18px; color: #fff; }
.hero .lede { color: var(--light-muted); max-width: 560px; margin: 0 0 34px; }
.cover-frame { justify-self: center; max-width: 380px; width: 100%; }
.cover-frame img {
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: perspective(1400px) rotateY(-7deg);
  transition: transform .4s ease;
}
.cover-frame:hover img { transform: perspective(1400px) rotateY(0deg); }

.banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 22px 24px;
  font-family: var(--display);
  letter-spacing: .14em;
  font-size: clamp(15px, 1.9vw, 19px);
  font-weight: 700;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--night); color: var(--light-text); }
.dark h2, .dark h3 { color: var(--light-text); }
.dark .eyebrow { color: var(--gold); }
.dark p { color: var(--light-muted); }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.pull {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  font-style: italic;
  border-left: 4px solid var(--red);
  padding-left: 24px;
  margin: 8px 0 0;
}
.pull cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border-top: 4px solid var(--red); padding: 26px 22px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.card .k { font-family: var(--display); font-weight: 700; color: var(--red); font-size: 17px; letter-spacing: .14em; }
.card h3 { font-size: 19px; margin: 6px 0 10px; }
.card p { margin: 0; font-size: 15.5px; color: var(--body); line-height: 1.6; }

.toc { list-style: none; margin: 32px 0 0; padding: 0; columns: 3 240px; column-gap: 40px; }
.toc li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex; gap: 14px; }
.toc .n { font-family: var(--display); font-weight: 700; color: var(--gold); min-width: 26px; font-size: 17px; padding-top: 3px; }
.toc .t { font-style: italic; color: var(--light-text); }
.toc a { color: var(--light-text); }

.closing { text-align: center; }
.closing blockquote { font-size: clamp(22px, 2.8vw, 30px); font-style: italic; line-height: 1.45; max-width: 760px; margin: 0 auto 32px; }
.center { text-align: center; }
.center .buttons { justify-content: center; }

.status-line {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .06em;
  background: rgba(240, 184, 78, .15); color: var(--ink); border: 1px solid var(--gold); border-radius: 30px; padding: 6px 16px; margin-bottom: 24px;
}
.dark .status-line, .page-head .status-line { color: var(--light-text); }

/* ---------- Reading (Chapter One) ---------- */
.reading { background: var(--white); }
.reading .chapter-head { text-align: center; margin-bottom: 48px; }
.reading .chapter-head .num { font-family: var(--display); font-weight: 700; letter-spacing: .22em; color: var(--muted); font-size: 17px; }
.prose h3 { font-family: var(--display); font-size: 27px; font-weight: 700; color: var(--red-dark); text-align: center; margin: 44px 0 18px; }
.prose h3 + p { text-indent: 0; }
.prose p.question { text-indent: 0; text-align: center; font-style: italic; font-size: 1.12em; margin: 24px 0; color: var(--ink); }
.signoff { font-style: italic; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.6; max-width: 640px; margin: 0 auto 28px; }
.reading .chapter-head h2 { margin: 6px 0 0; }
.prose p { margin: 0; text-indent: 1.6em; }
.prose p.first { text-indent: 0; }
.prose p.first::first-letter { font-family: var(--display); float: left; font-size: 3.4em; line-height: .9; padding: 6px 8px 0 0; color: var(--red); }
.prose p.break { text-indent: 0; text-align: center; letter-spacing: .6em; color: var(--muted); margin: 28px 0; }
.prose p.after-break { text-indent: 0; }
.chapter-end { text-align: center; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.chapter-end p { color: var(--muted); }

/* ---------- Beta page ---------- */
.spots {
  display: flex; align-items: center; gap: 18px; background: var(--night); color: var(--light-text);
  border-radius: 4px; padding: 22px 26px; margin: 0 0 32px;
}
.spots .count { font-weight: 700; font-family: var(--display); font-size: 52px; line-height: 1; color: var(--gold); min-width: 64px; text-align: center; }
.spots p { margin: 0; color: var(--light-muted); font-family: var(--sans); font-size: 16px; }
.spots strong { color: #fff; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.fine { font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 3px; padding: 32px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--sans); font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid #cbc2b3; border-radius: 3px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: 15px; margin-bottom: 20px; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.form-card .btn { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: var(--sans); font-size: 17px; border-radius: 3px; padding: 14px 18px; margin: 0 0 20px; border: 1px solid var(--gold); background: rgba(240, 184, 78, .14); color: var(--ink); }
.form-status.error { border-color: var(--red); background: rgba(232, 120, 40, .1); }
.form-status[hidden] { display: none; }

/* ---------- Author ---------- */
.author-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.author-mark {
  width: 240px; height: 240px; border-radius: 50%; background: var(--night); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 72px; letter-spacing: .04em;
  box-shadow: inset 0 0 0 6px var(--paper), 0 0 0 2px var(--red);
}
.author-photo {
  width: 240px; height: 240px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--red), 0 20px 40px rgba(0, 0, 0, .2);
}

/* ---------- Updates ---------- */
.post { border-bottom: 1px solid var(--line); padding: 0 0 40px; margin: 0 0 40px; }
.post:last-child { border-bottom: 0; margin-bottom: 0; }
.post time { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.post h2 { font-size: clamp(24px, 3vw, 30px); margin: 8px 0 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #08111d; color: var(--light-muted); font-family: var(--sans); font-size: 15px; padding: 56px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: 40px; }
.site-footer h2 { font-size: 24px; color: var(--light-text); margin: 0 0 10px; }
.site-footer p { margin: 0 0 14px; }
.site-footer a { color: var(--light-text); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.updates-form { display: flex; gap: 10px; }
.updates-form input[type=email] {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 16px; padding: 12px 14px; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff;
}
.updates-form input::placeholder { color: var(--light-muted); }
.site-footer .form-status { color: var(--light-text); }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 16px; padding-top: 12px; padding-bottom: 4px; }
  .brand { order: 1; }
  .header-cta { order: 2; margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 4px 0 0; }
  .main-nav ul { justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .buttons { justify-content: center; }
  .cover-frame { max-width: 300px; grid-row: 1; }
  .cover-frame img { transform: none; }
  .split, .author-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards, .cards.three { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .page-head { padding: 52px 0 44px; }
  .hero { padding: 48px 0 64px; }
  .brand { font-size: 16px; letter-spacing: .08em; }
  .header-cta { font-size: 13px; padding: 8px 12px; }
  .main-nav a { font-size: 14px; }
  .cover-frame { max-width: 230px; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .buttons { flex-direction: column; }
  .buttons .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px 18px; }
  .author-mark { width: 160px; height: 160px; font-size: 46px; margin: 0 auto; }
  .author-photo { width: 180px; height: 180px; margin: 8px auto 0; display: block; }
  .spots { flex-direction: column; text-align: center; gap: 10px; }
  .updates-form { flex-direction: column; }
  .site-footer .bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover-frame img { transition: none; transform: none; }
}
