/* Kiddush Advisory Committee
   ─────────────────────────────────────────────────────────────────────────
   Palette
     Limestone   #E7E1D5  — the warm, pale Jerusalem stone of a shul wall; the page itself
     Lime-deep   #D9D1C2  — the same stone in shadow; hover fields, placeholders
     Ink         #15120E  — warm black, never pure #000
     Tekhelet    #21307A  — the blue-violet of the tzitzit thread; the only colour,
                            used for one thing at a time: what is active, live or yours
     Rust        #8E3B22  — warnings only (overdue, over budget, errors)
   Type
     Instrument Serif (display, at very large sizes) · Geist (text) ·
     Geist Mono (labels, figures, indices) · Frank Ruhl Libre (Hebrew)
   Rules
     No radius. No shadow. No boxes — structure comes from hairline rules,
     a 12-column grid and numbered sections.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --stone: #E7E1D5;
  --stone-2: #D9D1C2;
  --stone-3: #CCC2B0;
  --ink: #15120E;
  --ink-2: #4A443B;
  --ink-3: #8C8476;
  --rule: rgba(21, 18, 14, .18);
  --rule-strong: #15120E;
  --tek: #21307A;
  --tek-2: #2E40A0;
  --rust: #8E3B22;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --hebrew: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --gutter: clamp(16px, 3vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html, body { margin: 0; }
body { background: var(--stone); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--tek); color: var(--stone); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
.he { font-family: var(--hebrew); direction: rtl; font-weight: 300; }
.serif { font-family: var(--serif); }
.it { font-family: var(--serif); font-style: italic; }
.mono, .label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.label { color: var(--ink-3); }
.muted { color: var(--ink-3); }
.tek { color: var(--tek); }
.rust { color: var(--rust); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* links with a drawn underline */
.ul { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s cubic-bezier(.2,.7,.2,1); padding-bottom: 1px; }
.ul:hover, .ul.on { background-size: 100% 1px; }
.arrow::after { content: ' →'; transition: margin .25s; }
.arrow:hover::after { margin-left: 4px; }

/* ── controls ─────────────────────────────────────────────────────────── */
button, .btn {
  font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  padding: 11px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s, color .2s;
}
button:hover, .btn:hover { background: var(--ink); color: var(--stone); }
.btn-solid { background: var(--ink); color: var(--stone); }
.btn-solid:hover { background: var(--tek); border-color: var(--tek); }
.btn-text { border: none; padding: 4px 0; color: var(--ink-3); }
.btn-text:hover { background: none; color: var(--ink); }
.btn-text.danger:hover { color: var(--rust); }
.x { border: none; padding: 2px 4px; color: var(--ink-3); font: 300 18px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.x:hover { background: none; color: var(--rust); }

input, select, textarea {
  font: 400 15px var(--sans); color: var(--ink); background: transparent;
  border: none; border-bottom: 1px solid var(--rule); padding: 9px 0; width: 100%; outline: none;
  transition: border-color .2s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--tek); box-shadow: 0 1px 0 var(--tek); }
