/* anash.app: a shul's weekly tzettel in front of the sky it keeps time by.
   Night navy and day blue (the logo's two colors) are the sky; letter paper,
   navy rules and Hebrew poster type are the tzettel. */

@font-face { font-family: 'Gloock'; font-weight: 400; font-display: swap; src: url(/fonts/gloock-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url(/fonts/hanken-grotesk-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url(/fonts/hanken-grotesk-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url(/fonts/hanken-grotesk-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'Frank Ruhl Libre'; font-weight: 300 900; font-display: swap; src: url(/fonts/frank-hebrew.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl Libre'; font-weight: 300 900; font-display: swap; src: url(/fonts/frank-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Suez One'; font-weight: 400; font-display: swap; src: url(/fonts/suez-hebrew-400.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+FB1D-FB4F; }
@font-face { font-family: 'Suez One'; font-weight: 400; font-display: swap; src: url(/fonts/suez-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  color-scheme: light;
  --navy: #112f4c;
  --navy-deep: #0a1d31;
  --navy-2: #1f4468;
  --day: #acccec;
  --day-pale: #dce9f5;
  --paper: #f3f6f9;
  --sheet: #ffffff;
  --ink: #112f4c;
  --ink2: #34506d;
  --ink3: #536a83;
  --rule: #d3deea;
  --line: #b9cadb;
  --focus: #2d6aa3;
  /* the night sky, top to horizon */
  --night-1: #0f2a45;
  --night-2: #143656;
  --night-3: #234a70;
  --mist: #e6edf4;
  --day-hover: #c2dbf2;
  --line-hover: #9fb4ca;
  --placeholder: #5f7288;
  /* type on the night sky, brightest first */
  --on-night: #eaf1f8;
  --on-night-2: #cfdeed;
  --on-night-3: #a9bed3;
  --screen: #0d1520;
  /* the three states a field can be in, each a pair */
  --bad: #9b2c3f;
  --bad-line: #b8455a;
  --bad-bg: #fbe9ec;
  --warn: #7a4a0c;
  --good: #2f6b45;
  --good-bg: #e8f2ec;
  --serif: 'Gloock', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --he: 'Frank Ruhl Libre', 'David', serif;
  --he-head: 'Suez One', 'Frank Ruhl Libre', serif;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--day); color: var(--navy); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[lang='he'] { font-family: var(--he); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- buttons and fields ------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff; font: 600 16px/1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 18px -8px rgba(10, 29, 49, 0.55);
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.day { background: var(--day); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(5, 18, 32, 0.7); }
.btn.day:hover { background: var(--day-hover); }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.quiet:hover { background: #fff; }

.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label { font: 600 15px/1.3 var(--sans); color: var(--ink2); }
.field .hint { font-size: 15px; line-height: 1.45; color: var(--ink3); }
.field .err { font-size: 15px; line-height: 1.45; color: var(--bad); font-weight: 500; }
.field .warn { font-size: 15px; line-height: 1.45; color: var(--warn); display: flex; gap: 8px; align-items: flex-start; }
.field .warn svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.field .warn button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--focus); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
input, select {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 17px/1.3 var(--sans); caret-color: var(--focus);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: var(--placeholder); }
input:hover, select:hover { border-color: var(--line-hover); }
input:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(45, 106, 163, 0.32); }
input[aria-invalid='true'] { border-color: var(--bad-line); }
input[dir='rtl'] { font-family: var(--he); font-size: 19px; }

/* ---- the top of every page ---------------------------------------------------- */

.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top .mark img { width: 128px; height: auto; }
.top nav {
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: var(--sheet); border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(10, 29, 49, 0.45);
}
.top nav a { padding: 9px 16px; border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; color: var(--ink2); }
.top nav a:hover { background: var(--paper); color: var(--ink); }
.top nav a.go { background: var(--navy); color: #fff; }
.top nav a.go:hover { background: var(--navy-2); }

/* ---- the first screen: words on paper, the week in the window ---------------------- */

.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr);
  min-height: max(760px, 100svh);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  padding: 150px clamp(28px, 4vw, 72px) 90px var(--gutter);
}
.hero h1 { font: 400 clamp(50px, 5vw, 78px)/1.02 var(--serif); letter-spacing: -0.018em; color: var(--navy); text-wrap: initial; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink2); max-width: 31em; }

.claim { display: grid; gap: 10px; margin-top: 6px; max-width: 540px; }
.claim-row { display: flex; gap: 10px; }
.claim-row input { flex: 1; min-width: 0; }
.claim-addr { font-size: 15px; color: var(--ink3); min-height: 1.6em; }
.claim-addr b { color: var(--ink); font-weight: 600; }
.claim-addr b span { color: var(--focus); }
.free { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink2); }
.free svg { width: 18px; height: 18px; color: var(--focus); flex: none; }

/* The window: a sky that keeps time, and the sheet standing in it. */
.window {
  --sky-top: var(--night-1); --sky-mid: var(--night-2); --sky-low: var(--night-3); --glow: 0; --stars: 1; --glow-x: 50%;
  position: relative; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto; justify-items: center;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
}
.window::before {
  /* the light low on the horizon, where the sun comes up or went down */
  content: ''; position: absolute; inset: auto -20% -30% -20%; height: 75%;
  background: radial-gradient(ellipse at var(--glow-x) 100%, rgba(236, 244, 252, 0.85), rgba(220, 233, 245, 0.35) 38%, transparent 70%);
  opacity: var(--glow); pointer-events: none;
}
.stars { position: absolute; inset: 0; opacity: var(--stars); pointer-events: none; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--on-night); }
.sheet-wrap { position: relative; align-self: center; padding: 120px 40px 36px; }
.sample-note {
  position: absolute; inset-inline-start: 40px; bottom: 0;
  padding: 5px 12px; border-radius: 999px; background: var(--sheet);
  font-size: 14px; letter-spacing: 0.005em; color: var(--ink2);
  box-shadow: 0 6px 16px -10px rgba(5, 15, 28, 0.5);
}

/* The tzettel: a Letter page, set the way a shul's weekly sheet is. */
.tz {
  position: relative; width: min(470px, 34vw); aspect-ratio: 8.5 / 11;
  background: var(--sheet); color: var(--navy);
  padding: 7.5% 8.5% 6%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 60px -24px rgba(5, 15, 28, 0.6), 0 8px 18px -10px rgba(5, 15, 28, 0.35);
  font-size: clamp(12px, 1.12vw, 16px);
  display: flex; flex-direction: column;
}
.tz-head { text-align: center; padding-bottom: 0.7em; border-bottom: 3px double var(--navy); }
.tz-shul { font: 400 2.05em/1.15 var(--he-head); }
.tz-sub { font-size: 0.92em; color: var(--ink2); margin-top: 0.15em; }
.tz-title { text-align: center; font: 400 1.55em/1.2 var(--he-head); margin-top: 0.75em; }
.tz-date { text-align: center; font-size: 0.95em; color: var(--ink2); margin-bottom: 0.4em; }
.tz-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6em; row-gap: 0.55em; margin-top: 0.4em; }
.tz-sec .tz-h { font: 700 1em/1.3 var(--he); padding-bottom: 0.2em; margin-bottom: 0.25em; border-bottom: 1px solid var(--navy); }
.tz-sec.wide { grid-column: 1 / -1; }
.tz-col { display: grid; gap: 0.55em; align-content: start; }
.tz-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.12em; }
.tz-sec.wide ul { grid-template-columns: 1fr 1fr; column-gap: 1.6em; }
.tz li { display: flex; align-items: baseline; gap: 0.35em; line-height: 1.55; border-radius: 3px; transition: background 0.4s; }
.tz li span { white-space: nowrap; }
.tz li small { font-size: 0.8em; color: var(--ink3); }
.tz li i { flex: 1; min-width: 0.6em; border-bottom: 1.5px dotted rgba(17, 47, 76, 0.45); transform: translateY(-0.28em); }
.tz li b { font: 600 1.02em/1 var(--he); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; letter-spacing: 0.01em; }
.tz li b.typing::after { content: ''; display: inline-block; width: 1px; height: 0.9em; background: currentColor; margin-inline-start: 1px; vertical-align: -0.05em; animation: caret 0.7s steps(1) infinite; }
.tz li.lit { background: rgba(172, 204, 236, 0.45); box-shadow: 0 0 0 0.25em rgba(172, 204, 236, 0.45); }
.tz-kiddush {
  margin-top: auto; text-align: center; padding: 0.7em 0.8em; border: 1.5px solid var(--navy); outline: 1px solid var(--navy); outline-offset: 3px;
  font-size: 0.95em; line-height: 1.5;
}
.tz-kiddush b { font: 400 1.25em/1.5 var(--he-head); }
.tz .fill { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.tz li.fill:not(.in) b { opacity: 0; }
.tz aside.fill:not(.in) { opacity: 0; transform: translateY(4px); }
@keyframes caret { 50% { opacity: 0; } }

/* The day, along the foot of the window: each zman a stop you can go to. */
.strip {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: repeat(7, 1fr); align-items: end;
  padding: 0 28px; margin: 0;
  background: var(--sheet); border-top: 1px solid var(--rule);
  touch-action: none; cursor: ew-resize; user-select: none;
}
.strip::before { /* the line the day runs along */
  content: ''; position: absolute; inset: 0 28px auto 28px; height: 3px; background: var(--rule);
}
.strip .run { position: absolute; top: 0; left: 28px; height: 3px; width: calc((100% - 56px) * var(--p, 0)); background: var(--navy); }
.strip .sun {
  position: absolute; top: -8px; left: calc(28px + (100% - 56px) * var(--p, 0)); width: 19px; height: 19px; margin-left: -9.5px;
  border-radius: 50%; background: var(--day); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--navy);
}
.strip button {
  appearance: none; border: 0; background: none; padding: 16px 4px 14px; cursor: pointer;
  display: grid; justify-items: center; gap: 2px; color: var(--ink3); font: inherit; border-radius: 0;
}
.strip button .he { font: 500 14px/1.2 var(--he); color: var(--ink2); }
.strip button .t { font: 600 14px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.strip button:focus-visible { outline-offset: -4px; border-radius: 10px; }
.strip button[aria-pressed='true'] .he, .strip button[aria-pressed='true'] .t { color: var(--navy); }
.strip button[aria-pressed='true'] .he { font-weight: 700; }
.strip button:hover .he { color: var(--navy); }

/* On the night sky, the focus ring is day blue. */
.close :focus-visible, .foot :focus-visible, .signin-page .top-note :focus-visible { outline-color: var(--day); }

/* ---- the sections below -------------------------------------------------------- */

.band { padding: clamp(96px, 11vw, 150px) var(--gutter); }
.band.white { background: #fff; }
.inner { max-width: 1240px; margin: 0 auto; }
.band h2 { font: 400 clamp(40px, 4.2vw, 60px)/1.04 var(--serif); letter-spacing: -0.015em; color: var(--navy); }
.band .says { font-size: 19px; line-height: 1.65; color: var(--ink2); max-width: 34em; }

/* Set once: the rule as it's typed, the week it makes. */
.rules { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.rules .copy { display: grid; gap: 24px; }
.rules .copy ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.rules .copy li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink2); }
.rules .copy li svg { width: 22px; height: 22px; color: var(--focus); margin-top: 2px; }
.rulebook { background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -40px rgba(10, 29, 49, 0.45), 0 0 0 1px var(--rule); overflow: hidden; }
.rule-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 26px 30px;
  background: var(--navy); color: #fff; font-size: 17px;
}
.rule-line .who { font: 400 24px/1 var(--he-head); margin-inline-end: 6px; }
.rule-line .chip { padding: 7px 13px; border-radius: 999px; background: rgba(172, 204, 236, 0.16); box-shadow: inset 0 0 0 1px rgba(172, 204, 236, 0.4); color: var(--on-night); font-weight: 500; font-size: 15px; }
.week-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.week-table th { text-align: start; font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); padding: 18px 30px 12px; border-bottom: 1px solid var(--rule); }
.week-table td { padding: 15px 30px; border-bottom: 1px solid var(--rule); color: var(--ink2); font-size: 16px; }
.week-table tr:last-child td { border-bottom: 0; }
.week-table td.t { font-weight: 600; color: var(--ink); }
.week-table td.out { font: 400 26px/1 var(--serif); color: var(--navy); }
.week-table .keep { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--sans); color: var(--focus); margin-inline-start: 10px; vertical-align: 3px; }
.rule-foot { padding: 16px 30px 22px; font-size: 15px; color: var(--ink3); background: var(--paper); }

