@font-face{font-family:Lora;src:url(lora-latin-wght-normal.woff2) format("woff2");font-weight:400 700;font-display:swap}

/* ==========================================================================
   Organic Luxury Editorial · Raum zum Ankommen
   Design tokens. Cream and sand are the paper of the first version, unchanged.
   ========================================================================== */
:root {
  --bg-cream: #F7F2ED;
  --bg-sand: #EAE1D6;
  --bg-soft-warm: #EFE7DE;

  --accent-forest: #414D39;
  --accent-forest-dark: #303A2A;
  --accent-forest-medium: #536047;
  --accent-forest-light: #788369;
  --mineral: #C7C6BB;
  --mineral-olive: #B4B5A5;
  --limestone: #D4C9B9;
  --limestone-light: #F0EDE5;
  --text-graphite: #41413B;
  --text-dark: #30312B;
  --glass-highlight: #FFFCF6;

  /* Roles */
  --text-main: var(--text-graphite);
  --text-soft: #5D5C53;
  --heading: var(--text-dark);
  --rule: #D5CEC3;
  --field-border: #7E7B71;
  --focus: var(--accent-forest-dark);
  --accent-hover: var(--accent-forest);
  --accent-active: var(--accent-forest-dark);

  /* Decoration: mineral pigments at 15–40 % on the paper */
  --deco-mineral: rgb(199 198 187 / .40);
  --deco-olive: rgb(180 181 165 / .30);
  --deco-limestone: rgb(212 201 185 / .40);
  --deco-limestone-soft: rgb(212 201 185 / .22);
  --deco-light: rgb(255 252 246 / .60);
  --line-ink: rgb(160 161 143 / .78);
  --line-width: 1.25px;
  --edge-height: clamp(2.75rem, 9.5vw, 9.5rem);

  /* Warm milk glass */
  --glass-radius: clamp(28px, 2.3vw, 36px);
  --glass-blur: 18px;
  --glass-saturation: 1.05;
  --glass-face: linear-gradient(158deg, rgb(255 253 248 / .74), rgb(240 237 229 / .40));
  --glass-face-solid: linear-gradient(158deg, #FBF8F2, #F1ECE3);
  --glass-border: rgb(255 255 255 / .65);
  --glass-rim: inset 0 1px 2px rgb(255 255 255 / .75), inset 0 -1px 2px rgb(65 65 59 / .06);
  --glass-depth: 0 12px 32px rgb(65 65 59 / .08), 0 3px 8px rgb(65 65 59 / .06);
  --glass-depth-raised: 0 20px 44px rgb(65 65 59 / .12), 0 6px 14px rgb(65 65 59 / .07);

  /* Forest glass for the booking action */
  --cta-text: #FFFCF6;
  --cta-face: linear-gradient(180deg, #58664B 0%, #47543E 34%, #3B4733 62%, #303A2A 100%);
  --cta-face-hover: linear-gradient(180deg, #5D6C50 0%, #4B5942 34%, #3E4A36 62%, #323D2C 100%);
  --cta-face-pressed: linear-gradient(180deg, #374330 0%, #2F392A 100%);
  --cta-border: rgb(120 131 105 / .62);
  --cta-rim: inset 0 1px 1px rgb(255 255 255 / .36), inset 0 -2px 4px rgb(0 0 0 / .16), inset 0 0 0 1px rgb(255 252 246 / .06);
  --cta-depth: 0 8px 20px rgb(48 58 42 / .24), 0 2px 5px rgb(48 58 42 / .16);
  --cta-depth-raised: 0 13px 28px rgb(48 58 42 / .30), 0 4px 8px rgb(48 58 42 / .18);
  --cta-depth-pressed: 0 2px 6px rgb(48 58 42 / .20);
  --cta-min-height: 54px;

  /* Type and room */
  --serif: Lora, Georgia, serif;
  --copy-size: 1.125rem;
  --copy-leading: 1.74;
  --measure: 60ch;
  --paragraph-gap: 1.3em;
  --action-gap: 2.4rem;
  --section-space: clamp(5rem, 9.5vw, 10rem);
  --page-width: min(90%, 79rem);
  --reading-gap: clamp(2rem, 6vw, 6.5rem);
  --card-padding: clamp(1.9rem, 2.9vw, 2.9rem) clamp(1.6rem, 2.5vw, 2.5rem);
  --h1-size: clamp(2.4rem, 3.95vw, 4.3rem);
  --h2-size: clamp(2.15rem, 3.85vw, 4rem);
  --arch-radius: 999px 999px 1.75rem 1.75rem;

  /* Motion */
  --ease-editorial: cubic-bezier(.22, 1, .36, 1);
  --time-reveal: 800ms;
  --time-premium: 1200ms;
  --time-title: 900ms;
  --time-copy: 800ms;
  --time-card: 850ms;
  --time-line: 1400ms;
  --time-hover: 320ms;
  --time-press: 90ms;
  --beat: 100ms;
  --rise-title: 30px;
  --rise-copy: 22px;
  --rise-card: 18px;
  --flow: 32px;
  --image-scale: 1.04;
  --hero-scale: 1.035;
}
@media (max-width: 859px) {
  :root {
    --copy-size: 1.09375rem;
    --glass-blur: 14px;
    --flow: 20px;
    --action-gap: 2rem;
    --cta-min-height: 52px;
  }
}

/* ==========================================================================
   Foundation
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, input, textarea, select { font-family: inherit; }
body {
  margin: 0; background: var(--bg-cream); color: var(--text-main);
  font: 400 var(--copy-size)/var(--copy-leading) var(--serif);
}
h1, h2, h3, h4, blockquote {
  margin: 0; color: var(--heading);
  font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance;
}
h2 { font-size: var(--h2-size); }
h3 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.028em; }
p { margin: 0; }
p + p { margin-top: var(--paragraph-gap); }
img { display: block; max-width: 100%; }
a { color: var(--text-dark); text-underline-offset: .24em; text-decoration-thickness: 1px; transition: color var(--time-hover) ease-out; }
a:hover { color: var(--accent-hover); }
a:active { color: var(--accent-active); }
a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.foot strong, .faq summary, .glass-switch legend { color: var(--heading); }
.skip { position: absolute; top: -8em; z-index: 20; padding: .6em; background: var(--bg-cream); }
.skip:focus { top: 0; }
.section, .foot-inner, .foot-end { width: var(--page-width); margin-inline: auto; }
.section { padding-block: var(--section-space); }

.eyebrow {
  color: var(--text-soft); text-transform: uppercase;
  font: 600 .72rem/1.6 var(--serif); letter-spacing: .2em;
}
.textlink, .related-link { display: inline-block; color: var(--text-dark); font-weight: 600; }

/* ==========================================================================
   Paper, edges and the decorative layers
   One stacking context per page: paper (-3), curved edges (-2), mineral forms
   and contour lines (-1), then the content. Forms may cross a seam.
   ========================================================================== */
main { position: relative; isolation: isolate; overflow-x: clip; }
.practice-book { position: relative; }
:where(.hero, .intro-panel, .tint, #topics, .method, #settings, .closing, .page-head, .section.article, .glass-comparison, .wollnik-error) {
  position: relative; --paper: var(--bg-cream);
}
:where(.intro-panel, .tint, #topics, .method, #settings, .closing, .page-head, .section.article, .glass-comparison, .wollnik-error)::before {
  content: ""; position: absolute; inset: 0; z-index: -3; background: var(--paper); pointer-events: none;
}
.tint, .method, .closing, .page-head { --paper: var(--bg-sand); }
.foot { position: relative; --paper: var(--bg-soft-warm); background: var(--bg-soft-warm); }

.edge {
  position: absolute; inset: auto 0 calc(100% - 1px); z-index: -2; display: block; overflow: visible;
  width: 100%; height: var(--edge-height); transform-origin: 50% 100%; pointer-events: none;
}
.edge-fill { fill: var(--paper); }
.edge-line {
  fill: none; stroke: var(--line-ink); stroke-width: var(--line-width); vector-effect: non-scaling-stroke;
  stroke-linecap: round; transform: translateY(-13px);
}
.foot > .edge, .intro-panel > .edge { z-index: 0; }
.edge-about { --edge-height: clamp(2.5rem, 8vw, 8rem); }
.edge-method, .edge-foot { --edge-height: clamp(2.25rem, 7vw, 7rem); }
.edge-article { --edge-height: clamp(2rem, 6vw, 6rem); }

.deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shape { position: absolute; display: block; will-change: auto; }
.contour { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.contour path {
  fill: none; stroke: var(--line-ink); stroke-width: var(--line-width); vector-effect: non-scaling-stroke; stroke-linecap: round;
}

/* Arched fields: matte mineral colour with one soft edge of light */
.shape-intro-arch {
  right: -9%; top: 14%; width: min(38vw, 35rem); aspect-ratio: 1.06;
  border-radius: 52% 48% 60% 40% / 44% 58% 42% 56%; background: var(--deco-limestone-soft);
}
.shape-intro-glow {
  left: -12%; bottom: -18%; width: 52vw; aspect-ratio: 1.3;
  background: radial-gradient(closest-side, var(--deco-light), transparent);
}
.shape-about-field {
  left: -9%; top: 12%; width: min(46vw, 40rem); aspect-ratio: 1 / 1.3;
  border-radius: 46% 54% 50% 50% / 38% 42% 58% 62%;
  background: linear-gradient(160deg, rgb(247 242 237 / .62), rgb(247 242 237 / .16));
}
.shape-about-glow {
  right: -6%; bottom: -8%; width: 44vw; aspect-ratio: 1.2;
  background: radial-gradient(closest-side, rgb(255 252 246 / .5), transparent);
}
.shape-topics-arch {
  left: -4%; top: 31%; width: min(40vw, 37rem); aspect-ratio: 1.04;
  border-radius: 54% 46% 58% 42% / 46% 56% 44% 54%; background: var(--deco-mineral);
}
.shape-topics-stone {
  right: -6%; top: 47%; width: min(43vw, 40rem); aspect-ratio: 1.1;
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; background: var(--deco-limestone);
}
.shape-topics-olive {
  left: 30%; bottom: 1%; width: min(31vw, 28rem); aspect-ratio: 1.16;
  border-radius: 46% 54% 40% 60% / 58% 42% 58% 42%; background: var(--deco-olive);
}
.shape-topics-glow {
  right: 12%; top: 4%; width: 38vw; aspect-ratio: 1.4;
  background: radial-gradient(closest-side, var(--deco-light), transparent);
}
.shape-method-field {
  left: -10%; bottom: -14%; width: min(48vw, 44rem); aspect-ratio: 1.15;
  border-radius: 52% 48% 44% 56% / 46% 54% 46% 54%;
  background: linear-gradient(150deg, rgb(247 242 237 / .58), rgb(247 242 237 / .12));
}
.shape-settings-arch-a {
  right: -3%; top: 36%; width: min(40vw, 37rem); aspect-ratio: 1.02;
  border-radius: 48% 52% 56% 44% / 54% 44% 56% 46%; background: var(--deco-limestone);
}
.shape-settings-arch-b {
  left: 3%; top: 52%; width: min(33vw, 30rem); aspect-ratio: 1.12;
  border-radius: 60% 40% 48% 52% / 46% 58% 42% 54%; background: var(--deco-mineral);
}
.shape-settings-arch-c {
  left: 36%; bottom: -5%; width: min(27vw, 25rem); aspect-ratio: 1.2;
  border-radius: 44% 56% 52% 48% / 56% 46% 54% 44%; background: var(--deco-olive);
}
.shape-settings-glow {
  left: 20%; top: 8%; width: 46vw; aspect-ratio: 1.5;
  background: radial-gradient(closest-side, var(--deco-light), transparent);
}
.shape-closing-glow {
  left: -6%; top: 6%; width: min(60vw, 56rem); aspect-ratio: 1.05;
  background: radial-gradient(closest-side, rgb(255 252 246 / .66), rgb(255 252 246 / .2) 62%, transparent);
}
.shape-head-arch {
  left: 50%; bottom: 0; width: min(64vw, 46rem); height: 78%; translate: -50% 0;
  border-radius: 999px 999px 0 0; background: linear-gradient(180deg, rgb(247 242 237 / .62), rgb(247 242 237 / .14) 70%, transparent);
}
.shape-head-glow {
  right: -8%; top: -30%; width: 46vw; aspect-ratio: 1.2;
  background: radial-gradient(closest-side, rgb(255 252 246 / .5), transparent);
}
.shape-article-field {
  right: -9%; top: 9rem; width: min(32vw, 28rem); aspect-ratio: 1.08;
  border-radius: 54% 46% 58% 42% / 46% 56% 44% 54%; background: var(--deco-limestone-soft);
}
.contour-article { opacity: .8; }
@media (max-width: 1180px) { .contour-article { display: none; } }
.contour-intro, .contour-topics, .contour-settings, .contour-about, .contour-closing, .contour-method-a, .contour-method-b { opacity: .9; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.mast, .wp-site-blocks > .wp-block-template-part:first-child:has(.mast) {
  position: fixed; inset: 0 0 auto; z-index: 8; background: transparent; pointer-events: none;
}
.mast { --mast-gutter: clamp(1.25rem, 4.5vw, 5rem); --mast-height: 88px; }
.mast-inner {
  position: relative; width: 100%; height: var(--mast-height); padding-inline: var(--mast-gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand, .tools, .menu summary { display: flex; align-items: center; }
.brand { gap: 17px; text-decoration: none; }
.brand img {
  width: clamp(66px, 5.5vw, 86px); height: auto; object-fit: contain;
  filter: brightness(0) invert(54%) sepia(21%) saturate(460%) hue-rotate(349deg) brightness(94%);
}
.tools { gap: 26px; font-size: .84rem; }
.mast :is(a, summary, .menu-panel) { pointer-events: auto; }
.mast .brand, .tools > [data-language-switch], .menu > summary {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; color: var(--text-dark);
}
.tools > [data-language-switch] { min-width: 44px; border: 0; font-size: .8rem; letter-spacing: .08em; text-decoration: underline; }
/* A paper-coloured contour keeps the floating labels legible over photographs and text. */
.tools > [data-language-switch], .menu > summary, .scroll-cue {
  text-shadow: -1px 0 var(--bg-cream), 1px 0 var(--bg-cream), 0 -1px var(--bg-cream), 0 1px var(--bg-cream),
    -1px -1px var(--bg-cream), 1px -1px var(--bg-cream), -1px 1px var(--bg-cream), 1px 1px var(--bg-cream);
}
.menu > summary { list-style: none; cursor: pointer; gap: .65rem; min-width: 44px; padding-inline: .42rem; transition: color var(--time-hover) ease-out; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary i {
  position: relative; width: 24px; height: 16px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  filter: drop-shadow(0 1px 0 var(--bg-cream)) drop-shadow(0 -1px 0 var(--bg-cream));
}
.menu > summary i::before, .menu > summary i::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1.5px; background: currentColor;
  transition: transform 220ms var(--ease-editorial);
}
.menu > summary i::after { top: auto; bottom: 0; }
.menu[open] > summary i { background: transparent; }
.menu[open] > summary i::before { transform: translateY(7.25px) rotate(45deg); }
.menu[open] > summary i::after { transform: translateY(-7.25px) rotate(-45deg); }
.mast .tools { background: transparent; }
.menu-panel {
  position: absolute; top: calc(100% - .3rem); right: var(--mast-gutter);
  width: min(45rem, 78vw, calc(100% - 2 * var(--mast-gutter)));
  max-height: calc(100dvh - var(--mast-height) - 1rem);
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(1.4rem, 2.7vw, 2.45rem);
  border: 1px solid var(--glass-border); border-radius: var(--glass-radius);
  color: var(--text-dark); background-color: var(--bg-cream);
  box-shadow: var(--glass-rim), var(--glass-depth-raised);
}
.menu-panel fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.menu-grid {
  position: relative; display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); grid-template-rows: repeat(3, max-content) 1fr;
  column-gap: clamp(.85rem, 2.5vw, 2.25rem); row-gap: .55rem; align-items: start;
}
.menu-sr, .menu-choice {
  position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.menu-category {
  grid-column: 1; display: flex; justify-content: center; align-items: center; min-height: 48px;
  padding: .52em .95em; color: inherit; cursor: pointer;
  font: 400 clamp(1.03rem, 1.65vw, 1.45rem)/1.23 var(--serif); letter-spacing: -.03em;
  hyphens: auto; overflow-wrap: anywhere;
}
.menu-category::before {
  content: ""; position: absolute; inset-inline-end: .55em; width: .28em; height: .28em;
  border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg);
}
.menu-category, .menu-links a { position: relative; text-align: center; }
.menu-category:hover { text-decoration: underline; text-underline-offset: .18em; }
.menu-choice:checked + .menu-category { font-weight: 700; border-color: var(--accent-forest-light); }
.menu-choice:not(:checked) + .menu-category::before { visibility: hidden; }
.menu-choice:focus-visible + .menu-category, .menu-links a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.menu-links { display: none; list-style: none; margin: 0; padding: 0; grid-column: 2; grid-row: 1 / 5; }
.menu-choice:checked + .menu-category + .menu-links { display: grid; gap: .45rem; }
.menu-links a {
  display: flex; align-items: center; justify-content: center; padding: .6em .75em;
  color: inherit; font-size: .95rem; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; hyphens: auto;
}
.menu-links a:hover, .menu-links a:focus-visible, .menu-links a[aria-current=page] { color: var(--text-dark); text-decoration: underline; }
.tools > [data-language-switch]:is(:hover, :focus-visible),
.menu > summary:is(:hover, :focus-visible), .menu-category:hover, .menu-links a:is(:hover, :focus-visible) { color: var(--accent-hover); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel { animation: menu-appear 260ms var(--ease-editorial); }
}
@keyframes menu-appear { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
main [id] { scroll-margin-top: 96px; }

/* ==========================================================================
   Hero: the photograph left, the quote in an arch of light on the right
   ========================================================================== */
.hero {
  isolation: isolate; overflow: clip; display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center;
  min-height: clamp(34rem, 100svh, 64rem); padding-bottom: calc(var(--edge-height) * .55);
  background: var(--bg-cream);
}
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-desktop, .hero-photo {
  position: absolute; inset: -4% 0 0; width: 100%; height: 108%;
  object-fit: cover; object-position: 30% 34%; transform-origin: 30% 40%;
}
.hero-photo { display: none; }
.hero:not(:has(.hero-desktop)) .hero-photo { display: block; }
/* The paper dissolves the photograph around the portrait. No edge between image and text. */
.hero-veil {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 78% 135% at 20% 44%, rgb(247 242 237 / 0) 0 43%, rgb(247 242 237 / .40) 57%,
    rgb(247 242 237 / .72) 71%, rgb(247 242 237 / .82) 100%);
}
/* Light falling through an arched opening onto the wall behind the quote */
.hero-light {
  position: absolute; z-index: -1; pointer-events: none;
  right: clamp(1.5rem, 5.6vw, 7.5rem); bottom: -6%; width: min(42vw, 40rem); height: 88%;
  border-radius: 999px 999px 0 0; transform-origin: 50% 100%;
  background: linear-gradient(180deg, rgb(255 252 246 / .50), rgb(255 252 246 / .30) 46%, rgb(255 252 246 / 0) 88%);
  filter: blur(14px);
}
/* A drawn arch frames the light: the room the quote speaks of. */
.hero-arch {
  position: absolute; z-index: -1; pointer-events: none; overflow: visible;
  right: calc(clamp(1.5rem, 5.6vw, 7.5rem) - 1.4rem); bottom: -6%; width: calc(min(42vw, 40rem) + 2.8rem); height: calc(88% + 1.4rem);
  /* Only the crown of the arch is drawn; it dissolves towards the floor. */
  -webkit-mask-image: linear-gradient(#000 26%, transparent 64%); mask-image: linear-gradient(#000 26%, transparent 64%);
}
.hero-arch path { fill: none; stroke: rgb(255 252 246 / .85); stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
.hero-copy {
  grid-column: 2; justify-self: end; min-width: 0; width: min(100%, calc(min(42vw, 40rem) + clamp(1.5rem, 5.6vw, 7.5rem)));
  padding: clamp(6.5rem, 9vw, 9rem) clamp(1.5rem, 5.6vw, 7.5rem) clamp(3rem, 5vw, 5rem) 0;
  text-align: center;
}
.hero .eyebrow { color: var(--text-graphite); }
.hero h1 {
  max-width: 9.5em; margin: .55em auto .6em;
  font-size: var(--h1-size); line-height: 1.07; letter-spacing: -.04em; hyphens: manual;
}
h1, .page-head { text-align: center; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.6rem; margin-top: var(--action-gap); }
.section-actions :is(.textlink, .hero-about) { margin: 0; padding-block: .5rem; }
.hero .section-actions { margin-top: 2rem; justify-content: center; }
.hero-about {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--text-dark);
  font-size: .95rem; font-weight: 500; text-decoration: underline; text-underline-offset: .28em;
}
.scroll-cue {
  position: absolute; right: 5.5%; bottom: calc(var(--edge-height) * .55 + 1.75rem);
  display: inline-flex; align-items: center; gap: .7rem; padding: .3rem .2rem; pointer-events: none;
  color: var(--text-graphite); font-size: .75rem; font-weight: 650; letter-spacing: .08em;
}
.scroll-line { display: block; position: relative; width: 1.5px; height: 34px; overflow: hidden; background: var(--rule); }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--accent-forest-light); transform-origin: 50% 0; }

/* ==========================================================================
   Editorial sections
   ========================================================================== */
.practice-book .section { width: var(--page-width); }
.intro, .chapter-lead, .about, .closing-layout {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start; gap: var(--reading-gap);
}
.section-lead.chapter-lead { max-width: none; text-align: start; }
.chapter-title, .chapter-copy, .intro-copy, .about-copy, .closing-stage, .closing-copy { min-width: 0; }
.chapter-title h2, .intro h2, .about h2, .closing-title { max-width: 14ch; margin: 0; line-height: 1.08; }
.intro h2 { max-width: 13ch; }
.chapter-title .eyebrow, .about-copy .eyebrow { margin-bottom: 1.5rem; }
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle; width: 2.4rem; height: 1px; margin-right: .95rem;
  background: var(--accent-forest-light);
}
.hero .eyebrow::before, .page-head .eyebrow::before, .about-copy .eyebrow::before { content: none; }
.chapter-copy p, .intro-copy p, .about-copy p, .closing-description p {
  max-width: var(--measure); overflow-wrap: anywhere; hyphens: auto;
}
.practice-book :is(h1, h2, h3), .glass-comparison h1 { overflow-wrap: anywhere; hyphens: auto; }
.practice-book .hero h1 { hyphens: manual; }
.intro-panel > .section { padding-top: clamp(3.5rem, 6vw, 6rem); }

/* Practice photograph in an arch */
.about { align-items: center; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); }
.about-media {
  position: relative; justify-self: center; width: min(100%, 34rem); aspect-ratio: 1 / 1.3;
  border-radius: var(--arch-radius); overflow: hidden;
  box-shadow: 0 30px 60px -28px rgb(65 65 59 / .32);
}
.about-media .about-photo, .about-media img {
  position: absolute; inset: -6% 0; width: 100%; height: 112%; margin: 0;
  object-fit: cover; object-position: 52% center;
}
.about > .about-photo { align-self: stretch; height: 0; min-height: 100%; border-radius: var(--arch-radius); object-fit: cover; }
.about-copy { text-align: center; }
.about-copy :is(h2, p) { margin-inline: auto; }
.about-copy h2 { max-width: 15ch; margin-bottom: .75em; }
.about-copy .section-actions { justify-content: center; }

.method h2 { max-width: 12ch; }
.method .chapter-copy > p { max-width: var(--measure); }
.method blockquote {
  position: relative; max-width: 21ch; margin-block: 1.7em 1.1em; padding-inline-start: 1.15em;
  color: var(--text-dark); font-size: clamp(1.55rem, 2.45vw, 2.35rem); line-height: 1.24; letter-spacing: -.03em;
}
.method blockquote::before {
  content: ""; position: absolute; inset-block: .18em; inset-inline-start: 0; width: 2px;
  background: linear-gradient(var(--accent-forest-light), var(--mineral-olive)); border-radius: 2px;
}
.method .section-lead { padding-block: var(--section-space); }

#settings .section-lead { margin-inline: 0; text-align: left; }
.rahmen {
  width: min(100%, 27rem); aspect-ratio: 1 / 1.18; overflow: hidden;
  margin: clamp(1.5rem, 3vw, 3rem) 0 0 clamp(-1.25rem, -1.2vw, -.25rem);
  /* The long shadow dissolves into the paper. */
  -webkit-mask-image: linear-gradient(#000 72%, transparent 98%); mask-image: linear-gradient(#000 72%, transparent 98%);
}
.rahmen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
#settings .formats-subtitle { color: var(--text-dark); font-size: clamp(1.3rem, 2.05vw, 1.85rem); line-height: 1.32; letter-spacing: -.02em; }
#settings .formats-subtitle + p { margin-top: 1.1em; }
.practice-book :is(#topics, #settings) { width: 100%; padding-inline: max(5%, calc((100% - 79rem) / 2)); }

/* ==========================================================================
   Forest glass: the booking action
   ========================================================================== */
.button, .mast-request {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--cta-min-height); max-width: 100%; padding: .7rem clamp(1.65rem, 2.1vw, 2.1rem);
  color: var(--cta-text); text-decoration: none; text-align: center; cursor: pointer;
  font: 600 clamp(1rem, .96rem + .14vw, 1.08rem)/1.25 var(--serif); letter-spacing: .012em;
  text-shadow: 0 1px 1px rgb(28 34 24 / .45);
  background-color: var(--accent-forest); background-image: var(--cta-face);
  border: 1px solid var(--cta-border); border-radius: 999px;
  box-shadow: var(--cta-rim), var(--cta-depth);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--time-hover) var(--ease-editorial), box-shadow var(--time-hover) var(--ease-editorial),
    background-image var(--time-hover) var(--ease-editorial), border-color var(--time-hover) var(--ease-editorial);
}
/* Upper lens: light enters the glass at the shoulder. */
.button::before, .mast-request::before {
  content: ""; position: absolute; z-index: -1; inset: 1px 2px 50% 2px; border-radius: 999px 999px 70% 70% / 999px 999px 100% 100%;
  background: linear-gradient(180deg, rgb(255 255 255 / .34), rgb(255 255 255 / .09) 56%, rgb(255 255 255 / 0));
  opacity: .78; pointer-events: none;
  transition: opacity var(--time-hover) var(--ease-editorial), transform var(--time-hover) var(--ease-editorial);
}
/* Lower caustic: the light gathers again at the base, in the light forest tone. */
.button::after, .mast-request::after {
  content: ""; position: absolute; z-index: -1; inset: 54% 9% 2px; border-radius: 999px;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgb(120 131 105 / .46), rgb(120 131 105 / 0) 72%);
  pointer-events: none; transition: opacity var(--time-hover) var(--ease-editorial); opacity: .85;
}
.button:is(:hover, :focus-visible, :active), .mast-request:is(:hover, :focus-visible, :active) { color: var(--cta-text); }
.button:focus-visible, .mast-request:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):hover, .mast-request:hover {
    background-image: var(--cta-face-hover); border-color: rgb(136 148 119 / .8);
    box-shadow: var(--cta-rim), var(--cta-depth-raised);
  }
  .button:not(:disabled):hover::before, .mast-request:hover::before { opacity: 1; transform: translateY(1px) scaleX(.985); }
  .button:not(:disabled):hover::after, .mast-request:hover::after { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:not(:disabled):hover, .mast-request:hover { transform: translateY(-2px); }
}
.button:not(:disabled):active, .mast-request:active {
  background-image: var(--cta-face-pressed);
  box-shadow: inset 0 2px 5px rgb(18 24 14 / .46), inset 0 -1px 1px rgb(255 255 255 / .10), var(--cta-depth-pressed);
  transition-duration: var(--time-press);
}
@media (prefers-reduced-motion: no-preference) {
  .button:not(:disabled):active, .mast-request:active { transform: translateY(1px); }
}
.button:not(:disabled):active::before, .mast-request:active::before { opacity: .35; }
.mast-request { pointer-events: auto; }
.booking-trigger, .booking-dialog button { cursor: pointer; }
.booking-dock { display: none; align-items: center; }

/* ==========================================================================
   Warm milk glass: cards
   ========================================================================== */
.cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr;
  max-width: 64rem; margin: clamp(3rem, 5.5vw, 5.5rem) auto 0; gap: clamp(2.25rem, 4.4vw, 4.6rem);
}
:where(#topics) .cards { max-width: none; grid-template-columns: repeat(6, minmax(0, 1fr)); }
:where(#topics) .card { grid-column: span 2; }
:where(#topics) .card:nth-child(3n + 1):nth-last-child(2 of .card) { grid-column: 2 / span 2; }
.card, .locations > section, .booking-invite, .menu-category, .menu-links a, .related-link {
  position: relative; isolation: isolate;
  border: 1px solid var(--card-border, var(--glass-border)); border-radius: var(--glass-radius);
  color: var(--text-main); background-color: #F7F3EC; background-image: var(--glass-face-solid);
  background-clip: padding-box;
  box-shadow: var(--glass-rim), var(--card-depth, var(--glass-depth));
}
.card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  min-width: 0; min-height: 0; padding: var(--card-padding); text-align: center; text-decoration: none;
}
.card > * { min-width: 0; overflow-wrap: anywhere; }
/* Edge refraction: light on the upper left shoulder, a mineral shade lower right. */
.card::before, .booking-invite::before, .locations > section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, rgb(255 255 255 / .95), rgb(255 255 255 / 0) 30% 68%, rgb(180 181 165 / .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .8; transition: opacity var(--time-hover) var(--ease-editorial);
}
/* A soft sheen in the body of the glass. It shifts when the card is touched by the pointer. */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 78% 58% at 18% -6%, rgb(255 255 255 / .52), rgb(255 255 255 / 0) 70%);
  opacity: .7; transition: opacity var(--time-hover) var(--ease-editorial), transform var(--time-hover) var(--ease-editorial);
  transform-origin: 0 0;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .locations > section, .booking-invite {
    background-color: transparent; background-image: var(--card-face, var(--glass-face));
    -webkit-backdrop-filter: blur(var(--card-blur, var(--glass-blur))) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--card-blur, var(--glass-blur))) saturate(var(--glass-saturation));
  }
  .menu-panel { background-color: rgb(247 242 237 / .9); }
  :where(.menu[open]) > .menu-panel {
    -webkit-backdrop-filter: blur(var(--panel-blur, var(--glass-blur))); backdrop-filter: blur(var(--panel-blur, var(--glass-blur)));
  }
  .menu-category, .menu-links a { background-color: transparent; background-image: linear-gradient(158deg, rgb(255 253 248 / .86), rgb(244 240 232 / .62)); }
}
.menu-category, .menu-links a { color: var(--text-dark); border-radius: 1.15rem; --card-depth: 0 3px 8px -3px rgb(65 65 59 / .14); }
.card, .menu-category, .menu-links a, .related-link {
  transition: border-color var(--time-hover) var(--ease-editorial), box-shadow var(--time-hover) var(--ease-editorial),
    transform var(--time-hover) var(--ease-editorial);
}
.card:is(:hover, :focus-visible, :active) { color: var(--text-main); }
.card:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; box-shadow: var(--glass-rim), var(--glass-depth-raised); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgb(255 255 255 / .9); box-shadow: var(--glass-rim), var(--glass-depth-raised); }
  .card:hover::before { opacity: 1; }
  .card:hover::after { opacity: 1; transform: translate(4%, 3%) scale(1.06); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-2px); }
}
.card h3 {
  max-width: 19ch; font-size: clamp(1.4rem, 1.82vw, 1.85rem); line-height: 1.17; letter-spacing: -.03em;
  text-wrap: balance; overflow-wrap: anywhere; hyphens: manual;
}
.card p { margin: 0; }
.card .card-copy { max-width: min(100%, 33ch); font-size: var(--copy-size); line-height: 1.68; text-wrap: pretty; }
.card .card-focus { margin: -.3rem 0 0; color: var(--text-soft); font-size: .78rem; font-weight: 650; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; }
.card:has(> .card-arrow) > h3 { margin-block-start: auto; }
/* Direction mark: a small glass bead. Card and arrow open the same page. */
.card > .card-arrow {
  display: flex; align-items: center; justify-content: center; align-self: center; flex: none;
  inline-size: 2.9rem; block-size: 2.9rem; margin: auto 0 0; color: var(--text-dark); font-size: 0;
  border: 1px solid rgb(120 131 105 / .38); border-radius: 50%;
  background: linear-gradient(160deg, rgb(255 255 255 / .7), rgb(240 237 229 / .3));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .8), 0 3px 8px -3px rgb(65 65 59 / .18);
  transition: color var(--time-hover) var(--ease-editorial), background-color var(--time-hover) var(--ease-editorial),
    border-color var(--time-hover) var(--ease-editorial), box-shadow var(--time-hover) var(--ease-editorial);
}
.card-arrow::before {
  content: ""; inline-size: 1.2rem; block-size: .8rem; background-color: currentColor; pointer-events: none;
  clip-path: polygon(0 43%, 80% 43%, 60% 10%, 67% 0, 100% 50%, 67% 100%, 60% 90%, 80% 57%, 0 57%);
  transition: transform var(--time-hover) var(--ease-editorial);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover > .card-arrow {
    color: var(--cta-text); border-color: var(--cta-border); background: var(--cta-face);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / .34), 0 5px 12px -4px rgb(48 58 42 / .4);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover > .card-arrow::before { transform: translateX(2px); }
}
.card:active > .card-arrow { color: var(--cta-text); background: var(--cta-face-pressed); }
#settings .card { gap: 1rem; }
#settings .card .format-plus {
  display: grid; place-items: center; inline-size: 2.6rem; block-size: 2.6rem; margin: 0 0 .35em;
  border: 1px solid rgb(120 131 105 / .38); border-radius: 50%;
  color: var(--accent-forest); font-size: 1.35rem; font-weight: 400; line-height: 1;
  background: linear-gradient(160deg, rgb(255 255 255 / .7), rgb(240 237 229 / .3));
}

