/* Mood follows plumvillage.org: white page, Cormorant Garamond headings,
   a quiet sans for body, thin yellow link underlines, brown accents,
   one yellow call-to-action button. No PV assets are used. */
:root {
  --bg: #FFFFFF;
  --ink: #222222;
  --muted: #666666;
  --brown: #8A5A3C;
  --yellow: #FFE277;
  --yellow-hover: #FFD84A;
  --underline: #F0CF5A;
  --warm: #F7F3EC;
  --rule: #E8E2D6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.75 var(--sans); }

a {
  color: inherit;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
a:hover { text-decoration-color: var(--brown); }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap.wide { max-width: 72rem; }

/* Header: Plum Village | Viet OI Council */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem;
}
.lockup { display: flex; align-items: center; gap: 0.75rem; font-family: var(--serif); font-size: clamp(1.3rem, 4.5vw, 1.7rem); line-height: 1.1; }
.lockup a { text-decoration: none; }
.lockup .pv { font-weight: 600; }
.lockup .sep { width: 1px; align-self: stretch; background: var(--ink); opacity: 0.3; }
.lockup .council { font-style: italic; font-weight: 500; }
/* Nav: language flip first, then Events, Sanghas */
.tools { display: flex; align-items: center; gap: 0.4rem 1.25rem; font-size: 1rem; }
.lang-flip {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.35rem 0.85rem; white-space: nowrap;
  border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff;
}
.lang-flip:hover { border-color: var(--brown); }
.nav-link { display: inline-flex; align-items: center; min-height: 2.5rem; text-decoration: none; white-space: nowrap; }
.nav-link[aria-current] { text-decoration: underline; text-decoration-color: var(--underline); }

.btn {
  display: inline-block; background: var(--yellow); color: var(--ink); text-decoration: none;
  border-radius: 4.5px; padding: 0.45rem 0.9rem; font-size: 1rem; line-height: 1.4;
}
.btn:hover { background: var(--yellow-hover); }
.btn.lg { padding: 0.75rem 1.3rem; font-size: 1.05rem; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.65rem; font-style: italic; color: var(--brown); margin-bottom: 0.4rem; }
p { margin: 0 0 1.1rem; }
.meta { font-size: 1rem; color: var(--muted); margin-bottom: 0.5rem; }

/* Hero: text left, photo right */
.hero { display: grid; gap: 2rem; max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }
.hero .lead { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.6rem); line-height: 1.55; margin-bottom: 1.75rem; }
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding-top: 3rem; }
}

/* Graphics kit (design/roots-heritage-graphics). Illustrations carry their own
   paper background, so they sit on the white page as soft rounded cards. */
.art { display: block; width: 100%; height: auto; border-radius: 10px; }
.areas .art { margin-bottom: 1.25rem; }
.roots-art { margin-bottom: 2rem; }
.lockup .council { display: inline-flex; align-items: center; gap: 0.5rem; }
.lockup .mark { width: 2.1rem; height: 2.1rem; flex: none; }
.bell { display: block; width: 2rem; height: 2rem; margin: 0 auto 0.75rem; color: var(--brown); }

/* Sections */
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--rule); }

/* Retreat call to action */
.retreat { background: var(--warm); text-align: center; border-top: 0; }
.retreat h2 { margin-bottom: 1rem; font-style: italic; }

/* Areas of practice */
.areas { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.25rem 3rem; }
.areas p { margin: 0; }
@media (min-width: 40rem) { .areas { grid-template-columns: 1fr 1fr; } }

blockquote {
  margin: 2rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--underline);
  font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.5;
}

.todo { background: #FFF3C4; padding: 0 0.3rem; border-radius: 3px; }

/* FAQ */
.faq { margin: 0; }
.faq dt { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--brown); margin-top: 1.75rem; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0.4rem 0 0; }

/* Footer: links back to the wider Plum Village family */
.site-footer { background: var(--warm); border-top: 1px solid var(--rule); padding: 3rem 0 3.5rem; font-size: 1rem; line-height: 1.6; }
.footer-grid { display: grid; gap: 2rem 2.5rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.35rem; text-align: left; margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.45rem; }
.site-footer p { margin: 0 0 0.6rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-style: italic; font-size: 1.5rem; }

