/* Late Boomer AI: "Front Row" look, shared by index.html and speaking.html.
   The colors come from Mary's photo: the rust sweater, her hair, the oatmeal cable knit.
   html.motion is set when the visitor hasn't asked for reduced motion, and turns on the
   scroll effects. html.pinned also turns on the home page opening, and site.js removes it
   if the Promise text wouldn't fit the screen. Without them, it's a complete still page. */

:root {
  --espresso: #1C100A;
  --bark: #2B1910;
  --cocoa: #43261A;
  --rust: #E0733A;
  --rust-deep: #C4551F;
  --rust-ink: #9C3F12;
  --honey: #F6C25C;
  --oat: #F6ECDE;
  --oat-soft: #DCCDB9;
  --display: 'Familjen Grotesk', system-ui, sans-serif;
  --poster: 'Bowlby One', Impact, sans-serif;
  --text: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --focus: var(--honey);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 88px; }
body {
  font-family: var(--text);
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--oat);
  background: var(--espresso);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

/* ---------- Signature: "writes itself" as it scrolls into view ---------- */
.signature {
  width: min(420px, 80%);
  margin-top: 28px;
  clip-path: inset(0 calc((1 - var(--write, 1)) * 100%) 0 0);
}

/* ---------- Top bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px var(--gutter);
  background: var(--espresso);
  --focus: var(--honey);
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.nav-links { display: flex; gap: clamp(12px, 2.5vw, 28px); align-items: center; }
.nav-links a { font-weight: 600; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav-links .sub { background: var(--honey); color: var(--espresso); padding: 8px 18px; }
.nav-links .sub:hover { background: var(--oat); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; margin-top: 18px; padding: 16px 30px;
  background: var(--honey); color: var(--espresso);
  font-weight: 700; font-size: 1.05em; text-decoration: none;
}
.btn:hover { background: var(--oat); }
.btn-dark { background: var(--espresso); color: var(--oat); }
.btn-dark:hover { background: var(--rust-ink); color: var(--oat); }

/* ---------- Home opening: the photo grows as you scroll ---------- */
.open { padding-top: 76px; position: relative; }
.pin { padding: 40px var(--gutter) 24px; }
.words {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95;
  font-size: min(14.5vw, 22vh);
}
.words span { display: block; }
.frame { margin: 28px 0; overflow: hidden; max-width: 520px; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.tags { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; font-weight: 600; margin-top: 16px; max-width: 900px; }
.promise { margin-top: 28px; max-width: 720px; }
.promise strong {
  display: block; font-family: var(--display); font-size: clamp(44px, 7vw, 92px);
  line-height: 1; letter-spacing: -0.03em; color: var(--honey); margin-bottom: 14px;
}
.promise p { margin-bottom: 8px; }
.promise .nobody { font-family: var(--display); font-weight: 700; font-size: clamp(25px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 14px; }
.promise .big { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; font-weight: 600; }

.pinned .open { height: 340vh; padding-top: 0; }
.pinned .pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 0;
  display: grid; grid-template-rows: 1fr var(--h0) 1fr; justify-items: center; row-gap: 14px;
  --h0: min(40vh, 62vw); --w0: min(30vw, 62vw, 48vh);
}
.pinned .frame {
  position: absolute; left: 50%; top: 50%; margin: 0; z-index: 1; max-width: none;
  width: calc(var(--w0) + (100vw - var(--w0)) * var(--g, 0));
  height: calc(var(--h0) + (100% - var(--h0)) * var(--g, 0));
  transform: translate(-50%, -50%);
}
.pinned .words { display: contents; }
.pinned .words span { position: relative; z-index: 2; white-space: nowrap; }
.pinned .w1 { grid-row: 1; align-self: end; transform: translateY(calc(var(--g, 0) * -70vh)); }
.pinned .w2 { grid-row: 3; align-self: start; color: var(--honey); transform: translateY(calc(var(--g, 0) * 70vh)); }
.pinned .tags {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; z-index: 2;
  margin: 0; max-width: none;
  opacity: calc(1 - var(--g, 0) * 4);
}
.pinned .scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(28,16,10,.94) 0%, rgba(28,16,10,.82) 40%, rgba(28,16,10,0) 70%);
  opacity: var(--t, 0);
}
.pinned .promise {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 64px);
  z-index: 3; margin: 0; max-width: none;
  opacity: var(--t, 0);
  transform: translateY(calc((1 - var(--t, 0)) * 40px));
  pointer-events: var(--tpe, none);
}
/* Above phone size the photo slides right at its full, sharp size and the words get the left side. */
@media (min-width: 681px) {
  .pinned .pin { --end: min(58vw, 100svh); }
  .pinned .frame { background: var(--espresso); }
  .pinned .frame img { position: absolute; right: 0; top: 0; width: calc(100% - var(--t, 0) * (100% - var(--end))); }
  .pinned .scrim { display: none; }
  .pinned .promise { right: auto; bottom: auto; top: 54%; width: calc(100vw - var(--end) - var(--gutter) * 2); translate: 0 -50%; }
}
/* On phones the photo slides up instead, so the words sit under Mary's face, not over it. */
@media (max-width: 680px) {
  .pinned .frame { background: var(--espresso); }
  .pinned .frame img {
    position: absolute; left: 0; width: 100%;
    top: calc(var(--t, 0) * 60px);
    height: calc(100% - var(--t, 0) * 60%);
  }
  .pinned .scrim { background: linear-gradient(to top, rgba(28,16,10,.96) 0%, rgba(28,16,10,.9) 52%, rgba(28,16,10,0) 62%); }
}
@media (max-height: 620px) and (min-width: 681px) {
  .pinned .pin { --h0: 32vh; --end: min(44vw, 100svh); }
  .promise strong { margin-bottom: 6px; }
  .pinned .promise .btn { margin-top: 8px; padding: 12px 24px; }
  .words { font-size: min(12vw, 17vh); }
  .promise strong { font-size: 44px; }
  .promise .big { font-size: 21px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(72px, 12vh, 150px) var(--gutter); }
.label { font-weight: 700; color: var(--honey); margin-bottom: 12px; }
h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(40px, 6.4vw, 96px);
  text-wrap: balance;
}
.on-light { --focus: var(--espresso); }
figcaption { margin-top: 12px; color: var(--oat-soft); }

