/* Open Space for the Heart — Mingjie Zhai / Break Your Heart Open.
   Loaded AFTER theme.css by every page template that opts in (index.html, pages-wide.html).
   Palette and roles follow DESIGN_PLAN.md section 6; text pairings were contrast-checked:
   Midnight/Slate/Ocean on Paper or White, White on Midnight or Turquoise deep, Aqua on Midnight.
   Pale Aqua and Sky are never used for small text. */

@font-face {
  font-family: 'Lora';
  src: url('../assets/fonts/lora-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../assets/fonts/lora-var-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../assets/fonts/source-sans-3-var.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --oh-paper: #F5FBFA;
  --oh-white: #FFFFFF;
  --oh-mist: #E2F3F2;
  --oh-sky: #BDE5F4;
  --oh-aqua: #66D5D1;
  --oh-turquoise: #087E83;
  --oh-turquoise-dark: #06666A;
  --oh-ocean: #135A75;
  --oh-midnight: #102E42;
  --oh-slate: #405C68;
  --oh-border: #78999D;
  --oh-rule: rgba(16, 46, 66, 0.14);
  --oh-error: #A3262A;
  --oh-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --oh-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --oh-container: 1200px;
  --oh-gutter: 20px;
  --oh-section-y: 56px;
  --oh-radius: 8px;
  --oh-radius-media: 16px;
  --header-h: 63px;
}
@media (max-width: 340px) { :root { --oh-gutter: 16px; } }
@media (min-width: 768px) { :root { --oh-gutter: 32px; --oh-section-y: 72px; --header-h: 71px; } }
@media (min-width: 1200px) { :root { --oh-gutter: 48px; --oh-section-y: 104px; --header-h: 79px; } }

/* ---------- base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body.oh {
  background: var(--oh-paper);
  color: var(--oh-midnight);
  font-family: var(--oh-sans);
  font-size: 18px;
  line-height: 1.6;
}
.oh h1, .oh h2 { font-family: var(--oh-serif); font-weight: 500; letter-spacing: -0.01em; color: var(--oh-midnight); }
.oh h3, .oh h4 { font-family: var(--oh-sans); font-weight: 600; letter-spacing: 0; color: var(--oh-midnight); }
.oh p { color: inherit; }
.oh main :focus-visible, .oh header :focus-visible, .oh footer :focus-visible, .oh dialog :focus-visible {
  outline: 3px solid var(--oh-ocean);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--oh-white);
  border-radius: 4px;
}
.oh .oh-dark :focus-visible { outline-color: var(--oh-aqua); box-shadow: 0 0 0 6px var(--oh-midnight); }
.oh-main { display: block; }
.oh-main:focus { outline: none; }

.oh-skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--oh-midnight); color: var(--oh-white);
  padding: 12px 16px; border-radius: var(--oh-radius); font-weight: 600;
}
.oh-skip:focus { top: 12px; }

/* The theme content marker wraps a page body in .post-detail-body; let the page own its layout. */
.oh-main .post-detail-body, .oh-main .post-detail { max-width: none; margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.oh-main .post-detail-body h3 { border-top: 0; padding-top: 0; margin: 0; font-size: inherit; }
.oh-main .post-detail-body p { margin: 0; }
.oh-main .post-detail-body ul, .oh-main .post-detail-body ol { margin: 0; }

/* ---------- header ---------- */
.oh .wrap { max-width: calc(var(--oh-container) + 2 * var(--oh-gutter)); padding-inline: var(--oh-gutter); }
.oh .site-header { background: var(--oh-paper); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--oh-rule); }
.oh-masthead { font-family: var(--oh-serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--oh-midnight); white-space: nowrap; }
.oh .main-nav { gap: 28px; }
.oh .main-nav a { font-size: 17px; font-weight: 600; color: var(--oh-midnight); padding-block: 8px; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.oh .main-nav a:hover { color: var(--oh-ocean); text-decoration: underline; text-decoration-color: var(--oh-aqua); }
.oh .main-nav a[aria-current="page"], .oh .main-nav .is-active > a, .oh .main-nav .is-current > a { color: var(--oh-midnight); text-decoration: underline; text-decoration-color: var(--oh-turquoise); }
.oh .nav-actions { gap: 12px; }
/* Beats theme.css's `.nav-actions .nav-toggle { width: 38px; padding: 0 }` icon-only sizing. */
.oh .nav-actions .oh-menu-btn { width: auto; min-width: 44px; padding: 0 14px 0 12px; }
.oh-menu-btn { gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--oh-radius); border: 1px solid var(--oh-border); background: var(--oh-white); color: var(--oh-midnight); font: 600 16px/1 var(--oh-sans); }
.oh .mnav-panel { background: var(--oh-paper); color: var(--oh-midnight); font-family: var(--oh-sans); }
/* Sized to its label and inset to line up with the menu links below it. */
.oh .oh-mnav-cta { align-self: flex-start; width: auto; margin: 16px 24px 4px; }
@media (max-width: 520px) { .oh .nav-actions .nav-cta { display: none; } }

/* ---------- buttons ---------- */
.oh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--oh-radius);
  font: 600 17px/1.2 var(--oh-sans); text-align: center; text-decoration: none !important;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.oh-btn-primary { background: var(--oh-turquoise); color: var(--oh-white) !important; }
