/* Feature and page styles, composed from the components.css primitives. */

.opn-app { min-height: 100vh; display: flex; flex-direction: column; }
.opn-content { flex: 1; display: flex; flex-direction: column; }
.skip-target:focus { outline: none; }
.opn-content > main { flex: 1; }

.opn-header {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease);
}
/* The blur lives here: backdrop-filter on .opn-header itself would trap the fixed mobile panel to the header's height. */
.opn-header::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: -1;
}
.opn-header.scrolled { border-color: var(--line); }
.opn-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0;
  gap: var(--sp-5);
}
.opn-logo {
  justify-self: start;
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font-serif);
  color: var(--ink);
}
.opn-logo .logo-line1 { font-size: 20px; font-style: italic; letter-spacing: 0.02em; line-height: 1; }
.opn-logo .logo-line2 { font-size: var(--fs-caps); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.35em; margin-top: 3px; color: var(--ink-mute); }

.opn-nav { display: flex; gap: 28px; }
.opn-navlink {
  font-size: var(--fs-caps-l); letter-spacing: var(--track-caps-wide);
  color: var(--ink-soft);
  padding: 11px 0;
  position: relative;
  transition: color var(--dur-1);
}
/* Only "you are here" (hover is colour), cut short by the letter-space that trails the last glyph. */
.opn-navlink::after {
  content: ""; position: absolute; bottom: 5px; left: 0;
  width: calc(100% - var(--track-caps-wide)); height: 1px; background: var(--ink);
  transform: scaleX(0);
}
.opn-navlink:hover, .opn-navlink:focus-visible, .opn-navlink.active { color: var(--ink); }
.opn-navlink.active::after {
  transform: scaleX(1);
  animation: navline-sweep var(--dur-2) var(--ease);
}
/* Turbo swaps the body on every visit, so this re-fires as each page lands. */
@keyframes navline-sweep { from { transform: scaleX(0); } }

.opn-header-end {
  justify-self: end;
  display: flex; align-items: center; gap: 18px;
}
.opn-langswitch {
  display: flex; align-items: center; gap: var(--sp-1);
  font-family: var(--font-sans); font-size: var(--fs-caps-l); letter-spacing: var(--track-caps);
}
.opn-langswitch a {
  color: var(--ink-mute);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; min-width: 40px; padding: var(--sp-1) var(--sp-2);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: color var(--dur-1);
}
.opn-langswitch a.on {
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: var(--ink);
}
.opn-langswitch span { color: var(--line); }
/* 40px locale targets leave no room for the slashes beside the cart and menu buttons. */
@media (max-width: 400px) {
  .opn-header-end > .opn-langswitch { gap: 0; }
  .opn-header-end > .opn-langswitch span { display: none; }
}

.opn-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}
.opn-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
}

/* The menu is a drawer below 1024px, where five links and three languages stop fitting one row (Russian, at 901px). */
@media (min-width: 1024px) {
  .opn-mobile-panel { display: none; }
}
@media (max-width: 1023px) {
  .opn-nav { display: none; }
  .opn-hamburger {
    display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4.5px;
  }
  .opn-header-inner {
    grid-template-columns: auto 1fr;
    padding: 14px 0;
  }
  .opn-header-end { gap: 10px; }
}
/* No drawer without JavaScript, so its links sit under the bar and the button that can't open it goes. */
.opn-noscript-nav { position: relative; display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); padding-bottom: var(--sp-2); }
@media (min-width: 1024px) { .opn-noscript-nav { display: none; } }
@media (scripting: none) { .opn-hamburger { display: none; } }
.opn-mobile-panel { width: min(360px, 85vw); }
.opn-mobile-body { flex: 1 0 auto; display: flex; flex-direction: column; padding: var(--sp-3) var(--panel-inset) var(--sp-6); }
.opn-mobile-nav { display: flex; flex-direction: column; gap: var(--sp-1); }
.opn-mobile-link {
  display: block;
  padding: var(--sp-4) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
/* A leading rule, not an underline: every row already has a bottom hairline. */
.opn-mobile-link.active { color: var(--ink); }
.opn-mobile-link.active::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 20px; height: 1px; margin-right: 10px;
  background: var(--ink);
  animation: navline-sweep var(--dur-2) var(--ease);
}
.opn-mobile-foot { margin-top: auto; padding-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }

