/* Samasthiti Yoga — warm paper, ink black, one terracotta accent. */

:root {
  --paper: #ece5d8;
  --paper-deep: #e2d9c8;
  --ink: #1a1714;
  --ink-soft: #5d554b;
  --terra: #b5532f;
  --line: rgba(26, 23, 20, .16);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* language switching */
html[data-lang="en"] .de,
html[data-lang="de"] .en { display: none !important; }

/* ─────────────── type */
.display {
  font-family: var(--serif);
  font-size: clamp(3rem, 6.4vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.02em;
}
.display em, .statement em { font-style: italic; }
.eyebrow, .fig, .num, .field-label, .teacher-lang, .price-label, .studies-label, .footer-head, .facts dt {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.statement {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.statement.small { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; }

/* ─────────────── buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6em;
  padding: 1.05em 1.8em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--terra); border-color: var(--terra); }
.btn-small { padding: .85em 1.3em; font-size: .7rem; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--terra); color: var(--paper); border-color: var(--terra); }
.link-arrow {
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--terra); border-color: var(--terra); }

/* ─────────────── header */
.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { height: 42px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.nav a:hover { color: var(--terra); }
.masthead-end { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; }
.lang-switch button {
  background: none; border: 0; padding: 6px 7px; cursor: pointer;
  font: 500 .72rem/1 var(--sans); letter-spacing: .16em; color: var(--ink-soft);
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* ─────────────── hero */
.hero-head { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) 0; }
.hero-head .section-head { margin-bottom: 0; }
.hero-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.01em; }
.hero-head h1 em { color: var(--terra); }
.hero-head .eyebrow { margin-left: auto; text-align: right; }
.hero-head + .hero { padding-top: clamp(40px, 5vw, 72px); }

.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(56px, 7vw, 96px);
}
.hero-text { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); padding-bottom: 12px; }
.eyebrow { color: var(--ink-soft); }
.lede { max-width: 34em; font-size: 1.06rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

.hero-figure { position: relative; margin: 0; justify-self: end; width: min(100%, 470px); }
.hero-figure img { width: 100%; filter: contrast(1.02) saturate(.9); }
.hero-figure .sun {
  position: absolute; z-index: -0;
  width: clamp(64px, 8vw, 110px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--terra);
  top: -6%; right: -7%;
}
.hero-figure img { position: relative; z-index: 1; }
figcaption {
  display: flex; gap: 14px; align-items: baseline;
  margin-top: 12px;
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-soft);
}
figcaption .fig { font-style: normal; color: var(--ink); }

/* ─────────────── ribbon */
.ribbon {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px clamp(20px, 4vw, 56px);
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .76rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
}
.ribbon i { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }

/* ─────────────── sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 150px) var(--gutter); }
.section-head {
  display: flex; align-items: baseline; gap: 22px;
  padding-bottom: 20px; margin-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--ink);
}
.section-head .num { color: var(--terra); }
.section-head h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.01em; }

/* practice */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 32px);
}
.practice .statement { grid-column: 1 / span 8; }
.practice-figure { grid-column: 9 / span 4; grid-row: 1 / span 2; margin: 0; align-self: start; margin-top: 8px; }
.principles {
  grid-column: 1 / span 7;
  list-style: none; margin: 0; padding: 0;
  counter-reset: p;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 40px;
}
.principles li { counter-increment: p; border-top: 1px solid var(--line); padding-top: 18px; }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--terra);
}
.principles h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin-bottom: 10px; }
.principles p { color: var(--ink-soft); font-size: .96rem; }

/* studies strip */
.studies { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.studies-label { color: var(--ink-soft); margin-bottom: 18px; }
.studies-row {
  display: grid; grid-template-columns: repeat(var(--count, 5), 1fr); gap: clamp(10px, 1.6vw, 20px);
}
.studies-row figure { margin: 0; }
.studies-row img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.studies-row figure:nth-child(even) { margin-top: clamp(24px, 5vw, 72px); }

/* teachers */
.teacher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.teacher figure { margin: 0 0 24px; }
.teacher figure { max-width: 440px; }
.teacher img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
/* TODO: swap for <img src="images/teacher-….jpg"> once you have portraits */
.portrait-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.teacher .portrait-placeholder img { width: auto; height: 42%; aspect-ratio: auto; opacity: .85; }
.portrait-placeholder span { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.teacher:nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
.teacher-lang { color: var(--terra); margin-bottom: 8px; }
.teacher h3 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 14px; }
.teacher p:last-child { color: var(--ink-soft); max-width: 32em; }

/* class */
.class-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { margin: 0; }
.facts > div {
  display: grid; grid-template-columns: 9em 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.facts > div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); padding-top: .5em; }
