/* Yog Sadhika: line and wash. Built on the Refero style "AATHER": the interface is
   almost invisible so the pictures carry the mood. Whisper-weight display type (Spectral 200-300 for
   headings) over a reading weight of 400 for everything women actually read, General Sans tracked
   wide for everything typeset, a centred
   wordmark like a masthead, underlined text links instead of buttons, 2px corners, no shadows,
   sections divided by hairline rules; colour only where no drawing sits (a warm wash behind two
   text sections, deep plum to close the page). AATHER's black ink becomes the drawings' plum;
   its white page becomes their paper. */

/* The site's own fonts, trimmed by tools/fonts.py. */
@font-face { font-family: "Spectral"; src: url("fonts/spectral-200.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-200-italic.woff2") format("woff2"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif Devanagari"; src: url("fonts/noto-serif-devanagari-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f5f1e8;
  --wash: #ebe2d9;       /* a shade under the paper, for the two long text sections */
  --ink: #46303f;        /* text, rules and links: the drawings' plum, used as black */
  --deep: #352631;
  --muted: #574a53;      /* 7.4:1 on the paper: readable for every age */
  --rule: rgb(70 48 63 / 0.35);
  --serif: "Spectral", Georgia, serif;
  --sans: "General Sans", system-ui, sans-serif;
  --deva: "Noto Serif Devanagari", serif;
  --dock: 0px;
}

/* Shape: one rule. Corners are 2px on pictures, buttons and the map. The one exception is the round portrait of the teacher, which is an avatar crop. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; color-scheme: light; }  /* light only: the drawings are painted on this paper, so a forced dark mode would box every picture */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--serif); overflow-x: clip; padding-bottom: var(--dock); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 200; color: var(--deep); }
p { margin: 0; }
figure { margin: 0; }
h1, h2, h3, summary { text-wrap: balance; }  /* no one-word last lines */
p, dd, li { text-wrap: pretty; }
a:hover { text-decoration-thickness: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; border: 1px solid var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* The CTA is an underlined text link; only the phone dock fills its WhatsApp button. */
.cta {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 400 15px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--deep);
  border-bottom: 1px solid var(--deep); padding: 14px 0 6px;
}
.cta:hover { color: var(--ink); border-bottom-width: 2px; padding-bottom: 5px; }
.cta.quiet { color: var(--muted); border-bottom-color: var(--rule); }


/* Masthead: three columns, the wordmark centred. */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-row { width: min(1320px, 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 14px; }
.masthead nav { display: flex; align-items: center; gap: 28px; }
.masthead .right { justify-content: flex-end; }
.masthead a { font: 400 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.masthead a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.masthead .cta { font-weight: 400; padding: 7px 0 6px; min-height: 0; }  /* 7 above, 6 + the 1px rule below: the text centres level with the other links */
.masthead .cta:hover { padding-bottom: 5px; }
.masthead .cta, .wordmark { position: relative; }
.masthead .cta::after, .wordmark::after { content: ""; position: absolute; inset: -9px -6px; }  /* 44px to tap, without moving anything */
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark span { font: 400 15px/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--deep); margin-right: -0.32em; }
.wordmark img { width: 34px; height: 34px; }
/* Phones and tablets: the menu is a full page in the site's own type, not a dropdown. It sits
   under the phone's booking bar, so booking stays one tap away while it is open. */
.menu-toggle, .menu-close { display: none; width: 44px; height: 44px; margin-left: -10px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); place-items: center; }  /* 44px tap target, icon on the text edge */
.menu-close { display: grid; }
.menu-toggle .icon, .menu-close .icon { font-size: 26px; }
.menu-toggle:hover, .menu-close:hover { color: var(--deep); }
.sheet { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; overflow-y: auto; background: var(--paper); padding-bottom: var(--dock); }
.sheet[hidden] { display: none; }
.sheet-top { border-bottom: 1px solid var(--rule); }
.sheet nav { flex: 1; width: min(1200px, 100% - 48px); margin-inline: auto; padding-block: clamp(20px, 5vh, 56px); }
.sheet ul { list-style: none; margin: 0; padding: 0; }  /* no rules between the links: the one line under the bar is enough */
.sheet li a { display: block; padding: clamp(12px, 2.2vh, 18px) 0; font: 300 clamp(26px, min(6.4vw, 5.4vh), 44px)/1.15 var(--serif); letter-spacing: -0.01em; color: var(--deep); text-decoration: none; }
.sheet li a:hover { font-style: italic; }
.sheet-foot { width: min(1200px, 100% - 48px); margin: 0 auto; padding-block: 8px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font: 400 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sheet-foot .cta { margin-left: auto; letter-spacing: 0.06em; }
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .sheet:not([hidden]) { animation: sheet-in 0.28s ease; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(-6px); } }
}
@media (min-width: 1280px) { .sheet { display: none; } }
@media (max-height: 820px) {  /* landscape tablets and short phones: the whole menu and its foot on one screen */
  .sheet nav { padding-block: 12px; }
  .sheet li a { padding-block: 9px; }
}
@media (max-height: 640px) {  /* the shortest phones: the menu fits without scrolling */
  .sheet li a { padding-block: 5px; }
  .sheet-foot span { display: none; }
}

