/* Lereng demo site. Tokens follow DESIGN.md (Oura design language, fonts swapped
   for Fraunces + Hanken Grotesk). Pandu itself is themed only through its
   --pandu-* custom properties, mapped onto these tokens below. */

:root {
  --canvas: #f7f1e8;
  --canvas-2: #eee5d6;
  --canvas-3: #e4d9c6;
  --surface: #ffffff;
  --ink: #1c1b1a;
  --stone: #4a4741;
  --primary: #2a72de;
  --primary-press: #1f5cbb;
  --forest: #224228;
  --olive: #5c6f5d;
  --sage-pale: #ced4b8;
  --gold: #af751b;
  --band: #19191c;
  --on-dark: #f7f1e8;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* taste-skill-ignore */

  /* Five type steps */
  --t-display: clamp(2.25rem, 1rem + 4.6vw, 5rem);
  --t-h2: clamp(1.625rem, 1.05rem + 1.6vw, 2.75rem);
  --t-lead: clamp(1.125rem, 1rem + 0.35vw, 1.375rem);
  --t-body: 1.125rem;
  --t-small: 1rem;

  --margin: max(1.25rem, 5vw);
  --gap: clamp(0.75rem, 1.6vw, 1.5rem);
  --section: clamp(6rem, 13vw, 12rem);
  --radius: 0px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
::selection { background: var(--forest); color: var(--on-dark); }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* The strip that says what this site is */
.demo-strip {
  background: var(--forest);
  color: var(--on-dark);
  font-size: var(--t-small);
  line-height: 1.4;
}
.demo-strip p { max-width: 80rem; margin-inline: auto; padding: 0.625rem var(--margin); }
.demo-strip a { color: inherit; font-weight: 600; }

/* ---------- Pandu theme ---------- */
.pandu {
  --pandu-bg: var(--canvas);
  --pandu-fg: var(--ink);
  --pandu-muted: var(--stone);
  --pandu-accent: var(--primary);
  --pandu-panel-bg: var(--surface);
  --pandu-hover-bg: rgba(74, 71, 65, 0.09);
  --pandu-focus: var(--primary);
  --pandu-font: var(--sans);
  --pandu-font-size: var(--t-small);
  --pandu-max-width: none;
  --pandu-gutter: var(--margin);
  --pandu-height: 4.5rem;
  --pandu-radius: 1.25rem;
}
.pandu__brand { font-family: var(--serif); font-size: var(--t-lead); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark { color: var(--forest); }
.pandu__heading { font-weight: 600; }

/* ---------- Shared ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--primary-press); }
.btn:active { transform: scale(0.97); }
.btn--quiet { background: var(--stone); }
.btn--quiet:hover { background: var(--ink); }
.text-link { font-weight: 600; }
.section-title { font-family: var(--serif); font-size: var(--t-h2); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.section-title--sm { font-family: var(--sans); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-top: 2rem; }
.note { color: var(--stone); font-size: var(--t-small); margin-top: 1rem; }

/* ---------- Home: hero, three prints on one rail ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(1.5rem, 6vh, 4.5rem) var(--margin) 0;
  overflow: hidden;
}
.print { position: relative; }
.print img { width: 100%; height: 100%; object-fit: cover; }
.print figcaption { margin-top: 0.5rem; color: var(--stone); font-size: var(--t-small); }
.hero__title { grid-column: 1 / -1; grid-row: 1; margin-bottom: clamp(1.5rem, 4vh, 2.75rem); font-family: var(--serif); font-size: var(--t-display); font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; }
.hero__side { grid-column: 1 / 4; grid-row: 2 / 4; }
.print--sq { width: 100%; }
.print--sq img { aspect-ratio: 1; }
.print--tall { grid-column: 4 / 8; grid-row: 2 / 4; align-self: start; }
.print--tall img { aspect-ratio: 3 / 4; }
.print--wide { grid-column: 9 / 13; grid-row: 2 / 4; align-self: start; margin-top: clamp(3rem, 12vh, 8rem); margin-right: calc(-1 * var(--margin)); }
.print--wide .print__crop { overflow: hidden; }
.print--wide img { height: auto; aspect-ratio: 16 / 10; animation: drift 28s ease-in-out infinite alternate; transform-origin: 30% 60%; }
.hero__text { padding-top: 1.75rem; max-width: 22rem; }
.hero__lead { margin: 0 0 1.5rem; }

@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }

@media (max-width: 59.99em) {
  .hero { row-gap: 0; padding-top: 1.75rem; }
  .hero__title { margin-bottom: 1rem; }
  .hero__side { display: contents; }
  .print--sq { width: auto; }
  .hero__text { grid-column: 1 / -1; grid-row: 2; padding-top: 0; max-width: 34rem; }
  .print--tall { grid-column: 1 / 10; grid-row: 3; margin-top: 2.5rem; }
  .print--tall figcaption, .print--wide figcaption { display: none; }
  .print--sq { grid-column: 8 / 13; grid-row: 3; align-self: end; margin-bottom: -2.5rem; z-index: 1; }
  .print--sq img { outline: 6px solid var(--canvas); }
  .print--wide { grid-column: 1 / -1; grid-row: 4; margin: 4.5rem calc(-1 * var(--margin)) 0; }
  .print--sq { width: auto; }
}

/* ---------- Home: trips list, statement + table pushed right ---------- */
.trips { padding: var(--section) var(--margin) 0; }
.statement {
  font-family: var(--serif);
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-indent: 3vw;
  max-width: 14em;
}
.trips__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(3rem, 7vw, 6rem);
}
.trips__photo { grid-column: 1 / 5; align-self: end; }
.trips__photo img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.trips__photo figcaption { margin-top: 0.5rem; color: var(--stone); font-size: var(--t-small); }
.trips__table { grid-column: 7 / 13; }
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.filter__btn {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--canvas-2);
  color: var(--ink);
  font: 600 var(--t-small)/1.2 var(--sans);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.filter__btn:hover { background: var(--canvas-3); }
.filter__btn:active { transform: scale(0.97); }
.filter__btn[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.filter__status { min-height: 1.5em; color: var(--stone); font-size: var(--t-small); margin-bottom: 0.25rem; }
.rows { list-style: none; padding: 0; }
.row a {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.8rem 0;
  text-decoration: none;
}
.row--group { margin-top: 1.75rem; }
.row[hidden] { display: none; }
.row__kind { color: var(--stone); font-size: var(--t-small); }
.row__name { font-weight: 600; transition: transform 200ms var(--ease); }
.row__price { font-variant-numeric: tabular-nums; }
.row__price::after { content: " →"; color: var(--stone); }
.row a:hover .row__name { text-decoration: underline; text-decoration-thickness: 2px; }
.row a:hover .row__price::after { color: var(--primary); }
.trips__note { margin-top: 1.5rem; color: var(--stone); font-size: var(--t-small); }

@media (max-width: 59.99em) {
  .statement { text-indent: 0; }
  .trips__grid { display: flex; flex-direction: column-reverse; gap: 3rem; }
  .trips__photo { width: 60%; align-self: flex-end; }
  .row a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.125rem; }
  .row__kind { grid-column: 1 / -1; }
}

/* ---------- Home: band of unequal panels ---------- */
.band { padding-top: var(--section); }
.band__title { margin: 0 var(--margin) 4rem calc(var(--margin) + 16%); font-family: var(--serif); font-size: var(--t-h2); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.band__strip { display: flex; height: 68svh; min-height: 26rem; }
.band__panel { position: relative; flex: 2 1 0; overflow: hidden; color: #fff; text-decoration: none; transition: flex-grow 500ms var(--ease); }
.band__panel--lead { flex-grow: 5; }
.band__panel:nth-child(3) { flex-grow: 3; }
@media (hover: hover) { .band__strip:hover .band__panel:hover { flex-grow: 6; } }
.band__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.band__panel:hover img { transform: scale(1.04); }
.band__panel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0)); } /* taste-skill-ignore */
.band__panel--lead::before { content: ""; position: absolute; inset: 0 30% 55% 0; z-index: 1; background: linear-gradient(135deg, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0) 70%); } /* taste-skill-ignore */
.band__label { position: absolute; left: 1.25rem; bottom: 1rem; z-index: 2; font-weight: 600; font-size: var(--t-small); }
.band__label--lead { top: 1.5rem; left: 1.5rem; bottom: auto; max-width: 11em; font-family: var(--serif); font-size: var(--t-h2); font-weight: 400; line-height: 1.1; }
.band__panel:focus-visible { outline-offset: -4px; outline-color: #fff; }
.band__caption { margin: 1rem var(--margin) 0; color: var(--stone); font-size: var(--t-small); }

@media (max-width: 59.99em) {
  .band__title { margin: 0 var(--margin) 2rem; }
  .band__strip { flex-wrap: wrap; height: 84svh; min-height: 34rem; }
  .band__panel, .band__panel--lead, .band__panel:nth-child(3) { flex: none; height: 50%; }
  .band__panel:nth-child(1), .band__panel:nth-child(4) { width: 64%; }
  .band__panel:nth-child(2), .band__panel:nth-child(3) { width: 36%; }
}

/* ---------- Home: about mosaic ---------- */
.about { padding: var(--section) var(--margin) 0; }
.about__title { font-family: var(--serif); font-size: var(--t-display); font-weight: 300; line-height: 1; letter-spacing: -0.035em; }
.about__lead { max-width: 34em; margin-top: 1.5rem; font-size: var(--t-lead); line-height: 1.45; }
.about__tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin-top: 4.5rem; align-items: start; }
.about__photo { grid-column: 1 / 9; position: relative; }
.about__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.about__note { position: absolute; top: 0; right: 0; width: 20rem; padding: 1.25rem; background: var(--canvas); font-size: var(--t-small); }
.about__side { grid-column: 9 / 13; }
.about__tile { position: relative; aspect-ratio: 4 / 3.6; background: var(--sage-pale); color: var(--forest); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.about__tile svg { width: 100%; height: auto; display: block; }
.about__tile .dot { fill: var(--gold); }
.about__tile-label { position: absolute; top: 1.25rem; left: 1.25rem; color: var(--forest); font-weight: 600; font-size: var(--t-small); }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; margin-top: 1.5rem; }
.about__facts dt { color: var(--stone); font-size: var(--t-small); }
.about__facts dd { font-weight: 600; }