/* Below 360px the three language links squeezed the wordmark onto four lines; the menu panel carries them. */
@media (max-width: 359px) {
  .opn-header-end > .opn-langswitch { display: none; }
}

.cart-dot {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: var(--white);
  font-size: var(--fs-caps-s); font-family: var(--font-sans);
  min-width: 16px; height: 16px; border-radius: var(--r-pill);
  display: grid; place-items: center; padding: 0 var(--sp-1);
  font-weight: 500;
}

.hero { padding: clamp(32px, 6vw, 80px) 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 72vh;
}
.hero-left { padding: 20px 0; }
.hero-left .eyebrow { margin-bottom: 28px; }
.hero-title {
  /* 7rem is the largest that keeps "by Nina" on one line in the content column. */
  font-size: clamp(3.5rem, 8.5vw, 7rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
  font-style: italic;
}
.hero-title .hero-line { display: block; }
.hero-title .hero-line:nth-child(2) { padding-left: 1.5em; font-style: normal; font-weight: 400; }
.hero-lede {
  max-width: 440px;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero-right {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-4);
  height: 72vh;
  min-height: 560px;
}
.hero-photo { overflow: hidden; border-radius: var(--r-sm); }
.hero-photo.big { grid-row: span 2; }
@media (max-width: 900px) {
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

.hero-marquee {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.section { padding: clamp(64px, 10vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }
/* Two plain sections in a row would stack both paddings into one empty band. */
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-5);
  margin-bottom: clamp(32px, 5vw, 60px);
  flex-wrap: wrap;
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head h2 { margin: var(--sp-3) 0 10px; max-width: 16ch; }
.section-head p { color: var(--ink-soft); max-width: 48ch; margin: 0; }

.product-grid {
  display: grid;
  /* auto-fill keeps the empty columns: auto-fit would stretch a short filtered list across the page. */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-7) var(--sp-6);
}
.product-grid-wide { gap: 64px var(--sp-6); }
/* A column, so each card's button sits at the foot of its grid row whatever the name's length. */
.product-card { display: flex; flex-direction: column; transition: transform var(--dur-3) var(--ease); }
.product-card__action { margin-top: auto; }
.product-card__link { display: block; }
.product-photo { position: relative; margin-bottom: 20px; }
.product-photo .clay-photo { transition: transform var(--dur-4) var(--ease); }
/* Only the photo grows; the badges over it stay put, and nothing moves for anyone who asked for less motion. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-card:hover { transform: translateY(-4px); }
  .product-card:hover .product-photo .clay-photo { transform: scale(1.04); }
}
.product-meta {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: var(--sp-4);
}
.product-name {
  font-size: var(--step-1);
  font-style: italic;
}
.product-price, .teaser-row .price {
  font-family: var(--font-sans);
  font-size: var(--fs-s);
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.product-add { margin-top: var(--sp-3); }
/* Two pieces across on a phone, as shops show them: one alone filled the whole first screen. */
@media (max-width: 600px) {
  .product-grid, .product-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-3); }
  .product-photo { margin-bottom: var(--sp-3); }
  .product-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  /* A 130px tile can't hold Russian's "Сезонная коллекция" on one line: it wraps inside the photo instead of running off it. */
  .product-photo .badge { max-width: calc(100% - 16px); padding: var(--sp-1) var(--sp-2); border-radius: var(--r-md); font-size: var(--fs-caps-s); line-height: 1.3; white-space: normal; }
  .product-photo .badge--overlay { top: var(--sp-2); left: var(--sp-2); }
  .product-photo .badge--overlay-end { right: var(--sp-2); bottom: var(--sp-2); }
  .product-add { width: 100%; justify-content: center; padding-inline: var(--sp-2); }
}