textarea { border: 1px solid var(--rule); padding: 12px 14px; resize: vertical; min-height: 110px; line-height: 1.6; }
textarea:focus { box-shadow: inset 0 0 0 1px var(--tek); }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M0 0l4.5 6L9 0' fill='none' stroke='%2315120E'/%3E%3C/svg%3E") right 2px center no-repeat; }
input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border: 1px solid var(--ink);
  padding: 0; margin: 0; flex: 0 0 auto; cursor: pointer; display: grid; place-content: center; background: transparent;
}
input[type=checkbox]:checked { background: var(--tek); border-color: var(--tek); }
input[type=checkbox]:checked::after { content: ''; width: 4px; height: 8px; border: solid var(--stone); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
input[type=date] { font-family: var(--mono); font-size: 13px; }
input[type=file] { display: none; }
.field { display: block; margin-bottom: 22px; }
.field > .label { display: block; margin-bottom: 2px; }
.inline-form { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.inline-form > input, .inline-form > select { flex: 1 1 140px; width: auto; min-width: 0; }
.inline-form > .wide { flex: 3 1 240px; }
.inline-form > button { flex: 0 0 auto; }

/* ── public site ──────────────────────────────────────────────────────── */
.pub-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px var(--gutter); border-bottom: 1px solid var(--rule); gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark i { width: 11px; height: 11px; background: var(--tek); display: inline-block; flex: 0 0 auto; }
.pub-head nav { display: flex; gap: 28px; }
.pub-head .right { text-align: right; }
.hero { padding: clamp(40px, 8vw, 110px) var(--gutter) 0; }
.hero-word { display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2vw; }
.hero-word h1 { font: 400 clamp(88px, 21vw, 330px)/.78 var(--serif); letter-spacing: -.035em; margin-left: -.04em; }
.hero-word .he { font-size: clamp(40px, 8vw, 128px); line-height: 1; color: var(--tek); padding-bottom: 1vw; }
.hero-meta { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 20px; padding: 22px 0 0; }
.hero-meta .label { grid-column: span 3; }
.hero-lede { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: clamp(60px, 9vw, 140px) 0; }
.hero-lede p { grid-column: 4 / span 8; font: 400 clamp(28px, 3.6vw, 54px)/1.12 var(--serif); letter-spacing: -.01em; }
.hero-lede p em { color: var(--tek); }
.tenets { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-strong); margin: 0 var(--gutter); }
.tenet { padding: 24px 28px 48px 0; border-right: 1px solid var(--rule); }
.tenet + .tenet { padding-left: 28px; }
.tenet:last-child { border-right: none; }
.tenet h3 { font: 400 34px/1.05 var(--serif); margin: 36px 0 14px; }
.tenet p { color: var(--ink-2); max-width: 34ch; }
.section { padding: clamp(60px, 9vw, 130px) var(--gutter) 0; }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: end; border-bottom: 1px solid var(--rule-strong); padding-bottom: 18px; }
.section-head h2 { grid-column: 1 / span 8; font: 400 clamp(48px, 7vw, 104px)/.9 var(--serif); letter-spacing: -.02em; }
.section-head .label { grid-column: 9 / span 4; text-align: right; }
.index-row { display: grid; grid-template-columns: 60px 150px 1fr 1fr 40px; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); transition: background .2s, color .2s, padding .3s; }
.index-row .he { text-align: right; font-size: 22px; }
.index-row .t { font: 400 26px/1.1 var(--serif); }
.index-row.past { color: var(--ink-3); }
.index-row.next .t { color: var(--tek); }
a.index-row:hover { background: var(--ink); color: var(--stone); padding-left: 14px; padding-right: 14px; }
a.index-row:hover .label, a.index-row:hover .muted, a.index-row:hover .tek { color: var(--stone); }
.cta-band { margin: clamp(70px, 10vw, 150px) var(--gutter) 0; border-top: 1px solid var(--rule-strong); display: flex; justify-content: space-between; align-items: flex-end; padding-top: 22px; gap: 20px; flex-wrap: wrap; }
.cta-band > a { font: 400 clamp(54px, 9vw, 140px)/.85 var(--serif); letter-spacing: -.03em; }
.cta-band > a:hover { color: var(--tek); font-style: italic; }
.pub-foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 60px var(--gutter) 28px; margin-top: clamp(70px, 10vw, 150px); border-top: 1px solid var(--rule); }

/* people */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px; padding: 40px var(--gutter) 0; }
.person .portrait { aspect-ratio: 4 / 5; background: var(--stone-2); overflow: hidden; position: relative; }
.person .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.person:hover .portrait img { filter: grayscale(0); transform: scale(1.03); }
.person .portrait .initial { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 clamp(120px, 14vw, 220px)/1 var(--serif); color: var(--stone-3); }
.person .portrait .no { position: absolute; top: 12px; left: 14px; }
.person .meta { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--rule-strong); padding: 16px 0 10px; align-items: baseline; gap: 10px; }
.person h3 { font: 400 40px/1 var(--serif); letter-spacing: -.01em; }
.person p { color: var(--ink-2); padding-top: 14px; max-width: 46ch; white-space: pre-line; }

/* login */
.entrance { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: clamp(40px, 7vw, 100px) var(--gutter); min-height: calc(100vh - 70px); }
.entrance .left { grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.entrance .left h1 { font: 400 clamp(72px, 10vw, 168px)/.84 var(--serif); letter-spacing: -.03em; }
.entrance form { grid-column: 8 / span 5; }
.who { list-style: none; margin: 10px 0 40px; padding: 0; border-top: 1px solid var(--rule-strong); }
.who li button { width: 100%; border: none; border-bottom: 1px solid var(--rule); padding: 14px 0; display: grid; grid-template-columns: 40px 1fr auto; text-align: left; font: 400 30px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.who li button .label { align-self: center; }
.who li button:hover { background: none; color: var(--tek); }
.who li button.on { color: var(--tek); font-style: italic; }
.who li button.on::after { content: '←'; font: 400 18px var(--sans); align-self: center; }

/* ── workspace ────────────────────────────────────────────────────────── */
.ws-top { display: grid; grid-template-columns: 240px 1fr auto; align-items: center; border-bottom: 1px solid var(--rule-strong); height: 58px; position: sticky; top: 0; background: var(--stone); z-index: 20; }
.ws-top .wordmark { padding-left: var(--gutter); }
.ws-top .crumbs { padding-left: 28px; }
.ws-top .who-am-i { display: flex; gap: 22px; align-items: center; padding-right: var(--gutter); }
.ws { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 58px); }
.ws-nav { border-right: 1px solid var(--rule); padding: 28px 0 28px var(--gutter); position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; }
.ws-nav ol { list-style: none; margin: 0; padding: 0; }
.ws-nav li a { display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; padding: 7px 20px 7px 0; color: var(--ink-2); transition: color .2s; }
.ws-nav li a .label { font-size: 10px; }
.ws-nav li a span.n { font-size: 15px; }
.ws-nav li a:hover { color: var(--ink); }
.ws-nav li a.on { color: var(--tek); }
.ws-nav li a.on .label { color: var(--tek); }
.ws-nav li a.on span.n { font-family: var(--serif); font-style: italic; font-size: 19px; }
.ws-nav .gap { height: 22px; }
.count { font: 500 10px var(--mono); background: var(--tek); color: var(--stone); padding: 1px 5px; letter-spacing: 0; }
.ws-main { padding: 0 var(--gutter) 100px; min-width: 0; }

.page-title { padding: 44px 0 0; }
.page-title .label { display: block; margin-bottom: 14px; }
.page-title h1 { font: 400 clamp(56px, 7.5vw, 116px)/.86 var(--serif); letter-spacing: -.025em; }
.page-title h1 em { color: var(--tek); }
.page-title .sub { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--rule-strong); padding: 26px 0 14px; align-items: baseline; }

