/* Kehila Local website. Warm cream paper, graphite "dark metal" panels (the app's member-card family),
   the app's fonts (Geist, Instrument Serif, Bricolage Grotesque for the wordmark), self-hosted. */
@font-face { font-family: "Geist"; src: url("fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/iserif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/iserif-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F6F1E6; --bg2: #EFE7D7; --card: #FFFCF6; --line: #E3D9C6; --line2: #D6CAB3;
  --ink: #1B2027; --ink2: #464B53; --ink3: #6A6E75;
  --accent: #2045BE; --accent-soft: #E4E8F7;
  --metal: #1B2027; --metal2: #262C35; --metal-line: #39414D; --metal-text: #E9ECF1; --metal-text2: #AEB6C2;
  --metal-bg: linear-gradient(135deg, #3B3E43 0%, #25272B 42%, #303237 68%, #1B1D20 100%);
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 32, 39, .05), 0 8px 24px rgba(27, 32, 39, .06);
  --max: 1080px; --prose: 700px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121418; --bg2: #181B20; --card: #1B1F25; --line: #2A2F37; --line2: #373D46;
    --ink: #EEE9DF; --ink2: #BDB7AC; --ink3: #979289;
    --accent: #A9BCFF; --accent-soft: #1E2748;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --bg: #121418; --bg2: #181B20; --card: #1B1F25; --line: #2A2F37; --line2: #373D46;
  --ink: #EEE9DF; --ink2: #BDB7AC; --ink3: #979289;
  --accent: #A9BCFF; --accent-soft: #1E2748;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* ---------- header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--metal-bg); display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font: 700 19px/1 "Bricolage Grotesque", "Geist", sans-serif; letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg2); }
.brand-name, .nav a { white-space: nowrap; }
.nav { flex-wrap: nowrap; }
@media (max-width: 560px) { .nav { gap: 0; } .nav a { padding: 6px 7px; font-size: 14px; } .nav .nav-extra { display: none; } .brand-name { font-size: 17px; } .brand { gap: 8px; } .brand-mark { width: 30px; height: 30px; } }
@media (max-width: 350px) { .top .brand-name { font-size: 15px; } .nav a { padding: 6px 5px; font-size: 13px; } }

/* ---------- type */
h1, h2, h3 { color: var(--ink); margin: 0; }
.display { font: 400 clamp(44px, 7.4vw, 84px)/1.02 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; }
.display em { font-style: italic; }
h2.section { font: 400 clamp(32px, 4.6vw, 46px)/1.08 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 2vw, 20px); line-height: 1.55; color: var(--ink2); max-width: 620px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin: 0 0 14px; }
.muted { color: var(--ink3); }

/* ---------- home */
.hero { padding: 88px 0 72px; }
.hero .lede { margin: 24px 0 0; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; font-weight: 500; color: var(--ink); }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: #17703E; box-shadow: 0 0 0 4px rgba(23, 112, 62, .14); flex: none; }
@media (max-width: 560px) { .hero { padding: 56px 0 48px; } }

.band { padding: 72px 0; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .band { padding: 52px 0; } }
.band-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 680px; }
.band-head p { margin: 0; color: var(--ink2); font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; }
.card p { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.55; }
.glyph { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg2); color: var(--ink); }
.glyph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.metal { background: var(--metal-bg); color: var(--metal-text); border-radius: 28px; padding: 48px; position: relative; overflow: hidden;
  box-shadow: 0 20px 48px rgba(27, 32, 39, .22), inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.metal h2.section { color: #F3F4F6; }
.metal p { color: var(--metal-text2); }
.metal a { color: #fff; }
.metal-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .metal-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 560px) { .metal { padding: 28px 20px; border-radius: 22px; } }
.metal .tag { font: 700 14px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.01em; color: var(--metal-text); display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 15px;
  background: rgba(255, 255, 255, .1); color: #fff; }
.steps b { display: block; color: #F3F4F6; font-weight: 600; }
.steps span { color: var(--metal-text2); font-size: 15px; line-height: 1.5; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 16px;
  text-decoration: none; background: #F3EEE3; color: #1B2027 !important; }
.btn:hover { background: #fff; }
.btn-line { background: transparent; color: var(--ink) !important; border: 1px solid var(--line2); }
.btn-line:hover { background: var(--card); }

.contact { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.contact p { margin: 0; font-size: 18px; color: var(--ink2); }

/* ---------- document pages */
.doc { padding-top: 64px; padding-bottom: 88px; }
@media (max-width: 560px) { .doc { padding-top: 40px; padding-bottom: 64px; } }
.doc-head { max-width: var(--prose); margin-bottom: 40px; }
.doc-head h1 { font: 400 clamp(42px, 6vw, 64px)/1.04 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; }
.doc-head p { margin: 16px 0 0; color: var(--ink2); font-size: 18px; }
.doc-head .meta { font-size: 15px; color: var(--ink3); }
.layout { display: grid; grid-template-columns: 220px minmax(0, var(--prose)); gap: 56px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }
.toc { position: sticky; top: 24px; font-size: 14px; }
.toc p { margin: 0 0 10px; font-weight: 600; color: var(--ink3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.prose { max-width: var(--prose); min-width: 0; }
.prose h2 { font: 600 24px/1.25 "Geist", sans-serif; letter-spacing: -.02em; margin: 48px 0 12px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink2); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink3); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-size: .88em; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 40px; box-shadow: var(--shadow); }
.summary h2 { margin: 0 0 10px !important; font-size: 18px !important; }
.summary ul { margin: 0; }
.note { border-left: 3px solid var(--ink); background: var(--bg2); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 16px; }
.note p:last-child { margin-bottom: 0; }
.table { width: 100%; border-collapse: collapse; margin: 4px 0 20px; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink2); }
.table th { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 560px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table td { border: 0; padding: 2px 0; }
  .table td:first-child { color: var(--ink); font-weight: 600; }
}
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 24px; }
@media (max-width: 640px) { .cards2 { grid-template-columns: minmax(0, 1fr); } }
.cards2 .card h3 { margin-top: 0; }
.cards2 .card p { font-size: 15.5px; }
.path { display: inline-block; font-weight: 600; color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; }

/* ---------- footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; color: var(--ink3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--ink2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { margin: 6px 0 0; }