/* Sliding cards: each section stays put while the next slides up over it.
   site.js sets --stick so a section taller than the screen finishes scrolling first. */
.sheet { background: var(--espresso); }
.motion .sheet { position: sticky; top: var(--stick, 0px); min-height: 100vh; min-height: 100svh; }
.motion section.sheet:not(.mary, .slides, .note, .about, .free-next) { display: flex; flex-direction: column; justify-content: center; }
.motion .note, .motion .about { align-content: center; }
footer { position: relative; }

/* Mary's story */
.mary { display: grid; grid-template-columns: 1fr minmax(240px, 28vw); gap: clamp(32px, 7vw, 110px); align-items: start; }
.mary h2 { margin-bottom: 40px; }
.mary p { margin-bottom: 20px; max-width: 34em; }
.mary .kicker { font-size: 1.28em; line-height: 1.35; font-weight: 600; margin-top: 32px; max-width: 26em; }
.mary figure { rotate: 2.5deg; margin-top: 12px; }
.mary figure img { border-radius: 14px; }

/* Lines that slide in from alternating sides */
.slides { overflow-x: clip; background: var(--cocoa); }
.slides h2 { margin-bottom: clamp(48px, 9vh, 110px); }
.slide-row { padding: clamp(28px, 5vh, 56px) 0; border-top: 1px solid rgba(246,236,222,.25); }
.slide-row b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(50px, 10.2vw, 170px); line-height: 1; letter-spacing: -0.04em;
}
.slide-row:nth-of-type(1) b { color: var(--rust); }
.slide-row:nth-of-type(2) b { color: var(--honey); }
.slide-row p { max-width: 30em; margin-top: 16px; font-size: 1.12em; line-height: 1.4; }
.slide-row:nth-of-type(2) { text-align: right; }
.slide-row:nth-of-type(2) p { margin-left: auto; }

/* Home page "Three things": sized to the screen so all three can be seen at once.
   The bottom margin holds the finished card in place before the next one slides over. */
