/* Yowa Institute: shared styles.
   Concept: the Yowa cosmogram's four moments give the palette; pages are plain, readable, and unhurried. */
:root {
  --bg: #ECEAF1;
  --surface: #F7F6FA;
  --fg: #1F1C36;
  --muted: #5A5774;
  --line: #D3CFE0;
  --btn-bg: #2B2A5E;
  --btn-fg: #F7F6FA;
  --c-conception: #2B2A5E;
  --c-birth: #C46A3A;
  --c-maturity: #D9A21B;
  --c-decomp: #8F3B4B;
  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12112A;
    --surface: #1B1A3A;
    --fg: #ECEAF5;
    --muted: #A9A6C8;
    --line: #37355F;
    --btn-bg: #E6B84A;
    --btn-fg: #12112A;
    --c-conception: #8A87E0;
    --c-birth: #E58A5A;
    --c-maturity: #F0C04A;
    --c-decomp: #C9647A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12112A;
  --surface: #1B1A3A;
  --fg: #ECEAF5;
  --muted: #A9A6C8;
  --line: #37355F;
  --btn-bg: #E6B84A;
  --btn-fg: #12112A;
  --c-conception: #8A87E0;
  --c-birth: #E58A5A;
  --c-maturity: #F0C04A;
  --c-decomp: #C9647A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 65ch; }
p + p { margin-top: 16px; }
a { color: inherit; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--c-maturity); outline-offset: 3px; }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { border-top: 1px solid var(--line); }
.section { padding-block: 64px; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 14px;
}
h1 { font-size: clamp(34px, 5.2vw, 54px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 18px; }
h3 { font-size: 22px; }

/* Header and nav */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 22px; }
.brand { font-family: var(--font-display); font-size: 20px; text-decoration: none; }
.brand small { display: block; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 600; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 24px; font: 600 16px var(--font-body);
  text-decoration: none; background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bg);
}
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn:hover { filter: brightness(1.08); }

/* Page heading (inner pages) */
.page-head { padding-block: 40px 56px; }
.page-head h1 { margin-bottom: 20px; max-width: 18ch; }
.page-head .lede { font-size: 19px; max-width: 60ch; }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); margin-bottom: 22px; }
.hero .lede { font-size: 19px; margin-bottom: 14px; }
.hero .note { font-size: 15px; color: var(--muted); }

/* Cosmogram */
.cosmo { width: 100%; max-width: 420px; margin-inline: auto; }
.cosmo svg { width: 100%; height: auto; display: block; }
.cosmo .ring-dots { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 9; }
.cosmo .ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.cosmo .arm { stroke: var(--fg); stroke-width: 2.5; stroke-linecap: round; }
.cosmo .hub { fill: var(--bg); stroke: var(--fg); stroke-width: 2.5; }
.cosmo .disc { transition: transform 0.25s ease; transform-box: fill-box; transform-origin: center; }
.cosmo .disc.on { transform: scale(1.4); }
.d-conception { fill: var(--c-conception); }
.d-birth { fill: var(--c-birth); }
.d-maturity { fill: var(--c-maturity); }
.d-decomp { fill: var(--c-decomp); }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split.wide-left { grid-template-columns: 1.2fr 0.8fr; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid.small { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; color: var(--muted); }
.card .kik { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 10px; vertical-align: -1px; }
.card:hover, .card:focus-within { border-color: var(--fg); }

/* Offering sections */
.offering { padding-block: 56px; }
.offering .for { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.offering h2 { margin-bottom: 16px; }
.facts { list-style: none; padding: 0; display: grid; gap: 10px; }
.facts li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); font-size: 15.5px; }
.facts li strong { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.seasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.season { font: 500 14px var(--font-body); border: 1px solid var(--fg); padding: 5px 12px; }
.season .dot { width: 9px; height: 9px; margin-right: 7px; }
.bullets { padding-left: 20px; display: grid; gap: 6px; max-width: 65ch; }
.past { columns: 2 280px; column-gap: 32px; padding-left: 20px; max-width: none; }
.past li { break-inside: avoid; margin-bottom: 8px; }

/* Pricing */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
thead th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
td.std { font-weight: 600; }
.callout { border-left: 3px solid var(--fg); padding: 4px 0 4px 20px; }
.callout h3 { margin-bottom: 6px; }
.callout p { color: var(--muted); font-size: 16px; }
.tiers { display: grid; gap: 14px; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 600 18px var(--font-body); list-style-position: outside; }
.faq details[open] summary { margin-bottom: 10px; }
.faq details p { color: var(--muted); }

/* Placeholders (draft only) */
.placeholder { border: 2px dashed var(--muted); padding: 20px 22px; color: var(--muted); font-size: 15.5px; background: transparent; }
.placeholder strong { color: var(--fg); }

/* Contact band */
.addr {
  display: inline-block; margin-top: 20px; padding: 14px 20px; font: 600 18px var(--font-body);
  border: 2px solid var(--fg); text-decoration: none; overflow-wrap: anywhere;
}
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; }
footer { padding-block: 32px 48px; font-size: 14px; color: var(--muted); }
footer p { max-width: 75ch; }
footer p + p { margin-top: 10px; }

@media (max-width: 820px) {
  .hero, .split, .split.wide-left { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-block: 24px 48px; }
  .cosmo { max-width: 320px; }
  .section { padding-block: 48px; }
  .offering { padding-block: 40px; }
  .page-head { padding-block: 24px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cosmo .disc { transition: none; }
}
