/* =========================================================
   yogasana.ro — doar text
   ========================================================= */

:root {
  --bg:          #FFFFFF;
  --ink:         #1C1713;
  --ink-2:       #4B433D;
  --muted:       #7C736B;
  --rule:        #E8E4DF;
  --rule-strong: #CFC8C0;

  --serif: "Brygada 1918", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --deva:  "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;

  --measure: 44rem;
  --pad: clamp(22px, 5vw, 48px);
  --gap: clamp(72px, 11vh, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1rem + 0.2vw, 19.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

.shell {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 { letter-spacing: -0.012em; }
h2 { letter-spacing: -0.008em; }
p  { margin: 0 0 1.3em; }
p:last-child { margin-bottom: 0; }
em, i { font-style: italic; }
b, strong { font-weight: 600; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--rule-strong); transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }

.deva { font-family: var(--deva); font-weight: 400; }
.translit { font-style: italic; }

.label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-style: italic; color: var(--ink-2); font-size: 1.08em; }
.note { font-size: 0.92em; color: var(--muted); }
.row-links a + a::before { content: "·"; margin: 0 0.6em; color: var(--muted); text-decoration: none; display: inline-block; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; z-index: 100; }
.skip:focus { left: 0; }

/* ---------------- antet ---------------- */

.topbar .shell {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px 28px;
  padding-top: clamp(26px, 4vh, 40px);
}
/* linia stă în coloana textului, nu pe toată lățimea */
.topbar .shell::after { content: ""; flex-basis: 100%; height: 1px; background: var(--rule); margin-top: clamp(6px, 2vh, 14px); }
.wordmark { font-size: 1.3rem; text-decoration: none; }
.wordmark span { color: var(--muted); }
.topnav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.97rem; }
.topnav a { text-decoration: none; color: var(--ink-2); }
.topnav a:hover { color: var(--ink); text-decoration: underline; }
.topnav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); }
@media (max-width: 560px) { .topnav { margin-left: 0; width: 100%; } }

/* ---------------- deschidere ---------------- */

.hero, .pagehead { padding-top: clamp(52px, 9vh, 100px); }

.sutra { margin-bottom: clamp(40px, 6vh, 64px); }
.sutra .ro {
  display: block; font-style: italic;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.4;
  max-width: 34ch;
}
.sutra .sig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 10px; color: var(--ink-2); font-size: 0.98rem; }
.sutra .src { display: block; margin-top: 8px; }

.hero h1, .pagehead h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem); line-height: 1.08;
  margin-bottom: clamp(24px, 4vh, 36px);
}
.hero p, .pagehead p { max-width: 60ch; }
.pagehead .label { display: block; margin-bottom: 14px; }

/* ---------------- secțiuni ---------------- */

.section { margin-top: var(--gap); }
.section h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.18; margin-bottom: clamp(18px, 3vh, 26px); max-width: 24ch; }
.section .label { display: block; margin-bottom: 10px; }
.section p { max-width: 62ch; }
.section .after { margin-top: 26px; }

/* liste cu linii */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rows li b { font-weight: 500; }
.rows li .d { color: var(--ink-2); }

