/* Boomers Busts launch page. Paper, ink, and one red light. */

:root {
  --paper: #f3eadb;
  --paper-deep: #e8dbc4;
  --card: #fbf5ea;
  --ink: #1b1613;
  --ink-2: #51463c;
  --rule: rgba(27, 22, 19, .16);
  --red: #c2371b;
  --red-deep: #9c2a12;
  --night: #0f1820;
  --behind: var(--paper); /* what shows through the bust's glasses */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.6 var(--sans); /* 19px: the people in these stories read this too */
  -webkit-font-smoothing: antialiased;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
h1, h2, h3, blockquote, .numeral, .price { font-family: var(--serif); font-variation-settings: "SOFT" 60; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
em { font-style: italic; color: var(--red); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; top: 1rem; }

.kicker {
  font: 600 .8125rem/1.2 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-deep);
}
.lede { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 34rem; }
.sample { font-size: .875rem; color: var(--ink-2); margin-top: .9rem; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; position: relative; z-index: 2; }
.mark { font: italic 500 1.6rem/1 var(--serif); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.bust { height: 2.9rem; width: 2.38rem; margin-right: .55rem; flex: none; }
.dot { display: inline-block; align-self: center; width: .42em; height: .42em; margin: 0 .16em .08em; border-radius: 50%; background: var(--red); }
.top nav { display: flex; align-items: center; gap: 1.8rem; font-size: 1rem; }
.top nav a:not(.btn) { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: .3em; }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font: 600 1.0625rem/1 var(--sans); text-decoration: none;
  padding: 1.05em 1.6em; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red); transform: translateY(-1px); }
.btn.small { padding: .8em 1.2em; font-size: .95rem; }
.link { font-weight: 600; text-underline-offset: .35em; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--red-deep); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-text { position: relative; z-index: 1; padding-top: clamp(1.5rem, 5vh, 4rem); }
h1 {
  font-weight: 340;
  font-size: clamp(2.7rem, 7.6vw, 6.9rem);
  line-height: .98; letter-spacing: -.035em;
  margin: 1.1rem 0 1.8rem;
}
h1 .line { display: block; }
.swap { display: inline-block; font-weight: 400; transition: opacity .45s, transform .45s; }
.swap.out { opacity: 0; transform: translateY(.22em); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; margin-top: 2rem; }
.status { display: flex; align-items: center; gap: .7rem; margin-top: 2.2rem; font-size: .95rem; color: var(--ink-2); }
.rec { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--red); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.scene { display: block; width: 100%; }
.hills { height: clamp(250px, 44vh, 480px); margin-top: clamp(-7rem, -9vh, -2rem); }

/* ---------- night ---------- */
.night { position: relative; z-index: 1; background: var(--night); color: var(--paper); }

/* the grip: wrinkled fingers hooked over the hem of the night page, pulling it down */
.grip { position: absolute; left: 50%; bottom: 0; width: min(580px, 88vw); transform: translate(-50%, 50%); display: block; }
.grip svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 7px 7px rgba(15, 24, 32, .38)); }
.grip .sheet { fill: var(--night); }
.grip .strain { opacity: .13; }
.grip .pull { transform: translateY(calc((var(--pull, 0) - 1) * 52px)); transition: transform .3s ease-out; }
.grip:hover .pull { transform: translateY(9px); }
.grip .f { animation: regrip 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .13s); }
@keyframes regrip { 0%, 26%, 100% { translate: 0 0; } 12% { translate: 0 -8px; } }
.water { position: absolute; inset: 0; height: 100%; }
.night-text { position: relative; padding-block: clamp(5rem, 14vh, 9rem); }
.night .kicker { color: #e58a6e; }
blockquote { margin-top: 1.6rem; max-width: 20em; font-size: clamp(1.8rem, 4.2vw, 3.5rem); font-weight: 330; font-style: italic; line-height: 1.14; letter-spacing: -.02em; }
blockquote p + p { margin-top: .5em; }
.after { margin-top: 2.6rem; max-width: 33rem; color: rgba(243, 234, 219, .82); }

/* ---------- sections ---------- */
section { scroll-margin-top: 1rem; }
.section-head { max-width: 46rem; }
.section-head h2 { margin-top: .9rem; }
.section-head .lede { margin-top: 1.2rem; }
h2 { font-weight: 360; font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.04; letter-spacing: -.03em; }
h3 { font-weight: 420; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: .7rem; }

.how { padding-block: clamp(5rem, 12vh, 8.5rem) 2rem; }
.chapter { display: grid; grid-template-columns: minmax(4.5rem, 13rem) minmax(0, 38rem) 1fr; gap: 1rem 2rem; padding-block: clamp(2.2rem, 5vh, 3.4rem); border-top: 1px solid var(--rule); }
.section-head + .chapter { margin-top: 3.5rem; }
.numeral { font-size: clamp(3.4rem, 8vw, 6.5rem); font-style: italic; font-weight: 300; line-height: .8; color: var(--red); }
.chapter > div > p { color: var(--ink-2); }
.margin { justify-self: end; text-align: right; max-width: 9rem; padding-top: .5rem; font: italic 400 1.25rem/1.25 var(--serif); color: var(--red-deep); }

/* the cut */
.cut { margin-top: 1.8rem; padding: 1.4rem clamp(1.1rem, 3vw, 2rem) 1.6rem; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 18px 40px -28px rgba(27, 22, 19, .45); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-deep); }
.seg button { border: 0; background: none; cursor: pointer; font: 600 .95rem/1 var(--sans); color: var(--ink-2); padding: .75em 1.15em; border-radius: 999px; transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lines { margin-top: 1.4rem; }
.cut .lines p { color: var(--ink); }
.lines b { display: inline-block; width: 3.2rem; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); transition: width .6s, opacity .4s; overflow: hidden; vertical-align: baseline; white-space: nowrap; }
.q { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s ease, opacity .45s ease; }
.q > p { overflow: hidden; font-size: 1rem; color: var(--ink-2) !important; padding-block: .35rem; }
.q b { color: var(--ink-2); }
.a { font: 400 1.3rem/1.45 var(--serif); padding-block: .35rem; transition: padding .6s; }
.cut[data-mode="story"] .q { grid-template-rows: 0fr; opacity: 0; }
.cut[data-mode="story"] .q > p { padding-block: 0; }
.cut[data-mode="story"] .a { padding-block: .1rem; }
.cut[data-mode="story"] .a b { width: 0; opacity: 0; }
.caption { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--rule); font-weight: 600; font-size: 1rem; color: var(--ink) !important; }