/* ==========================================================================
   Finale: the portal opens, the booking invitation waits beside it
   ========================================================================== */
.contact-sequence { position: relative; }
.closing-layout { align-items: start; padding-block: var(--section-space); }
.closing-title { max-width: 12ch; }
.closing-stage { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.portal {
  position: relative; justify-self: end; width: min(108%, 38rem); margin: 0 clamp(1.5rem, 4.4vw, 4.5rem) 0 auto;
  aspect-ratio: var(--portal-ratio, .733);
}
/* The frames are mirrored: the shadow leads to the open side of the page. */
.portal-still, .portal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); }
.portal-canvas { opacity: 0; }
.portal.is-live .portal-canvas { opacity: 1; }
.portal.is-live .portal-still { visibility: hidden; }
.closing-copy h2 { margin-bottom: .5em; }
.closing-actions { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: clamp(1.6rem, 3vw, 2.6rem); margin-top: clamp(2rem, 3.6vw, 3.25rem); }
.closing-copy, .closing-actions > *, .locations > section, .booking-invite { min-width: 0; overflow-wrap: anywhere; }
.booking-invite { padding: var(--card-padding); text-align: center; }
.booking-invite h2 { margin: 0 0 .55em; font-size: clamp(1.75rem, 2.75vw, 2.6rem); }
.closing-actions .booking-invite h2 { font-size: clamp(1.45rem, 2.2vw, 2.05rem); line-height: 1.16; }
.booking-invite .button { margin-top: 1.7rem; }
.closing-contact { line-height: 1.9; }
.closing-contact .textlink { margin-bottom: .15rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { color: var(--text-main); font-size: .92rem; }
.foot-sheet { position: relative; }
.foot-inner { display: grid; grid-template-columns: 1fr 1.2fr .8fr; gap: 2rem; padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(2.5rem, 4vw, 4rem); line-height: 1.85; }
.foot-inner > div { min-width: 0; overflow-wrap: anywhere; }
.foot strong { font: 400 clamp(1.8rem, 2.6vw, 2.5rem)/1.1 var(--serif); letter-spacing: -.03em; }
.foot strong + p { margin-top: .5rem; color: var(--text-soft); }
.foot-end { border-top: 1px solid var(--rule); padding: 1.2em 0; color: var(--text-main); }

/* ==========================================================================
   Reading pages
   ========================================================================== */
.page-head { overflow: clip; }
.page-head .section { padding-block: max(8.5rem, 11vw) clamp(4.5rem, 9vw, 9rem); }
.page-head h1 {
  max-width: 15ch; margin: .45em auto 0; hyphens: auto; overflow-wrap: anywhere;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem); line-height: 1.05; letter-spacing: -.04em;
}
.section.article, .section.glass-comparison {
  width: 100%; max-width: none;
  padding-inline: max(6%, calc((100% - var(--reading-width, 940px)) / 2));
}
.article article { max-width: var(--measure); margin: auto; }
.article article > h2 { margin: 1.7em 0 .7em; font-size: clamp(1.85rem, 2.9vw, 2.75rem); line-height: 1.12; }
.article article > h2:first-child { margin-top: 0; }
.article h3 { margin: 1.6em 0 .7em; }
.article ul { padding-left: 1.2em; }
.article li { padding: .22em 0; }
.article li::marker { color: var(--accent-forest-light); }
.article .button { margin-top: 1.5em; }
.article .section-actions .button { margin: 0; }
.article article > :is(h2, h3):first-child,
.article article > p:not(:not(p, h2:first-child, h3:first-child) ~ p) {
  max-width: var(--measure); margin-inline: auto; text-align: center;
}
.related { border-top: 1px solid var(--rule); max-width: var(--measure); margin: 4rem auto 0; padding: 2.4rem 0 0; }
.related h2 { margin-bottom: .9em; font-size: clamp(1.6rem, 2.2vw, 2rem); }
/* Related topics as glass tiles */
.related { display: flex; flex-wrap: wrap; gap: .8rem; }
.related h2 { flex: 0 0 100%; }
.related-link {
  display: inline-flex; align-items: center; min-height: 48px; margin: 0; padding: .65em 1.25em;
  border-radius: 999px; font-weight: 500; text-decoration: none; --card-depth: 0 4px 12px -4px rgb(65 65 59 / .16);
}
@media (hover: hover) and (pointer: fine) {
  .related-link:hover { border-color: rgb(120 131 105 / .5); box-shadow: var(--glass-rim), 0 8px 18px -6px rgb(65 65 59 / .22); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .related-link:hover { transform: translateY(-2px); }
}
.faq { border-block-end: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 3.6rem; padding: .85rem 0;
  cursor: pointer; font-weight: 600; list-style: none; transition: color var(--time-hover) ease-out;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; inline-size: 2.2rem; block-size: 2.2rem; border: 1px solid rgb(120 131 105 / .38); border-radius: 50%;
  background:
    linear-gradient(var(--accent-forest), var(--accent-forest)) center / .8rem 1.5px no-repeat,
    linear-gradient(var(--accent-forest), var(--accent-forest)) center / 1.5px .8rem no-repeat,
    linear-gradient(160deg, rgb(255 255 255 / .7), rgb(240 237 229 / .3));
  transition: transform var(--time-hover) var(--ease-editorial);
}
.faq[open] summary::after {
  background:
    linear-gradient(var(--accent-forest), var(--accent-forest)) center / .8rem 1.5px no-repeat,
    linear-gradient(160deg, rgb(255 255 255 / .7), rgb(240 237 229 / .3));
}
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent-forest); } }
.faq p { padding: .1em 3.4rem 1.2em 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.9rem, 1.6vw, 1.5rem); margin: 3rem 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.5rem; }
.gallery img:nth-child(3n + 2) { border-radius: 999px 999px 1.5rem 1.5rem; }
.article:has(.gallery) { --reading-width: 1080px; }
.article:has(.gallery) article { max-width: none; }
/* One reading column for headings and text alike (ch would differ per font size). */
.article:has(.gallery) article > :not(.gallery, .locations) { max-width: 38rem; margin-inline: auto; }
.article:has(> article > .booking-invite) article > :is(h2, h3, p) { text-align: center; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.75rem); margin: 3.5rem 0; }
.locations > section { padding: var(--card-padding); text-align: center; }
.locations h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.locations p { line-height: var(--copy-leading); margin-top: .75em; }
.article .booking-invite { margin-block: 2.5rem; }
.button.booking-trigger, .booking-dialog .button { font-family: var(--serif); }