/* What comes out of it: the real things, at their own shapes. */
.what-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
/* Four rows the pieces share (subgrid), so the three captions in the second band start on one line. */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; column-gap: clamp(20px, 2.4vw, 36px); row-gap: 18px; }
.piece { display: grid; grid-template-rows: subgrid; margin: 0; }
.piece > .art { min-width: 0; }
.p-people > .art, .p-sponsor > .art, .p-text > .art { margin-top: clamp(26px, 2.6vw, 40px); }
.p-text > .art { align-self: stretch; }
.p-people .ledger, .ledger ul { display: flex; flex-direction: column; }
.ledger ul { flex: 1; }
.ledger li { flex: 1; align-content: center; }

.piece .cap { display: grid; gap: 6px; max-width: 30em; align-content: start; }
.piece .cap h3 { font: 400 26px/1.15 var(--serif); color: var(--navy); }
.piece .cap p { color: var(--ink2); font-size: 17px; line-height: 1.6; }
.p-wall { grid-column: 1 / span 8; grid-row: 1 / span 2; }
.p-mail { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.p-people { grid-column: 1 / span 4; grid-row: 3 / span 2; }
.p-sponsor { grid-column: 5 / span 4; grid-row: 3 / span 2; }
.p-text { grid-column: 9 / span 4; grid-row: 3 / span 2; }

/* the screen on the shul's wall */
.tv { padding: 12px; background: var(--screen); border-radius: 16px; box-shadow: 0 40px 70px -40px rgba(5, 15, 28, 0.7); }
.board {
  aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; color: var(--on-night);
  background: linear-gradient(160deg, var(--night-1), var(--navy-deep) 70%);
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 3%; padding: 3.2% 3.4%;
  font-size: clamp(8px, 0.92vw, 13.5px);
}
.board .col { display: flex; flex-direction: column; gap: 0.7em; min-width: 0; }
.board .col .bh { margin: 0; font: 400 1.25em/1.2 var(--he-head); color: var(--day); padding-bottom: 0.35em; border-bottom: 1px solid rgba(172, 204, 236, 0.3); }
.board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3em; }
.board li { display: flex; justify-content: space-between; gap: 0.6em; font: 400 1.12em/1.35 var(--he); }
.board li b { font: 600 1em/1.35 var(--sans); font-variant-numeric: tabular-nums; direction: ltr; }
.board li.next { color: var(--day); }
.board .clock { text-align: center; display: grid; align-content: center; gap: 0.3em; }
.board .clock .now { font: 400 6.2em/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.board .clock .day { font: 400 1.35em/1.3 var(--he-head); color: var(--day-pale); }
.board .clock .date { font: 400 1.12em/1.3 var(--he); color: rgba(223, 233, 244, 0.75); }
.board .note { margin-top: auto; padding: 0.7em 0.8em; border-radius: 0.5em; background: rgba(172, 204, 236, 0.12); font: 400 1.05em/1.45 var(--he); }
.board .note b { font-family: var(--he-head); font-weight: 400; color: var(--day); display: block; }

/* an email, as it lands */
.mail { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(10, 29, 49, 0.5), 0 0 0 1px var(--rule); }
.mail-head { padding: 16px 20px; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; font-size: 14px; color: var(--ink3); }
.mail-head b { color: var(--ink); font-weight: 600; font-size: 15px; }
.mail-body { padding: 18px 20px 22px; background: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.mail-body .mini { width: 78%; margin: 0 auto; font-size: 7.4px; padding: 7% 8% 6%; box-shadow: 0 10px 24px -14px rgba(10, 29, 49, 0.4); }
.mail-body p { font-size: 15px; color: var(--ink2); text-align: center; }
.sms { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 24px 50px -36px rgba(10, 29, 49, 0.45); }
.sms-head { display: grid; justify-items: center; gap: 2px; padding: 14px 16px 12px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.sms-head .av { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 400 15px/1 var(--serif); }
.sms-head b { font-weight: 600; font-size: 15px; color: var(--ink); }
.sms-head span { font-size: 13px; color: var(--ink3); }
.sms-body { flex: 1; padding: 16px; display: grid; align-content: end; gap: 6px; }
.sms-body .when { justify-self: center; font-size: 13px; color: var(--ink3); }
.sms-body .in { justify-self: start; max-width: 88%; background: var(--mist); color: var(--ink); padding: 11px 14px; border-radius: 18px 18px 18px 4px; font-size: 15px; line-height: 1.45; }

/* people, and the days to remember them */
.ledger { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--rule), 0 24px 50px -36px rgba(10, 29, 49, 0.45); overflow: hidden; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 13px 18px; border-bottom: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 0; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger .n { font-weight: 600; color: var(--ink); font-size: 15px; }
.ledger .h { font: 400 15px/1.5 var(--he); color: var(--ink2); }
.ledger .d { grid-row: span 2; align-self: center; text-align: end; font-size: 13px; color: var(--ink3); line-height: 1.35; }
.ledger .d b { display: block; font: 400 15px/1.3 var(--he); color: var(--navy); }
.ledger .soon .d b { color: var(--focus); }

/* the kiddush notice and its thank-you */
.notice-card {
  background: #fff; padding: 22px 20px; text-align: center; color: var(--navy);
  box-shadow: 0 0 0 1px var(--rule), 0 24px 50px -36px rgba(10, 29, 49, 0.45); border-radius: 4px;
}
.notice-card .frame { border: 1.5px solid var(--navy); outline: 1px solid var(--navy); outline-offset: 4px; padding: 16px 12px; display: grid; gap: 4px; }
.notice-card .t1 { font: 400 22px/1.2 var(--he-head); }
.notice-card .t2 { font: 400 15px/1.5 var(--he); color: var(--ink2); }
.notice-card .t3 { font: 400 19px/1.4 var(--he-head); }

/* Getting started, then the close under the night sky. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); counter-reset: step; }
.steps li { list-style: none; display: grid; gap: 12px; padding-top: 22px; border-top: 2px solid var(--navy); counter-increment: step; }
.steps li::before { content: counter(step); font: 400 44px/1 var(--serif); color: var(--navy); }
.steps h3 { font: 600 19px/1.35 var(--sans); color: var(--ink); }
.steps p { color: var(--ink2); }
.steps { padding: 0; }

.close {
  position: relative; overflow: hidden; color: var(--on-night);
  background: linear-gradient(180deg, var(--night-1), var(--night-2) 65%, var(--night-3));
  padding: clamp(110px, 12vw, 170px) var(--gutter) clamp(90px, 9vw, 130px);
}
.close .stars { opacity: 0.9; }
.close .inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 26px 56px; }
.close .words { display: grid; justify-items: start; gap: 26px; }
.close-sheet { width: 360px; align-self: end; margin-bottom: calc(-1 * clamp(90px, 9vw, 130px) - 70px); }
.close-sheet .tz { width: 100%; font-size: 11.5px; transform: rotate(-2deg); transform-origin: bottom center; }
.close-sheet .tz .tz-kiddush { display: none; }
.close-sheet .tz li b { white-space: nowrap; }
.close h2 { font: 400 clamp(50px, 5vw, 78px)/1.02 var(--serif); letter-spacing: -0.015em; color: #fff; max-width: 12em; }
.close p { font-size: 19px; color: var(--on-night-2); max-width: 32em; }
.close .row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.close .row a.plain { color: var(--day-pale); font-weight: 500; padding: 12px 4px; }

.foot { background: var(--navy-deep); color: var(--on-night-3); padding: 34px var(--gutter); }
.foot .inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 15px; }
.foot img { width: 96px; height: auto; }
.foot nav { display: flex; gap: 10px; }
.foot nav a { padding: 10px 8px; }
.foot a { color: var(--day-pale); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot a[aria-current='page'] { color: #fff; }
.next-note a { color: var(--focus); }

/* ---- the sign-up and sign-in pages ------------------------------------------------- */

.form-page { display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); min-height: 100svh; }
.form-page .form-side { order: -1; }
.form-page .window { position: sticky; top: 0; height: 100svh; }
.form-page .window .sheet-wrap { padding-top: 110px; }
.form-side { padding: 130px clamp(32px, 5vw, 80px) 80px var(--gutter); display: grid; align-content: start; gap: 26px; max-width: 640px; }
.form-side h1 { font: 400 clamp(40px, 3.6vw, 54px)/1.05 var(--serif); letter-spacing: -0.015em; color: var(--navy); }
.form-side .says { color: var(--ink2); font-size: 17px; }
.form-grid { display: grid; gap: 20px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.form-grid legend { font: 400 24px/1.2 var(--serif); color: var(--navy); margin-bottom: 14px; padding: 0; }
.form-grid .rule-top { margin-top: 10px; }
.addr-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.addr-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(45, 106, 163, 0.32); }
.addr-input input { border: 0; box-shadow: none !important; border-radius: 0; min-width: 0; }
.addr-input span { display: flex; align-items: center; padding: 0 16px; background: var(--paper); color: var(--ink3); font-size: 16px; border-inline-start: 1px solid var(--rule); white-space: nowrap; }
.addr-state { font-size: 15px; min-height: 1.45em; display: flex; gap: 6px; align-items: center; }
.addr-state:has(~ .err:not([hidden])) { display: none; }
.addr-state.ok { color: var(--good); }
.addr-state.bad { color: var(--bad); }
.addr-state svg { width: 16px; height: 16px; flex: none; }
.seg { display: inline-flex; justify-self: start; padding: 4px; border-radius: 999px; background: var(--mist); gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; min-height: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink2); }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 2px 6px -2px rgba(10, 29, 49, 0.25); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.pw { position: relative; }
.pw button { position: absolute; inset-inline-end: 6px; top: 6px; height: 40px; width: 40px; border: 0; background: none; border-radius: 10px; color: var(--ink3); cursor: pointer; display: grid; place-items: center; }
.pw button:hover { background: var(--paper); color: var(--ink); }
.pw button svg { width: 20px; height: 20px; }
.form-error { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: 15px; line-height: 1.5; }
.form-error svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small-print { font-size: 14px; color: var(--ink3); }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.next-note { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink2); font-size: 15px; line-height: 1.5; }
.next-note svg { width: 19px; height: 19px; flex: none; color: var(--focus); margin-top: 2px; }
.next-note b { color: var(--ink); font-weight: 600; }
.form-error:focus { outline: 2px solid var(--bad-line); outline-offset: 2px; }
.small-print a { color: var(--ink2); }