/* ---------- their words ---------- */
.words { margin-top: clamp(3rem, 8vh, 6rem); padding-block: clamp(5rem, 12vh, 8rem); background: var(--paper-deep); }
.words .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 6vw, 5rem); align-items: start; }
.words .section-head { position: sticky; top: 3rem; }
.dial label { display: block; font: 600 .8125rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red-deep); margin-bottom: 1.1rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.4rem; margin: 0; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 3px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 2.1rem; height: 2.1rem; margin-top: calc(-1.05rem + 1.5px); border-radius: 50%; background: var(--red); border: 5px solid var(--paper-deep); box-shadow: 0 0 0 1.5px var(--ink); }
input[type="range"]::-moz-range-thumb { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--red); border: 5px solid var(--paper-deep); box-shadow: 0 0 0 1.5px var(--ink); }
.stops { display: grid; grid-template-columns: repeat(4, 1fr); font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.stops span:nth-child(2) { text-align: left; padding-left: 22%; }
.stops span:nth-child(3) { text-align: right; padding-right: 22%; }
.stops span:last-child { text-align: right; }
.page { position: relative; margin-top: 2rem; padding: clamp(1.5rem, 4vw, 2.8rem); background: var(--card); border-radius: 4px 18px 18px 4px; border-left: 6px solid var(--ink); box-shadow: 0 24px 50px -30px rgba(27, 22, 19, .5); }
.passage { font: 400 clamp(1.2rem, 2vw, 1.45rem)/1.55 var(--serif); }
.passage i { color: var(--red-deep); background: linear-gradient(transparent 62%, rgba(194, 55, 27, .16) 0); }
.key { display: flex; gap: 1.6rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px dashed var(--rule); font-size: .9rem; font-weight: 600; }
.key span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .5rem; border-radius: 50%; vertical-align: -.05em; }
.theirs::before { background: var(--ink); }
.ours::before { background: var(--red); }
.note { margin-top: 1.3rem; font-weight: 600; }