/* numbered section rows: label column + content column */
.sec { display: grid; grid-template-columns: 200px 1fr; gap: 28px; border-bottom: 1px solid var(--rule); padding: 30px 0 34px; }
.sec > .sec-label .no { display: block; font: 400 11px var(--mono); color: var(--ink-3); letter-spacing: .08em; }
.sec > .sec-label h2 { font: 400 30px/1.05 var(--serif); margin-top: 8px; }
.sec > .sec-label .aside { display: block; margin-top: 10px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.cols-2 > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-strong); }
.split > * { padding: 26px 34px 34px 0; min-width: 0; }
.split > * + * { border-left: 1px solid var(--rule); padding-left: 34px; padding-right: 0; }

.empty { color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: 19px; padding: 6px 0; }

/* figures */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule-strong); }
.figure { padding: 26px 20px 22px 0; border-right: 1px solid var(--rule); }
.figure + .figure { padding-left: 20px; }
.figure:last-child { border-right: none; }
.figure .v { font: 400 clamp(40px, 4.4vw, 68px)/.95 var(--serif); letter-spacing: -.02em; display: block; margin-bottom: 10px; }
.figure .v small { font-size: .45em; color: var(--ink-3); letter-spacing: 0; }

/* rows: generic list lines */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows > li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); min-height: 50px; }
.rows > li .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rows > li.done .grow { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-3); }
.rows > li select { width: auto; font-size: 13px; padding: 4px 18px 4px 0; border-color: transparent; }
.rows > li select:hover { border-color: var(--rule); }

/* season index (workspace) */
.season { border-top: 1px solid var(--rule-strong); margin-top: 0; }
.season-row { display: grid; grid-template-columns: 44px 80px minmax(130px, 1.1fr) 110px minmax(130px, 1.4fr) 110px 120px 90px; gap: 18px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--rule); transition: background .2s, color .2s, padding .3s; }
.season-row.head { padding: 10px 0; }
.season-row .t { font: 400 25px/1.1 var(--serif); }
.season-row .he { font-size: 20px; text-align: right; white-space: nowrap; }
.season-row .theme.none { color: var(--ink-3); font-family: var(--serif); font-style: italic; }
.season-row.past { color: var(--ink-3); }
.season-row.next { box-shadow: inset 3px 0 0 var(--tek); padding-left: 14px; }
.season-row.next .t { color: var(--tek); }
a.season-row:hover { background: var(--ink); color: var(--stone); padding-left: 14px; padding-right: 14px; }
a.season-row:hover .label, a.season-row:hover .muted, a.season-row:hover .theme.none, a.season-row:hover .t { color: var(--stone); }
.holiday { font: italic 400 15px var(--serif); color: var(--tek); }

/* status marks */
.status { display: inline-flex; align-items: center; gap: 8px; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border: 1px solid currentColor; }
.status.confirmed { color: var(--tek); }
.status.confirmed::before { background: var(--tek); border-color: var(--tek); }
.status.done::before { background: currentColor; }
.status.skip { color: var(--ink-3); text-decoration: line-through; }
.status.planning { color: var(--ink-2); }
.prio-high { color: var(--rust); }
.overdue { color: var(--rust); }

/* week */
.week-title { padding: 44px 0 0; }
.week-title .top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.week-title .names { display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; border-bottom: 1px solid var(--rule-strong); padding: 18px 0 18px; }
.week-title h1 { font: italic 400 clamp(64px, 10vw, 168px)/.82 var(--serif); letter-spacing: -.03em; }
.week-title .he { font-size: clamp(40px, 6.5vw, 108px); line-height: 1; color: var(--tek); }
.week-title .meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.brief { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.brief .field { margin-bottom: 18px; }
.brief .full { grid-column: 1 / -1; }
.saved { color: var(--ink-3); min-height: 1em; }
table.ledger { width: 100%; border-collapse: collapse; }
table.ledger th { text-align: left; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 12px 8px 0; border-bottom: 1px solid var(--rule-strong); }
table.ledger td { padding: 2px 12px 2px 0; border-bottom: 1px solid var(--rule); }
table.ledger td input { border-color: transparent; padding: 9px 0; }
table.ledger td input:hover { border-color: var(--rule); }
table.ledger .r, table.ledger .r input { text-align: right; font-family: var(--mono); font-size: 14px; }
table.ledger tfoot td { border-bottom: none; border-top: 1px solid var(--rule-strong); padding-top: 12px; font-family: var(--mono); font-size: 14px; }
.post { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.post .by { font-size: 14px; }
.post .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.post .kind { color: var(--tek); }
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.plate { margin: 0; }
.plate img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; background: var(--stone-2); }
.plate figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; }
.private-note textarea { background: rgba(255,255,255,.18); min-height: 180px; }