.teaser-copy h2 { margin: 14px 0 18px; }
.teaser-copy p { color: var(--ink-soft); max-width: 44ch; margin-bottom: var(--sp-6); }
.teaser-list { margin: var(--sp-6) 0 40px; border-top: 1px solid var(--line); }
/* A long price (Russian "за 2 человека") wraps to its own line, kept to the right, rather than widening the row. */
.teaser-row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-1);
}
.teaser-name {
  font-style: italic;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.18em; text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur-1);
}
.teaser-row:hover .teaser-name, .teaser-row:focus-visible .teaser-name { text-decoration-color: currentColor; }
.dot-leader {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
  margin: 0 var(--sp-3);
}
.teaser-row .price { white-space: nowrap; margin-left: auto; }
.teaser-duration { color: var(--ink-mute); }
.teaser-duration::after { content: " · "; }
.teaser-next { flex-basis: 100%; margin-top: 2px; font-size: var(--fs-s); color: var(--ink-mute); }
/* A phone: the name, then its length and price under it, so every row reads the same however long its price. */
@media (max-width: 600px) {
  .teaser-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .teaser-row .dot-leader { display: none; }
  .teaser-row .price { margin-left: 0; white-space: normal; }
}

/* No hover lift: on this site a growing tile means "clickable", and these are decorative. */
.ig-grid, .about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.section-newsletter h2 { margin: 14px 0 var(--sp-4); }
.section-newsletter p { color: var(--ink-soft); margin-bottom: 36px; }
.newsletter-note { max-width: 480px; margin-inline: auto; }
.newsletter-form {
  display: flex; align-items: flex-end; gap: var(--sp-3); max-width: 480px; margin: 0 auto;
  padding-bottom: var(--sp-2); border-bottom: 1px solid var(--ink);
  text-align: left;
}
.newsletter-form__field { flex: 1; display: grid; gap: var(--sp-1); }
.newsletter-form input {
  border: 0; background: transparent;
  font-family: var(--font-serif); font-style: italic;
  font-size: var(--step-1);
  color: var(--ink);
  padding: var(--sp-1) 0 var(--sp-2);
  min-height: 44px;
  outline: none;
}
/* The form's underline marks the field, so focus needs a ring of its own to be visible. */
.newsletter-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.newsletter-form input::placeholder { color: var(--ink-mute); }
.newsletter-form .btn { padding: 10px 20px; font-size: var(--fs-caps); white-space: nowrap; }
/* One row can't hold the field and a long CTA ("Подписаться") on a small phone, so it stacks. */
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; align-items: stretch; gap: var(--sp-4); border-bottom: 0; }
  .newsletter-form input { border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

.shop-grid { padding-bottom: clamp(80px, 12vw, 140px); }
.shop-closed { margin-top: var(--sp-5); }
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-4) var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.shop-filters, .shop-sort { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.shop-sort .small { margin-right: var(--sp-1); white-space: nowrap; }
@media (max-width: 640px) {
  .shop-toolbar { gap: 18px; margin-bottom: 40px; }
  .shop-filters, .shop-sort { width: 100%; }
}
.shop-refine { display: none; }
.shop-refine__current { color: var(--ink-mute); text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); text-align: right; }
.shop-refine__group { display: grid; gap: var(--sp-2); }
@media (max-width: 600px) {
  .shop-toolbar { padding: var(--sp-4) 0; margin-bottom: var(--sp-6); }
  .shop-toolbar__wide { display: none; }
  .shop-refine { display: block; width: 100%; }
}