/* ---------- compare ---------- */
.compare { padding-block: clamp(5rem, 12vh, 8rem); }
table { width: 100%; margin-top: 3rem; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 1.25rem 1.2rem 1.25rem 0; border-top: 1px solid var(--rule); }
thead th, thead td { border-top: 0; padding-bottom: .9rem; font: 600 .8125rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
thead th:last-child { color: var(--red-deep); }
tbody th { width: 22%; font: 600 1rem/1.4 var(--sans); color: var(--ink-2); }
tbody td { width: 39%; color: var(--ink-2); }
tbody td:last-child { color: var(--ink); font: 400 1.3rem/1.35 var(--serif); }

/* ---------- questions ---------- */
.questions { padding-block: clamp(5rem, 12vh, 8rem); background: var(--ink); color: var(--paper); overflow: hidden; }
.questions .kicker { color: #e58a6e; }
.questions .lede { color: rgba(243, 234, 219, .78); }
.cards { list-style: none; padding: 0; margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cards li { background: var(--card); color: var(--ink); padding: 1.4rem 1.5rem 2.2rem; border-radius: 6px; font: italic 400 clamp(1.35rem, 2.1vw, 1.75rem)/1.2 var(--serif); letter-spacing: -.01em; min-height: 11rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); transition: transform .35s cubic-bezier(.2, .8, .2, 1); background-image: repeating-linear-gradient(transparent 0 2.05rem, rgba(27, 22, 19, .08) 2.05rem calc(2.05rem + 1px)); }
.cards span { display: block; margin-bottom: 1.3rem; font: 600 .75rem/1 var(--sans); letter-spacing: .16em; color: var(--red-deep); }
.cards li:nth-child(1) { transform: rotate(-2.2deg); }
.cards li:nth-child(2) { transform: rotate(1.4deg) translateY(.8rem); }
.cards li:nth-child(3) { transform: rotate(-1deg); }
.cards li:nth-child(4) { transform: rotate(1.8deg); }
.cards li:nth-child(5) { transform: rotate(-1.6deg) translateY(.6rem); }
.cards li:nth-child(6) { transform: rotate(2.4deg); }
.cards li:hover { transform: rotate(0) translateY(-6px); }

/* ---------- join ---------- */
.join { padding-block: clamp(5rem, 12vh, 8rem); }
.ticket { display: grid; grid-template-columns: minmax(13rem, 19rem) 1fr; background: var(--card); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.stub { position: relative; padding: 2.4rem 2rem; text-align: center; background: var(--red); color: var(--paper); display: flex; flex-direction: column; justify-content: center; border-right: 2px dashed rgba(243, 234, 219, .7); }
.stub .kicker { color: var(--paper); }
.price { font-size: clamp(5rem, 10vw, 8rem); font-weight: 300; line-height: 1; letter-spacing: -.05em; margin-top: 1rem; }
.price span { font-size: .45em; vertical-align: .75em; margin-right: .06em; }
.per { font-weight: 600; }
.ticket .body { padding: clamp(1.8rem, 4vw, 3rem); }
.ticket h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.ticket ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .5rem; color: var(--ink-2); }
.ticket li { position: relative; padding-left: 1.4rem; }
.ticket li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); }
form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .5rem; }
.field { display: flex; flex-wrap: wrap; gap: .7rem; }
input[type="email"] { flex: 1 1 15rem; min-width: 0; font: 400 1.125rem/1 var(--sans); color: var(--ink); padding: 1rem 1.2rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; }
.form-note { margin-top: .9rem; font-size: .95rem; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { padding-bottom: clamp(5rem, 12vh, 8rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem 4rem; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; cursor: pointer; list-style: none; padding-block: 1.25rem; font: 420 1.45rem/1.25 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 1.9rem/1 var(--serif); color: var(--red); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 1.4rem; max-width: 36rem; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--paper); padding-block: 4rem 3rem; text-align: center; }
.foot { --behind: var(--night); }
.foot .bust { display: block; height: 9rem; width: 7.4rem; margin: 0 auto 1.4rem; }
.foot .mark { display: block; font-size: clamp(2.4rem, 7vw, 5rem); }
.motto { margin-top: 1.2rem; font: italic 330 clamp(1.15rem, 2vw, 1.5rem)/1.3 var(--serif); color: rgba(243, 234, 219, .85); }
.foot .small { margin-top: 2.6rem; font-size: .875rem; color: rgba(243, 234, 219, .6); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .top nav a:not(.btn) { display: none; }
  .hills { margin-top: 0; }
  .chapter { grid-template-columns: 1fr; }
  .margin { justify-self: start; text-align: left; max-width: none; padding-top: 0; font-size: 1.1rem; }
  .words .wrap { grid-template-columns: 1fr; }
  .words .section-head { position: static; }
  .numeral { line-height: 1; }
  .cards { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .ticket { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--ink); }
  .stub { border-right: 0; border-bottom: 2px dashed rgba(243, 234, 219, .7); padding-block: 1.8rem; }
  .faq { grid-template-columns: 1fr; }
  .stops { font-size: .8rem; }
  .stops span:nth-child(2) { padding-left: 12%; }
  .stops span:nth-child(3) { padding-right: 12%; }
  /* the table becomes a stack of comparisons */
  table, tbody, tr, th, td { display: block; width: auto !important; }
  thead { display: none; }
  tbody tr { padding-block: 1.3rem; border-top: 1px solid var(--rule); }
  tbody th, tbody td { border: 0; padding: 0; }
  tbody th { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); margin-bottom: .5rem; }
  tbody td:nth-child(2) { text-decoration: line-through; text-decoration-color: rgba(27, 22, 19, .35); margin-bottom: .35rem; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .cards li { min-height: 0; }
  .btn { width: 100%; text-align: center; }
  .btn.small { width: auto; }
}