@media (max-width: 59.99em) {
  .about__tiles { display: block; margin-top: 2.5rem; }
  .about__photo img { aspect-ratio: 4 / 3; }
  .about__note { position: static; width: auto; padding: 1rem 0 0; background: none; }
  .about__side { margin-top: 2rem; }
  .about__tile { aspect-ratio: 3 / 2; }
}

/* ---------- Home: CTA ---------- */
.cta { padding: max(18svh, 8rem) var(--margin) max(16svh, 6rem); }
.cta__text { max-width: 34ch; font-family: var(--sans); font-size: var(--t-lead); font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

/* ---------- Footer: photograph half, menu half ---------- */
.site-footer { display: grid; grid-template-columns: 1fr 1fr; min-height: min(100svh, 52rem); background: var(--forest); color: var(--on-dark); }
.site-footer__photo { position: relative; overflow: hidden; }
.site-footer__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.site-footer__body { display: flex; flex-direction: column; padding: 4.5rem var(--margin) 2rem 8%; }
.site-footer__mark { font-family: var(--serif); font-size: var(--t-lead); }
.site-footer__menu ul { list-style: none; padding: 0; margin-top: 2.5rem; }
.site-footer__menu li + li { margin-top: 0.5rem; }
.site-footer__menu a { display: inline-block; font-family: var(--serif); font-size: var(--t-h2); font-weight: 300; line-height: 1.15; text-decoration: none; transition: transform 240ms var(--ease), opacity 240ms var(--ease); }
@media (hover: hover) {
  .site-footer__menu ul:hover a { opacity: 0.72; }
  .site-footer__menu ul:hover a:hover { opacity: 1; transform: translateX(12px); }
}
.site-footer__blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; font-size: var(--t-small); }
.site-footer__label { font-weight: 600; margin-bottom: 0.25rem; }
.site-footer__legal { margin-top: auto; padding-top: 3rem; font-size: var(--t-small); opacity: 0.85; }
.site-footer :focus-visible { outline-color: var(--on-dark); }