.lessons-list { padding: clamp(40px, 6vw, 80px) 0; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); }
.lesson-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.lesson-card:last-of-type { border-bottom: 0; }
.lesson-card:nth-child(even) { grid-template-columns: 1.3fr 1fr; }
.lesson-card:nth-child(even) .lesson-photo { order: 2; }
.lesson-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: var(--sp-2) 20px; margin-bottom: var(--sp-4);
}
.lesson-head h2 { font-style: italic; font-size: var(--step-3); }
.lesson-price { font-size: var(--step-2); color: var(--ink-soft); white-space: nowrap; }
.lesson-description { color: var(--ink-soft); max-width: 48ch; margin: 0 0 var(--sp-5); }
.lesson-specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-6);
  margin: 0 0 var(--sp-5); padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) {
  .lesson-specs { gap: 18px 20px; }
}
.lesson-specs dt { font-size: var(--fs-caps); letter-spacing: var(--track-caps-wide); color: var(--ink-mute); margin-bottom: 6px; }
.lesson-specs dd { margin: 0; font-family: var(--font-serif); font-size: var(--step-1); font-style: italic; }
.lesson-badges {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  list-style: none; margin: 0 0 20px; padding: 0;
}
/* "Languages: English · Czech · Russian" is wider than a phone's card. */
.lesson-badges .badge { white-space: normal; }
.lesson-dates { margin: 0 0 var(--sp-5); }
.lesson-dates .eyebrow { margin: 0 0 var(--sp-3); }

/* Sections side by side once both fit, so neither leaves two thirds of the page empty. */
.extras {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--sp-7) clamp(40px, 6vw, 96px); align-items: start;
  padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line);
}
/* Straight under a page's title band, whose own rule already divides them. */
.extras--under-hero { border-top: 0; }
.extras .title-3 { margin: 10px 0 var(--sp-2); }
.extras__lede { margin: 0 0 40px; max-width: 56ch; }
.gift-vouchers__list { max-width: 560px; }

.modal-steps {
  display: flex; padding: var(--sp-4) var(--modal-inset);
  border-bottom: 1px solid var(--line);
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.msx {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-caps);
  color: var(--ink-mute);
  padding: 6px 10px 6px 6px;
}
.msx-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-alt); color: var(--ink-mute);
  font-size: var(--fs-caps);
}
.msx.on { color: var(--ink); }
.msx.on .msx-num { background: var(--ink); color: var(--bg); }
.msx.done .msx-num { background: var(--sage-deep); color: var(--bg); }
/* On a phone: one row of numbers naming only the current step, so the form starts above the fold. */
@media (max-width: 560px) {
  .modal-steps { flex-wrap: nowrap; gap: var(--sp-1); padding-block: var(--sp-3); }
  .msx { padding: var(--sp-1); }
  .msx:not(.on) .msx-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

.bk-step h3 { margin: 0 0 20px; font-style: italic; font-size: var(--step-2); }
.bk-step .summary + .flash { margin-top: var(--sp-4); }
.bk-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--sp-2); }
.bk-date {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--sp-3) 6px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-md); cursor: pointer;
  font-family: var(--font-sans); color: var(--ink);
  transition: all var(--dur-1);
}
@media (hover: hover) { .bk-date:hover { border-color: var(--ink); } }
.bk-date.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bk-dow, .bk-dmon { font-size: var(--fs-caps-s); opacity: 0.7; }
.bk-dnum { font-family: var(--font-serif); font-size: var(--step-2); font-style: italic; line-height: 1; }
.bk-dseats { margin-top: 2px; font-size: var(--fs-caps-s); line-height: 1.2; text-align: center; opacity: 0.8; }

.bk-counter { display: flex; align-items: center; gap: var(--sp-6); padding: 20px 0; }
.bk-big { font-size: 48px; font-style: italic; }

.bk-alert:empty { display: none; }
.bk-alert { flex-basis: 100%; }

