/* bibklub.dk: one stylesheet for every page (#149).
   Branded and light, like the app (app/src/lib/theme/colors.ts): cream
   paper, Bibklub green, a deep forest green for bands. Literata
   (self-hosted, OFL) for headlines, the system sans for reading. The phone
   illustrations are drawn in HTML/CSS from the app's own screens and copy,
   and scale with their container (cqw units). Mobile first. */

@font-face {
  font-family: 'Literata';
  src: url('/assets/fonts/literata-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/fonts/literata-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* App tokens */
  --canvas: #faf8f3;
  --surface: #fffefa;
  --ink: #1c1b19;
  --ink-muted: rgba(28, 27, 25, 0.72);
  --border: rgba(28, 27, 25, 0.1);
  --green: #4f967e;
  --green-dark: #387b65; /* text and buttons: AA on cream */
  --green-deeper: #2c6553;
  --mint: #dcebe4; /* accentSoft on the canvas, opaque */
  --mark-a: #387b65; /* the two halves of the logo */
  --mark-b: #4f967e;
  /* Website additions */
  --forest: #1e4438;
  --forest-ink: #f3efe4;
  --forest-muted: rgba(243, 239, 228, 0.8);
  --sand: #f1eadb;
  /* Book covers in the illustrations */
  --c-terracotta: #ad4f2e;
  --c-mustard: #dfae45;
  --c-plum: #6c4a6b;
  --c-sky: #7fb0c4;
  --c-green: #387b65;
  --todo: #fdf0b8;
  --todo-ink: #4d3b00;

  --serif: 'Literata', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wide: 72rem;
  --measure: 38rem;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --radius: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--green-deeper);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--canvas);
  z-index: 10;
  border-radius: 8px;
}
.skip:focus {
  top: 1rem;
}

mark.todo {
  background: var(--todo);
  color: var(--todo-ink);
  font-size: 0.85em;
  padding: 0 0.3em;
  border-radius: 3px;
}

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

/* ---------- Header and footer ---------- */

.masthead {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}
.masthead__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.masthead__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}
.masthead__nav a:hover {
  background: var(--mint);
}
.masthead__nav a.masthead__cta {
  background: var(--ink);
  color: var(--canvas);
}
.masthead__nav a.masthead__cta:hover {
  background: var(--green-deeper);
}

main {
  display: block;
}

.colophon {
  --mark-a: #8ccbb1;
  --mark-b: #c4e6d6;
  background: var(--forest);
  color: var(--forest-muted);
  border-top: 1px solid rgba(243, 239, 228, 0.16);
}
.colophon__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3rem;
  display: grid;
  gap: 1.25rem;
}
.colophon a {
  color: var(--forest-ink);
}
.colophon .brand,
.colophon .brand:hover {
  color: var(--forest-ink);
}
.colophon__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.colophon__links a {
  display: inline-block;
  padding: 0.6rem 0;
  font-weight: 600;
}
.colophon p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Store buttons ---------- */

.stores {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.55rem 1.2rem 0.55rem 1rem;
  border-radius: 14px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}
.store__icon {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}
a.store {
  background: var(--ink);
  color: var(--canvas);
}
a.store:hover {
  background: var(--green-deeper);
  color: var(--canvas);
}
a.store:active {
  transform: scale(0.97);
}
.store--soon {
  background: var(--surface);
  border: 1.5px dashed rgba(28, 27, 25, 0.28);
  color: var(--ink);
}
.store__soon {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.band--forest a.store {
  background: var(--forest-ink);
  color: var(--forest);
}
.band--forest .store--soon {
  background: transparent;
  border-color: rgba(243, 239, 228, 0.45);
  color: var(--forest-ink);
}
.band--forest .store--soon .store__soon {
  color: var(--forest-muted);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deeper);
  font-size: 0.9rem;
  font-weight: 650;
}
.pill::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green-dark);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.marker {
  box-shadow: inset 0 -0.32em 0 var(--mint);
  color: var(--green-dark);
}
.lede {
  margin: 1.25rem 0 0;
  max-width: 31rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.assurance {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* The stage behind a phone: brand shapes from the logo. */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem 0;
  isolation: isolate;
}
.stage__blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.stage__blob--a {
  width: 62%;
  aspect-ratio: 1;
  background: var(--mint);
  top: 4%;
  left: 6%;
}
.stage__blob--b {
  width: 22%;
  aspect-ratio: 1;
  background: var(--green);
  top: 2%;
  right: 12%;
}
.stage__blob--c {
  width: 14%;
  aspect-ratio: 1;
  background: var(--c-mustard);
  bottom: 10%;
  left: 8%;
}
.stage__page {
  position: absolute;
  z-index: -1;
  width: 34%;
  aspect-ratio: 4 / 3;
  bottom: 6%;
  right: 4%;
  background: var(--green-dark);
  border-radius: 40% 6% 6% 6% / 30% 6% 6% 6%;
  transform: rotate(-8deg);
}

.sticker {
  position: absolute;
  z-index: 2;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 27, 25, 0.14);
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}
.sticker small {
  display: block;
  font-weight: 500;
  color: var(--ink-muted);
}
.sticker--left {
  left: 0;
  top: 58%;
  rotate: -4deg;
}
.sticker--right {
  right: 0;
  top: 16%;
  rotate: 3deg;
}