/* ---------- Sanghas and events pages (2026-11-06) ---------- */
[hidden] { display: none !important; }
.btn { white-space: nowrap; }

/* Photos (from the council's "Viet OI Website" album) */
.photo { display: block; width: 100%; height: auto; border-radius: 10px; object-fit: cover; }
.hero-photo { aspect-ratio: 3 / 2; }
.band-photo, .section-photo { margin: 0 0 2rem; }
.page-photo { aspect-ratio: 16 / 7; margin: 0 0 1.75rem; }

.page-head { padding-top: 2rem; padding-bottom: 2.5rem; }
.page-head h1 { margin-bottom: 1rem; }
.lead-sm { font-size: 1.125rem; max-width: 42rem; }
.stamp { font-size: 0.95rem; color: var(--muted); margin: 0; }
.stamp::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #6A8F5A; margin-right: 0.5rem; vertical-align: 0.1em; }

.count-row { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0 1rem; }
.count-row.center { justify-content: center; }
.count-row .num { font-family: var(--serif); font-size: clamp(3.5rem, 11vw, 4.75rem); line-height: 1; color: var(--brown); }
.count-row .label { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.3; text-align: left; }

.chips { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a, .chips button {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.9rem; min-height: 2.75rem;
  border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff; cursor: pointer;
}
.chips a:hover, .chips button:hover { border-color: var(--brown); }
.chips button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.chips .n { color: var(--muted); font-size: 0.9rem; }
.chips button[aria-pressed="true"] .n { color: var(--ink); }
.filter { margin-top: 1.5rem; }
.filter-label { margin: 0; font-size: 1rem; color: var(--muted); }
.filter .chips { margin-top: 0.5rem; }

/* Sanghas */
.sangha-list { padding-top: 2.5rem; border-top: 0; }
.region { scroll-margin-top: 1rem; }
.region + .region { margin-top: 3rem; }
.region h2 { text-align: left; font-size: 1.8rem; margin: 0 0 1rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.cards li { background: var(--warm); border-radius: 8px; padding: 0.9rem 1.05rem; }
.cards a { font-weight: 500; line-height: 1.4; display: inline-block; }
.cards p { margin: 0.2rem 0 0; font-size: 1rem; color: var(--muted); line-height: 1.5; }

/* Events */
.featured { background: var(--warm); border-radius: 10px; padding: 1.75rem 1.5rem; margin-bottom: 1rem; scroll-margin-top: 1rem; }
.featured .tag { margin-bottom: 0.75rem; }
.featured h2 { text-align: left; font-style: italic; margin-bottom: 0.75rem; }
.featured ul { margin: 0; padding-left: 1.1rem; }
.featured li { margin-bottom: 0.4rem; }
.month { text-align: left; font-size: 1.7rem; margin: 2.75rem 0 0.75rem; }
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.events li { display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.events .date { font-family: var(--serif); line-height: 1.05; text-align: center; color: var(--brown); margin: 0; }
.events .date .d { display: block; font-size: 1.9rem; }
.events .date .m { display: block; font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.events h3 { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 1.125rem; color: var(--ink); line-height: 1.45; margin: 0 0 0.2rem; }
.events p { margin: 0; font-size: 1rem; color: var(--muted); }
.tag { display: inline-block; font-size: 0.85rem; line-height: 1.4; padding: 0.1rem 0.5rem; border-radius: 3px; background: var(--warm); color: var(--brown); margin: 0.3rem 0.35rem 0 0; }
.tag.full { background: #EEE; color: #555; }
.events li.ours { background: #FFF8DA; }
.none-region { margin-top: 2rem; color: var(--muted); }
.yearly-block { margin: 3.5rem 0 1rem; }
.yearly { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.yearly li { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.yearly p { margin: 0; }
.yearly .src { color: var(--muted); font-size: 0.95rem; }
.missing { border-top: 0; margin-top: 3rem; }

/* Homepage bands */
.home-strip { background: var(--warm); text-align: center; padding: 3rem 0; }
.home-strip h2 { margin-bottom: 1.5rem; }
.coming { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; text-align: left; }
@media (min-width: 40rem) { .coming { grid-template-columns: repeat(3, 1fr); } }
.coming li { background: #fff; border-radius: 8px; padding: 1rem 1.1rem; }
.coming .when { font-size: 0.95rem; color: var(--brown); margin: 0 0 0.25rem; }
.coming a { font-weight: 500; }
.coming .where { font-size: 0.95rem; color: var(--muted); margin: 0.25rem 0 0; }

/* ---------- Weekly teaching strip under the hero (2026-11-07; mockup: design/mockups/looks/look-3) ---------- */
.teaching { padding: 0 0 3rem; border-top: 0; }
.teaching-strip { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem 1.25rem; align-items: center; background: var(--warm);
                  border-radius: 10px; padding: 0.85rem; text-decoration: none; color: var(--ink); }
@media (min-width: 48rem) { .teaching-strip { grid-template-columns: 12rem 1fr auto; padding: 1rem; } }
.teaching-strip .thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #2b241f; }
.teaching-strip .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teaching-strip .play { position: absolute; left: 50%; top: 50%; width: 2.4rem; height: 2.4rem; margin: -1.2rem 0 0 -1.2rem; border-radius: 50%;
                        background: rgba(255, 226, 119, 0.95); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.teaching-strip .play::after { content: ""; margin-left: 0.2rem; border-left: 0.7rem solid var(--ink); border-top: 0.45rem solid transparent; border-bottom: 0.45rem solid transparent; }
.teaching-strip .eyebrow, .teaching-strip .talk-meta { display: block; line-height: 1.4; }
.teaching-strip .eyebrow { margin: 0 0 0.3rem; font-size: 0.9rem; color: var(--brown); }
.teaching-strip b { display: block; font-weight: 500; font-size: 1.15rem; line-height: 1.3; }
.teaching-strip .talk-meta { font-size: 0.95rem; margin-top: 0.2rem; color: var(--muted); }
.teaching-strip .cta { grid-column: 1 / -1; justify-self: start; text-decoration: underline; text-decoration-color: var(--underline);
                       text-decoration-thickness: 2px; text-underline-offset: 0.3em; white-space: nowrap; }
.teaching-strip .cta::after { content: " →"; }
.teaching-strip:hover .cta { text-decoration-color: var(--brown); }
@media (min-width: 48rem) { .teaching-strip .cta { grid-column: auto; justify-self: end; } }
.teaching-player { margin-top: 1rem; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.teaching-player iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 47.99rem) { .teaching-strip { grid-template-columns: 7.5rem 1fr; align-items: start; } }
.teaching-stamp { margin: 0.65rem 0 0; }

/* ---------- Learn band and page (2026-11-15): the same cards as “Coming up” ---------- */
.home-strip.learn .stamp { margin-top: 0.25rem; }
.learn-list { padding-top: 2.5rem; border-top: 0; }
/* The reading list: the events list grouped by year; the latest episode in the homepage's teaching strip */
.learn-list .month { margin-top: 2.5rem; }
.learn-list .teaching-strip + .year-group .month, .learn-list .year-group:first-child .month { margin-top: 0; }
.learn-list .kind { font-size: 0.9rem; line-height: 1.4; color: var(--brown); margin: 0 0 0.15rem; }
.learn-list .date .y { display: block; font-size: 1.3rem; padding-top: 0.3rem; letter-spacing: 0.02em; }
.learn-list .teaching-strip { margin-bottom: 2.5rem; }
.teaching-strip.episode .thumb { aspect-ratio: 1 / 1; }
@media (min-width: 48rem) { .teaching-strip.episode { grid-template-columns: 8rem 1fr auto; } }
@media (max-width: 47.99rem) { .teaching-strip.episode { grid-template-columns: 6rem 1fr; } }
.sources .region h2 { margin-top: 0; }
.sources .lead-sm { margin-bottom: 2rem; }