/* ==========================================================================
   Booking dialog
   ========================================================================== */
.booking-dialog :is(.calendar-day, .time-choice, .calendar-nav button, .dialog-close, .booking-back) {
  transition: color var(--time-hover) ease-out, background-color var(--time-hover) ease-out, border-color var(--time-hover) ease-out;
}
.booking-trigger:focus-visible, .booking-dialog :is(button, input, textarea, select):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.booking-dialog {
  pointer-events: auto; width: min(36rem, calc(100% - 2rem)); height: min(42rem, calc(100dvh - 2.5rem));
  max-height: calc(100dvh - 2.5rem); margin: auto; padding: 0; overflow: hidden;
  border: 1px solid var(--glass-border); border-radius: 28px;
  background: var(--bg-cream); color: var(--text-main);
  box-shadow: 0 30px 80px -20px rgb(48 49 43 / .38);
}
.booking-dialog[open] { display: flex; flex-direction: column; }
.booking-dialog [hidden] { display: none !important; }
.booking-dialog::backdrop { background: rgb(48 49 43 / .34); }
html:has(.booking-dialog[open]) { overflow: hidden; }
.dialog-head, .booking-footer {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: .65rem clamp(1rem, 4vw, 1.75rem); background: var(--bg-cream);
}
.dialog-head { gap: .5rem; border-bottom: 1px solid var(--rule); }
.dialog-head h2 { margin: 0; font-size: clamp(1.18rem, 3.6vw, 1.52rem); line-height: 1.25; letter-spacing: -.02em; }
.dialog-head form, .booking-done { margin: 0; }
.dialog-close, .calendar-nav button, .booking-back {
  min-width: 44px; min-height: 44px; padding: .35rem; border: 0; background: transparent; color: var(--text-dark);
}
.dialog-close { font: 400 1.75rem/1 var(--serif); }
.dialog-body {
  flex: 1 1 auto; min-height: 0; padding: clamp(1.2rem, 3.5vw, 2rem) clamp(1rem, 4vw, 1.75rem);
  overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: .65rem;
}
.dialog-body h3 { margin: 0; font-size: clamp(1.5rem, 4.6vw, 2rem); line-height: 1.14; }
.dialog-body h3 + p { margin: .45rem 0 0; line-height: 1.5; }
.booking-dialog :is(h2, h3, h4)[tabindex]:focus { outline: none; }
.calendar-nav {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  margin-top: 1.1rem; padding: .25rem 0; border-bottom: 1px solid var(--rule);
}
.calendar-nav h4 { margin: 0; text-align: center; font: 650 1.02rem/1.35 var(--serif); letter-spacing: 0; }
.calendar-nav button { font: 400 1.75rem/1 var(--serif); }
.booking-dialog button:disabled { cursor: default; opacity: 1; -webkit-text-fill-color: currentColor; }
.booking-dialog :is(.dialog-close, .calendar-nav button, .booking-back):enabled:hover { color: var(--accent-hover); }
.booking-dialog :is(.dialog-close, .calendar-nav button, .booking-back):enabled:active { color: var(--accent-active); }
.calendar-nav button:disabled { color: var(--text-soft); }
.booking-calendar { width: 100%; margin-top: .45rem; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.booking-calendar th { color: var(--text-main); font: 650 .79rem/1.5 var(--serif); text-align: center; }
.booking-calendar td { padding: 0; text-align: center; }
.calendar-day, .time-choice {
  border: 1px solid var(--field-border); border-radius: 12px;
  background: var(--bg-sand); color: var(--text-dark); font: 650 1rem/1.3 var(--serif);
}
.calendar-day { width: 100%; min-height: 44px; padding: .45rem .05rem; }
.calendar-day[data-district="1010"] { background: var(--bg-cream); color: var(--text-dark); border-color: var(--text-dark); border-style: dashed; }
.calendar-day:disabled {
  color: var(--text-soft); background: transparent; border-color: transparent; font-weight: 400;
  text-decoration: line-through; text-decoration-thickness: 1px;
}
.calendar-key { display: grid; gap: .25rem; padding: 0; margin: .9rem 0 0; list-style: none; }
.calendar-key li { display: flex; align-items: center; gap: .32rem; color: var(--text-main); font: 450 .85rem/1.5 var(--serif); }
.calendar-key li::before {
  content: ""; width: .72rem; height: .72rem; flex: none; margin-right: .22rem;
  background: var(--bg-sand); border: 1px solid var(--field-border); border-radius: 3px;
}
.calendar-key li[data-office^="1010"]::before { background: var(--bg-cream); border-color: var(--text-dark); border-style: dashed; }
.booking-selection { color: var(--text-dark); font-weight: 650; }
.time-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1.25rem; }
.time-choice { min-height: 48px; background: var(--bg-cream); font-variant-numeric: tabular-nums; }
.booking-dialog :is(.calendar-day, .time-choice)[aria-pressed=true],
.booking-dialog :is(.calendar-day, .time-choice):enabled:active {
  color: var(--cta-text); background: var(--accent-forest); border-color: var(--accent-forest); border-style: solid;
}
@media (hover: hover) { .booking-dialog :is(.calendar-day, .time-choice):enabled:hover { border-color: var(--accent-forest); } }
.time-zone { margin-top: .75rem; color: var(--text-soft); font-size: .86rem; }
.booking-note { font-size: .88rem; line-height: 1.55; color: var(--text-soft); }
.booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; margin-top: 1.2rem; }
.booking-fields label { display: grid; align-content: start; gap: .23rem; font-size: .91rem; font-weight: 650; }
.booking-fields .field-wide { grid-column: 1/-1; }
.booking-fields :is(input, textarea) {
  width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--field-border); border-radius: 12px;
  background: var(--bg-cream); color: var(--text-main); padding: .55rem .75rem; font: 400 1rem/1.4 var(--serif);
}
.booking-fields textarea { resize: vertical; }
.booking-fields ::placeholder { color: var(--text-soft); opacity: 1; }
.booking-footer { gap: 1rem; min-height: 72px; border-top: 1px solid var(--rule); }
.booking-footer .booking-submit, .booking-footer .booking-done { margin-left: auto; }
.booking-footer .button { min-height: 48px; padding-inline: 1.3rem; white-space: nowrap; }
.booking-submit:disabled {
  color: var(--bg-cream); background: var(--text-soft); border-color: var(--bg-soft-warm); border-style: dashed;
  box-shadow: none; text-shadow: none; cursor: default;
}
.booking-submit:disabled::before, .booking-submit:disabled::after { content: none; }
.booking-back { font: 650 .9rem/1.4 var(--serif); text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: no-preference) { .booking-dialog[open] { animation: booking-appear 260ms var(--ease-editorial); } }
@keyframes booking-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Glass comparison (review page)
   ========================================================================== */