/* sign-up: the logo, picked or dropped */
.label .opt { font-weight: 400; color: var(--ink3); }
.logo-pick { position: relative; display: flex; align-items: center; gap: 10px; }
.logo-pick input[type='file'] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.logo-drop {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 12px; background: #fff; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.logo-drop:hover, .logo-drop.over { border-color: var(--focus); background: var(--paper); }
.logo-pick input[type='file']:focus-visible + .logo-drop { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(45, 106, 163, 0.32); }
.logo-pick input[aria-invalid='true'] + .logo-drop { border-color: var(--bad-line); }
.logo-pick.has .logo-drop { border-style: solid; }
.logo-thumb { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--paper); color: var(--ink3); overflow: hidden; }
.logo-thumb svg { width: 24px; height: 24px; }
.logo-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.logo-words { display: grid; gap: 2px; min-width: 0; }
.logo-words b { font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-words span { font-size: 14px; color: var(--ink3); }
.logo-x { flex: none; border: 0; background: none; padding: 10px 8px; font: 500 15px/1 var(--sans); color: var(--ink2); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; border-radius: 8px; }
.logo-x:hover { color: var(--bad); }
.logo-x:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tz-logo { display: block; max-height: 3.2em; max-width: 46%; margin: 0 auto 0.45em; object-fit: contain; }

/* sign-up: address suggestions from Google Maps */
.addr-wrap { position: relative; }
.addr-list {
  position: absolute; z-index: 6; inset: calc(100% + 6px) 0 auto 0; padding: 6px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px var(--rule), 0 18px 36px -16px rgba(5, 15, 28, 0.35);
}
.addr-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.addr-list li { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 8px; cursor: pointer; }
.addr-list li svg { width: 17px; height: 17px; flex: none; color: var(--ink3); }
.addr-list li > span { display: grid; min-width: 0; }
.addr-list li b { font-weight: 500; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-list li span span { font-size: 14px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-list li[aria-selected='true'] { background: var(--paper); }
.addr-list li[aria-selected='true'] svg { color: var(--focus); }
.addr-by { margin: 4px 10px 2px; font-size: 12px; color: var(--ink3); text-align: end; }

/* sign-in: the shuls this browser signed in to before */
.recent { display: grid; gap: 8px; }
.recent .label { font: 600 15px/1.3 var(--sans); color: var(--ink2); }
.recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; transition: box-shadow 0.15s, background 0.15s; }
.recent a:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-hover); }
.recent a b { font-weight: 600; }
.recent a .addr { color: var(--ink3); font-size: 14px; }
.recent a .he { margin-left: auto; color: var(--ink2); font-size: 15px; }
.recent a svg { width: 18px; height: 18px; flex: none; color: var(--ink3); }