.oh-btn-primary:hover { background: var(--oh-turquoise-dark); }
.oh-btn-primary:active { background: var(--oh-midnight); }
.oh-btn-secondary { background: transparent; color: var(--oh-ocean) !important; border-color: var(--oh-ocean); }
.oh-btn-secondary:hover { background: var(--oh-mist); }
.oh-dark .oh-btn-secondary { color: var(--oh-white) !important; border-color: var(--oh-aqua); }
.oh-dark .oh-btn-secondary:hover { background: rgba(102, 213, 209, 0.12); }
.nav-cta.oh-btn { min-height: 44px; padding: 10px 18px; font-size: 16px; }

/* ---------- sections ---------- */
.oh-section {
  padding-block: var(--oh-section-y);
  padding-inline: max(var(--oh-gutter), calc((100% - var(--oh-container)) / 2));
}
.oh-section + .oh-section:not([class*="oh-bg-"]) { border-top: 1px solid var(--oh-rule); }
.oh-bg-mist { background: var(--oh-mist); }
.oh-bg-sky { background: linear-gradient(160deg, var(--oh-sky), var(--oh-mist)); }
.oh-bg-white { background: var(--oh-white); }
.oh-dark { background: var(--oh-midnight); color: var(--oh-white); }
.oh-dark h1, .oh-dark h2, .oh-dark h3 { color: var(--oh-white); }
.oh-dark a:not(.oh-btn) { color: var(--oh-aqua) !important; }

.oh-eyebrow { display: block; font: 600 15px/1.4 var(--oh-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--oh-ocean); margin-bottom: 16px; }
.oh-dark .oh-eyebrow { color: var(--oh-aqua); }
.oh-main h1 { font-size: clamp(38px, 3.2vw + 26px, 70px); line-height: 1.1; margin: 0 0 24px; max-width: 18ch; }
.oh-main h2 { font-size: clamp(30px, 1.5vw + 24px, 46px); line-height: 1.2; margin: 0 0 20px; max-width: 24ch; }
.oh-main h3 { font-size: clamp(22px, 0.6vw + 19px, 28px); line-height: 1.3; margin: 0 0 12px; }
.oh-lead { font-size: clamp(20px, 0.3vw + 19px, 22px); line-height: 1.5; max-width: 60ch; }
.oh-main p + p { margin-top: 16px; }
.oh-measure { max-width: 66ch; }
.oh-muted { color: var(--oh-slate) !important; }
.oh-dark .oh-muted { color: #D5E7EA !important; }
.oh-small { font-size: 16px; line-height: 1.5; }
.oh-head { margin-bottom: 40px; }
.oh-head > :last-child { margin-bottom: 0; }
.oh-main a:not(.oh-btn) { color: var(--oh-ocean); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 150ms ease; }
.oh-main a:not(.oh-btn):hover { text-decoration-thickness: 2px; }
.oh-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 32px; }
.oh-more { display: inline-block; margin-top: 24px; font-weight: 600; }
.oh-rule { border: 0; border-top: 1px solid var(--oh-rule); margin: 40px 0; }