@media (max-width: 59.99em) {
  .site-footer { grid-template-columns: 1fr; }
  .site-footer__photo { height: 50svh; }
  .site-footer__body { padding: 3rem var(--margin) 2rem; }
  .site-footer__blocks { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.5rem; }
}

/* ---------- Inner pages ---------- */
.page-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(2.5rem, 8vh, 6rem) 0 0 var(--margin);
  align-items: end;
}
.page-head__text { grid-column: 1 / 8; padding-bottom: 0.5rem; padding-right: 2vw; }
.page-head__title { font-family: var(--serif); font-size: var(--t-display); font-weight: 300; line-height: 1; letter-spacing: -0.035em; }
.page-head__lead { margin: 1.5rem 0 0; font-size: var(--t-lead); line-height: 1.45; max-width: 30em; }
.page-head__text .btn { margin-top: 2rem; }
.page-head__photo { grid-column: 8 / 13; overflow: hidden; }
.page-head__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-head--plain, .page-head--form { padding-right: var(--margin); }
.page-head--plain .page-head__text { grid-column: 1 / 9; }
.page-head--form { align-items: start; }
.page-head--form .page-head__text { grid-column: 1 / 5; }
.page-body { padding: var(--section) var(--margin) 0; max-width: 90rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 6vw; }
.two-col p { margin-top: 1rem; max-width: 36em; }
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 4vw; }
.grades p { margin-top: 1rem; }

