/* shir.earth — echoes the shirmeira.com look: cream ground, color-pencil hero art, blue and teal wave bands.
   Fonts: Aktiv Grotesk + Aktiv Grotesk Hebrew (Adobe Fonts kit xag5jnr), Hanken Grotesk as fallback; Frank Ruhl Libre is the Hebrew serif option. */
:root {
  --cream: #eae6dd; --cream-2: #f4f1ea; --ink: #262523; --ink-soft: #4a4744; --muted: #6f6a63;
  --blue: #34669b; --blue-deep: #274f7a; --teal: #7ab5b1; --teal-deep: #4f8f8a; --line: rgba(38, 37, 35, .14);
  --font: 'aktiv-grotesk', 'aktiv-grotesk-hebrew', 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --he-sans: 'aktiv-grotesk-hebrew', 'aktiv-grotesk', 'Hanken Grotesk', Arial, sans-serif; --he: 'Frank Ruhl Libre', serif;
  --wrap: 1120px; --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; letter-spacing: -.005em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 1.6em 0 .5em; }
h3 { font-size: clamp(21px, 2.2vw, 25px); margin: 1.4em 0 .4em; }
h4 { font-size: 19px; font-weight: 600; margin: 1.2em 0 .3em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; }
.muted { color: var(--muted); } .small { font-size: 15px; } .center { text-align: center; }

/* top bar */
.topbar { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 22px; padding: 18px var(--gutter); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand img { width: 62px; height: auto; }
.brand span { font-weight: 500; font-size: 17px; letter-spacing: .01em; }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: #fff; text-decoration: none; font-size: 17px; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; }
.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: .7em; opacity: .8; }
.sub { position: absolute; top: 100%; left: -14px; min-width: 250px; padding: 10px 0 !important; background: var(--cream-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 7px 16px; color: var(--ink); font-size: 16px; }
.sub a:hover { background: rgba(52,102,155,.08); text-decoration: none; }
.tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.ext { margin-left: 4px; opacity: .55; }
.pill { flex: none; color: #fff; text-decoration: none; border: 1.5px solid rgba(255,255,255,.75); border-radius: 99px; padding: 10px 22px; font-size: 16px; }
.pill:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-toggle, .nav-btn { display: none; }
@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; }
  .nav-btn { display: block; order: 3; width: 44px; height: 44px; cursor: pointer; position: relative; }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; content: ""; }
  .nav-btn span { top: 21px; } .nav-btn span::before { top: -8px; left: 0; } .nav-btn span::after { top: 8px; left: 0; }
  .pill { order: 2; margin-left: auto; padding: 8px 16px; font-size: 15px; }
  .nav-btn { margin-left: 6px; }
  .nav { order: 4; flex-basis: 100%; display: none; background: var(--cream-2); border-radius: 14px; padding: 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav > ul { display: block; }
  .nav a { color: var(--ink); display: block; padding: 8px 0; }
  .sub { position: static; display: block; box-shadow: none; background: none; padding: 0 0 6px 14px !important; min-width: 0; }
  .sub a { padding: 5px 0; font-size: 15px; color: var(--ink-soft); }
  .has-sub > a::after { content: ""; }
  .brand span { display: none; }
}

