/*
 * Osho Wisdom site styles.
 * Tokens from projects/osho/DESIGN.md ("The Quiet Room"): Dawn Paper / Ink /
 * Deep Marigold by day, Indigo Night / Warm Cream / Ember at night.
 * Newsreader (reading serif) for what is read, Inter (UI sans) for chrome.
 * Flat: no shadows, no cards; depth only from the tonal container ladder.
 * One accent family, used for links, labels and the milestone beads only.
 */

@font-face {
    font-family: "Newsreader";
    src: url("/osho/fonts/newsreader-var.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/osho/fonts/inter-var.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --ground: #FBF6EC;        /* dawn paper */
    --ink: #2B2118;
    --ink-soft: #6B5D4F;
    --accent: #9A5B00;        /* deep marigold: text-safe accent on paper */
    --fill: #E8890C;          /* saffron: fills only, never text */
    --veil: #F2E8D8;          /* parchment, surfaceVariant */
    --tonal: #F2E1C5;         /* warm umber container (Listen button ground) */
    --on-tonal: #261908;
    --outline: #857463;
    --outline-soft: #E2D5C2;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gutter: 1.5rem;
    --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ground: #15131F;    /* indigo night */
        --ink: #F2E8D5;       /* warm cream */
        --ink-soft: #CDC0AC;
        --accent: #FFB951;    /* ember */
        --fill: #FFB951;
        --veil: #252230;      /* night veil */
        --tonal: #4A3A24;
        --on-tonal: #F2E1C5;
        --outline: #96897A;
        --outline-soft: #34303F;
    }
}

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

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

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--ground);
    font-weight: 600;
    border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.wrap {
    width: 100%;
    max-width: 66rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.125rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.3125rem;
    line-height: 1.3;
}

p { margin: 0; }

.label {
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.4;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

/* The answer-first paragraph reads in the intro serif. */
.answer {
    font-family: var(--serif);
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--ink);
    max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
.prose p, .prose li { color: var(--ink); }

.soft { color: var(--ink-soft); }

/* ---------- Header ---------- */

.topbar { padding: 1rem 0; }

.topbar .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    color: var(--ink);
    text-decoration: none;
}
.brand img { border-radius: 10px; flex-shrink: 0; }
.brand .wordmark {
    font-family: var(--serif);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.2;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0.75rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
}
.site-nav a:hover { background: var(--veil); }
.site-nav a[aria-current="page"] {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.4em;
}

/* ---------- Breadcrumb ---------- */

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--ink-soft);
}
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "\203A"; color: var(--ink-soft); }
.crumbs a {
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

/* ---------- Hero ---------- */

.hero { padding: 1.5rem 0 3rem; }

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 { margin-bottom: 1.25rem; max-width: 18ch; }
.hero .answer { margin-bottom: 1.75rem; }

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}
.cta-note {
    font-size: 0.9375rem;
    color: var(--ink-soft);
    max-width: 24rem;
}

.play-badge {
    display: inline-block;
    border-radius: 8px;
    line-height: 0;
}
.play-badge img { width: 188px; height: 56px; }

.phone {
    border: 1px solid var(--outline-soft);
    border-radius: 1.25rem;
    background: #FBF6EC;
}

.hero-shot { margin: 0 auto; width: min(100%, 20rem); }

@media (min-width: 56rem) {
    .hero { padding: 2.5rem 0 4.5rem; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; }
    .hero-shot { margin: 0; }
}

/* ---------- Sections ---------- */

.section { padding: 2.75rem 0; }
@media (min-width: 56rem) { .section { padding: 3.5rem 0; } }

.section h2 { margin-bottom: 1rem; max-width: var(--measure); }
.section .answer + .prose,
.section .answer + .facts,
.section .answer + .limits,
.section .answer + figure,
.section .answer + .string { margin-top: 1.5rem; }

.split {
    display: grid;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 56rem) {
    .split { grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; }
}
.split > * { min-width: 0; }

/* Feature list: rhythm, not cards. */
.facts {
    display: grid;
    gap: 1.75rem 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 48rem) {
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.facts h3 { margin-bottom: 0.375rem; }
.facts p { color: var(--ink-soft); max-width: 34rem; }

/* The string: the one drawn thread, joining milestone beads (DESIGN.md "The string"). */
.string {
    position: relative;
    margin: 0;
    padding: 0 0 0 2rem;
    list-style: none;
    max-width: 30rem;
}
.string::before {
    content: "";
    position: absolute;
    left: 0.625rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 1.5px;
    background: var(--outline);
}
.string li {
    position: relative;
    min-height: 2.75rem;
    padding: 0.375rem 0;
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.5;
}
.string li::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 0.625rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--veil);
    border: 1px solid var(--outline);
}
.string li.milestone::before {
    left: calc(-1.75rem - 2px);
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-color: var(--accent);
}
.string .note {
    display: block;
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--ink-soft);
}

/* Tonal block (privacy summary): container ladder, no border, no shadow. */
.tonal {
    background: var(--veil);
    color: var(--ink);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 46rem;
}
.tonal .answer { color: var(--ink); }
@media (min-width: 40rem) { .tonal { padding: 2rem 2.25rem; } }

/* ---------- Figures and gallery ---------- */

figure { margin: 0; }

.shot figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.side-shot { width: min(100%, 17rem); }

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gallery li { min-width: 0; }

/* ---------- Lists ---------- */

.limits {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 44rem;
    counter-reset: limit;
}
.limits li {
    position: relative;
    padding: 0.875rem 0 0.875rem 2.75rem;
    counter-increment: limit;
}
.limits li::before {
    content: counter(limit);
    position: absolute;
    left: 0;
    top: 0.875rem;
    width: 1.875rem;
    font-family: var(--serif);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    text-align: right;
}
.limits strong { font-weight: 600; }

.qlinks {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 44rem;
}
.qlinks a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0;
    font-family: var(--serif);
    font-size: 1.1875rem;
    line-height: 1.4;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 46rem; }
.qa { padding: 1.75rem 0; scroll-margin-top: 1rem; }
.qa h2 {
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
    margin-bottom: 0.75rem;
}

/* ---------- Page head (inner pages) ---------- */

.page-head { padding-top: 0.5rem; padding-bottom: 1rem; }
.page-head h1 { margin: 0.75rem 0 1.25rem; }

/* ---------- Closing band ---------- */

.band {
    display: grid;
    gap: 1.5rem;
    justify-items: start;
    padding: 2.5rem 0 0.5rem;
}
.band .mark { width: 4.5rem; height: auto; }
.band h2 { margin: 0; max-width: 22ch; }
.band p { color: var(--ink-soft); max-width: var(--measure); }

/* ---------- Footer ---------- */

.footer {
    margin-top: 3rem;
    padding: 2.5rem 0 3rem;
    background: var(--veil);
    color: var(--ink);
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}
.footer-top p { font-family: var(--serif); font-size: 1.125rem; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    list-style: none;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--ink);
}
.fine { max-width: 52rem; }
.fine p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink-soft);
}
.fine p + p { margin-top: 0.625rem; }
.fine a { color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.after { margin-top: 1.5rem; }
.tonal a { color: var(--ink); }