.glass-comparison { padding-top: max(8rem, 11svh); --reading-width: 64rem; }
.glass-comparison h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.glass-switch { margin: 1.8rem 0; padding: 0; border: 0; text-align: center; }
.glass-switch legend { margin: 0 auto .4rem; }
.glass-switch label {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; margin-right: .35rem; padding: .3rem .9rem;
  border: 1px solid var(--rule); border-radius: 30px; cursor: pointer;
}
.glass-switch label:has(:checked) { border-color: var(--accent-forest); background: var(--bg-sand); }
.glass-switch input { accent-color: var(--accent-forest); }
.glass-comparison:has([value="strong"]:checked) .glass-samples {
  --card-face: linear-gradient(158deg, rgb(255 253 248 / .64), rgb(240 237 229 / .30));
  --card-border: rgb(255 255 255 / .9); --card-depth: var(--glass-depth-raised); --card-blur: calc(var(--glass-blur) + 6px);
}
body:has(.glass-switch [value="strong"]:checked) .menu-panel { --panel-blur: calc(var(--glass-blur) + 6px); }
.glass-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.glass-sample { position: relative; display: grid; align-content: start; justify-items: center; text-align: center; gap: 1.5rem; padding: clamp(1.4rem, 3.4vw, 3rem); overflow: hidden; isolation: isolate; }
.glass-sample::before {
  content: ""; position: absolute; z-index: -1; left: 18%; bottom: -12%; width: 64%; aspect-ratio: 1 / 1.3;
  border-radius: 999px 999px 0 0; background: var(--deco-mineral);
}
.glass-sample.cream { background: var(--bg-cream); border: 1px solid var(--rule); }
.glass-sample.sand { background: var(--bg-sand); border: 1px solid var(--bg-sand); }
.glass-sample h2 { font-size: 1.65rem; }
.glass-sample .card { justify-self: stretch; }