/* ---------- Phone illustrations ---------- */

.phone {
  container-type: inline-size;
  position: relative;
  width: min(17.5rem, 72vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 13% / 6.3%;
  padding: 3.2%;
  background: #1c1b19;
  box-shadow:
    0 30px 60px -20px rgba(30, 68, 56, 0.45),
    0 0 0 1px rgba(28, 27, 25, 0.25);
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 10.5% / 5.1%;
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 4.1cqw;
  line-height: 1.3;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 2.2%;
  left: 50%;
  width: 30%;
  height: 3.4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #1c1b19;
  z-index: 2;
}
.ui {
  flex: 1;
  padding: 16cqw 5cqw 0;
  display: flex;
  flex-direction: column;
  gap: 2.6cqw;
  overflow: hidden;
}
.ui__title {
  font-size: 7.4cqw;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ui__muted {
  color: var(--ink-muted);
  font-size: 3.4cqw;
}
.ui__search {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 2.6cqw 3.4cqw;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 3.6cqw;
}
.ui__search::before {
  content: '';
  width: 3cqw;
  height: 3cqw;
  border: 0.7cqw solid currentColor;
  border-radius: 50%;
  flex: none;
}
.ui__chips {
  display: flex;
  gap: 1.6cqw;
  overflow: hidden;
}
.ui__chip {
  flex: none;
  padding: 1.2cqw 2.8cqw;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 3.2cqw;
  font-weight: 600;
}
.ui__chip--on {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--surface);
}
.ui__card {
  display: flex;
  gap: 3cqw;
  padding: 3cqw;
  border-radius: 3.4cqw;
  border: 1px solid var(--border);
  background: var(--surface);
}
.ui__cover {
  flex: none;
  width: 13cqw;
  height: 13cqw;
  border-radius: 2.4cqw;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 6cqw;
  color: var(--surface);
}
.ui__card-body {
  display: grid;
  gap: 0.6cqw;
  min-width: 0;
}
.ui__name {
  font-weight: 650;
  font-size: 3.9cqw;
  line-height: 1.2;
}
.ui__line {
  font-size: 3.1cqw;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui__line b {
  color: var(--ink);
  font-weight: 600;
}
.ui__seats {
  font-size: 3.1cqw;
  white-space: nowrap;
}
.ui__seats::before {
  content: '';
  display: inline-block;
  width: 1.8cqw;
  height: 1.8cqw;
  margin-right: 1.2cqw;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 0.2cqw;
}
.ui__seats em {
  font-style: normal;
  color: var(--green-dark);
  font-weight: 650;
}
.ui__tabs {
  display: flex;
  justify-content: space-around;
  padding: 2.4cqw 0 5cqw;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 2.8cqw;
  font-weight: 600;
  color: var(--ink-muted);
}
.ui__tabs span {
  display: grid;
  justify-items: center;
  gap: 0.8cqw;
}
.ui__tabs span::before {
  content: '';
  width: 4.6cqw;
  height: 4.6cqw;
  border-radius: 1.4cqw;
  background: currentColor;
  opacity: 0.35;
}
.ui__tabs .on {
  color: var(--green-dark);
}
.ui__tabs .on::before {
  opacity: 1;
}
.ui__section {
  font-size: 4.2cqw;
  font-weight: 700;
  margin-top: 1cqw;
}
.ui__hero-cover {
  position: relative;
  overflow: hidden;
  flex: none;
  margin: -16cqw -5cqw 0;
  height: 32cqw;
  background: var(--c-terracotta);
}
.ui__hero-cover::before,
.ui__hero-cover::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 254, 250, 0.2);
}
.ui__hero-cover::before {
  width: 22cqw;
  height: 22cqw;
  left: 10cqw;
  top: 14cqw;
}
.ui__hero-cover::after {
  width: 14cqw;
  height: 14cqw;
  right: 14cqw;
  top: 4cqw;
}
.ui__book {
  display: flex;
  gap: 3.4cqw;
  align-items: center;
}
.ui__bookcover {
  flex: none;
  width: 15cqw;
  aspect-ratio: 2 / 3;
  border-radius: 0.8cqw 1.6cqw 1.6cqw 0.8cqw;
  padding: 1.6cqw;
  display: flex;
  align-items: flex-end;
  font-family: var(--serif);
  font-size: 2.2cqw;
  font-weight: 700;
  line-height: 1.1;
  color: var(--surface);
  box-shadow: inset 1.2cqw 0 0 rgba(0, 0, 0, 0.14), 0 1.5cqw 3cqw rgba(28, 27, 25, 0.18);
}
.ui__rsvp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6cqw;
}
.ui__btn {
  padding: 2.2cqw 0;
  border-radius: 2.4cqw;
  text-align: center;
  font-weight: 650;
  font-size: 3.2cqw;
  border: 1px solid var(--border);
  background: var(--surface);
}
.ui__btn--on {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--surface);
}
.ui__vote {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 2.6cqw 3cqw;
  border-radius: 3.4cqw;
  border: 1px solid var(--border);
  background: var(--surface);
}
.ui__vote .ui__bookcover {
  width: 11cqw;
  font-size: 1.7cqw;
}
.ui__vote .ui__card-body {
  flex: 1;
}
.ui__votebtn {
  flex: none;
  padding: 1.4cqw 2.6cqw;
  border-radius: 999px;
  font-size: 3cqw;
  font-weight: 650;
  border: 1px solid var(--green-dark);
  color: var(--green-dark);
}
.ui__votebtn--on {
  background: var(--green-dark);
  color: var(--surface);
}
.ui__bar {
  height: 1.4cqw;
  border-radius: 999px;
  background: var(--mint);
  overflow: hidden;
}
.ui__bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}
.ui__msg {
  max-width: 82%;
  padding: 2.4cqw 3.2cqw;
  border-radius: 3.6cqw;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 3.4cqw;
}
.ui__msg small {
  display: block;
  font-size: 2.7cqw;
  font-weight: 650;
  color: var(--green-dark);
}
.ui__msg--me {
  align-self: flex-end;
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--surface);
}