/* to-do */
.todo { display: grid; grid-template-columns: 22px 1fr 150px 140px 110px 24px; gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.todo .t { font-size: 17px; overflow-wrap: anywhere; }
.todo.done .t { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-3); }
.todo input[type=checkbox] { margin-top: 5px; }
.todo select, .todo input[type=date] { font-size: 13px; padding: 3px 18px 3px 0; border-color: transparent; }
.todo input[type=date] { padding-right: 0; }
.todo select:hover, .todo input[type=date]:hover { border-color: var(--rule); }
.todo details summary { cursor: pointer; list-style: none; margin-top: 6px; }
.todo details summary::-webkit-details-marker { display: none; }
.todo details textarea { margin-top: 8px; min-height: 70px; }
.filters { display: flex; gap: 22px; }
.filters button { border: none; padding: 0 0 2px; color: var(--ink-3); }
.filters button:hover { background: none; color: var(--ink); }
.filters button.on { color: var(--tek); box-shadow: 0 1px 0 var(--tek); }

/* notices */
.notice { display: grid; grid-template-columns: 200px 1fr auto; gap: 28px; padding: 30px 0 34px; border-bottom: 1px solid var(--rule); }
.notice h3 { font: 400 clamp(30px, 3.2vw, 46px)/1.02 var(--serif); letter-spacing: -.01em; }
.notice .body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); margin-top: 14px; max-width: 70ch; }
.notice.pinned h3 { color: var(--tek); }