/* hero */
.hero { position: relative; color: #fff; background: #3c3a52 url(/img/hero.jpg) center/cover; padding: 130px var(--gutter) 90px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,32,50,.62), rgba(30,32,50,.38)); }
.hero-in { position: relative; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin: .1em 0 .25em; max-width: 18em; }
.hero .eyebrow { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 0; opacity: .9; }
.hero .eyebrow a { color: inherit; }
.hero .lede { font-size: clamp(19px, 2vw, 22px); max-width: 36em; margin: 0; opacity: .95; }
.hero .lede a { color: #fff; }
.hero .tagline { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 .6em; }
.hero-small { padding-bottom: 76px; }
.hero-big { padding-top: 150px; padding-bottom: 120px; }
.hero-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.portrait { width: 100%; max-width: 420px; justify-self: end; aspect-ratio: 9 / 10; object-fit: cover; }
@media (max-width: 760px) { .hero-split { grid-template-columns: 1fr; } .portrait { justify-self: start; max-width: 340px; } .hero { padding-top: 120px; } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46px; fill: var(--cream); }

/* bands */
.band { padding: clamp(48px, 7vw, 88px) var(--gutter); }
.band-cream { background: var(--cream); }
.band-teal { background: var(--teal); }
.band-blue { background: var(--blue); color: #fff; }
.band-blue a { color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap.narrow, .narrow { max-width: 760px; }
main > .wrap, main > .cards { padding: clamp(36px, 5vw, 64px) var(--gutter) 64px; }
.band h2:first-child, .band .wrap > h2:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.side-photo { width: 100%; max-width: 340px; justify-self: end; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } .side-photo { justify-self: start; } }

/* marquee */
.marquee { overflow: hidden; padding: 22px 0; position: relative; }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 70s linear infinite; font-size: clamp(22px, 2.6vw, 30px); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; white-space: normal; width: auto; padding: 0 var(--gutter); gap: 8px 32px; } .marquee-track span[aria-hidden] { display: none; } }

/* prose */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) 72px; }
main > .prose:first-child, .chips + .prose { padding-top: clamp(28px, 4vw, 48px); }
.prose > :first-child { margin-top: 0; }
.prose img { display: block; margin: 1.6em 0; border-radius: 4px; }
.prose em img, .prose p > img { margin: 1.2em 0 .4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 3px solid var(--teal); color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .date, .date { color: var(--muted); font-size: 15px; }
[dir=rtl], .he { font-family: var(--he); }
.back { margin-top: 3em; }
.tags { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2.4em; }
.tags li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
.draft-note { background: #fff6d6; border: 1px dashed #c9a640; padding: 12px 16px; border-radius: 8px; font-size: 16px; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0; }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; padding: 12px 24px; border-radius: 99px; font-size: 16px; border: 1.5px solid var(--blue); }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: rgba(52,102,155,.08); color: var(--blue-deep); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-light:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-small { padding: 7px 16px; font-size: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; margin: 0 auto; padding: 36px var(--gutter) 0; }
.chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--cream-2); font-size: 15px; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.chip { font-size: 13px; white-space: nowrap; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0 0 24px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--cream-2); border-radius: 14px; color: var(--ink); text-decoration: none; overflow: hidden; border: 1px solid transparent; transition: transform .2s, border-color .2s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c, var(--blue)); }
.card:hover { transform: translateY(-2px); border-color: var(--c, var(--blue)); color: var(--ink); }
.card .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 2px 0 2px; font-size: 25px; }
.card h3 .he { color: var(--muted); font-size: .8em; margin-left: .3em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card .go { margin-top: auto; padding-top: 10px; color: var(--blue); font-size: 15px; font-weight: 500; }
.card-wip { background: transparent; border: 1.5px dashed var(--line); }
.band-teal .card { background: var(--cream); }
.credit { margin-top: 32px; color: var(--muted); font-size: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* lists of posts and events */
.posts { list-style: none; padding: 0 !important; margin: 0; }
.posts li { border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts a, .posts.events li { display: grid; grid-template-columns: 170px 1fr; gap: 2px 24px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.posts strong { font-weight: 500; font-size: 20px; grid-column: 2; }
.posts .date { grid-row: 1 / span 2; padding-top: 3px; }
.posts .ex { grid-column: 2; color: var(--muted); font-size: 15px; }
.posts a:hover strong { color: var(--blue); }
@media (max-width: 600px) { .posts a, .posts.events li { grid-template-columns: 1fr; } .posts strong, .posts .ex { grid-column: 1; } .posts .date { grid-row: auto; } }
.feature { margin-bottom: 40px; }
.feature h2:first-child, .wrap > section:first-child h2 { margin-top: 0; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 2em 0; }
.quote { margin: 0; padding: 22px 24px; background: var(--cream-2); border-radius: 14px; }
.quote blockquote { margin: 0; padding: 0; border: 0; color: var(--ink); }
.quote .q { font-size: 21px; line-height: 1.35; margin: 0 0 .5em; }
.quote p { font-size: 16px; }
.quote figcaption { color: var(--muted); font-size: 15px; } .quote figcaption::before { content: "— "; }
.quotes-short { margin: 0; } .band-blue .quote { background: rgba(255,255,255,.1); } .band-blue .quote blockquote, .band-blue .quote figcaption { color: #fff; }

/* media */
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.4em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.video.doc { aspect-ratio: 4 / 3; }
.audio iframe { width: 100%; border: 0; margin: 1em 0; }
.subscribe { margin: 2.4em 0; padding: 22px 24px; border-radius: 14px; background: var(--teal); color: var(--ink); }
.subscribe .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.subscribe .btn { background: var(--ink); border-color: var(--ink); }
.form iframe { border: 0; width: 100%; }
.section-title { margin-top: 1.4em; }
.mix { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 28px; }
.mix h3 { margin-bottom: 0; }

/* catalog */
.catalog-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.catalog-tools input, .catalog-tools select { font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream-2); color: var(--ink); }
.catalog-tools input { flex: 1 1 220px; }
.table-wrap { overflow-x: auto; }
.catalog { width: 100%; border-collapse: collapse; font-size: 15px; }
.catalog th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--ink); padding: 8px 10px; }
.catalog td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
.catalog td strong { font-weight: 500; }

/* footer */
.foot { position: relative; background: var(--blue); color: #fff; padding: 72px var(--gutter) 40px; margin-top: 0; }
.foot .wave { top: -1px; bottom: auto; transform: scaleY(-1); }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; }
.foot h2 { margin: 0 0 .2em; font-size: 30px; }
.foot a { color: #fff; }
.foot .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.foot-links { font-size: 16px; }

/* albums */
.album-group { margin-bottom: 48px; }
.album-group h2 { margin: 0 0 .2em; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 18px; }
.album { margin: 0; }
.album iframe { display: block; width: 100%; aspect-ratio: 1; border: 0; background: var(--cream-2); border-radius: 6px; }
.album figcaption { margin-top: 10px; font-size: 16px; line-height: 1.4; }
.album figcaption a { color: var(--ink); text-decoration: none; } .album figcaption a:hover { color: var(--blue); }
.album strong { font-weight: 500; }
.album .note { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.album .note a { color: var(--blue); }

/* ---------- dynamic pieces ---------- */
/* on-this-page jump bar */
.toc { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toc-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.toc-in::-webkit-scrollbar { display: none; }
.toc-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.toc a { font-size: 15px; color: var(--ink-soft); text-decoration: none; padding: 5px 12px; border-radius: 99px; }
.toc a:hover { background: rgba(52,102,155,.08); color: var(--blue); }
.toc a[aria-current] { background: var(--blue); color: #fff; }
.prose h2[id], .prose h3[id], .year { scroll-margin-top: 70px; }
.chips + .toc, .toc + .chips { margin-top: 0; }

/* carousels */
.carousel { position: relative; margin: 1.8em 0; }
.carousel .track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.carousel-quotes .slide { flex-basis: calc(50% - 9px); }
@media (max-width: 700px) { .carousel-quotes .slide { flex-basis: 100%; } }
.carousel-photos .slide img { display: block; width: 100%; height: clamp(260px, 46vw, 500px); object-fit: cover; border-radius: 8px; margin: 0; }
.cprev, .cnext { position: absolute; top: 50%; transform: translateY(-70%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.cprev { left: -14px; } .cnext { right: -14px; }
.cprev:hover, .cnext:hover { background: #fff; color: var(--blue); }
@media (max-width: 700px) { .cprev { left: 4px; } .cnext { right: 4px; } }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.dots button[aria-current=true] { background: var(--blue); }
.one-page .cprev, .one-page .cnext, .one-page .dots { display: none; }
.band-blue .dots button { background: rgba(255,255,255,.35); } .band-blue .dots button[aria-current=true] { background: #fff; }
.carousel-quotes .quote { height: 100%; }

/* video tiles */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 1.6em 0; }
.vtile { margin: 0; }
.vtile figcaption { font-size: 15px; margin-top: 8px; color: var(--ink-soft); line-height: 1.35; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #222; }
.yt img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: transform .3s; }
.yt:hover img { transform: scale(1.04); }
.yt .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); }
.yt .play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--blue); }
.vtile iframe, .vgrid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.prose > .vtile { margin: 1.4em 0; }

/* background video in a header */
.hero-tall { padding-top: 170px; padding-bottom: 130px; }
.hero-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: center/cover no-repeat; opacity: 0; transition: opacity 1.2s; }
.hero-video.still { opacity: 1; }
.hero-video iframe { opacity: 0; transition: opacity 2s; }
.hero-video.on iframe { opacity: 1; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%); border: 0; }
.has-video::before { z-index: 1; background: linear-gradient(180deg, rgba(30,32,50,.55), rgba(30,32,50,.35)); }
.has-video .hero-in { z-index: 2; }
.has-video .wave { z-index: 2; }

/* people (teachers) */
.prose ul.people { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.prose ul.people li { background: var(--cream-2); border-radius: 12px; padding: 16px; margin: 0; font-size: 16px; }
.prose ul.people img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin: 0 0 10px; }
.prose ul.people h3 { font-size: 19px; margin: 0 0 6px; }

/* folds */
details.fold { border-top: 1px solid var(--line); padding: 4px 0; }
details.fold:last-of-type { border-bottom: 1px solid var(--line); }
details.fold summary { cursor: pointer; list-style: none; padding: 12px 0; font-size: 20px; display: flex; justify-content: space-between; gap: 12px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; }
details.fold[open] summary::after { content: "–"; }
.mix details.fold summary { font-size: 16px; color: var(--blue); }

/* project and context pages */
.hero .status { display: inline-block; margin-left: 10px; font-size: 12px; letter-spacing: .08em; padding: 2px 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 99px; text-transform: none; }
.hero h1 .he { font-family: var(--he); font-size: .6em; opacity: .85; margin-left: .3em; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 1.2em 0 2em; }
.feature-card { background: var(--cream-2); border-radius: 12px; padding: 18px 20px; }
.feature-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 500; }
.feature-card p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.launch { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin: 3em 0 0; padding: 24px; border-radius: 14px; background: var(--cream-2); border-left: 6px solid var(--c); }
.launch .k { margin: 0 0 4px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.launch p { margin: 0; max-width: 34em; font-size: 16px; }

/* writing: jump by year */
.yearbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.yearbar a { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); font-size: 15px; background: var(--cream-2); }
.yearbar a:hover { border-color: var(--blue); color: var(--blue); }
h3.year { margin: 1.4em 0 .3em; font-size: 22px; color: var(--muted); }

/* lifecycles overview */
.wide-pad { padding: 0 var(--gutter) 64px; }
.ceremonies { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.ceremony { display: flex; flex-direction: column; background: var(--cream-2); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s; }
.ceremony:hover { transform: translateY(-3px); color: var(--ink); }
.ceremony img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.c-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ceremony h3 { margin: 0; font-size: 23px; }
.ceremony p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.ceremony .go { margin-top: auto; padding-top: 8px; color: var(--blue); font-size: 15px; }
.center-btns { justify-content: center; margin-top: 36px; }

/* screenshots of the live prototypes */
.carousel-screens .slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.12); margin: 0; }
.carousel-screens figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; text-align: center; }
@media (min-width: 900px) { .prose .carousel-screens { margin-left: -120px; margin-right: -120px; } }
.card .thumb { margin: -24px -24px 12px; width: calc(100% + 48px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.card .thumb + .k { margin-top: 0; }

/* Hebrew: sans by default (Aktiv Grotesk Hebrew); add class "he" for the Frank Ruhl serif */
:lang(he), .he-sans { font-family: var(--he-sans); }

/* ---------- Nov 5 refinements ---------- */
:root { --butter: #edd285; --charcoal: #2d2e29; }
/* type scale */
.prose h2 { font-size: clamp(26px, 2.9vw, 34px); letter-spacing: -.01em; margin: 1.5em 0 .45em; clear: both; }
.prose h3 { font-size: 22px; font-weight: 400; line-height: 1.25; margin: 1.5em 0 .35em; }
.prose h4 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.8em 0 .4em; }
.prose p.lead { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.45; color: var(--ink-soft); margin: 1em 0; }
.prose p.lead strong { font-weight: 700; }
.hero h1 { font-weight: 400; letter-spacing: -.015em; }

/* images beside the text */
.prose figure.inset { width: 44%; margin: .4em 0 1.2em; }
.prose figure.inset.right { float: right; margin-left: 28px; margin-right: -90px; }
.prose figure.inset.left { float: left; margin-right: 28px; margin-left: -90px; }
.prose figure.inset img { margin: 0; width: 100%; border-radius: 6px; box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.prose figure.inset figcaption { font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 8px; font-style: italic; }
@media (max-width: 1080px) { .prose figure.inset.right { margin-right: 0; } .prose figure.inset.left { margin-left: 0; } }
@media (max-width: 640px) { .prose figure.inset { float: none; width: 100%; margin: 1.2em 0; } }
.prose::after, .band-s .prose::after { content: ""; display: table; clear: both; }

/* bands of color, like the old site */
.band-s { position: relative; background: var(--bg); color: var(--fg); --bg: var(--cream); --fg: var(--ink); }
.band-s > .prose { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 84px); }
.band-s .wave-top { position: absolute; left: 0; right: 0; top: -30px; width: 100%; height: 32px; fill: var(--bg); }
.tone-cream { --bg: var(--cream); }
.tone-teal { --bg: var(--teal); }
.tone-butter { --bg: var(--butter); }
.tone-blue { --bg: var(--blue); --fg: #fff; }
.tone-charcoal { --bg: var(--charcoal); --fg: #ece6da; }
.tone-blue a, .tone-charcoal a { color: var(--butter); }
.tone-blue .btn, .tone-charcoal .btn { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.tone-blue h4, .tone-charcoal h4, .tone-blue .date, .tone-charcoal .date, .tone-blue p.lead, .tone-charcoal p.lead { color: color-mix(in srgb, var(--fg) 78%, transparent); }
.tone-teal .feature-card, .tone-butter .feature-card, .tone-teal .quote, .tone-butter .quote { background: rgba(255,255,255,.55); }
.tone-blue .feature-card, .tone-charcoal .feature-card, .tone-blue .quote, .tone-charcoal .quote, .tone-blue .launch, .tone-charcoal .launch { background: rgba(255,255,255,.08); color: var(--fg); }
.tone-blue .feature-card p, .tone-charcoal .feature-card p, .tone-blue .quote blockquote, .tone-charcoal .quote blockquote, .tone-blue .launch .k, .tone-charcoal .launch .k { color: color-mix(in srgb, var(--fg) 85%, transparent); }
.tone-blue blockquote, .tone-charcoal blockquote { color: color-mix(in srgb, var(--fg) 85%, transparent); border-color: var(--butter); }
.tone-blue figure.inset figcaption, .tone-charcoal figure.inset figcaption, .tone-teal figure.inset figcaption { color: color-mix(in srgb, var(--fg) 75%, transparent); }
.tone-blue details.fold summary::after, .tone-charcoal details.fold summary::after { color: var(--butter); }
.foot .wave { fill: var(--last, var(--cream)); }

/* events */
.upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 0 0 12px; }
.ev-card { background: var(--cream-2); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; border-top: 5px solid var(--c, var(--blue)); }
.ev-card .when { font-size: 15px; color: var(--muted); }
.ev-card h3 { margin: 0; font-size: 24px; }
.ev-card .where { margin: 0; color: var(--ink-soft); font-size: 16px; }
.ev-card .btn { align-self: flex-start; margin-top: 10px; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 18px; }
.kinds button, .poem-tools button { font: inherit; font-size: 14px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--cream-2); color: var(--ink-soft); cursor: pointer; }
.kinds button[aria-pressed=true], .poem-tools button[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #fff; }
.past { font-size: 15px; }
.past h3 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 18px 0 4px; letter-spacing: .04em; }
.past ul { list-style: none; margin: 0; padding: 0; }
.past li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.past .m { color: var(--muted); font-size: 13px; }
.past .t { color: var(--ink); } .past a.t { text-decoration: none; } .past a.t:hover { color: var(--blue); text-decoration: underline; }
.past .h { color: var(--muted); }
.past .k { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
@media (max-width: 600px) { .past li { grid-template-columns: 36px 1fr; } .past .k { display: none; } }

/* poems */
.poem-tools { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 18px; }
.poem-tools .lab { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.poem-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.poem-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; background: var(--cream-2); border-radius: 12px; text-decoration: none; color: var(--ink); }
.poem-list a:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.poem-list strong { font-size: 20px; font-weight: 400; }
.poem-list .poet { color: var(--blue); font-size: 15px; }
.poem-list .ex { color: var(--muted); font-size: 14px; }
.poem-list .tags { margin: 6px 0 0; }
.badge-he { display: inline-block; font-family: var(--he-sans); font-size: 13px; padding: 0 8px; border-radius: 99px; background: var(--butter); color: var(--ink); margin-left: 6px; }
.poet-line { font-size: 18px; color: var(--ink-soft); margin-top: 0; }
.bilingual { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 1em -120px; }
.bilingual > div > p { margin: 0 0 .45em; }
.bilingual .he-col { direction: rtl; text-align: right; font-family: var(--he-sans); font-size: 20px; }
@media (max-width: 1080px) { .bilingual { margin-left: 0; margin-right: 0; } }
@media (max-width: 700px) { .bilingual { grid-template-columns: 1fr; } .bilingual .he-col { margin-top: 1.6em; } }

.cal-inline { min-height: 640px; width: 100%; margin: 24px 0; border-radius: 14px; overflow: auto; background: var(--cream-2); }

/* About: root teachers four across, names as accordions */
.prose .carousel-people { margin-left: -120px; margin-right: -120px; }
@media (max-width: 1080px) { .prose .carousel-people { margin-left: 0; margin-right: 0; } }
.carousel-people .slide { flex-basis: calc(25% - 14px); background: var(--cream-2); border-radius: 12px; padding: 16px; font-size: 15px; line-height: 1.5; }
@media (max-width: 1000px) { .carousel-people .slide { flex-basis: calc(50% - 9px); } }
@media (max-width: 600px) { .carousel-people .slide { flex-basis: 85%; } }
.carousel-people img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin: 0 0 10px; }
.carousel-people h3 { font-size: 18px; margin: 0 0 6px; }
.carousel-people p { margin: 0 0 .6em; }
.tone-blue .carousel-people .slide, .tone-charcoal .carousel-people .slide { background: rgba(255,255,255,.08); }
.tone-teal .carousel-people .slide, .tone-butter .carousel-people .slide { background: rgba(255,255,255,.55); }
.names { margin: 1em 0; }
.fold-body { padding: 0 0 12px; }
.fold-body p:first-child { margin-top: 0; }

/* home: ticker tape riding a wave just under the header */
.ticker { margin-top: -18px; position: relative; z-index: 3; height: clamp(70px, 8vw, 110px); overflow: hidden; }
.ticker svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ticker text { font-family: var(--font); font-size: 30px; fill: var(--blue); letter-spacing: .01em; }
@media (max-width: 700px) { .ticker text { font-size: 40px; } }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.head-row h2 { margin: 0; }
.band-blue h2 { color: #fff; }