/* The chat bubbles used for "invite your friends". */
.chat-demo {
  max-width: 22rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  rotate: -1.5deg;
  box-shadow: 0 30px 60px -30px rgba(30, 68, 56, 0.5);
}
.chat-demo__meta {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: right;
}
.bubble {
  margin-left: auto;
  max-width: 19rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1.3rem 1.3rem 0.4rem 1.3rem;
  background: var(--green-dark);
  color: var(--surface);
  font-size: 1rem;
  line-height: 1.45;
}
.bubble span {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
.bubble--them {
  margin: 0.75rem 0 0;
  border-radius: 1.3rem 1.3rem 1.3rem 0.4rem;
  background: var(--sand);
  color: var(--ink);
  width: max-content;
  max-width: 100%;
}

/* ---------- Feature rows ---------- */

.features {
  padding: clamp(2rem, 6vw, 4rem) 0;
}
.section-head {
  max-width: 40rem;
  margin: 0 0 1rem;
}
.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.section-head h2,
.feature h2,
.band h2 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
}
.section-head p {
  margin: 0.9rem 0 0;
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2.5rem 0;
}
.feature + .feature {
  border-top: 1px solid var(--border);
}
.feature__text {
  max-width: 30rem;
}
.feature__text p {
  margin: 0.9rem 0 0;
  font-size: 1.1rem;
  color: var(--ink-muted);
}
.feature__list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.feature__list li {
  position: relative;
  padding-left: 1.9rem;
}
.feature__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green-dark);
  border: 0.33rem solid var(--mint);
}