.plan { list-style: none; padding: 0; margin-top: 2rem; }
.plan li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.75rem 0; }
.plan li:nth-child(even) { background: var(--canvas-2); margin-inline: -1rem; padding-inline: 1rem; }
.plan__when { font-weight: 600; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; padding: 1.5rem; background: var(--surface); }
.facts dt { color: var(--stone); font-size: var(--t-small); }
.facts dd { font-weight: 600; }
.ticks { padding-left: 1.25rem; margin-top: 0.75rem; }
.ticks li + li { margin-top: 0.375rem; }

.trip-index, .rent-index { list-style: none; padding: 0; margin-top: 2.5rem; }
.trip-index a { display: grid; grid-template-columns: clamp(6rem, 16vw, 13rem) minmax(0, 1fr) auto; gap: 0.5rem 2rem; align-items: center; padding: 1rem 0; text-decoration: none; }
.trip-index li:nth-child(even) a { grid-template-columns: clamp(6rem, 16vw, 13rem) minmax(0, 1fr) auto; }
.trip-index img { grid-row: span 2; aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.trip-index__name { font-family: var(--serif); font-size: var(--t-h2); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; align-self: end; }
.trip-index__meta { color: var(--stone); align-self: start; }
.trip-index a:hover .trip-index__name, .rent-index a:hover .rent-index__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.rent-index a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; padding: 1.25rem 0; text-decoration: none; }
.rent-index li:nth-child(odd) a { background: var(--canvas-2); margin-inline: -1.25rem; padding-inline: 1.25rem; }
.rent-index__name { font-family: var(--serif); font-size: var(--t-h2); font-weight: 300; line-height: 1.1; }
.rent-index__meta { color: var(--stone); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 4vw; }
.steps li h2 { margin-top: 0; }
.steps p { margin-top: 0.5rem; }

.table { width: 100%; max-width: 60rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table caption { text-align: left; font-weight: 600; padding-bottom: 1rem; }
.table th, .table td { text-align: left; padding: 0.875rem 1rem 0.875rem 0; border-bottom: 1px solid var(--canvas-3); vertical-align: top; }
.table th { color: var(--stone); font-size: var(--t-small); font-weight: 600; }
.table .num { text-align: right; padding-right: 0; }

.journal { display: grid; gap: 4rem; max-width: 48rem; }
.journal__date { color: var(--stone); font-size: var(--t-small); margin-bottom: 0.5rem; }
.journal p:not(.journal__date) { margin-top: 0.75rem; }
.credits-list { padding-left: 1.25rem; max-width: 60rem; }
.credits-list li + li { margin-top: 0.75rem; }

/* Booking form */
.form { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--t-small); }
.optional { font-weight: 400; color: var(--stone); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  border: 1px solid #8a857c;
  border-radius: 0.75rem;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.4 var(--sans);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field .btn { align-self: flex-start; }

@media (max-width: 59.99em) {
  .page-head { display: block; padding: 2rem var(--margin) 0; }
  .page-head__photo { margin: 2.5rem calc(-1 * var(--margin)) 0; }
  .page-body { padding-top: 4.5rem; }
  .two-col, .grades, .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .trip-index a { grid-template-columns: 6rem minmax(0, 1fr); }
  .trip-index img { grid-row: span 2; }
  .form { grid-template-columns: 1fr; margin-top: 2.5rem; padding: 1.25rem; }
  .table th, .table td { padding-right: 0.75rem; }
}

/* ---------- Motion ---------- */
/* Entrances are added by site.js only to elements below the fold, so nothing stays hidden without script. */
.reveal-item { opacity: 0; transform: translateY(24px); }
.reveal-item.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--delay, 0ms); }
.shutter img { animation: shutter 1.1s var(--ease) 0.1s both; }
@keyframes shutter {
  from { clip-path: inset(0 0 100% 0); transform: scale(1.12); }
  to { clip-path: inset(0 0 0 0); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal-item { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn, .filter__btn { border: 1px solid ButtonText; } /* taste-skill-ignore */
  .band__panel::after, .band__panel--lead::before { display: none; } /* taste-skill-ignore */
}

/* ---------- Docs ---------- */
.docs-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: clamp(2.5rem, 8vh, 5rem) var(--margin) 0; align-items: start; }
.docs-hero__text { grid-column: 1 / 7; }
.docs-hero__title { font-family: var(--serif); font-size: var(--t-display); font-weight: 300; line-height: 1; letter-spacing: -0.035em; }
.docs-hero__lead { margin-top: 1.5rem; font-size: var(--t-lead); line-height: 1.45; }
.docs-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.docs-hero__demo { grid-column: 7 / 13; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--canvas-2); }
.docs-hero__demo figcaption { margin-top: 0.75rem; color: var(--stone); font-size: var(--t-small); }