/* Hero: the drawing edge to edge; the words in its quiet left side, nothing behind them. */
.hero { position: relative; min-height: calc(100svh - 64px); display: flex; align-items: center; isolation: isolate; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -1; }
.hero-art img { object-fit: cover; object-position: right center; }
.hero-copy { width: min(1200px, 100% - 48px); margin-inline: auto; padding-block: 72px; }
.hero-copy > * { max-width: 40%; }
.pointers { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font: 400 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
h1 { font: 200 clamp(60px, 7.4vw, 112px)/1 var(--serif); letter-spacing: -0.015em; }
.lede { margin-top: 18px; font: 300 clamp(26px, 2.5vw, 36px)/1.2 var(--serif); color: var(--deep); }
.promise { margin-top: 16px; font: 400 17px/1.5 var(--sans); letter-spacing: 0.02em; color: var(--muted); }
.links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 36px; }

/* Sections: generous air, separated by a single hairline. */
.block { padding-block: clamp(72px, 9vw, 136px); }
.block + .block, .sadhika + .block { border-top: 1px solid var(--rule); }
/* Colour breaks the long cream page only in sections without pictures: the drawings fade into the
   paper, so on a tint they would leave pale patches. A change of colour replaces the hairline. */
.block.wash { background: var(--wash); }
.block.night { background: var(--deep); color: var(--paper); }
.night > * { --deep: var(--paper); --ink: var(--paper); --muted: rgb(245 241 232 / 0.76); --rule: rgb(245 241 232 / 0.3); }
.block.wash, .block.night, .wash + .block { border-top: 0; }
h2 { font: 200 clamp(36px, 3.8vw, 56px)/1.1 var(--serif); letter-spacing: -0.01em; }
h3 { font: 300 24px/1.25 var(--serif); }
.label { font: 400 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.text > p { margin-top: 20px; color: var(--muted); max-width: 52ch; }
.pair { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.pair.flip { grid-template-columns: 1.1fr 1fr; }
.picture img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }

p.close { margin-top: 28px; font: 300 clamp(24px, 2.2vw, 30px)/1.3 var(--serif); color: var(--deep); }  /* after .text > p, which it overrides */

.portrait { margin-top: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; padding-top: 24px; border-top: 1px solid var(--rule); }
.portrait img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; background: var(--paper); }  /* the photo is a circular avatar: the round crop hides the corners it leaves */
.portrait figcaption { color: var(--muted); }
.portrait em { color: var(--deep); }