/* ==========================================================================
   Motion: waiting states. They apply only after the boot script has added
   .motion, and a watchdog removes it again if the animation layer fails.
   ========================================================================== */
html.motion :is(.intro h2, .intro-copy > *, .chapter-title, .chapter-copy > *, .about-copy > *, .closing-title,
  .closing-description > *, .closing-contact, .foot-sheet, .page-head .section > *, .article article > :not(.gallery, .locations), .related,
  .glass-sample > *, .glass-switch):not(.is-in),
html.motion :is(.card, .booking-invite, .locations > section, .portal):not(.is-in) { opacity: 0; }
html.motion :is(.about-media, .gallery img):not(.is-in) { opacity: 0; }
html.motion .hero:not(.is-open) :is(.eyebrow, h1, .section-actions, .hero-light, .scroll-cue) { opacity: 0; }
/* Lines are drawn by --draw (0 to 1). Without the motion layer they are simply complete. */
html.motion :is(.edge-line, .contour path, .hero-arch path) { stroke-dasharray: 1px 1px; stroke-dashoffset: calc((1 - var(--draw, 0)) * 1px); }
html.motion .hero.is-open .hero-arch path { --draw: 1; }
html.motion :is(:focus-within, :target):not(.is-in) { opacity: 1 !important; }
.line-mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line-inner { display: block; will-change: transform; }