/* cele cinci repere ale unei clase */
.repere { list-style: none; counter-reset: rep; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.repere li {
  counter-increment: rep;
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 12px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.repere li::before { content: counter(rep, upper-roman); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.15em; font-size: 0.95em; }
.repere .nm { font-size: 1.12em; }
.repere .sa { font-style: italic; color: var(--ink-2); margin-left: 10px; white-space: nowrap; }
.repere .sa .deva { font-style: normal; margin-left: 8px; }
.repere p { margin: 3px 0 0; color: var(--ink-2); }
@media (max-width: 480px) { .repere .sa { display: block; margin-left: 0; white-space: normal; } }

/* ---------------- program ---------------- */

.table-scroll { overflow-x: auto; }
.sched { width: 100%; border-collapse: collapse; }
.sched th {
  text-align: left; font-weight: 400;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  padding: 0 18px 12px 0; border-bottom: 1px solid var(--rule-strong); white-space: nowrap;
}
.sched td { padding: 17px 18px 17px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.sched th:last-child, .sched td:last-child { padding-right: 0; text-align: right; }
.sched .day, .sched .dur { white-space: nowrap; }
.sched .time { font-size: 1.18em; font-variant-numeric: tabular-nums; }
.sched .cls i { display: block; font-size: 0.94em; color: var(--muted); }
.sched .dur { color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .sched thead { display: none; }
  .sched tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
  .sched tbody tr:first-child { border-top: 1px solid var(--rule-strong); }
  .sched td { display: block; padding: 0; border: 0; }
  .sched .day { grid-column: 1; grid-row: 1; }
  .sched .time { grid-column: 2; grid-row: 1; text-align: right; }
  .sched .cls { grid-column: 1; grid-row: 2; color: var(--ink-2); }
  .sched .cls i { display: inline; }
  .sched .cls i::before { content: " · "; }
  .sched .dur { grid-column: 2; grid-row: 2; text-align: right; }
}

/* ---------------- tarife ---------------- */

.prices { border-top: 1px solid var(--rule-strong); }
.price {
  display: grid; grid-template-columns: 1fr auto; gap: 0 32px; align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid var(--rule);
}
.price .what small { display: block; color: var(--muted); font-size: 0.92em; margin-top: 2px; }
.price .amt { font-size: 1.18em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- ghiduri ---------------- */

.guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.guides li { border-bottom: 1px solid var(--rule); }
.guides a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 22px;
  padding: 15px 0; text-decoration: none;
}
.guides .k { flex: 0 0 7.2rem; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.guides .t { font-size: 1.08em; }
.guides a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 520px) { .guides .k { flex-basis: 100%; } }

/* ---------------- contact ---------------- */

.contact { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px clamp(32px, 6vw, 72px); margin: 0; }
.contact dt { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact dd { margin: 0; }
@media (max-width: 600px) { .contact { grid-template-columns: 1fr; } }

/* ---------------- articol ---------------- */

.article { padding-top: clamp(48px, 8vh, 88px); }
.article .meta { color: var(--muted); font-size: 0.92em; margin-bottom: 18px; }
.article h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; margin-bottom: clamp(28px, 4vh, 40px); }

.prose p { line-height: 1.62; margin: 0 0 1.3em; }
.prose h2 { font-size: 1.45em; line-height: 1.25; margin: 2em 0 0.65em; }
.prose h2 .deva { font-size: 0.9em; }
.prose h2 .num { color: var(--muted); margin-right: 0.5em; font-variant-numeric: tabular-nums; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.3em; }
.prose ul li { position: relative; padding-left: 1.4em; margin: 0.45em 0; line-height: 1.55; }
.prose ul li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.prose strong { font-weight: 600; }
.prose a.ref { font-size: 0.72em; vertical-align: super; line-height: 0; text-decoration: none; color: var(--muted); margin-left: 1px; }
.prose a.ref:hover { color: var(--ink); }

.postnav { display: flex; justify-content: space-between; gap: 28px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--rule); }
.postnav a { text-decoration: none; max-width: 46%; }
.postnav a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.postnav .label { display: block; margin-bottom: 3px; }
.postnav .t { font-size: 1.05em; line-height: 1.35; }
.postnav .next { margin-left: auto; text-align: right; }
@media (max-width: 520px) {
  .postnav { flex-direction: column; gap: 18px; }
  .postnav a { max-width: none; }
  .postnav .next { margin-left: 0; text-align: left; }
}

/* ---------------- încheiere ---------------- */

.closing { margin-top: var(--gap); padding-top: 30px; border-top: 1px solid var(--rule-strong); }
.closing h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); line-height: 1.2; margin-bottom: 12px; }
.closing p { margin: 0; max-width: 60ch; }
.closing p + p { margin-top: 8px; }
.closing .contact { margin-top: 28px; }

/* ---------------- subsol ---------------- */

.foot { margin-top: clamp(64px, 10vh, 96px); }
.foot .shell {
  padding-bottom: 60px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px;
  font-size: 0.92rem; color: var(--muted);
}
.foot .shell::before { content: ""; flex-basis: 100%; height: 1px; background: var(--rule); margin-bottom: 14px; }
.foot .tag { font-style: italic; color: var(--ink-2); }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot .links a { text-decoration: none; }
.foot .links a:hover { text-decoration: underline; }
.foot .small { margin-left: auto; }

@media (prefers-reduced-motion: reduce) { a { transition: none; } }