.facts dd { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; }

.price {
  background: var(--ink); color: var(--paper);
  padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  position: relative; overflow: hidden;
}
.price::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%; background: var(--terra);
}
.price-label { color: rgba(236, 229, 216, .7); }
.price-figure { font-family: var(--serif); font-size: clamp(5rem, 9vw, 8rem); line-height: .9; letter-spacing: -.03em; position: relative; z-index: 1; }
.price-note { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin-bottom: 22px; }

.bring {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 9em 1fr; gap: 16px; max-width: 760px;
}
.bring h3 { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); padding-top: .4em; }
.bring p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }

/* join */
.join {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.join .section-head { margin-bottom: 36px; }
.join-intro { display: flex; flex-direction: column; gap: 22px; }
.fineprint { color: var(--ink-soft); font-size: .9rem; }

.join-form { display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }
.join-form label, .join-form fieldset { display: flex; flex-direction: column; gap: 10px; }
.join-form fieldset { border: 0; margin: 0; padding: 0; }
.field-label { color: var(--ink-soft); padding: 0; }
.join-form input[type="text"],
.join-form input[type="email"],
.join-form textarea {
  width: 100%;
  font: 400 1.25rem/1.3 var(--serif);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 0;
  resize: vertical;
}
.join-form input:focus, .join-form textarea:focus { outline: none; border-bottom-color: var(--terra); box-shadow: 0 1px 0 var(--terra); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label {
  flex-direction: row; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-size: .92rem;
  cursor: pointer;
}
.choices label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choices input { accent-color: var(--terra); margin: 0; }
.consent { flex-direction: row !important; align-items: flex-start; gap: 12px !important; font-size: .86rem; color: var(--ink-soft); }
.consent input { margin-top: 4px; accent-color: var(--terra); }
.join-form .btn { align-self: flex-start; }
.join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--terra); font-size: .92rem; }
.join-form .has-error .field-label, .join-form .has-error.consent { color: var(--terra); }
.join-form .has-error input[type="text"], .join-form .has-error input[type="email"] { border-bottom-color: var(--terra); }
.join-thanks { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; color: var(--ink-soft); }
.join-thanks .statement { color: var(--ink); }

/* faq */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 22px 0;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.4rem; color: var(--terra); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; max-width: 40em; color: var(--ink-soft); }

/* legal pages */
.legal-body { max-width: 44em; }
.legal-body p { margin-bottom: 1.1em; color: var(--ink-soft); }
.legal-body strong { color: var(--ink); font-weight: 600; }

/* footer */
.footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(64px, 8vw, 110px) var(--gutter) 32px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
}
.footer-mark { height: 110px; width: auto; }
.footer-name { font-family: var(--serif); font-size: 2.2rem; margin-top: 22px; line-height: 1; }
.footer-tag { font-family: var(--serif); font-style: italic; color: rgba(236, 229, 216, .65); margin-top: 6px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-self: end; }
.footer-head { color: rgba(236, 229, 216, .55); margin-bottom: 10px; }
.footer-cols p { line-height: 1.9; }
.footer a { text-decoration: none; border-bottom: 1px solid rgba(236, 229, 216, .3); }
.footer a:hover { color: #e08a66; border-color: #e08a66; }
.footer-small { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(236, 229, 216, .15); font-size: .78rem; color: rgba(236, 229, 216, .5); }

/* ─────────────── responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-head .section-head { flex-wrap: wrap; gap: 10px 16px; }
  .hero-head .eyebrow { margin-left: 0; flex-basis: 100%; text-align: left; }
  .hero-figure { justify-self: start; width: min(100%, 420px); }
  .practice .statement, .practice-figure, .principles { grid-column: 1 / -1; grid-row: auto; }
  .practice-figure { width: min(100%, 360px); }
  .principles { grid-template-columns: 1fr 1fr; }
  .class-grid, .join, .footer { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 1.25rem; }
  .masthead .btn-small { display: none; }
  .hero-figure { width: calc(100% - 28px); }
  .hero-figure .sun { right: -24px; }
  .principles { grid-template-columns: 1fr; }
  .studies-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
  }
  .studies-row figure { flex: 0 0 62%; scroll-snap-align: start; }
  .studies-row figure:nth-child(even) { margin-top: 0; }
  .teacher-grid { grid-template-columns: 1fr; }
  .teacher:nth-child(2) { margin-top: 0; }
  .facts > div, .bring { grid-template-columns: 1fr; gap: 6px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