.docs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: var(--section) var(--margin) 0; }
.docs__toc { grid-column: 1 / 4; align-self: start; position: sticky; top: 6.5rem; font-size: var(--t-small); }
.docs__toc-title { font-weight: 600; margin-bottom: 0.75rem; }
.docs__toc ul { list-style: none; padding: 0; }
.docs__toc a { display: block; padding: 0.375rem 0; color: var(--stone); text-decoration: none; }
.docs__toc a:hover { color: var(--ink); text-decoration: underline; }
.docs__toc a[aria-current] { color: var(--ink); font-weight: 600; }
.docs__body { grid-column: 4 / 12; min-width: 0; }
.docs__body > section + section { margin-top: 6rem; }
.docs__body p, .docs-list { max-width: 38em; margin-top: 1rem; }
.docs-h2 { font-family: var(--serif); font-size: var(--t-h2); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; scroll-margin-top: 6rem; }
.docs-h3 { font-size: var(--t-body); font-weight: 600; margin-top: 2.5rem; }
.docs-list { padding-left: 1.25rem; }
.docs-list li + li { margin-top: 0.5rem; }
code { overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.86em; background: var(--canvas-2); padding: 0.1em 0.3em; border-radius: 4px; }
kbd { font-family: var(--sans); font-size: 0.875em; font-weight: 600; background: var(--surface); padding: 0.1em 0.45em; border-radius: 6px; }
.code { position: relative; margin-top: 1.25rem; }
.code pre { margin: 0; padding: 1.25rem 1.5rem; overflow-x: auto; background: var(--band); color: #ece7dd; border-radius: 12px; font-size: var(--t-small); line-height: 1.6; tab-size: 2; }
.code pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.code pre:focus-visible { outline-offset: 2px; }
.code__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.375rem 0.5rem 0.375rem 1.25rem; background: #2a2a2e; color: #d9d4ca; border-radius: 12px 12px 0 0; font-size: var(--t-small); }
.code__bar + pre { border-radius: 0 0 12px 12px; }
.copy { min-height: 44px; min-width: 64px; padding: 0.5rem 1rem; border: 0; border-radius: 999px; background: #3f3f45; color: #fff; font: 600 var(--t-small)/1 var(--sans); cursor: pointer; touch-action: manipulation; transition: background-color 160ms var(--ease); }
.copy:hover { background: #505056; }
.table-wrap { margin-top: 1.5rem; overflow-x: auto; }
.table-wrap:focus-visible { outline-offset: 4px; }
.docs__body .table { min-width: 32rem; }
.docs__body .table td { font-size: var(--t-small); }
.keys td:first-child { white-space: nowrap; }

/* Theme playground */
.play { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin-top: 1.5rem; padding: 1.5rem; background: var(--surface); border-radius: 12px; }
.play__field { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.375rem 0.75rem; }
.play__field label { grid-column: 1 / -1; font-weight: 600; font-size: var(--t-small); }
.play__field input[type="color"] { width: 100%; height: 44px; padding: 2px; border: 1px solid #8a857c; border-radius: 10px; background: var(--canvas); cursor: pointer; } /* taste-skill-ignore */
.play__field input[type="range"] { min-width: 0; width: 100%; height: 44px; accent-color: var(--primary); cursor: pointer; }
.play__field output { font-variant-numeric: tabular-nums; font-size: var(--t-small); color: var(--stone); min-width: 4.5em; text-align: right; }
.play__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.play .code { grid-column: 1 / -1; margin-top: 0; }

@media (max-width: 59.99em) {
  .docs-hero { display: block; }
  .docs-hero__demo { margin-top: 2.5rem; }
  .docs { display: block; padding-top: 4.5rem; }
  .docs__toc { position: static; padding: 1.25rem; background: var(--canvas-2); border-radius: 12px; }
  .docs__toc ul { columns: 2; column-gap: 1.5rem; }
  .docs__body { margin-top: 4rem; }
  .docs__body > section + section { margin-top: 4.5rem; }
  .play { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; }
  .code pre { padding: 1rem; }
}
@media (max-width: 26em) { .docs__toc ul { columns: 1; } }

/* ---------- Before/after ---------- */
.ba-hint { margin-top: 0.75rem; max-width: 38em; }
.ba-after { margin-top: 5rem; }
.compare { margin-top: 0; }
.old-frame { margin-top: 1.5rem; padding: 0 0 8rem; background: var(--canvas-2); overflow-x: auto; } /* taste-skill-ignore */
.old-site { min-width: 46rem; background: #ffffff; font-family: Verdana, Geneva, sans-serif; } /* taste-skill-ignore */
.old-logo { padding: 14px 12px; background: #fff; color: #1d4f87; font: bold 20px/1 "Times New Roman", serif; } /* taste-skill-ignore */
.old-menu { background: linear-gradient(#4f86c6, #1d4f87); border-top: 1px solid #8fb3e0; border-bottom: 2px solid #0f3360; } /* taste-skill-ignore */
.old-menu ul { list-style: none; margin: 0; padding: 0; } /* taste-skill-ignore */
.old-menu > ul { display: flex; } /* taste-skill-ignore */
.old-menu li { position: relative; } /* taste-skill-ignore */
.old-menu > ul > li > a, .old-menu > ul > li > span { display: block; padding: 5px 12px; min-height: 24px; color: #ffffff; font-size: 11px; line-height: 14px; text-decoration: none; border-right: 1px solid #0f3360; } /* taste-skill-ignore */
.old-menu > ul > li > a:hover, .old-has:hover > span { background: #0f3360; text-decoration: underline; } /* taste-skill-ignore */
.old-has > ul { display: none; position: absolute; top: 100%; left: 0; min-width: 150px; background: #ffffcc; border: 1px solid #333; z-index: 5; } /* taste-skill-ignore */
.old-has:hover > ul { display: block; } /* taste-skill-ignore */
.old-has > ul a { display: block; min-height: 24px; padding: 5px 8px; color: #00309c; font-size: 11px; line-height: 14px; border-bottom: 1px dotted #999; } /* taste-skill-ignore */
.old-has > ul a:hover { background: #1d4f87; color: #fff; } /* taste-skill-ignore */

/* Drawer items read at body size on phones */
@media (max-width: 59.99em) {
  .pandu__link, .pandu__trigger { font-size: var(--t-body); }
}

/* Docs tables become labelled blocks on phones (labels added by site.js; without it they scroll) */
@media (max-width: 40em) {
  .table--stack { min-width: 0 !important; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table--stack tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--canvas-3); }
  .table--stack td { display: block; padding: 0.125rem 0; border: 0; }
  .table--stack td::before { content: attr(data-label); display: block; color: var(--stone); font-size: var(--t-small); font-weight: 600; }
  .table--stack td:first-child { font-weight: 600; }
  .table--stack td:first-child::before { content: none; }
  .table--stack .num { text-align: left; }
}

/* Browser surfaces and touch */
html { accent-color: var(--primary); caret-color: var(--primary); }
@media (pointer: fine) { html { overscroll-behavior: none; } }
a, button, summary, input, select, textarea, label { touch-action: manipulation; }
h1, h2, h3, .statement, .cta__text { text-wrap: balance; }
p { text-wrap: pretty; }
.site-footer__legal { padding-bottom: env(safe-area-inset-bottom); }

/* The demo strip names the product on show */
@media (max-width: 40em) { .demo-strip__lead { display: none; } }

/* Stronger panel edge on this theme: panels float over photographs */
.pandu { --pandu-shadow: 0 28px 56px -18px rgba(20, 18, 16, 0.32), 0 2px 10px rgba(20, 18, 16, 0.08); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