/* ==========================================================================
   Tablet and phone
   ========================================================================== */
@media (max-width: 900px) { .foot-inner { grid-template-columns: 1fr 1.2fr; } }
@media (max-width: 859px), (pointer: coarse) and (orientation: landscape) and (max-width: 1000px) and (max-height: 520px) {
  .intro, .chapter-lead, .about, .closing-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .chapter-title h2, .intro h2, .about h2, .closing-title, .method h2 { max-width: 16ch; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 0; align-items: start; }
  .hero-veil, .hero-light, .hero-arch { display: none; }
  /* The photograph ends in one wide arc; the quote stands on paper below it. */
  .hero-media {
    position: relative; inset: auto; z-index: auto; grid-area: 1 / 1;
    -webkit-mask-image: radial-gradient(ellipse 150% 100% at 38% 0, #000 calc(100% - 1px), transparent);
    mask-image: radial-gradient(ellipse 150% 100% at 38% 0, #000 calc(100% - 1px), transparent);
  }
  .hero-desktop, .hero-photo { position: static; inset: auto; height: min(60vw, 52svh, 32rem); object-position: 34% 32%; }
  .hero-copy { grid-area: 2 / 1; width: min(100%, 40rem); margin: 0; padding: clamp(1.75rem, 5vw, 2.5rem) 6% clamp(2.5rem, 7vw, 3.5rem); }
  .hero h1 { max-width: 15ch; font-size: clamp(2.15rem, 7.4vw, 2.9rem); }
  .hero .section-actions { margin-top: 1.25rem; }
  .hero .scroll-cue { grid-area: 1 / 1; position: relative; inset: auto; z-index: 1; align-self: end; justify-self: end; margin: 0 6% 1.1rem 0; }
  .about-media { width: min(100%, 26rem); aspect-ratio: 1 / 1.18; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 37rem; gap: clamp(1.5rem, 5vw, 2.4rem); grid-auto-rows: auto; }
  #topics .card { grid-column: auto; }
  .closing-stage { gap: 1rem; }
  .portal { width: min(100%, 26rem); margin: 0 auto; }
  .rahmen { width: min(86%, 22rem); margin: 1rem auto 0; }
  .method blockquote { max-width: 24ch; }
  .shape-intro-arch { width: 74vw; right: -34%; top: 18%; }
  .shape-topics-arch { width: 88vw; left: -34%; top: 20%; }
  .shape-topics-stone { width: 92vw; right: -40%; top: 48%; }
  .shape-topics-olive { width: 76vw; left: 24%; bottom: 2%; }
  .shape-settings-arch-a { width: 86vw; right: -36%; top: 30%; }
  .shape-settings-arch-b { width: 80vw; left: -34%; top: 56%; }
  .shape-settings-arch-c { width: 60vw; left: 30%; }
  .shape-about-field { width: 86vw; left: -30%; }
  .shape-method-field { width: 90vw; }
  /* Phones: calm paper. Only the lines along the section edges remain. */
  .contour { display: none; }
}
@media (max-width: 640px), (pointer: coarse) and (max-width: 859px), (pointer: coarse) and (orientation: landscape) and (max-width: 1000px) and (max-height: 520px) {
  .mast { --mast-height: 64px; --mast-gutter: 4%; }
  .mast .brand { padding-inline: .4rem; }
  .tools { gap: 4px; }
  .tools > [data-language-switch] { min-width: 44px; }
  .menu > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-panel {
    right: var(--mast-gutter); width: min(43rem, calc(100% - var(--mast-gutter) - max(.5rem, env(safe-area-inset-left, 0px))));
    max-height: calc(100dvh - var(--mast-height) - var(--booking-clearance) - .5rem); padding: clamp(.65rem, 3.3vw, 1.5rem);
  }
  .menu-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: min(.75rem, 3vw); }
  .menu-category { min-height: 48px; padding: .55em .8em; font-size: clamp(.93rem, 3.75vw, 1.1rem); }
  .menu-links a { min-height: 44px; font-size: .87rem; }
  .page-head .section { padding-top: calc(var(--mast-height, 64px) + 2.5rem); }
  main [id] { scroll-margin-top: 74px; }
  .brand img { width: 54px; height: auto; }
  .booking-dialog {
    --dialog-gap: max(.4rem, env(safe-area-inset-top, 0px));
    position: fixed; inset: calc(var(--dialog-top, 0px) + var(--dialog-gap)) 0 auto;
    width: min(36rem, calc(100% - .8rem)); max-width: none;
    height: calc(var(--dialog-screen, 100dvh) - var(--dialog-gap)); max-height: none; margin: 0 auto; border-radius: 24px 24px 0 0;
  }
  .booking-footer { padding-bottom: max(.55rem, env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: var(--booking-clearance); }
}
@media (max-width: 640px) {
  .hero:has(.hero-photo) .hero-desktop { display: none; }
  .hero .hero-photo { display: block; height: min(104vw, 56svh, 31rem); object-position: center 40%; }
  .foot-inner, .locations { grid-template-columns: 1fr; }
  .foot-inner { gap: 1.5rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .locations { gap: 1.25rem; }
  .eyebrow { font-size: .66rem; }
  .eyebrow::before { width: 1.6rem; margin-right: .7rem; }
  .article { overflow-wrap: anywhere; }
  .page-head h1 { font-size: clamp(2.2rem, 9vw, 2.9rem); }
  .card h3 { overflow-wrap: anywhere; hyphens: auto; }
  .glass-samples { grid-template-columns: minmax(0, 1fr); }
  .related-link { flex: 1 1 100%; justify-content: center; text-align: center; border-radius: 1.4rem; }
}
/* Taller portrait screens get more photograph; the fixed booking action rests on paper. */
@media (max-width: 859px) and (orientation: portrait) {
  .hero { min-height: calc(100svh - 2rem); align-content: start; }
  .hero-desktop { height: min(76vw, 54svh, 38rem); }
  .hero .hero-photo { height: max(min(104vw, 48svh), min(128vw, calc(100svh - 21rem), 37rem)); }
}
@media (max-width: 360px) and (max-height: 700px) and (orientation: portrait) {
  .hero .hero-copy .section-actions { justify-content: flex-start; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-width: 1000px) and (max-height: 520px) {
  .hero-desktop, .hero .hero-photo { height: 46svh; object-position: 34% 23%; }
}
@media (max-width: 859px), (pointer: coarse) and (orientation: landscape) and (max-width: 1000px) and (max-height: 520px) {
  :root { --booking-clearance: calc(4.4rem + env(safe-area-inset-bottom, 0px)); }
  .booking-trigger:not(.mast-request), .section-actions:has(> .booking-trigger:only-child) { display: none; }
  .booking-dock {
    display: flex; position: fixed; z-index: 2;
    right: max(5%, env(safe-area-inset-right, 0px)); bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 2rem); pointer-events: none;
  }
  .mast:has(.booking-dialog[open]) .booking-dock { display: none; }
  .foot-end { padding-bottom: calc(var(--booking-clearance) + 1rem); }
}
@media (max-width: 520px) {
  .booking-fields { grid-template-columns: minmax(0, 1fr); }
  .time-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Wide screens: the middle column of the topics sits a little lower. */
@media (min-width: 1000px) {
  #topics .cards { padding-bottom: 2.75rem; }
  #topics .card:nth-child(3n + 2):not(:nth-last-child(1 of .card)) { top: 2.75rem; }
  #topics .card:nth-last-child(-n + 2 of .card) { top: 1.375rem; }
  #settings .cards { padding-bottom: 2.5rem; }
  #settings .card:nth-child(even) { top: 2.5rem; }
}

/* ==========================================================================
   Preferences and fallbacks
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .card::before, .card::after, .booking-invite::before, .locations > section::before, .button::before, .button::after,
  .mast-request::before, .mast-request::after { content: none; }
  .card, .locations > section, .booking-invite, .menu-category, .menu-links a, .menu-panel, .related-link {
    background: var(--bg-soft-warm); border-color: var(--field-border); box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .button, .mast-request { background: var(--accent-forest-dark); border-color: var(--accent-forest-dark); box-shadow: none; text-shadow: none; }
  .hero-veil { background: linear-gradient(90deg, rgb(247 242 237 / 0) 30%, var(--bg-cream) 58%); }
  .hero-light, .hero-arch { display: none; }
  .deco { display: none; }
}
@media (forced-colors: active) {
  .card, .locations > section, .booking-invite, .menu-category, .menu-links a, .menu-panel, .related-link { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .button, .mast-request { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .card > .card-arrow { color: LinkText; font: 700 1.85rem/1 var(--serif); border: 0; background: none; box-shadow: none; }
  .card-arrow::before { content: none; }
  .edge-fill { fill: Canvas; }
}
@media print {
  .deco, .edge, .hero-light, .hero-arch, .scroll-cue, .portal, .rahmen, .booking-dock { display: none; }
  .mast { position: static; }
}