/* ---------- hero ---------- */
.oh-hero { display: grid; gap: 40px; align-items: center; padding-block: 48px 64px; }
.oh-hero .oh-lead { margin-bottom: 0; }
.oh-hero-note { margin-top: 20px; font-size: 16px; color: var(--oh-slate); max-width: 52ch; }
.oh-hero-art { margin: 0; }
.oh-hero-art svg { display: block; width: 100%; height: auto; border-radius: var(--oh-radius-media); background: linear-gradient(160deg, var(--oh-sky), var(--oh-mist) 55%, #B8E6E3); }
@media (min-width: 900px) {
  .oh-hero { grid-template-columns: 7fr 5fr; gap: 64px; padding-block: 72px 96px; }
  .oh-hero-art svg { aspect-ratio: 4 / 5; }
}
@media (max-width: 899px) { .oh-hero-art svg { aspect-ratio: 3 / 2; } }

/* page intro (non-home pages) */
.oh-intro { padding-block: 64px 48px; }
@media (min-width: 1200px) { .oh-intro { padding-block: 96px 64px; } }
.oh-intro .oh-lead { color: var(--oh-midnight); }
.oh-jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding: 0; list-style: none; }

/* ---------- layout helpers ---------- */
.oh-split, .oh-grid-2, .oh-grid-3 { display: grid; gap: 32px; }
@media (min-width: 768px) {
  .oh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .oh-split { grid-template-columns: 5fr 7fr; gap: 48px; }
}
@media (min-width: 1024px) { .oh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* experience steps */
.oh-steps { list-style: none; padding: 0; margin: 0; counter-reset: oh-step; }
.oh-step { counter-increment: oh-step; padding: 24px 0; border-top: 1px solid var(--oh-rule); }
.oh-step::before { content: counter(oh-step, decimal-leading-zero); display: block; font: 500 18px/1 var(--oh-serif); color: var(--oh-turquoise); margin-bottom: 12px; }
.oh-step p { color: var(--oh-slate); }
@media (min-width: 1024px) { .oh-step { padding: 28px 24px 0 0; } }

.oh-notice { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 20px 24px; border-radius: var(--oh-radius); background: var(--oh-white); border: 1px solid var(--oh-rule); }
.oh-notice svg { flex: 0 0 28px; width: 28px; height: 28px; color: var(--oh-ocean); margin-top: 2px; }
.oh-notice p { margin: 0; }

/* cards */
.oh-card { background: var(--oh-white); border: 1px solid var(--oh-rule); border-radius: var(--oh-radius-media); padding: 24px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .oh-card { padding: 32px; } }
.oh-card > .oh-btn, .oh-card > .oh-actions { margin-top: auto; }
.oh-card p:last-of-type { margin-bottom: 24px; }
.oh-card-label { font: 600 15px/1.4 var(--oh-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--oh-ocean); margin-bottom: 8px; }

/* price option */
.oh-price { font: 500 clamp(44px, 2vw + 36px, 56px)/1 var(--oh-serif); color: var(--oh-midnight); margin: 8px 0 4px; }
.oh-price-note { font-size: 16px; color: var(--oh-slate); margin-bottom: 20px !important; }
.oh-check { list-style: none; padding: 0; margin: 0 0 24px !important; display: grid; gap: 10px; }
.oh-check li { position: relative; padding-left: 28px; }
.oh-check li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--oh-turquoise); border-bottom: 2px solid var(--oh-turquoise); transform: rotate(-45deg); }
.oh-dark .oh-check li::before { border-color: var(--oh-aqua); }

/* founder profile */
.oh-creds { list-style: none; padding: 0; margin: 24px 0 0 !important; display: grid; gap: 0; border-top: 1px solid var(--oh-rule); }
.oh-creds li { padding: 14px 0; border-bottom: 1px solid var(--oh-rule); }
.oh-creds strong { display: block; font-weight: 600; }

/* atmosphere chapter */
.oh-chapter { display: grid; gap: 40px; align-items: center; }
.oh-chapter svg { width: 100%; height: auto; display: block; }
@media (min-width: 900px) { .oh-chapter { grid-template-columns: 6fr 5fr; gap: 64px; } }
.oh-dark p { color: #E7F1F3; }

/* coaching panel: visibly separate from BYHO events */
.oh-panel { border-left: 4px solid var(--oh-aqua); background: var(--oh-white); border-radius: 0 var(--oh-radius-media) var(--oh-radius-media) 0; padding: 32px 24px; }
@media (min-width: 768px) { .oh-panel { padding: 40px 48px; } }

/* timeline */
.oh-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.oh-timeline li { display: grid; gap: 4px 32px; padding: 24px 0; border-top: 1px solid var(--oh-rule); }
@media (min-width: 768px) { .oh-timeline li { grid-template-columns: 160px 1fr; } }
.oh-timeline .oh-when { font: 500 24px/1.2 var(--oh-serif); color: var(--oh-turquoise); }

/* FAQ disclosure */
.oh-faq { border-top: 1px solid var(--oh-rule); max-width: 820px; }
.oh-faq details { border-bottom: 1px solid var(--oh-rule); }
.oh-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 44px; cursor: pointer; list-style: none; font: 600 19px/1.4 var(--oh-sans); color: var(--oh-midnight); }
.oh-faq summary::-webkit-details-marker { display: none; }
.oh-faq summary::after { content: '+'; flex: 0 0 auto; font: 400 26px/1 var(--oh-sans); color: var(--oh-ocean); }
.oh-faq details[open] > summary::after { content: '\2212'; }
.oh-faq details > div { padding: 0 0 24px; max-width: 66ch; color: var(--oh-slate); }
.oh-faq-group { margin-top: 48px; }
.oh-faq-group:first-child { margin-top: 0; }
.oh-faq-group h2 { font-size: clamp(26px, 1vw + 22px, 34px); margin-bottom: 16px; }