/* ---------- Bands ---------- */

.band {
  padding: clamp(3rem, 9vw, 5.5rem) 0;
}
.band--forest {
  background: var(--forest);
  color: var(--forest-ink);
}
.band--forest .eyebrow {
  color: #a9dcc6;
}
.band--forest p {
  color: var(--forest-muted);
}
.band--forest a {
  color: var(--forest-ink);
}
.band--sand {
  background: var(--sand);
}
.band--sand .eyebrow {
  color: var(--green-deeper);
}
.band__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.band p {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  max-width: 34rem;
}
.quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* A shelf of book spines. */
.shelf {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 13rem;
  max-width: 26rem;
  padding: 0 0.75rem;
  border-bottom: 0.6rem solid #c8a978;
  border-radius: 0 0 4px 4px;
}
.spine {
  flex: 1 1 0;
  max-width: 3.2rem;
  border-radius: 4px 4px 1px 1px;
  position: relative;
}
.spine::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 14%;
  height: 0.3rem;
  border-radius: 2px;
  background: rgba(255, 254, 250, 0.55);
  box-shadow: 0 0.6rem 0 rgba(255, 254, 250, 0.35);
}
.spine--lean {
  rotate: -9deg;
  transform-origin: bottom right;
  margin-left: 0.9rem;
}

/* ---------- Entrance and float (only when motion is welcome) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .rise--2 {
    animation-delay: 120ms;
  }
  .float {
    animation: float 6s ease-in-out infinite;
  }
  .float--slow {
    animation-duration: 8s;
    animation-delay: -2s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      translate: 0 18px;
    }
  }
  @keyframes float {
    50% {
      translate: 0 -8px;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .store {
    transition: none;
  }
}

/* ---------- Long-form pages: policies, support, invitation ---------- */

.page {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}
.page-head {
  max-width: var(--measure);
  padding: clamp(2rem, 8vw, 4rem) 0 1.5rem;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  letter-spacing: -0.025em;
}
.page-head .meta {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.toc {
  max-width: var(--measure);
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.toc__title {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.toc ol {
  margin: 0;
  padding-left: 1.4rem;
}
.toc a {
  display: inline-block;
  padding: 0.4rem 0;
}

.prose {
  max-width: var(--measure);
}
.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.55rem;
  scroll-margin-top: 1.5rem;
}
.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin: 0 0 1rem;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose li {
  margin: 0.3rem 0;
}
.prose dt {
  font-weight: 700;
  margin-top: 1rem;
}
.prose dd {
  margin: 0.2rem 0 0;
}
.prose .policy {
  counter-reset: section;
}
.prose .policy h2::before {
  counter-increment: section;
  content: counter(section) '. ';
  color: var(--green-dark);
}

.faq details {
  margin: 0 0 0.6rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 1.1rem;
}
.faq summary {
  min-height: 48px;
  padding: 0.9rem 2rem 0.9rem 0;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0.7rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--green-dark);
  transition: transform 150ms ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > :not(summary) {
  margin: 0 0 1rem;
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

.invite {
  max-width: 32rem;
  padding: clamp(2rem, 10vw, 4.5rem) 0 1rem;
}
.invite h1 {
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 2.9rem);
  letter-spacing: -0.025em;
}
.invite p {
  margin: 1rem 0 0;
  font-size: 1.1rem;
}
.invite .open-app {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 1.25rem;
  font-weight: 650;
}
.invite .steps {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem 1.25rem 2.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.invite .steps li {
  margin: 0.4rem 0;
}

/* ---------- Wider screens ---------- */

@media (min-width: 56rem) {
  .hero__grid,
  .feature,
  .band__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
  .feature--flip {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .feature--flip .feature__art {
    order: -1;
  }
  .colophon__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media print {
  .masthead,
  .colophon nav,
  .toc,
  .skip,
  .stage {
    display: none;
  }
}