.about-hero { padding: clamp(60px, 9vw, 120px) 0; }
.about-copy h1 {
  font-size: var(--display-1);
  font-style: italic;
  margin: var(--sp-4) 0 var(--sp-6);
  line-height: 0.95;
}
.about-body p {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1em;
  max-width: 48ch;
}
.about-copy .btn-row { margin-top: var(--sp-6); }
.about-grid { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 140px); }

.contact-grid {
  padding: clamp(60px, 9vw, 100px) 0 clamp(80px, 12vw, 140px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-event { max-width: 560px; }
.contact-event .lede { margin-bottom: var(--sp-4); }
.contact-event strong { color: var(--ink); }
.contact-event-date {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 var(--sp-2);
}
.contact-event .muted { margin: 0; }

.contact-info { display: flex; flex-direction: column; gap: 40px; }
.info-row .eyebrow { margin-bottom: 10px; }
/* These two ARE the contact page's call to action; as plain text they read as unclickable. */
.info-row .big {
  font-size: var(--step-2);
  font-style: italic;
  display: inline-block;
  padding-block: var(--sp-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color var(--dur-1), text-decoration-color var(--dur-1);
}
.info-row .big:hover { color: var(--accent-deep); text-decoration-color: currentColor; }

/* contain keeps a flick at the end of the list from chaining out to the page. */
.cart-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 96px; }
/* A phone held sideways leaves the list less than one line: the drawer scrolls as one instead. */
@media (max-height: 450px) {
  .drawer .cart-list { flex: none; overflow-y: visible; min-height: 0; }
}
.cart-list li {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: var(--sp-4); padding: 20px var(--panel-inset); align-items: center;
  border-bottom: 1px solid var(--line);
}
.cart-info .serif { font-style: italic; font-size: var(--step-0); }
.cart-qty { margin: 6px 0 var(--sp-1); }
.cart-qty .stepper__value { color: var(--ink-mute); font-size: var(--fs-s); }
.cart-limit { margin: 0; }
.cart-price { font-family: var(--font-serif); font-size: var(--step-0); }
.cart-foot { padding: var(--sp-5) var(--panel-inset); border-top: 1px solid var(--line); }
.cart-foot > .btn { margin-top: var(--sp-4); }
.cart-nudge { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0 0; }
.cart-nudge p { margin: 0; color: var(--ink-soft); }
.cart-page { padding: var(--sp-6) 0 var(--sp-8); }
@media (max-width: 900px) {
  .cart-qty .stepper__value { min-width: 56px; }
}
/* Small phones: a tighter row and thumb keep −, value and + on one line. */
@media (max-width: 480px) {
  .cart-list li { padding-block: var(--sp-4); gap: var(--sp-3); grid-template-columns: 56px 1fr auto; }
  .cart-qty .stepper__value { min-width: 32px; }
}
/* The narrowest phones: − and + beside a four-digit price overflowed the row, so the price joins the name's line. */
@media (max-width: 360px) {
  .cart-list li { align-items: start; row-gap: var(--sp-1); }
  .cart-list li > .photo-frame { grid-row: span 4; align-self: center; }
  .cart-info { display: contents; }
  .cart-info > * { grid-column: 2 / -1; }
  .cart-info > .serif { grid-column: 2; }
  .cart-price { grid-row: 1; grid-column: 3; }
}

.opn-footer { padding: clamp(60px, 9vw, 100px) 0 40px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
/* A wordmark, not a heading: as an h3 it broke every page's outline straight after the h1. */
.footer-wordmark { font-style: italic; font-size: var(--step-3); margin: 0 0 var(--sp-4); line-height: 0.95; }
.footer-wordmark em { font-size: 0.7em; color: var(--ink-mute); }
.footer-tagline { max-width: 28ch; color: var(--ink-mute); margin: 0; font-size: var(--fs-s); }
.footer-col { display: flex; flex-direction: column; }
.footer-col .eyebrow { margin-bottom: var(--sp-2); }
.footer-col a {
  display: flex; align-items: center; min-height: 40px;
  padding-block: var(--sp-1);
  font-family: var(--font-serif); font-style: italic;
  font-size: var(--step-0);
  color: var(--ink-soft);
  transition: color var(--dur-1);
}
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-5);
  font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--ink-mute);
}
.footer-seller { --tap-pad: 10px; margin: 0; line-height: 1.7; max-width: 60ch; text-wrap: pretty; }
.footer-seller a:hover { color: var(--ink); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); }
.footer-legal-links a {
  display: inline-flex; align-items: center; min-height: 40px; min-width: 40px;
  color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px;
}
.footer-legal-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: var(--sp-5); border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--ink-mute);
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  flex-wrap: wrap; gap: var(--sp-4);
}
.footer-instagram {
  color: var(--ink-mute);
  transition: color var(--dur-1);
}
.footer-instagram:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { height: 60vh; }
  .contact-grid { grid-template-columns: 1fr; }
  .lesson-card, .lesson-card:nth-child(even) { grid-template-columns: 1fr; }
  .lesson-card:nth-child(even) .lesson-photo { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ig-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Sized here, never inline, so the strict CSP keeps style-src free of 'unsafe-inline'. */
.clay-photo { width: 100%; height: 100%; overflow: hidden; position: relative; }
.clay-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clay-photo__svg { display: block; width: 100%; height: 100%; }
/* The placeholder ships alongside every real photo, dormant until that photo fails to load. */
.clay-photo__img + .clay-photo__svg { display: none; }
.clay-photo--failed .clay-photo__img { display: none; }
.clay-photo--failed .clay-photo__svg { display: block; }

/* A calm "it's done", not a hero: the booking or order card is on the first screen of a phone. */
.confirm-page { padding: clamp(var(--sp-6), 6vw, var(--sp-8)) 0 var(--sp-8); max-width: 640px; text-align: center; }
.confirm-page .eyebrow { margin-bottom: var(--sp-3); }
.confirm-title { font-size: var(--display-2); font-style: italic; line-height: 1; }
.confirm-lede { font-size: var(--step-0); margin: var(--sp-4) auto 0; max-width: 46ch; }
.order-summary-card { text-align: left; margin: var(--sp-6) 0; }
.order-summary-card > .btn-row { margin-top: var(--sp-5); }
.booking-summary__lesson {
  font-family: var(--font-serif); font-style: italic;
  font-size: var(--step-2); margin: 0 0 var(--sp-2);
}

.payment-wrap, .detail-wrap { padding: var(--sp-6) 0 var(--sp-8); }
.detail-wrap { max-width: 1080px; }

.payment-card__eyebrow, .checkout-aside .eyebrow { margin-bottom: 10px; }
.payment-card__detail { font-family: var(--font-serif); font-style: italic; margin-bottom: var(--sp-1); }
.payment-card__summary { margin: var(--sp-4) 0 var(--sp-5); }
.payment-card__email { margin: 0 0 var(--sp-5); overflow-wrap: anywhere; }
.payment-card__email strong { color: var(--ink); }
.payment-card__foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.payment-processing {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: 0;
  color: var(--ink-soft);
}
.payment-processing__actions { margin-top: var(--sp-3); }
.payment-mount { min-height: 320px; }

.legal-body { display: grid; gap: var(--sp-5); padding-block: var(--sp-7); }
.withdrawal-body, .voucher-redeem { display: grid; gap: var(--sp-5); padding-block: var(--sp-6) var(--sp-8); }
.voucher-redeem__lesson { margin: var(--sp-1) 0 var(--sp-3); }
.voucher-redeem__ask { margin: 0; }
.pending-order {
  display: grid; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.pending-order__text { margin: 0; color: var(--ink-soft); }
.pending-order__items { margin: 0; font-family: var(--font-serif); font-style: italic; color: var(--ink); }
.pending-order__actions { display: grid; gap: var(--sp-2); }
/* Inset like the drawer's other sections, rather than touching the panel edges. */
.drawer .pending-order, .drawer .cart-alert, .cart-added { flex: none; margin: var(--sp-4) var(--panel-inset) 0; }
.cart-alert { margin-bottom: var(--sp-5); }
.cart-added { color: var(--sage-deep); font-size: var(--fs-s); }

/* The page's full width, so the form starts under the title and the order card ends at the right edge. */
.checkout-wrap { padding: var(--sp-6) 0 120px; }
.checkout-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(300px, 400px);
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-form-grid { grid-template-columns: 1fr; }
  /* The block above the order button already lists everything, so the side card would only repeat it below. */
  .checkout-aside { display: none; }
}
.checkout-section { margin: 40px 0 20px; }
.checkout-total { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.order-summary-point { margin-top: var(--sp-4); }

.picker { display: grid; gap: var(--sp-3); }
.picker .flash { margin-bottom: 0; }
.picker__fake { display: grid; gap: var(--sp-2); }

@media (max-width: 900px) {
  .product-detail-grid { gap: var(--sp-6); }
}
/* Sideways is the gallery's, down still scrolls the page and two fingers still zoom it. */
.product-gallery__hero { position: relative; touch-action: pan-y pinch-zoom; }
.product-gallery__zoom { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.product-gallery__zoom:focus-visible { outline-offset: -2px; }
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; background: var(--bg); }
.lightbox__stage { flex: 1; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.lightbox__img { display: block; max-width: 100vw; max-height: 100vh; max-height: 100dvh; cursor: zoom-in; }
.lightbox__stage.is-magnified { place-items: start; }
.is-magnified .lightbox__img { width: 250vw; max-width: none; max-height: none; cursor: zoom-out; }
.lightbox__close, .lightbox__nav { position: absolute; background: var(--bg-card); border-radius: var(--r-pill); }
.lightbox__close { top: var(--sp-3); right: var(--sp-3); }
.lightbox__nav { bottom: var(--sp-4); }
.lightbox__nav--prev { left: var(--sp-3); }
.lightbox__nav--next { right: var(--sp-3); }

/* A phone's bar for a piece whose real Add to basket is still below the photos; never in the layout, so nothing jumps. */
.sticky-add { display: none; }
@media (max-width: 900px) {
  .sticky-add {
    /* Below the header, whose stacking context holds the open mobile menu. */
    position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-header) - 1);
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
    padding: var(--sp-2) var(--sp-4);
    background: var(--bg); border-top: 1px solid var(--line);
  }
}
.sticky-add__price { font-family: var(--font-serif); font-size: var(--step-1); }

.product-gallery__thumbs {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--dur-1), border-color var(--dur-1);
}
.product-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--ink);
}
@media (hover: hover) {
  .product-gallery__thumb:hover { opacity: 1; border-color: var(--ink); }
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-title {
  font-size: var(--display-2);
  font-style: italic;
}
.product-detail-price {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  font-size: var(--step-2);
  margin: var(--sp-5) 0;
}
.detail-body {
  color: var(--ink-soft);
  max-width: 48ch;
}
.product-detail-actions { margin-top: 40px; }
.product-add-form { align-items: flex-end; }
.gone-lede { margin: var(--sp-4) 0 var(--sp-7); max-width: 48ch; }
.gone-actions { margin-top: var(--sp-7); }

@media (prefers-reduced-motion: reduce) {
  .opn-navlink.active::after, .opn-mobile-link.active::before { animation: none; }
  .marquee-track { animation: none; }
}

.notify-form { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); max-width: 460px; }
.notify-form__lede { margin: 0; color: var(--ink-soft); }
.notify-form__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3); }
.notify-form__row > .field { flex: 1 1 220px; margin: 0; }