.aims { padding-block: calc(64px + 2.5vh) 3vh; }
.aims .label { margin-bottom: 4px; }
.aims h2 { font-size: max(30px, min(6.4vw, 8vh)); margin-bottom: 2.5vh; }
.aims .slide-row { padding: 2vh 0; }
.aims .slide-row b { font-size: clamp(40px, min(10.2vw, 10.5vh), 170px); }
.aims .slide-row p { margin-top: 6px; font-size: max(19px, min(1.12em, 2.9vh + 2px)); line-height: 1.32; }
.motion .aims { display: flex; flex-direction: column; justify-content: center; margin-bottom: 40vh; }
/* On wide screens each sentence sits beside its big words, so the card stays short. */
@media (min-width: 1100px) {
  .aims .slide-row { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 48px); padding: 2.4vh 0; text-align: left; }
  .aims .slide-row:nth-of-type(2) { flex-direction: row-reverse; text-align: left; }
  .aims .slide-row b { font-size: min(8.4vw, 13vh); white-space: nowrap; flex: none; }
  .aims .slide-row p { margin: 0; flex: 1; max-width: 26em; }
  .aims .slide-row:nth-of-type(2) p { margin-left: 0; }
}

/* Where to find me: drawings instead of boxes, in staggered steps */
.places { background: var(--oat); color: var(--espresso); padding-block: calc(64px + 3vh) 4vh; }
.places .label { color: var(--rust-ink); }
.places h2 { margin-bottom: clamp(20px, 4vh, 44px); font-size: clamp(36px, 4.6vw, 68px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.place { display: block; text-decoration: none; color: var(--espresso); }
.place:nth-child(even) { margin-top: clamp(16px, 6vh, 72px); }
.art { display: block; width: 100%; max-height: 32vh; margin-bottom: 14px; overflow: visible; transition: transform .25s ease; }
.place:hover .art { transform: rotate(-3deg) scale(1.04); }
.place .plat { display: block; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.place:hover .plat { color: var(--rust-ink); }
.place b {
  display: block; font-family: var(--display); font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.08; letter-spacing: -0.02em; margin-top: 4px;
}
.place .rest { display: block; margin-top: 4px; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) {
  .art { transition: none; }
  .place:hover .art { transform: none; }
}

/* "Is this safe?": the take-home card and the talk, with the fat poster type on honey */
.safe { background: var(--honey); color: var(--espresso); padding-block: calc(64px + 3vh) 4vh; }
.safe h2 { font-family: var(--poster); font-weight: 400; letter-spacing: -0.01em; line-height: 0.98; font-size: clamp(42px, 6.2vw, 92px); margin-bottom: 12px; }
.safe-lead { font-size: clamp(22px, 2vw, 29px); line-height: 1.3; font-weight: 600; max-width: 34em; margin-bottom: clamp(20px, 3.5vh, 40px); }
.offers { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.offer-head { display: grid; grid-template-columns: clamp(104px, min(14vw, 24vh), 230px) 1fr; gap: clamp(12px, 1.6vw, 24px); align-items: center; margin-bottom: 14px; }
.safe .art { margin: 0; max-height: none; }
.safe .label { color: var(--espresso); margin-bottom: 2px; }
.safe h3 { font-family: var(--display); font-weight: 700; font-size: clamp(27px, 2.7vw, 42px); line-height: 1.05; letter-spacing: -0.025em; }
.offer > p { margin-bottom: 12px; line-height: 1.4; max-width: 36em; }
.offer .talk { font-weight: 700; font-size: 1.14em; }
.offer .format, .offer .more { font-weight: 700; }
.offer .btn { margin-top: 4px; }

/* Free card page: visits here are how card interest gets counted, since analytics can't count a PDF */
.free {
  background: var(--honey); color: var(--espresso);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; align-content: center;
  padding: calc(64px + 4vh) var(--gutter) 5vh;
}
.free .label { color: var(--espresso); }
.free h1 { font-family: var(--poster); font-weight: 400; letter-spacing: -0.01em; line-height: 0.98; font-size: clamp(42px, 6.2vw, 92px); margin-bottom: 18px; }
.free-lead { font-size: clamp(22px, 2vw, 29px); line-height: 1.3; font-weight: 600; max-width: 30em; margin-bottom: 8px; }
.free .art { margin: 0; max-height: 52vh; }
.free-next { background: var(--espresso); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-content: center; align-items: start; }
.free-next h2 { font-size: clamp(36px, 4.6vw, 68px); }
.free-next .desc { font-size: 1.2em; margin-top: 14px; max-width: 26em; }

/* Weekly note */
.note { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.note .shot { overflow: hidden; border-radius: 12px; background: #fff; }
.note .shot img { width: 100%; }
.note .desc { font-size: 1.2em; margin-top: 16px; }

/* Footer */
footer { background: var(--rust-deep); color: var(--espresso); padding: clamp(72px, 14vh, 160px) var(--gutter) 40px; --focus: var(--espresso); }
footer .big { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-size: clamp(44px, 8.6vw, 136px); }
footer .big + .big { color: var(--oat); }
footer .signature { width: min(460px, 70%); margin: 32px 0 40px; }
footer small { display: block; font-size: 19px; font-weight: 700; }

/* ---------- Speaking page ---------- */
.talk-hero {
  background: var(--honey); color: var(--espresso); --focus: var(--espresso);
  display: grid; grid-template-columns: 1fr minmax(260px, 34vw); align-items: stretch;
  padding: 72px 0 0;
}
.talk-hero-text { padding: clamp(40px, 8vh, 96px) var(--gutter); align-self: center; }
.talk-hero .label { color: var(--espresso); }
.talk-hero h1 { font-family: var(--poster); font-weight: 400; line-height: 0.98; letter-spacing: -0.01em; font-size: clamp(42px, 6.4vw, 104px); margin-bottom: 24px; }
.talk-hero .lead { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.35; max-width: 32em; }
.talk-hero figure { min-height: 100%; }
.talk-hero figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

.scam-lines { background: var(--espresso); }
.scam-lines .line {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 5vw, 76px); line-height: 1.04; letter-spacing: -0.03em;
  padding: clamp(20px, 3.4vh, 36px) 0; border-top: 1px solid rgba(246,236,222,.25);
}
.scam-lines .line:nth-of-type(1) { color: var(--rust); }
.scam-lines .line:nth-of-type(2) { color: var(--honey); text-align: right; }
.prose { max-width: 36em; }
.prose p { margin-bottom: 20px; }
.scam-lines .prose { margin-top: clamp(28px, 5vh, 56px); }
.scam-lines .prose .after { font-size: 1.28em; line-height: 1.35; font-weight: 600; }

.details { background: var(--oat); color: var(--espresso); }
.details .label { color: var(--rust-ink); }
.details h2 { margin-bottom: clamp(32px, 6vh, 64px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 48px); }
.fact { padding: 20px 0 28px; border-top: 2px solid var(--espresso); }
.fact-label { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--rust-ink); }

.about { background: var(--bark); display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px, 6vw, 96px); align-items: start; }

.blurb { background: var(--honey); color: var(--espresso); }
.blurb .label { color: var(--espresso); }
.blurb h2 { margin-bottom: clamp(28px, 5vh, 48px); }
.blurb-box { background: var(--oat); padding: clamp(22px, 3vw, 44px); max-width: 860px; font-size: 1.14em; line-height: 1.45; rotate: -0.6deg; }
.blurb-note { max-width: 40em; margin-top: 24px; }

.booking h2 { margin-bottom: 28px; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; margin-top: 8px; }
.booking-actions .btn { margin-top: 0; }
.booking-actions a:not(.btn) { font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .mary, .note, .about, .offers, .free, .free-next { grid-template-columns: 1fr; }
  .free .art { max-height: 30vh; max-width: 420px; }
  .mary figure { max-width: 280px; }
  .cards { grid-template-columns: 1fr 1fr; row-gap: 3vh; }
  .art { max-height: 22vh; }
  .place:nth-child(even) { margin-top: 0; }
  .talk-hero { grid-template-columns: 1fr; }
  .talk-hero figure { max-height: 60vh; overflow: hidden; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; row-gap: 16px; }
  .place { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
  .art { margin: 0; max-height: none; }
  .pinned .pin { --h0: min(38vh, 86vw); --w0: 62vw; }
  .words { font-size: min(18vw, 20vh); }
  .pinned .tags { flex-direction: column; align-items: center; }
  .slide-row:nth-of-type(2) { text-align: left; }
  .slide-row:nth-of-type(2) p { margin-left: 0; }
  .scam-lines .line:nth-of-type(2) { text-align: left; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav { padding-inline: 14px; gap: 8px; }
  .brand { font-size: 19px; }
  .nav-links { gap: 10px; }
  .nav-links .sub { padding: 6px 10px; }
  section { padding-inline: 18px; }
}
@media (max-width: 360px) {
  .nav { flex-wrap: wrap; row-gap: 6px; }
  .brand { width: 100%; }
}