/* prose (privacy etc.) */
.oh-prose { max-width: 70ch; }
.oh-prose h2 { font-size: clamp(26px, 1vw + 22px, 34px); margin: 48px 0 16px; }
.oh-prose h2:first-child { margin-top: 0; }
.oh-prose ul { padding-left: 1.2em; margin: 16px 0 !important; }
.oh-prose li + li { margin-top: 8px; }

/* ---------- forms (native Tovu form embeds) ---------- */
.oh-form { background: var(--oh-white); border: 1px solid var(--oh-rule); border-radius: var(--oh-radius-media); padding: 24px; max-width: 720px; }
@media (min-width: 768px) { .oh-form { padding: 40px; } }
.oh-form form { display: grid; gap: 22px; }
.oh-form label, .oh-form legend { font: 600 17px/1.4 var(--oh-sans); color: var(--oh-midnight); }
.oh-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.oh-form input[type="text"], .oh-form input[type="email"], .oh-form input[type="tel"], .oh-form input[type="url"], .oh-form input[type="number"], .oh-form select, .oh-form textarea {
  display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 14px;
  font: 400 18px/1.4 var(--oh-sans); color: var(--oh-midnight);
  background: var(--oh-white); border: 1px solid var(--oh-border); border-radius: var(--oh-radius);
}
.oh-form textarea { min-height: 140px; resize: vertical; }
.oh-form input:focus-visible, .oh-form textarea:focus-visible, .oh-form select:focus-visible { border-color: var(--oh-ocean); }
.oh-form input[type="checkbox"], .oh-form input[type="radio"] { width: 22px; height: 22px; accent-color: var(--oh-turquoise); margin: 0 10px 0 0; flex: 0 0 auto; }
/* Single checkbox fields render label-then-input; put the box first, beside its label. */
.oh-form .widget-form-field-checkbox { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 4px 0; }
.oh-form .widget-form-field-checkbox > input { grid-column: 1; grid-row: 1; margin-top: 2px; }
.oh-form .widget-form-field-checkbox > label { grid-column: 2; grid-row: 1; font-weight: 400; cursor: pointer; }
.oh-form .widget-form-field-checkbox > .widget-form-field-error { grid-column: 1 / -1; }
.oh-form [aria-invalid="true"] { border-color: var(--oh-error) !important; border-width: 2px !important; }
.oh-form small, .oh-form [class*="help"], .oh-form [class*="hint"] { display: block; font-size: 16px; line-height: 1.5; color: var(--oh-slate); font-weight: 400; margin-top: 4px; }
.oh-form [class*="error"]:not(input):not(textarea) { color: var(--oh-error); font-size: 16px; font-weight: 600; }
.oh-form button[type="submit"], .oh-form input[type="submit"] {
  justify-self: start; min-height: 48px; padding: 12px 28px; border: 0; border-radius: var(--oh-radius);
  background: var(--oh-turquoise); color: var(--oh-white); font: 600 17px/1.2 var(--oh-sans); cursor: pointer;
  transition: background-color 150ms ease;
}
.oh-form button[type="submit"]:hover { background: var(--oh-turquoise-dark); }
.oh-form button[type="submit"][disabled] { opacity: 0.7; cursor: progress; }
@media (max-width: 767px) { .oh-form button[type="submit"] { justify-self: stretch; width: 100%; } }
.oh-form-note { margin-top: 20px; font-size: 16px; color: var(--oh-slate); max-width: 720px; }

/* ---------- footer ---------- */
.oh .site-footer { background: var(--oh-mist); border-top: 1px solid var(--oh-rule); padding: 56px 0 32px; }
.oh-footer-grid { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 768px) { .oh-footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; } }
.oh-footer-name { font: 500 24px/1.2 var(--oh-serif); margin-bottom: 8px; }
.oh-footer-id p:not(.oh-footer-name) { font-size: 16px; color: var(--oh-slate); max-width: 34ch; }
.oh-footer-links a, .oh-footer-links li a { display: block; font-size: 17px; color: var(--oh-midnight); padding: 6px 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.oh-footer-links a:hover { text-decoration-color: var(--oh-turquoise); }
.oh-footer-links ul { list-style: none; margin: 0; padding: 0; }
.oh-footer-cta p { font-size: 17px; margin-bottom: 16px; }
.oh .footer-bottom { font-size: 15px; color: var(--oh-slate); border-top: 1px solid var(--oh-rule); flex-wrap: wrap; gap: 8px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .oh *, .oh *::before, .oh *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