/* privacy: a page to read */
.doc-page { background: var(--paper); padding: 150px var(--gutter) 110px; }
.doc { max-width: 680px; margin: 0 auto; }
.doc h1 { font: 400 clamp(40px, 4.2vw, 60px)/1.04 var(--serif); letter-spacing: -0.015em; color: var(--navy); margin-bottom: 20px; }
.doc .lede { margin-bottom: 8px; }
.doc h2 { font: 400 26px/1.15 var(--serif); color: var(--navy); margin: 46px 0 12px; }
.doc p, .doc li, .doc dd { color: var(--ink2); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 0 0 12px; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.doc .services { margin: 0; display: grid; grid-template-columns: minmax(150px, 0.38fr) 1fr; border-top: 1px solid var(--rule); }
.doc .services dt, .doc .services dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.doc .services dt { font-weight: 600; color: var(--ink); padding-inline-end: 20px; }
.doc .contact { margin-top: 40px; padding: 18px 20px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); }
.doc a { color: var(--focus); }

.signin-page { position: relative; overflow: hidden; min-height: 100svh; display: grid; place-items: center; padding: 120px 24px 80px; background: linear-gradient(180deg, var(--night-1), var(--night-2) 60%, var(--night-3)); }
.signin-page .stars { opacity: 0.9; }
.signin-page .top-note { position: relative; }
.signin-card { position: relative; width: min(520px, 100%); background: #fff; border-radius: 3px; padding: 44px 42px 40px; box-shadow: 0 30px 60px -24px rgba(5, 15, 28, 0.6), 0 8px 18px -10px rgba(5, 15, 28, 0.35); display: grid; gap: 22px; }
.signin-card h1 { font: 400 40px/1.05 var(--serif); letter-spacing: -0.012em; color: var(--navy); padding-bottom: 18px; border-bottom: 3px double var(--navy); }
.signin-card .field .err { min-height: 1.45em; }
/* Continue with Google: Google's own mark on a plain white button (their rules for it). */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background 0.15s, box-shadow 0.15s; }
.g-btn:hover { background: #f8f9fa; box-shadow: inset 0 0 0 1px #5f6368; }
.g-btn svg.g { width: 20px; height: 20px; flex: none; }
.google-in { display: grid; gap: 18px; }
.google-in .g-btn { width: 100%; }
.google-said { display: grid; gap: 12px; }
.google-said p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.google-said .recent ul button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); transition: box-shadow 0.15s, background 0.15s; }
.google-said .recent ul button:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-hover); }
.google-said .recent ul button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.google-said .recent ul button b { font-weight: 600; }
.google-said .recent ul button .addr { color: var(--ink3); font-size: 14px; }
.google-said .recent ul button .he { margin-left: auto; color: var(--ink2); font-size: 15px; }
.google-said .recent ul button svg { width: 18px; height: 18px; flex: none; color: var(--ink3); }
@media (max-width: 520px) { .google-said .recent ul button .he { display: none; } }
.google-up { display: grid; gap: 8px; justify-items: start; padding-bottom: 6px; }
.google-up .hint { font-size: 15px; line-height: 1.45; color: var(--ink3); }
.google-up .err { font-size: 15px; line-height: 1.45; color: var(--bad); font-weight: 500; }
.g-as { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.g-as button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--focus); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
input.locked { background: var(--paper); color: var(--ink2); }
.signin-card .or { display: flex; align-items: center; gap: 14px; color: var(--ink3); font-size: 14px; }
.signin-card .or::before, .signin-card .or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.done { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--good-bg); color: var(--good); font-size: 15px; }
.done svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ---- narrower screens ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero, .form-page { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 130px; }
  .window { border-radius: 0; min-height: 720px; }
  .tz { width: min(470px, 82vw); font-size: clamp(9px, 2.7vw, 15px); }
  .rules, .what-head { grid-template-columns: 1fr; }
  .spread { grid-template-rows: none; row-gap: 40px; }
  .piece { grid-template-rows: auto auto; gap: 18px; }
  .p-wall, .p-mail, .p-people, .p-sponsor, .p-text { grid-column: 1 / -1; grid-row: auto; }
  .p-people > .art, .p-sponsor > .art, .p-text > .art { margin-top: 0; }
  .close .inner { grid-template-columns: 1fr; }
  .close-sheet { display: none; }
  .steps { grid-template-columns: 1fr; }
  .form-page .window { order: 0; min-height: 0; position: static; height: auto; }
  .form-page .window .sheet-wrap { padding-top: 40px; }
}
@media (max-width: 640px) {
  .top nav a:not(.go) { display: none; }
  .claim-row { flex-direction: column; }
  .strip { padding: 0 8px; }
  .strip::before { inset: 0 8px auto 8px; }
  .strip button .he { font-size: 12px; }
  .strip button .t { font-size: 11.5px; }
  .tz-body, .tz-sec.wide ul { grid-template-columns: 1fr; }
  .form-grid .two { grid-template-columns: 1fr; }
  .foot .inner { flex-direction: column; align-items: flex-start; }
  .signin-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tz .fill { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Beta, beside the wordmark */
.top .mark { display: inline-flex; align-items: flex-start; gap: 8px; text-decoration: none; }
.beta { margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: var(--day); color: var(--navy); font: 700 11px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.signin-page .beta, .top .mark img[src*='light'] + .beta { background: rgba(172, 204, 236, 0.22); color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(172, 204, 236, 0.45); }

/* sign-up: the terms, agreed to */
.consent { gap: 6px; }
.agree { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; line-height: 1.5; color: var(--ink2); cursor: pointer; }
.agree:hover { box-shadow: inset 0 0 0 1.5px var(--line-hover); }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.agree b { color: var(--ink); font-weight: 600; }
.agree a { color: var(--focus); }
.agree:has(input[aria-invalid='true']) { box-shadow: inset 0 0 0 1.5px var(--bad-line); }
.agree:has(input:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--focus), 0 0 0 3px rgba(45, 106, 163, 0.32); }
.doc-date { color: var(--ink3); font-size: 15px; margin: -8px 0 18px; }
.signin-legal { position: relative; margin-top: 22px; font-size: 13px; color: var(--on-night-3); text-align: center; }
.signin-legal a { color: var(--on-night-2); }

/* sign-up: arrived by invitation */
.invited { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 22px; padding: 14px 16px; border-radius: 12px; background: var(--good-bg); color: var(--good); font-size: 15px; line-height: 1.5; }
.invited svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.invited.gone { background: #fbf1e2; color: var(--warn); }