.intro { text-align: center; max-width: 760px; margin-inline: auto; }
.intro > p:not(.deva) { margin-top: 18px; color: var(--muted); }
.deva { font: 300 clamp(32px, 3vw, 42px)/1.2 var(--deva); color: var(--ink); margin-bottom: 10px; }
.picture.wide { margin-top: clamp(48px, 6vw, 80px); max-width: 960px; margin-inline: auto; }
#practice .picture.wide { margin-top: 0; }  /* /classes/: the practice opens on its picture, straight after the two kinds of class */
.measure { max-width: 64ch; margin: 36px auto 0; color: var(--muted); }
.parts { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.parts li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.parts strong { font-weight: 400; font-style: italic; color: var(--deep); }
.three { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.three li { padding: 28px 28px 0; border-left: 1px solid var(--rule); }
.three li:first-child { border-left: 0; padding-left: 0; }
.three p { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.levels { margin-top: 28px; font: 300 clamp(24px, 2.2vw, 30px)/1.3 var(--serif); color: var(--deep); }

.intro-head { max-width: 22ch; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.stages img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
/* The pictures fade out at their edges, so a plant cut by the frame or the paper's own tone never draws a box on the page. */
.picture img, .stages img {
  --fade: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: var(--fade); -webkit-mask-composite: source-in;
  mask-image: var(--fade); mask-composite: intersect;
}
.stages h3 { margin-top: 18px; font-size: 22px; }
.stages p { margin-top: 8px; font-size: 17px; color: var(--muted); }

.aside { margin-top: 32px; text-align: center; font: 400 15px/1.5 var(--sans); letter-spacing: 0.02em; color: var(--muted); }
.intro .sub { margin-top: 24px; font: 400 clamp(20px, 1.8vw, 24px)/1.3 var(--serif); font-style: italic; color: var(--deep); }
.visit .times { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.visit .times span { display: inline-block; min-width: 136px; font: 400 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kriyas { font-size: 16px; }

/* Yoga therapy: three groups as rows divided by hairlines; the group left, its examples right. */
.clusters { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.cluster { display: grid; grid-template-columns: 260px 1fr; gap: 16px 48px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.cluster h3 { font: 300 clamp(26px, 2.4vw, 32px)/1.2 var(--serif); }
.cluster dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.cluster dt { font: 400 20px/1.3 var(--serif); font-style: italic; color: var(--deep); }
.cluster dd { margin: 6px 0 0; font-size: 17px; color: var(--muted); }

/* Batches: a timetable of rows; every time books that batch on WhatsApp. */
.timetable { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.timetable .row { display: grid; grid-template-columns: 260px 1fr; gap: 12px 48px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.timetable h3 { font: 300 clamp(26px, 2.4vw, 32px)/1.2 var(--serif); }
.timetable ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.timetable li a { display: inline-flex; align-items: baseline; gap: 14px; min-height: 44px; padding: 10px 0; text-decoration: none; font: 400 22px/1.2 var(--serif); color: var(--deep); }
.timetable li a:hover .book { text-decoration-thickness: 2px; }
.timetable .book { font: 400 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

/* The Sadhika band: the drawing full-bleed, the words below it in a narrow column. */
.sadhika { padding-bottom: clamp(72px, 9vw, 136px); border-top: 1px solid var(--rule); }
.band-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.narrow { max-width: 680px; margin-top: clamp(56px, 7vw, 96px); text-align: center; }
.narrow > p:not(.deva):not(.close) { margin-top: 18px; color: var(--muted); }
.narrow i { color: var(--deep); }
.narrow blockquote { margin: 32px 0 0; padding: 24px 0; border-block: 1px solid var(--rule); }
.narrow blockquote p { font: 300 clamp(24px, 2.4vw, 32px)/1.3 var(--serif); color: var(--deep); }
.narrow blockquote footer { margin-top: 12px; font: 400 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.slot-note { margin-top: 6px; font-size: 16px; font-style: italic; color: var(--muted); }
.aside a { color: var(--deep); }

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px 96px; align-items: start; }
.qa details { border-top: 1px solid var(--rule); }
.qa details:last-child { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 400 clamp(20px, 1.8vw, 23px)/1.35 var(--serif); color: var(--deep); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 200 26px/1 var(--serif); transition: transform 0.25s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: 22px; color: var(--muted); max-width: 56ch; }
.qa p a { color: var(--deep); }  /* the call and WhatsApp links inside an answer, as in .aside */

.visit { align-items: start; }
.visit dl { margin: 28px 0 0; display: grid; gap: 18px; }
.visit dt { font: 400 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.visit dd { margin: 8px 0 0; font-size: 20px; color: var(--deep); }
.visit dd .note { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.visit .links { gap: 8px 36px; }
/* The map: Google Maps (as heavy as the rest of the page) loads only when the visitor asks for it. */
.map { aspect-ratio: 4 / 3; }
.map button { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 0; border: 1px solid var(--rule); border-radius: 2px; background: none; color: var(--ink); cursor: pointer; }
.map button:hover { border-color: var(--ink); }
.map button .cta { min-height: 0; padding-top: 0; }
.map small { font: 400 13px/1.4 var(--sans); letter-spacing: 0.04em; color: var(--muted); }
.map iframe { width: 100%; height: 100%; border: 0; border-radius: 2px; display: block; filter: grayscale(1) sepia(0.18) contrast(0.92); }

.foot { padding: 48px 24px; border-top: 1px solid var(--rule); text-align: center; display: grid; justify-items: center; gap: 14px; }
.foot p { font: 400 13px/1.4 var(--sans); letter-spacing: 0.06em; color: var(--muted); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { position: relative; }
.foot-links a::after { content: ""; position: absolute; inset: -13px -8px; }  /* 44px to tap */
.foot .wordmark span { font-size: 13px; }
.foot .wordmark img { width: 28px; height: 28px; }

.dock { display: none; }

/* The privacy notice (privacy/). */
.prose { max-width: 64ch; }
.prose h1 { font-size: clamp(44px, 5vw, 64px); }
.prose h2 { margin-top: 48px; font-size: clamp(28px, 2.6vw, 36px); }
.prose p, .prose li { margin-top: 14px; color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose .back { margin-top: 48px; }

/* Sections fade in once. Only when the script is running (html.js), so the page never stays blank without it. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transition: opacity 1s ease; }
  .js .reveal.in { opacity: 1; }
}

/* The masthead's six shortcuts need about 1250px; below 1280 the hamburger and full menu take over. */
@media (max-width: 1279px) {
  .wide-only { display: none; }
  .menu-toggle { display: grid; }
}

@media (max-width: 1100px) {
  .hero-copy > * { max-width: 44%; }
  .stages { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pair, .pair.flip, .faq { grid-template-columns: 1fr; }
  .pair.flip .picture { order: 2; }
  .three, .cluster, .timetable .row { grid-template-columns: 1fr; }
  .three li, .three li:first-child { border-left: 0; padding: 24px 0; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 640px), (orientation: portrait) and (max-width: 900px) {
  :root { --dock: 68px; }
  .wrap { width: calc(100% - 32px); }
  .masthead-row { width: calc(100% - 32px); }
  .wordmark span { letter-spacing: 0.22em; font-size: 13px; }
  .wordmark img { width: 28px; height: 28px; }
  .masthead .right .cta { display: none; }
  .masthead .right { visibility: hidden; }  /* empty on phones: out of the accessibility tree, column kept */
  .hero { min-height: max(calc(100svh - 58px), calc(82vw + 290px)); align-items: flex-start; }  /* on short screens the words stay clear of the drawing */
  .pointers { margin-bottom: 16px; gap: 4px 20px; font-size: 11px; }
  .sheet-foot .cta { display: none; }  /* the booking bar is already on screen */
  .hero-art img { object-position: center bottom; }
  .hero-copy { width: calc(100% - 32px); padding-block: 36px 0; }
  .hero-copy > * { max-width: none; }
  .hero .links { display: none; }
  h1 { font-size: clamp(52px, 15vw, 72px); }
  h2 { font-weight: 300; }
  .band-art img { aspect-ratio: 5 / 4; object-position: center bottom; }  /* the words sit below, so not the empty top */
  .portrait { grid-template-columns: 88px 1fr; }
  .portrait img { width: 88px; height: 88px; }
  .map { display: none; }  /* on phones "Open in Google Maps" opens the Maps app, which does more than an embedded map */
  .dock {
    display: flex; align-items: center; gap: 24px;
    position: fixed; inset: auto 0 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--rule);
  }
  .dock .cta:first-child {  /* the one filled button on the page: booking is always one obvious tap away */
    flex: 1; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 2px;
    background: var(--deep); color: var(--paper); font-weight: 500;
  }
  .dock .cta:first-child:hover { background: var(--ink); color: var(--paper); padding: 0 20px; }
  .dock .cta:last-child { padding-inline: 4px; }
}

/* ---------------------------------------------------------------------------------------------
   Several pages instead of one: what the inner pages and the home's shorter sections add.
   --------------------------------------------------------------------------------------------- */

.masthead a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.sheet li a[aria-current="page"] { font-style: italic; }

/* An inner page opens with a label, its question as the heading, and one line under it. */
.page-head { text-align: center; padding-block: clamp(56px, 8vw, 120px) clamp(36px, 5vw, 64px); }
.page-head .label { margin-bottom: 22px; }
.page-head h1 { font: 200 clamp(40px, 5.4vw, 80px)/1.05 var(--serif); letter-spacing: -0.015em; max-width: 18ch; margin-inline: auto; }
.page-lede { max-width: 54ch; margin: 26px auto 0; color: var(--muted); }
.page-head > .picture.wide { margin-top: clamp(40px, 5vw, 64px); }
.page-head .links { justify-content: center; }  /* the 404's two links sit under the centred lede */
.page-head.page-only { padding-bottom: clamp(72px, 9vw, 136px); }
.page-head + .block:not(.wash):not(.night) { padding-top: 0; }
.sub-head { font: 300 clamp(26px, 2.6vw, 34px)/1.25 var(--serif); letter-spacing: 0; }

.plain { margin-top: 28px; text-align: center; }
.plain strong { font-weight: 400; font-style: italic; color: var(--deep); }
.measure .close { text-align: center; margin-top: 0; }
#stages .stages-head { text-align: center; margin: 0 0 clamp(36px, 4vw, 56px); }

/* The home's doors to the other pages: a title, one line, an arrow; the whole row is the link. */
.doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(36px, 6vw, 96px); }
.doors li { border-bottom: 1px solid var(--rule); }
.doors li:nth-child(-n+2) { border-top: 1px solid var(--rule); }
.door { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 6px; align-items: center; padding: 26px 0; text-decoration: none; color: inherit; }
.door h2 { grid-column: 1; font: 300 clamp(26px, 2.4vw, 32px)/1.2 var(--serif); letter-spacing: 0; }
.door p { grid-column: 1; font-size: 17px; color: var(--muted); }
.door .go { grid-column: 2; grid-row: 1 / span 2; font-size: 28px; color: var(--deep); transition: transform 0.25s; }
a.door:hover h2 { font-style: italic; }
a.door:hover .go { transform: translateX(4px); }

/* "Next" at the foot of an inner page. */
.next { display: flex; align-items: baseline; gap: 20px; margin-block: clamp(56px, 7vw, 96px); padding: 26px 0; border-block: 1px solid var(--rule); text-decoration: none; color: var(--deep); }
.block + .wrap > .next { margin-top: 0; }
.block.night + .wrap > .next { margin-top: clamp(56px, 7vw, 96px); }  /* /visit/: the Next row after the plum band needs its own space */
main > .block:not(.wash):not(.night):has(+ .wrap > .next) { padding-bottom: clamp(48px, 5vw, 72px); }  /* the section a Next row closes keeps it close */
.next small { min-width: 56px; font: 400 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.next span { font: 300 clamp(24px, 2.4vw, 32px)/1.2 var(--serif); }
.next .icon { margin-left: auto; font-size: 28px; transition: transform 0.25s; }
a.next:hover span { font-style: italic; }
a.next:hover .icon { transform: translateX(4px); }

/* The closing band: centred, nothing to read but how to book. */
.block.night.book-band, .night .book { text-align: center; }
.book { max-width: 720px; }
.book h2 { font-size: clamp(36px, 4vw, 56px); }
.book .where { margin-top: 18px; color: var(--deep); }
.book .where span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.book .links { justify-content: center; margin-top: 28px; }

/* The footer lists every page, so a visitor on any page, and a search engine, can reach all of them. */
.foot-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; max-width: 960px; }
.foot-pages a, .foot-pages .soon { padding-block: 16px; font: 400 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.foot-pages a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 5px; }
.foot-pages a[aria-current="page"] { color: var(--deep); text-decoration: underline; text-underline-offset: 5px; }

/* A page listed in src/data/site.ts with built: false is plain muted text, not a link. */
.soon { color: var(--muted); cursor: default; }

@media (max-width: 640px) {
  /* The four life stages as rows (picture left, words right) instead of four screen-high squares. */
  #stages .stages { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
  .cluster dl { grid-template-columns: 1fr; }
  #stages .stages li { display: grid; grid-template-columns: 112px 1fr; gap: 2px 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
  #stages .stages img { grid-row: 1 / span 2; }
  #stages .stages h3 { margin-top: 0; align-self: end; font-size: 20px; }
  #stages .stages p { margin-top: 0; align-self: start; font-size: 16px; line-height: 1.5; }
}

@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; }
  .doors li:nth-child(2) { border-top: 0; }
}

@media (min-width: 641px) and (orientation: portrait) and (max-width: 900px) {  /* portrait tablets: a centred pair, not a 640px slab */
  .dock { justify-content: center; }
  .dock .cta:first-child { flex: 0 1 360px; }
}

/* Page zoom (iOS aA, 175 to 200%) gives a 200 px layout: let text columns shrink and the booking bar tighten. */
.pair > *, .portrait figcaption { min-width: 0; }
.portrait figcaption { overflow-wrap: anywhere; }
@media (max-width: 260px) {
  .dock { gap: 10px; padding-inline: 10px; }
  .dock .cta:first-child { min-width: 0; padding-inline: 8px; }
  .dock .cta:last-child { padding-inline: 0; }
}
@media (max-width: 260px) {
  .next { flex-wrap: wrap; gap: 4px 12px; }
  .next small { min-width: 0; }
  .next span { min-width: 0; overflow-wrap: anywhere; }
  #stages .stages li { grid-template-columns: 72px 1fr; column-gap: 12px; }
  #stages .stages li > * { min-width: 0; overflow-wrap: anywhere; }
}

/* Inner pages that open with the Devanagari word, and a long sentence as the heading. */
.page-head .deva { margin-bottom: 4px; }
.page-head h1.long { max-width: 22ch; font-size: clamp(36px, 4.6vw, 68px); }
.first .qa { max-width: 820px; margin-inline: auto; }
.measure .kriyas { margin-top: 24px; }
.visit .text > dl:first-child { margin-top: 0; }

/* Reduced motion: the hover and open/close movements stop too, not only the fade-in. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.intro .links { justify-content: center; }

/* Icons (src/components/Icon.astro): Phosphor, light weight, drawn in the text colour. */
.icon { display: inline-grid; width: 1em; height: 1em; line-height: 0; flex: none; }
.icon svg { display: block; width: 100%; height: 100%; }

/* The two kinds of class: hairline rows, the name left and what it means right. */
.kinds { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; border-top: 1px solid var(--rule); }
.kinds li { display: grid; grid-template-columns: 260px 1fr; gap: 8px 48px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.kinds h2 { font: 300 clamp(26px, 2.4vw, 32px)/1.2 var(--serif); letter-spacing: 0; }
.kinds p { color: var(--muted); }
@media (max-width: 900px) { .kinds li { grid-template-columns: 1fr; } }
