/* theforty.life
   Brand: white ground, OD green #4B5320, EB Garamond for text, Figtree for labels.
   No dashes in any copy. */

/* Fonts (self-hosted, SIL Open Font License; see fonts/) */
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --green: #4B5320;
  --green-dark: #2F3414;
  --ink: #23241C;
  --ink-2: #3A3B30;
  --muted: #5E6052;
  --rule: #E4E4DC;
  --line: #DCDCD2;
  --field: #8C8E7C;
  --ground: #FFFFFF;
  --on-green: #FFFFFF;
  --on-green-2: #E6E9D2;
  --on-green-3: #DCE0C4;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --edge: clamp(20px, 5.5vw, 80px);
  --gutter: clamp(20px, 6vw, 110px);
  --section: clamp(72px, 9vw, 130px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
section[id], main[id] { scroll-margin-top: 16px; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 15px; }
.skip-link:focus { left: 12px; }

/* One switch: <html data-status="soon"> before release, "live" after (set in js/site.js). */
html[data-status="soon"] .when-live,
html[data-status="live"] .when-soon { display: none !important; }

/* Shared pieces */
.label { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.label--on-green { color: var(--on-green-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid var(--green); background: var(--green); color: #FFFFFF; font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #FFFFFF; }
.btn--outline { background: transparent; color: var(--green); }
.btn--outline:hover { background: var(--green); color: #FFFFFF; }
.btn--small { min-height: 44px; padding: 0 20px; }
.btn .title { font-family: var(--serif); font-style: italic; font-size: 18px; }

/* Header */
.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px var(--edge); }
.site-name { color: var(--ink); font-size: 21px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; }
.site-name:hover { color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-family: var(--sans); font-size: 15px; }
.site-nav__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.site-nav__links a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }

/* Opening screen */
.hero { display: flex; flex-direction: column; min-height: calc(100vh - 98px); min-height: calc(100svh - 98px); }
.hero__body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--edge) 120px; text-align: center; }
.headline { display: flex; flex-direction: column; width: max-content; max-width: 100%; font-weight: 400; }
.headline__row { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); color: var(--ink); font-size: clamp(20px, 2.5vw, 38px); font-style: italic; line-height: 1.2; }
.headline__rule { flex: 1 1 0; min-width: 24px; height: 1px; background: var(--green); }
.headline__rule.r3 { display: none; }
.headline__word { display: block; margin: clamp(10px, 1.5vw, 22px) 0 clamp(14px, 2vw, 28px); padding-left: 0.035em; color: var(--green); font-size: clamp(64px, 16vw, 250px); font-weight: 500; letter-spacing: 0.035em; line-height: 0.84; text-transform: uppercase; text-align: center; }
.hero__lede { max-width: 780px; margin-top: clamp(26px, 3.8vh, 42px); color: var(--ink-2); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; }
.byline { display: flex; align-items: center; gap: 20px; margin-top: clamp(26px, 3.5vh, 40px); text-align: left; }
.byline img { width: 92px; }
.byline__rule { width: 1px; height: 52px; background: #A9AB98; }
.byline__status { margin-top: 8px; color: var(--green); font-weight: 600; }

/* The book and the workbook */
.book { padding: var(--section) var(--gutter); border-top: 1px solid var(--rule); }
.book__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px clamp(40px, 7vw, 120px); max-width: 1240px; margin: 0 auto; }
.book__text { flex: 1 1 420px; max-width: 580px; min-width: 0; }
.book__lead { margin-top: 24px; color: var(--ink-2); font-size: 21px; }
.book__turn { margin-top: 18px; color: var(--green); font-size: clamp(28px, 2.8vw, 40px); font-style: italic; line-height: 1.2; }
.book__body { margin-top: 18px; font-size: 21px; }
.book__body--quiet { margin-top: 14px; color: var(--ink-2); }
.book__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.book__note { color: var(--muted); font-family: var(--sans); font-size: 14px; }
.covers { position: relative; flex: 0 1 470px; width: 470px; max-width: 100%; aspect-ratio: 470 / 560; }
.covers__workbook { position: absolute; left: 0; top: 0; width: 70.2%; box-shadow: 0 26px 46px -16px rgba(35, 36, 28, 0.34), 0 2px 6px rgba(35, 36, 28, 0.12); }
.covers__coil { position: absolute; left: -11px; top: 2%; bottom: 2%; width: 22px; background: repeating-linear-gradient(to bottom, #34352D 0 3px, transparent 3px 12px); }
.covers__book { position: absolute; left: 43.6%; top: 26.8%; width: 55.3%; box-shadow: 0 30px 52px -14px rgba(35, 36, 28, 0.32), 0 2px 6px rgba(35, 36, 28, 0.1); }
.covers__book img { border: 1px solid var(--line); }

/* The practice */
.practice { padding: var(--section) var(--gutter); background: var(--green); color: var(--on-green); }
.practice__inner { max-width: 1240px; margin: 0 auto; }
.practice__title { margin-top: 18px; font-size: clamp(34px, 4vw, 58px); font-weight: 400; line-height: 1.1; }
.practice__intro { max-width: 640px; margin-top: 18px; color: var(--on-green-2); font-size: 21px; }
.practice__reason { max-width: 780px; margin-top: 26px; color: var(--on-green-2); font-size: 20px; line-height: 1.55; }
.commitments { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 44px 40px; margin-top: 60px; }
.commitment { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.commitment p { margin-top: 12px; color: var(--on-green-3); font-size: 18px; line-height: 1.45; }
.commitment h3 { margin-top: 10px; font-size: 32px; font-weight: 500; line-height: 1.1; }
.commitments__num { color: var(--on-green-3); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; }
.commitment .commitments__sub { margin-top: 6px; color: var(--on-green-2); font-size: 20px; font-style: italic; }
.commitment .commitments__interrupt { margin-top: 19px; color: var(--on-green); font-size: 17px; line-height: 1.4; }
.commitments__interrupt span { display: block; margin-bottom: 5px; color: var(--on-green-3); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.commitments__note p { margin-top: 0; font-family: var(--sans); font-size: 14px; line-height: 1.6; }
.practice__close { max-width: 820px; margin-top: 64px; font-size: clamp(26px, 2.6vw, 36px); font-style: italic; line-height: 1.3; }

/* The author */
.author { padding: var(--section) var(--gutter); }
.author__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px clamp(32px, 5vw, 96px); max-width: 1240px; margin: 0 auto; }
.author__photo { flex: 1 1 300px; max-width: 540px; min-width: 0; }
.author__text { flex: 2 1 340px; max-width: 640px; min-width: 0; }
.author__text p { margin-top: 16px; }
.author__text .label { margin-top: 0; }
.author__name { margin-top: 16px; font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; line-height: 1; }
.author__text .author__lead { margin-top: 30px; color: var(--green); font-size: clamp(25px, 2.4vw, 34px); font-style: italic; line-height: 1.28; }
.author__lead + p { margin-top: 24px; }

/* Order */
.order { padding: clamp(64px, 8vw, 110px) var(--gutter); border-top: 1px solid var(--rule); }
.order__inner { max-width: 1040px; margin: 0 auto; }
.order__title { font-size: clamp(34px, 3.6vw, 52px); font-weight: 400; text-align: center; }
.order__cards { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; }
.card { flex: 1 1 400px; display: flex; align-items: center; gap: 28px; padding: 32px; border: 1px solid var(--line); }
.card img { flex: 0 0 auto; box-shadow: 0 14px 26px -12px rgba(35, 36, 28, 0.32); }
.card__book { width: 118px; border: 1px solid var(--line); }
.card__workbook { width: 130px; }
.card__text { min-width: 0; }
.card h3 { font-size: 28px; font-weight: 500; line-height: 1.15; }
.card__sub { margin-top: 8px; color: var(--muted); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.card .btn { margin-top: 20px; min-height: 48px; padding: 0 22px; }
.card__soon { margin-top: 22px; color: var(--green); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 40px var(--edge) 48px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 14px; }
.site-footer img { width: 70px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.site-footer p { color: var(--muted); font-size: 13px; }

/* Email signup, pinned to the bottom of the screen */
.signup { position: sticky; bottom: 0; z-index: 30; padding: 16px calc(var(--edge) + 36px) 18px var(--edge); border-top: 1px solid var(--green); background: var(--ground); }
.signup.is-dismissed { display: none; }
.signup__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 28px; }
.signup__intro { flex: 1 1 280px; min-width: 0; align-self: center; }
.signup__title { color: var(--ink); font-size: 21px; font-style: italic; line-height: 1.3; }
.signup__sub { margin-top: 2px; color: var(--muted); font-family: var(--sans); font-size: 13px; }
.field { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-family: var(--sans); font-size: 12px; }
.field--email { flex-basis: 220px; }
.field input { width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid var(--field); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 18px; }
.field input:focus-visible { outline-offset: 2px; }
/* Spam trap for bots. display: none keeps browser autofill from filling it, which would mark a real signup as spam. */
.signup__trap { display: none !important; }
.signup__open { display: none; }
.signup__fine { flex: 1 0 100%; margin-top: -4px; color: var(--muted); font-family: var(--sans); font-size: 12px; }
.signup__status { flex: 1 0 100%; color: #8A2E1B; font-family: var(--sans); font-size: 13px; }
.signup__status:empty { display: none; }
.signup__thanks { padding: 6px 0; }
.signup__glance { margin-top: 6px; font-family: var(--sans); font-size: 14px; }
.signup.is-done .signup__form { display: none; }
.signup__close { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.signup__close:hover { color: var(--ink); }

/* Tablet and phone */
@media (max-width: 900px) {
  .site-nav { gap: 8px; }
  .site-nav__links { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav__links.is-open { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; padding: 4px var(--edge) 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--ground); font-size: 17px; }
}

@media (max-width: 640px) {
  body { font-size: 19px; }
  .site-header { padding: 16px 12px 16px 20px; }
  .site-name { font-size: 19px; }
  .hero { min-height: calc(100svh - 76px); }
  .hero__body { padding-bottom: 104px; }
  .headline__row--top { gap: 0.28em; }
  .headline__rule.r1, .headline__rule.r2 { display: none; }
  .headline__rule.r3 { display: block; margin-left: 12px; }
  .headline__word { font-size: min(17vw, 72px); }
  .hero__lede { font-size: 18px; }
  .hero__lede br { display: none; }
  .byline img { width: 76px; }
  .byline__rule { height: 44px; }
  .byline .label { font-size: 11px; letter-spacing: 0.2em; }
  .book__lead, .book__body { font-size: 19px; }
  .card { flex-basis: 100%; padding: 22px; gap: 20px; }
  .card__book { width: 92px; }
  .card__workbook { width: 100px; }
  .card h3 { font-size: 24px; }
  .signup { padding: 12px 52px 14px 16px; }
  .signup__form { align-items: center; gap: 10px 14px; }
  .signup__intro { flex: 1 1 0; }
  .signup__title { font-size: 18px; }
  .signup__sub { font-size: 12px; }
  .signup:not(.is-open) .field,
  .signup:not(.is-open) .signup__submit,
  .signup:not(.is-open) .signup__fine { display: none; }
  .signup:not(.is-open) .signup__open { display: inline-flex; }
  .signup.is-open .signup__intro { flex-basis: 100%; }
  .signup.is-open .field { flex-basis: 100%; }
  .signup.is-open .signup__submit { width: 100%; }
}

/* A title inside italic text turns roman, as in the book. */
.signup__title i, .book__turn i, .practice__close i, .author__lead i, .commitments__sub i, .headline i { font-style: normal; }

@media (max-width: 640px) {
  /* Closed: only a small Free guide button, bottom left. */
  .signup:not(.is-open) { padding: 0 16px 18px; border-top: 0; background: transparent; pointer-events: none; }
  .signup:not(.is-open) .signup__intro,
  .signup:not(.is-open) .signup__close { display: none; }
  .signup:not(.is-open) .signup__form { justify-content: flex-start; }
  .signup:not(.is-open) .signup__open { pointer-events: auto; box-shadow: 0 8px 20px -6px rgba(35, 36, 28, 0.45); }
  /* Open: a full panel. */
  .signup.is-open { padding: 14px 16px 18px; }
  .signup.is-open .signup__close { top: 6px; right: 6px; transform: none; }
  .signup.is-open .signup__intro { padding-right: 40px; }
}

/* Page not found (404.html) */
.notfound { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 760px; min-height: 62vh; padding: var(--section) var(--edge); }
.notfound__title { font-size: clamp(34px, 5vw, 54px); font-weight: 500; line-height: 1.15; color: var(--ink); }
.notfound__body { color: var(--ink-2); max-width: 34em; }
.notfound .btn { margin-top: 8px; }
.confirmed__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Contact (contact/index.html). Replaces the old mailto link so the address is not on the page. */
.contact { max-width: 760px; min-height: 62vh; padding: clamp(40px, 6vw, 90px) var(--edge) var(--section); }
.contact__title { margin-top: 18px; color: var(--ink); font-size: clamp(34px, 5vw, 54px); font-weight: 500; line-height: 1.15; }
.contact__body { max-width: 34em; margin-top: 18px; color: var(--ink-2); }
.contact__form { display: flex; flex-direction: column; gap: 30px; margin-top: 44px; }
.contact .field { flex: none; gap: 4px; font-size: 13px; }
.field textarea { width: 100%; min-height: 180px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.5; resize: vertical; }
.field textarea:focus-visible { outline-offset: 2px; }
.contact__status { color: #8A2E1B; font-family: var(--sans); font-size: 14px; }
.contact__status:empty { display: none; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.contact__submit[disabled] { opacity: 0.6; cursor: default; }
.contact__fine { color: var(--muted); font-family: var(--sans); font-size: 13px; }
.contact__thanks { margin-top: 44px; }
.contact__thanks:focus { outline: none; }
.contact__thanks-title { color: var(--green); font-size: clamp(26px, 2.6vw, 34px); font-style: italic; line-height: 1.3; }
.contact__thanks .btn { margin-top: 28px; }
.contact.is-done .contact__form { display: none; }
@media (max-width: 640px) {
  .contact__submit { width: 100%; }
}

/* The book page (book/index.html) and the author page (author/index.html), November 7, 2026.
   The wording on both is ICB's Amazon description and author bio, as written. */
.page { padding: clamp(32px, 5vw, 80px) var(--gutter) var(--section); }
.page__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 44px clamp(40px, 6vw, 110px); max-width: 1240px; margin: 0 auto; }
.page__text { flex: 1 1 420px; max-width: 660px; min-width: 0; }
.page__aside { flex: 0 1 360px; min-width: 0; position: sticky; top: 32px; }
.page__aside--cover img { width: 100%; max-width: 360px; border: 1px solid var(--line); box-shadow: 0 30px 52px -14px rgba(35, 36, 28, 0.32), 0 2px 6px rgba(35, 36, 28, 0.1); }
.page__aside--photo { flex-basis: 420px; }
.page__title { margin-top: 16px; color: var(--ink); font-size: clamp(46px, 5.4vw, 76px); font-weight: 500; line-height: 1; }
.page__sub { margin-top: 22px; color: var(--green); font-size: clamp(25px, 2.4vw, 34px); font-style: italic; line-height: 1.28; }
.page__body p { margin-top: 20px; color: var(--ink); font-size: 21px; }
.page__body p:first-child { margin-top: 28px; }
.page__list { color: var(--ink-2); font-style: italic; }
.page__body .page__turn { margin-top: 30px; color: var(--green); font-size: clamp(24px, 2.2vw, 30px); font-style: italic; line-height: 1.32; }
.page__note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-family: var(--sans); font-size: 14px; line-height: 1.6; }
.page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.page__more { margin-top: 28px; }
.more-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--green); font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.more-link:hover { color: var(--green-dark); }
.site-nav__links a[aria-current="page"] { color: var(--green); }
/* links from the home page to the two pages */
.book__more { margin-top: 18px; }
.author__text .author__more { margin-top: 22px; }
.page__sub i, .page__turn i, .page__list i { font-style: normal; }
@media (max-width: 900px) {
  .page__aside { position: static; }
  .page__aside--cover { flex: 0 0 auto; width: 100%; }
  .page__aside--cover img { width: 46%; max-width: 220px; }
  .page__aside--photo { flex: 0 0 auto; width: 100%; max-width: 420px; }
}
@media (max-width: 640px) {
  .page__body p { font-size: 19px; }
}

/* The five-part journey on the book page, separate from the approved Amazon description. */
.journey { margin-top: clamp(54px, 7vw, 100px); }
.journey__inner { max-width: 1050px; margin: 0 auto; padding-top: clamp(52px, 7vw, 92px); border-top: 1px solid var(--rule); }
.journey__title { max-width: 770px; margin-top: 18px; color: var(--ink); font-size: clamp(34px, 3.7vw, 52px); font-weight: 400; line-height: 1.14; }
.journey__intro { max-width: 790px; margin-top: 24px; color: var(--ink-2); font-size: 21px; line-height: 1.5; }
.journey__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 52px; margin: 42px 0 0; padding: 0; list-style: none; }
.journey__steps li { display: flex; align-items: flex-start; gap: 18px; padding: 23px 0 29px; border-top: 1px solid var(--rule); }
.journey__number { min-width: 27px; padding-top: 7px; color: var(--green); font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; }
.journey__steps h3 { color: var(--green); font-size: 29px; font-weight: 500; line-height: 1.2; }
.journey__steps p { max-width: 400px; margin-top: 9px; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.journey__link { margin-top: 28px; }
@media (max-width: 640px) {
  .journey__intro { font-size: 19px; }
  .journey__steps { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .journey__steps li { padding: 20px 0 24px; }
}

/* The floating PREPARE (js/float.js). As the visitor scrolls, a faint copy of the opening word lifts out,
   settles at the top of the screen, and stays there in a soft green fog, behind the content.
   Without JavaScript none of this applies and the page is as before. */
.has-float main, .has-float .site-footer { position: relative; z-index: 1; }
.ghost {
  position: fixed; top: 0; left: 0; z-index: 0; margin: 0;
  pointer-events: none; user-select: none;
  color: var(--g-fill, rgba(75, 83, 32, 0.12));
  font-family: var(--serif); font-weight: 500;
  text-transform: uppercase; text-align: center; white-space: nowrap;
  transform-origin: 0 0;
  transform: translate3d(var(--gx, 0px), var(--gy, -9999px), 0) scale(var(--gs, 1));
  opacity: var(--go, 0);
  will-change: transform, opacity;
}
.ghost__t { position: relative; display: block; filter: blur(var(--g-edge, 0.02em)); }
.ghost__f { position: absolute; inset: 0; display: block; padding-left: inherit; color: var(--g-fog, rgba(75, 83, 32, 0.38)); filter: blur(0.15em); }
.ghost--breathe .ghost__f { animation: ghost-breathe 7s ease-in-out infinite alternate; }
@keyframes ghost-breathe { from { opacity: 1; } to { opacity: 0.45; } }
.ghost--reduced { transition: opacity 0.6s ease; }
@media (prefers-reduced-motion: reduce) { .ghost--breathe .ghost__f { animation: none; } }
/* the green band keeps its own copy, in the site's pale green, clipped to the band */
.has-float .practice { position: relative; clip-path: inset(0); }
.has-float .practice > .practice__inner { position: relative; z-index: 1; }
.ghost--on-green { color: var(--g-fill-green, rgba(220, 224, 196, 0.18)); }
.ghost--on-green .ghost__f { color: var(--g-fog-green, rgba(220, 224, 196, 0.4)); }
/* room between the sections, so the word passes from one to the next on its own */
.has-float .book, .has-float .practice, .has-float .author, .has-float .order {
  padding-top: max(var(--section), calc(var(--ghost-gap, 0px) / 2));
  padding-bottom: max(var(--section), calc(var(--ghost-gap, 0px) / 2));
  border-top: 0;
}
.has-float .site-footer { padding-top: max(40px, calc(var(--ghost-gap, 0px) / 2)); border-top: 0; }
@media print { .ghost { display: none; } }

/* The companion guide, The Life Beneath the Life (guide/index.html, the home page band, the book page block) */
.g-wrap { max-width: 1120px; margin: 0 auto; }
.g-title { margin-top: 16px; color: var(--ink); font-size: clamp(32px, 3.6vw, 50px); font-weight: 400; line-height: 1.14; max-width: 820px; }
.label i { font-style: normal; text-transform: none; letter-spacing: 0.02em; font-family: var(--serif); font-size: 1.25em; }

.g-hero { padding: clamp(24px, 4vw, 64px) var(--gutter) var(--section); }
.g-hero__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px clamp(40px, 7vw, 110px); max-width: 1240px; margin: 0 auto; }
.g-hero__text { flex: 1 1 460px; max-width: 620px; min-width: 0; }
.g-hero__title { margin-top: 18px; color: var(--ink); font-size: clamp(46px, 5.6vw, 82px); font-weight: 500; line-height: 1; }
.g-hero__sub { margin-top: 18px; color: var(--green); font-size: clamp(23px, 2.2vw, 31px); font-style: italic; line-height: 1.28; }
.g-hero__lead { margin-top: 28px; color: var(--ink); font-size: 23px; line-height: 1.42; }
.g-hero__body { margin-top: 16px; color: var(--ink-2); font-size: 20px; }
.g-facts { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-family: var(--sans); font-size: 14px; letter-spacing: 0.04em; }
.g-facts b { margin-right: 6px; color: var(--green); font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: 0; }
.g-hero__art { position: relative; flex: 0 1 420px; width: 420px; max-width: 100%; aspect-ratio: 420 / 560; }
.g-hero__cover { position: absolute; right: 0; top: 0; width: 76%; transform: rotate(2.5deg); box-shadow: 0 34px 60px -18px rgba(35, 36, 28, 0.45), 0 2px 8px rgba(35, 36, 28, 0.15); }
.g-hero__page { position: absolute; left: 0; top: 12%; width: 64%; transform: rotate(-4deg); border: 1px solid var(--line); box-shadow: 0 24px 40px -18px rgba(35, 36, 28, 0.35); }

.g-signup { margin-top: 34px; padding: 26px 28px 22px; background: #F3F4EC; border-left: 3px solid var(--green); }
.g-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.g-form .field { flex: 1 1 200px; }
.g-form__submit { flex: 1 0 100%; }
.g-signup.is-done .g-form { display: none; }
.g-thanks__title { color: var(--green); font-size: 28px; font-weight: 500; }
.g-thanks p + p { margin-top: 8px; color: var(--ink-2); }
.g-signup__fine { margin-top: 14px; color: var(--muted); font-family: var(--sans); font-size: 13px; line-height: 1.55; }
.g-signup__fine i { font-family: var(--serif); font-size: 1.1em; }

.g-moments { padding: var(--section) var(--gutter); border-top: 1px solid var(--rule); }
.g-moments__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 48px; margin: 40px 0 0; padding: 0; list-style: none; }
.g-moments__list li { padding: 20px 0 22px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 22px; font-style: italic; line-height: 1.36; }
.g-turn { max-width: 800px; margin-top: 40px; color: var(--green); font-size: clamp(24px, 2.3vw, 31px); line-height: 1.3; }

.g-inside { padding: var(--section) var(--gutter); background: #F3F4EC; }
.g-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 48px; margin: 44px 0 0; padding: 0; list-style: none; }
.g-parts li { padding: 22px 0 26px; border-top: 1px solid #D9DCC8; }
.g-parts__num { color: var(--green); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.g-parts h3 { margin-top: 8px; font-size: 29px; font-weight: 500; line-height: 1.15; }
.g-parts p { margin-top: 8px; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.g-anatomy { margin-top: 56px; padding-top: 30px; border-top: 1px solid #D9DCC8; }
.g-anatomy__lead { color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.g-anatomy__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: 20px; }
.g-anatomy__steps h3 { color: var(--green); font-size: 24px; font-weight: 500; font-style: italic; }
.g-anatomy__steps p { margin-top: 6px; color: var(--ink-2); font-size: 18px; }

.g-questions { padding: var(--section) var(--gutter); }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.g-card { margin: 0; padding: 26px 26px 28px; border: 1px solid var(--rule); border-left: 3px solid var(--green); background: #FFFFFF; }
.g-card__ref { color: var(--green); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.g-card blockquote { margin: 14px 0 0; color: var(--ink); font-size: 23px; font-style: italic; line-height: 1.36; }

.g-band { padding: var(--section) var(--gutter); background: var(--green); color: var(--on-green); text-align: center; }
.g-band__quote { max-width: 920px; margin: 0 auto 26px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.25; }

.g-author { padding: var(--section) var(--gutter); }
.g-author__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(36px, 6vw, 90px); max-width: 1040px; margin: 0 auto; }
.g-author__inner img { flex: 0 0 240px; width: 240px; filter: grayscale(1); }
.g-author__inner > div { flex: 1 1 380px; min-width: 0; }
.g-author__quote { margin-top: 18px; color: var(--ink); font-size: clamp(23px, 2.2vw, 29px); font-style: italic; line-height: 1.4; }
.g-author__name { margin: 18px 0 8px; color: var(--muted); font-family: var(--sans); font-size: 14px; }
.g-author__name i { font-family: var(--serif); font-size: 1.1em; }

.g-look { padding: var(--section) var(--gutter); border-top: 1px solid var(--rule); }
.g-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.5vw, 34px); margin-top: 44px; }
.g-pages img { width: 100%; border: 1px solid var(--line); box-shadow: 0 20px 36px -18px rgba(35, 36, 28, 0.3); }

.g-share { padding: var(--section) var(--gutter); background: #F3F4EC; }
.g-share__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 60px; }
.g-share__inner > div:first-child { flex: 1 1 520px; }
.g-share__body { max-width: 640px; margin-top: 18px; color: var(--ink-2); font-size: 21px; }
.g-share__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.g-share__status { flex-basis: 100%; color: var(--green); font-family: var(--sans); font-size: 14px; }
.g-share__status:empty { display: none; }

.g-faq { padding: var(--section) var(--gutter); }
.g-faq .g-wrap { max-width: 880px; }
.g-faq details { border-top: 1px solid var(--rule); }
.g-faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.g-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0; color: var(--ink); font-size: 23px; cursor: pointer; list-style: none; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; color: var(--green); font-family: var(--sans); font-size: 26px; font-weight: 400; }
.g-faq summary::after { transition: transform 0.2s; }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 19px; max-width: 720px; }
.g-faq h2 { margin-bottom: 36px; }

.g-close { padding: var(--section) var(--gutter); border-top: 1px solid var(--rule); }
.g-close__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(36px, 6vw, 90px); max-width: 1040px; margin: 0 auto; }
.g-close__inner img { flex: 0 0 200px; width: 200px; box-shadow: 0 26px 46px -16px rgba(35, 36, 28, 0.4); }
.g-close__inner > div { flex: 1 1 420px; min-width: 0; }
.g-close .g-title { margin-top: 0; font-style: italic; color: var(--green); }
.g-close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }

/* Home page band and book page block that point to the guide */
.guide-band { padding: var(--section) var(--gutter); }
.guide-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px clamp(40px, 7vw, 110px); max-width: 1120px; margin: 0 auto; padding: clamp(28px, 4vw, 56px); background: #F3F4EC; }
.guide-band__cover { flex: 0 0 260px; width: 260px; transform: rotate(-2deg); box-shadow: 0 30px 52px -16px rgba(35, 36, 28, 0.42), 0 2px 6px rgba(35, 36, 28, 0.12); }
.guide-band__text { flex: 1 1 420px; max-width: 600px; min-width: 0; }
.guide-band__title { margin-top: 16px; font-size: clamp(36px, 3.8vw, 54px); font-weight: 500; line-height: 1.05; }
.guide-band__sub { margin-top: 12px; color: var(--green); font-size: 23px; font-style: italic; line-height: 1.3; }
.guide-band__body { margin-top: 18px; color: var(--ink-2); font-size: 20px; }
.guide-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.guide-band .g-facts { margin-top: 18px; }
.has-float .guide-band { padding-top: max(var(--section), calc(var(--ghost-gap, 0px) / 2)); padding-bottom: max(var(--section), calc(var(--ghost-gap, 0px) / 2)); }
.guide-block { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; max-width: 1050px; margin: clamp(48px, 6vw, 90px) auto 0; padding: 30px 34px; background: #F3F4EC; border-left: 3px solid var(--green); }
.guide-block img { flex: 0 0 120px; width: 120px; box-shadow: 0 18px 30px -14px rgba(35, 36, 28, 0.4); }
.guide-block > div { flex: 1 1 360px; min-width: 0; }
.guide-block h2 { margin-top: 10px; font-size: clamp(28px, 2.8vw, 38px); font-weight: 500; line-height: 1.12; }
.guide-block p.guide-block__body { margin-top: 10px; color: var(--ink-2); font-size: 19px; }
.guide-block .btn { margin-top: 18px; }

@media (max-width: 900px) {
  .g-anatomy__steps { grid-template-columns: 1fr; }
  .g-pages { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .g-pages img { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .g-hero__lead { font-size: 21px; }
  .g-hero__art { width: 300px; }
  .g-signup { padding: 22px 20px 18px; }
  .g-moments__list li, .g-card blockquote { font-size: 20px; }
  .g-author__inner img { flex-basis: 160px; width: 160px; }
  .g-faq summary { font-size: 20px; }
  .g-close__inner img { flex-basis: 140px; width: 140px; }
  .guide-band__cover { flex-basis: 180px; width: 180px; }
  .guide-block img { flex-basis: 90px; width: 90px; }
}