/* correspondence */
.letters { display: grid; grid-template-columns: 280px 1fr; border-top: 1px solid var(--rule-strong); height: calc(100vh - 290px); min-height: 440px; }
.letters .people-list { border-right: 1px solid var(--rule); overflow-y: auto; }
.letters .people-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); transition: padding .3s, color .2s; }
.letters .people-list a .n { font: 400 24px/1.05 var(--serif); }
.letters .people-list a .last { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.letters .people-list a:hover { padding-left: 10px; }
.letters .people-list a.on { color: var(--tek); }
.letters .people-list a.on .n { font-style: italic; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread .msgs { flex: 1; overflow-y: auto; padding: 24px 0 24px 34px; display: flex; flex-direction: column; gap: 22px; }
.letter { max-width: 74%; align-self: flex-start; border-left: 1px solid var(--ink); padding-left: 14px; }
.letter .txt { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; font-size: 16px; }
.letter.mine { align-self: flex-end; border-left: none; border-right: 1px solid var(--tek); padding: 0 14px 0 0; text-align: right; }
.letter.mine .label { color: var(--tek); }
.thread form { display: flex; gap: 18px; align-items: flex-end; border-top: 1px solid var(--rule); padding: 16px 0 0 34px; }
.thread form textarea { min-height: 50px; height: 50px; }

/* portrait chips (small) */
.chip { width: 28px; height: 28px; background: var(--stone-2); overflow: hidden; display: inline-grid; place-items: center; font: italic 400 16px var(--serif); color: var(--ink-2); flex: 0 0 auto; }
.chip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.chip.xl { width: 180px; height: 225px; font-size: 110px; }

/* overview */
.feature { padding: 26px 0 34px; }
.feature .when { font: 400 clamp(54px, 6.6vw, 104px)/.86 var(--serif); letter-spacing: -.025em; margin: 12px 0 16px; display: block; }
.feature .when em { color: var(--tek); }
.ledger-feed li { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ledger-feed { list-style: none; margin: 0; padding: 0; }

/* overlays */
.veil { position: fixed; inset: 0; background: rgba(21,18,14,.94); z-index: 50; display: grid; place-items: center; padding: 4vw; }
.veil img { max-height: 88vh; width: auto; cursor: zoom-out; }
.veil form { background: var(--stone); padding: 34px; width: min(560px, 100%); }
.veil form h3 { font: 400 34px/1 var(--serif); margin-bottom: 20px; }
#toast { position: fixed; left: var(--gutter); bottom: 22px; background: var(--ink); color: var(--stone); font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 14px 20px; transform: translateY(120%); opacity: 0; transition: .3s cubic-bezier(.2,.7,.2,1); z-index: 60; max-width: calc(100vw - 2 * var(--gutter)); }
#toast.show { transform: none; opacity: 1; }
#toast.err { background: var(--rust); }

/* page-load reveal */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal > *:nth-child(2) { animation-delay: .06s; } .reveal > *:nth-child(3) { animation-delay: .12s; }
.reveal > *:nth-child(4) { animation-delay: .18s; } .reveal > *:nth-child(5) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal > * { animation: none; } * { transition: none !important; } }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .season-row { grid-template-columns: 36px 80px 1fr 60px 1fr 100px; }
  .season-row .c-budget, .season-row .c-extra { display: none; }
  .brief { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .ws-top { grid-template-columns: 1fr auto; }
  .ws-top .crumbs { display: none; }
  .ws { grid-template-columns: 1fr; }
  .ws-nav { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--rule); padding: 0; overflow-x: auto; }
  .ws-nav ol { display: flex; white-space: nowrap; }
  .ws-nav li a { display: flex; gap: 6px; padding: 14px 16px; }
  .ws-nav .gap, .ws-nav .label.foot { display: none; }
  .ws-nav > div:last-child { display: none; }
  .sec, .notice { grid-template-columns: 1fr; gap: 14px; }
  .cols-2, .split { grid-template-columns: 1fr; }
  .split > * + * { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(2) { border-right: none; }
  .figure:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .figure:nth-child(4) { border-top: 1px solid var(--rule); }
  .season-row { grid-template-columns: 70px 1fr auto; gap: 4px 14px; }
  .season-row.head { display: none; }
  .season-row .c-no, .season-row .he, .season-row .c-budget, .season-row .c-extra { display: none; }
  .season-row .theme { grid-column: 2 / -1; }
  .todo { grid-template-columns: 22px 1fr 24px; }
  .todo .c-meta { grid-column: 2 / 3; display: flex; gap: 14px; flex-wrap: wrap; }
  .letters { grid-template-columns: 1fr; height: auto; }
  .letters.has-thread .people-list { display: none; }
  .letters:not(.has-thread) .thread { display: none; }
  .thread { height: calc(100vh - 260px); }
  .thread .msgs, .thread form { padding-left: 0; }
  .pub-head { grid-template-columns: 1fr auto; }
  .pub-head .right { display: none; }
  .hero-meta .label { grid-column: span 6; margin-bottom: 8px; }
  .hero-lede p { grid-column: 1 / -1; }
  .tenets { grid-template-columns: 1fr; }
  .tenet, .tenet + .tenet { border-right: none; border-bottom: 1px solid var(--rule); padding: 20px 0 30px; }
  .tenet h3 { margin-top: 18px; }
  .index-row { grid-template-columns: 34px 90px 1fr; }
  .index-row .he, .index-row .c-go { display: none; }
  .people { grid-template-columns: 1fr; }
  .entrance .left, .entrance form { grid-column: 1 / -1; }
  .pub-foot { grid-template-columns: 1fr 1fr; }
  .post { grid-template-columns: 1fr auto; }
  .post .by { grid-column: 1 / -1; }
  .letter { max-width: 90%; }
}

/* ── KAC identity ─────────────────────────────────────────────────────── */
.mark { display: block; flex: 0 0 auto; overflow: visible; }
.mark.fluid { width: 100%; height: auto; }
.mark.fluid rect, .mark.fluid line { vector-effect: non-scaling-stroke; stroke-width: 2px; }
.lockup { display: inline-flex; align-items: center; gap: 14px; }
.lockup-name { font-size: 10px; line-height: 1.35; letter-spacing: .1em; }
.ws-brand { display: inline-flex; align-items: center; gap: 14px; padding-left: var(--gutter); }
.pub-foot-wrap { margin-top: clamp(80px, 12vw, 180px); border-top: 1px solid var(--rule-strong); }
.foot-mark { padding: clamp(28px, 4vw, 56px) var(--gutter) 0; }
.pub-foot-wrap .pub-foot { margin-top: 0; border-top: none; }

.id-block { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin: 0 var(--gutter); padding: 34px 0 56px; border-bottom: 1px solid var(--rule); }
.id-label { grid-column: 1 / span 3; }
.id-label h3 { font: 400 40px/1 var(--serif); margin-top: 10px; }
.id-body { grid-column: 4 / span 9; min-width: 0; }
.id-stage { background: var(--stone-2); padding: clamp(36px, 7vw, 110px); }
.id-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; }
.id-cols p { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.id-cols p em { font-family: var(--serif); font-size: 1.2em; color: var(--ink); }
.id-cols p.label { font-size: 11px; color: var(--ink-3); }
.id-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.id-tile { display: flex; flex-direction: column; gap: 12px; }
.id-tile-art { aspect-ratio: 4 / 3; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; padding: 24px; }
.id-tile.ink .id-tile-art { background: var(--ink); border-color: var(--ink); }
.swatches { display: grid; grid-template-columns: 1.7fr 1.3fr 1.1fr .95fr .8fr; min-height: 340px; }
.swatch { display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px; min-width: 0; }
.swatch .sw-name { font: 400 clamp(20px, 2.1vw, 30px)/1 var(--serif); }
.swatch .sw-role { font-size: 13px; line-height: 1.4; opacity: .82; }
.specimen { display: grid; grid-template-columns: 1fr 260px; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: end; }
.specimen:first-child { border-top: 1px solid var(--rule-strong); }
.sp-meta { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 14px; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.principles li { display: grid; grid-template-columns: 60px 1fr; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.principles p { font: 400 clamp(24px, 2.4vw, 34px)/1.15 var(--serif); }

@media (max-width: 860px) {
  .ws-top .label { display: none; }
  .id-label, .id-body { grid-column: 1 / -1; }
  .id-cols, .id-grid-3, .specimen { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr; min-height: 0; }
  .swatch { min-height: 120px; }
  .lockup-name { display: none; }
}

/* ── iPhone / touch ───────────────────────────────────────────────────────
   Mobile Safari and Chrome on iOS share the same WebKit engine, so these
   rules cover both:
   · text fields ≥16px, or iOS zooms the page on focus
   · safe-area insets for the notch, Dynamic Island and home indicator
   · dvh instead of vh, which iOS miscalculates as its toolbars slide
   · hover effects only where there is a real pointer (touch makes them stick)
   ───────────────────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; padding-bottom: env(safe-area-inset-bottom); }
:root { --gutter: max(clamp(16px, 3vw, 40px), env(safe-area-inset-left), env(safe-area-inset-right)); }
#toast { bottom: calc(22px + env(safe-area-inset-bottom)); }
.pub-head { padding-top: max(20px, env(safe-area-inset-top)); }
.ws-top { height: auto; min-height: 58px; padding-top: env(safe-area-inset-top); }

@supports (height: 100dvh) {
  .ws { min-height: calc(100dvh - 58px); }
  .ws-nav { height: calc(100dvh - 58px); }
  .entrance { min-height: calc(100dvh - 70px); }
  .letters { height: calc(100dvh - 290px); }
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Touch screens: no stuck hover states, bigger targets. */
@media (hover: none) {
  button:hover, .btn:hover { background: transparent; color: var(--ink); }
  .btn-solid:hover { background: var(--ink); color: var(--stone); border-color: var(--ink); }
  button:active, .btn:active { background: var(--ink); color: var(--stone); }
  .btn-solid:active { background: var(--tek); border-color: var(--tek); }
  .btn-text:hover, .btn-text:active, .x:hover { background: none; }
  a.index-row:hover, a.season-row:hover { background: none; color: inherit; padding-left: 0; padding-right: 0; }
  a.season-row.next:hover { padding-left: 14px; }
  a.season-row:hover .t, a.season-row:hover .theme.none { color: inherit; }
  a.season-row:hover .label, a.season-row:hover .muted, a.index-row:hover .label { color: var(--ink-3); }
  a.season-row.next:hover .t { color: var(--tek); }
  a.season-row.past:hover, a.index-row.past:hover { color: var(--ink-3); }
  a.season-row:active, a.index-row:active { background: var(--stone-2); }
  .person:hover .portrait img { filter: grayscale(1) contrast(1.05); transform: none; }
  .person:active .portrait img { filter: grayscale(0); }
  .letters .people-list a:hover { padding-left: 0; }
  .cta-band > a:hover { color: inherit; font-style: normal; }
  .ul { background-size: 0 1px; }
  .ul.on { background-size: 100% 1px; }
  .x { padding: 10px 8px; margin: -6px -4px; font-size: 22px; }
  .btn-text { padding: 10px 0; }
  .filters button { padding: 8px 0; }
  input[type=checkbox] { width: 22px; height: 22px; }
  input[type=checkbox]:checked::after { width: 6px; height: 11px; }
}

@media (max-width: 860px) {
  /* ≥16px stops iOS zooming into a field when it is tapped */
  input, select, textarea, input[type=date],
  .rows > li select, .todo select, .todo input[type=date],
  table.ledger td input, table.ledger .r input, .inline-form > input, .inline-form > select { font-size: 16px; }
  input[type=date] { -webkit-appearance: none; appearance: none; min-height: 42px; text-align: left; background: transparent; }
  input[type=date]::-webkit-date-and-time-value { text-align: left; }

  /* section nav pinned under the top bar, swipeable */
  .ws-top { position: sticky; top: 0; }
  .ws-nav { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 15; background: var(--stone); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ws-nav::-webkit-scrollbar { display: none; }
  .ws-nav li a { padding: 14px 14px; }
  .ws-nav li:first-child a { padding-left: var(--gutter); }

  .hero-word { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-word .he { align-self: flex-end; }
  .hero-word h1 { font-size: clamp(72px, 25vw, 140px); }
  .page-title h1 { font-size: clamp(48px, 14vw, 80px); }
  .week-title h1 { font-size: clamp(56px, 17vw, 96px); }
  .week-title .names { gap: 16px; }
  .entrance { min-height: 0; padding-top: 36px; }
  .entrance .left { gap: 18px; }
  .who li button { padding: 16px 0; font-size: 28px; }
  .brief { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .brief .field[style*="span 2"] { grid-column: 1 / -1 !important; }
  table.ledger { min-width: 520px; }
  .inline-form { gap: 12px; }
  .inline-form > .wide { flex-basis: 100%; }
  .post { gap: 6px 14px; }
  .notice { padding: 22px 0 26px; }
  .feature { padding: 22px 0 28px; }
  .split > * { padding-right: 0; }
  .letters { height: auto; min-height: 0; }
  .thread { height: calc(100vh - 230px); }
  @supports (height: 100dvh) { .thread { height: calc(100dvh - 230px); } }
  .thread .msgs { padding-top: 16px; }
  .thread form { padding-bottom: env(safe-area-inset-bottom); }
  .letter { max-width: 88%; }
  .chip.xl { width: 140px; height: 175px; font-size: 84px; }
  .pub-foot { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .id-stage { padding: 28px; }
}
@media (max-width: 420px) {
  .figures .figure .v { font-size: 38px; }
  .season-row { grid-template-columns: 60px 1fr auto; }
  .season-row .t { font-size: 22px; }
}
/* grid children must be allowed to shrink, or a wide table stretches the page */
.sec > *, .brief > *, .cols-2 > *, .split > * { min-width: 0; }
@media (max-width: 860px) {
  .pub-head { grid-template-columns: auto 1fr; gap: 12px; }
  .pub-head nav { justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  /* must follow the dvh block above: on phones the nav is a one-line strip */
  .ws-nav { height: auto; overflow-y: hidden; }
}

/* ── flyers ─────────────────────────────────────────────────────────────── */
.index-row { grid-template-columns: 60px 150px 1fr 1fr 130px; }
.index-row .c-go { text-align: right; }
.index-row.has-flyer { cursor: pointer; }
.flyer-cta { color: var(--tek); opacity: 0; transition: opacity .25s; }
.index-row.has-flyer:hover, .index-row.has-flyer:focus-visible { background: var(--ink); color: var(--stone); padding-left: 14px; padding-right: 14px; outline: none; }
.index-row.has-flyer:hover .label, .index-row.has-flyer:hover .tek, .index-row.has-flyer:hover .flyer-cta,
.index-row.has-flyer:focus-visible .flyer-cta { color: var(--stone); }
.index-row.has-flyer:hover .flyer-cta, .index-row.has-flyer:focus-visible .flyer-cta { opacity: 1; }
.flyer-mark { font-size: 9px; vertical-align: middle; margin-left: 6px; border: 1px solid currentColor; padding: 1px 4px; }
.flyer-thumb { max-width: min(340px, 100%); border: 1px solid var(--rule); cursor: zoom-in; display: block; }
.status::before { flex: 0 0 auto; }
@media (hover: none) {
  .flyer-cta { opacity: 1; }
  .index-row.has-flyer:hover { background: none; color: inherit; padding-left: 0; padding-right: 0; }
  .index-row.has-flyer:hover .label { color: var(--ink-3); }
  .index-row.has-flyer:hover .flyer-cta { color: var(--tek); }
  .index-row.has-flyer:active { background: var(--stone-2); }
}
@media (max-width: 860px) {
  .index-row { grid-template-columns: 34px 78px 1fr auto; }
  .index-row .c-go { display: block; }
  .index-row .c-go:empty { display: none; }
}
.index-row.has-flyer:hover .t, .index-row.has-flyer:hover .holiday,
.index-row.has-flyer:focus-visible .t { color: var(--stone); }
@media (hover: none) { .index-row.has-flyer.next:hover .t { color: var(--tek); } .index-row.has-flyer:hover .t { color: inherit; } }

/* ── tutorial ───────────────────────────────────────────────────────────── */
#tour { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.tour-spot { position: fixed; outline: 1px solid var(--tek); box-shadow: 0 0 0 200vmax rgba(21, 18, 14, .72);
  transition: left .35s cubic-bezier(.2,.7,.2,1), top .35s cubic-bezier(.2,.7,.2,1), width .35s cubic-bezier(.2,.7,.2,1), height .35s cubic-bezier(.2,.7,.2,1); }
.tour-spot.none { left: 50%; top: 50%; width: 0; height: 0; outline: none; }
.tour-card { position: fixed; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 2 * var(--gutter)));
  background: var(--stone); border-top: 3px solid var(--tek); padding: 22px 26px 22px; pointer-events: auto; }
.tour-top { display: flex; justify-content: space-between; align-items: center; }
.tour-card h3 { font: 400 34px/1.02 var(--serif); margin: 14px 0 10px; letter-spacing: -.01em; }
.tour-card p { color: var(--ink-2); font-size: 15px; }
.tour-progress { height: 1px; background: var(--rule); margin: 20px 0 14px; }
.tour-progress span { display: block; height: 1px; background: var(--tek); transition: width .35s; }
.tour-nav { display: flex; justify-content: space-between; align-items: center; }
.tour-nav button[disabled] { opacity: .3; cursor: default; }
@media (max-width: 860px) {
  .tour-card { left: 0; right: 0; bottom: 0; width: auto; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
  .tour-card h3 { font-size: 28px; }
}
/* scrolling to a section lands it below the sticky header (tutorial, anchors) */
html { scroll-padding-top: 90px; }
@media (max-width: 860px) {
  html { scroll-padding-top: calc(140px + env(safe-area-inset-top)); }
  /* short pages: give leftover height to the content, never the nav strip */
  .ws { grid-template-rows: auto 1fr; }
}

/* ── group chat ─────────────────────────────────────────────────────────── */
.letters .people-list a.group-row { border-bottom: 1px solid var(--rule-strong); }
.letters .people-list a.group-row .n { font-style: italic; }
.letters .people-list .list-head { padding: 18px 0 6px; border-bottom: 1px solid var(--rule); }
.letter.cont { margin-top: -14px; }
@media (max-width: 860px) {
  .thread { height: auto; }
  .thread .msgs { overflow: visible; padding-bottom: 8px; }
  .thread form { position: sticky; bottom: 0; background: var(--stone); padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
}

/* ── public week details ───────────────────────────────────────────────── */
.pub-theme { display: block; font: italic 400 18px/1.2 var(--serif); color: var(--tek); margin-top: 3px; }
.index-row.has-flyer:hover .pub-theme { color: var(--stone); }
.veil.week-veil { place-items: center; overflow-y: auto; }
.week-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(1060px, 100%); max-height: calc(100vh - 8vw);
  background: var(--stone); cursor: default; }
@supports (height: 100dvh) { .week-detail { max-height: calc(100dvh - 8vw); } }
.week-detail:not(:has(.wd-flyer)) { grid-template-columns: 1fr; width: min(620px, 100%); }
.wd-flyer { display: block; background: var(--stone-2); overflow: hidden; }
.wd-flyer img { width: 100%; height: 100%; max-height: calc(100vh - 8vw); object-fit: contain; display: block; }
.wd-text { padding: 30px 34px 30px; display: flex; flex-direction: column; overflow-y: auto; }
.wd-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule-strong); padding-bottom: 12px; }
.wd-date { margin-top: 26px; }
.wd-parsha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 400 22px var(--serif); border-bottom: 1px solid var(--rule); padding: 8px 0 14px; }
.wd-parsha .he { color: var(--tek); font-size: 26px; }
.wd-theme { font: italic 400 clamp(44px, 5vw, 76px)/.9 var(--serif); letter-spacing: -.025em; color: var(--tek); margin: 26px 0 18px; }
.wd-note { color: var(--ink-2); font-size: 17px; line-height: 1.6; white-space: pre-line; }
.wd-foot { margin-top: auto; padding-top: 30px; }
.wd-open { margin-top: 10px; align-self: flex-start; }
@media (max-width: 860px) {
  .veil.week-veil { padding: 0; place-items: stretch; }
  .week-detail { grid-template-columns: 1fr; max-height: none; min-height: 100%; width: 100%; }
  .wd-flyer img { max-height: none; height: auto; }
  .wd-text { padding: 22px var(--gutter) calc(30px + env(safe-area-inset-bottom)); overflow: visible; }
  .wd-top { position: sticky; top: 0; background: var(--stone); padding-top: max(12px, env(safe-area-inset-top)); z-index: 2; }
  .week-detail { display: flex; flex-direction: column-reverse; }
  .wd-text { order: 0; }
}

/* ── home: this Shabbat ─────────────────────────────────────────────────── */
.showcase { padding: clamp(10px, 3vw, 40px) var(--gutter) 0; }
.showcase-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding-top: 34px; align-items: start; }
.showcase-flyer { grid-column: 1 / span 6; padding: 0; border: none; background: var(--stone-2); cursor: zoom-in; display: block; }
.showcase-flyer:hover { background: var(--stone-2); }
.showcase-flyer img { width: 100%; height: auto; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.showcase-flyer:hover img { transform: scale(1.015); }
.showcase-text { grid-column: 8 / span 5; display: flex; flex-direction: column; position: sticky; top: 30px; }
.showcase-body.no-flyer .showcase-text { grid-column: 1 / span 8; position: static; }
.showcase-text h3 { font: italic 400 clamp(56px, 7vw, 120px)/.86 var(--serif); letter-spacing: -.03em; color: var(--tek); margin: 22px 0 22px; }
.showcase-text p { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; white-space: pre-line; }
.showcase-text .he { font-family: var(--hebrew); text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--tek); }
@media (hover: none) { .showcase-flyer:hover img { transform: none; } }
@media (max-width: 860px) {
  .showcase-flyer, .showcase-text, .showcase-body.no-flyer .showcase-text { grid-column: 1 / -1; position: static; }
  .showcase-text h3 { font-size: clamp(48px, 14vw, 80px); }
}

/* ── photos in notices ─────────────────────────────────────────────────── */
.attach { display: flex; align-items: flex-end; gap: 18px; margin: -6px 0 18px; }
.attach img { max-width: 220px; max-height: 220px; border: 1px solid var(--rule); display: block; }
.notice-photo { margin-top: 18px; max-width: min(560px, 100%); max-height: 640px; border: 1px solid var(--rule); cursor: zoom-in; display: block; }
.notice-thumb { margin-top: 10px; max-width: 180px; max-height: 140px; border: 1px solid var(--rule); cursor: zoom-in; display: block; }
.attach[hidden] { display: none; }
