:root {
  --bg: #f3efe6;
  --card: #fffdf8;
  --ink: #1c1915;
  --muted: #6f675e;
  --faint: #9c9388;
  --line: #eadfce;
  --line-strong: #e3d5c2;
  --green: #114e43;
  --green-dark: #0d4038;
  --gold: #9a7424;
  --banner: #f6efc4;
  --banner-ink: #5e5132;
  --mint: #e5f6f1;
  --mint-line: #7eb8aa;
  --danger: #8d2f2a;
  --shadow: 0 24px 60px rgba(72, 48, 16, 0.08), 0 1px 2px rgba(72, 48, 16, 0.04);
  --sans: "Manrope", "Noto Sans Hebrew", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Noto Serif Hebrew", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 5;
}

.skip:focus { top: 8px; }

.banner {
  background: var(--banner);
  color: var(--banner-ink);
  text-align: center;
  font-size: 13.5px;
  line-height: 1.4;
  padding: 10px 18px;
}

.banner[hidden] { display: none; }

.topbar {
  width: min(1100px, calc(100% - 28px));
  margin: 16px auto 0;
  display: flex;
}

.lang {
  margin-left: auto;
  border: 1px solid #e4d9c8;
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.05);
}

.lang:hover { border-color: #d3c4ad; }

main {
  width: min(760px, calc(100% - 32px));
  margin: 18px auto 12px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 4px 18px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 28px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px rgba(17, 78, 67, 0.22);
  flex: none;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[lang="he"] .eyebrow {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 13.5px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #16140f;
}

html[lang="he"] h1 {
  letter-spacing: 0;
  font-size: 48px;
}

.lede {
  margin: 8px 0 0;
  color: #4e4840;
  font-size: 16.5px;
}

.hours {
  margin: 3px 0 0;
  color: #3c3832;
  font-size: 14.5px;
}

.card {
  background: linear-gradient(180deg, #fffefb 0%, #fbf8f2 100%);
  border: 1px solid #f1e6d6;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
}

.card h2 {
  margin: 18px 0 10px;
  font-size: 15.5px;
  font-weight: 800;
}

.card h2:first-child,
#scheduler > h2:first-of-type,
.manage-note + h2 {
  margin-top: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14.5px;
}

.choice:hover { border-color: #c9b79d; }

.choice[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.schedule {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.86fr);
  gap: 8px 34px;
  margin-top: 22px;
  align-items: start;
}

.cal-head {
  direction: ltr;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  min-height: 36px;
}

.cal-head h2 {
  margin: 0;
  text-align: center;
  font-size: 16px;
}

.nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #eadfce;
  background: #fff;
  color: #3d382f;
  display: grid;
  place-items: center;
  padding: 0;
}

.nav svg { width: 18px; height: 18px; }

.nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.dow, .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.dow {
  margin-top: 8px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.dow span, .day, .blank {
  height: 40px;
  display: grid;
  place-items: center;
}

.day, .blank {
  width: 40px;
  justify-self: center;
}

.day {
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14.5px;
  color: #2a261f;
}

.day:hover:not(:disabled) { background: #f3ece1; }

.day[aria-selected="true"] {
  background: var(--green);
  color: white;
}

.day:disabled, .day.closed {
  color: #cfc6b8;
  cursor: default;
}

.day.closed { color: #d5cdc2; }

.times h2 {
  margin: 6px 0 0;
  font-size: 16px;
}

.times-date {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
  min-height: 1.3em;
}

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 372px;
  overflow: auto;
}

.slot {
  width: 100%;
  text-align: start;
  background: #fff;
  border: 1px solid #eadcc8;
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 750;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.slot:hover { border-color: #d2c2ab; }

.slot[aria-pressed="true"] {
  background: var(--mint);
  border-color: var(--mint-line);
  color: #14352d;
}

.quiet {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.rule {
  border: 0;
  border-top: 1px solid #efe4d4;
  margin: 22px 0 8px;
}

.summary {
  margin: 0 0 14px;
  color: #3e3933;
  font-size: 14.5px;
  min-height: 1.2em;
}

.field { margin-bottom: 12px; }

label {
  display: block;
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 750;
}

input, textarea {
  width: 100%;
  border: 1px solid #e6d9c6;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus, textarea:focus {
  border-color: #7eaa9e;
  box-shadow: 0 0 0 4px rgba(17, 78, 67, 0.12);
}

input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 0;
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.field-error:empty { display: none; }

.confirm {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 18px;
}

.confirm:hover { background: var(--green-dark); }

.confirm:disabled { opacity: 0.7; cursor: progress; }

.text-button {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.manage-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f1e6;
  color: #3f382c;
  font-size: 14.5px;
}

.done-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: 12px;
}

.done-title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 560;
  margin: 0;
  letter-spacing: -0.03em;
}

html[lang="he"] .done-title { letter-spacing: 0; }

.facts {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}

.facts dt {
  color: var(--muted);
  font-weight: 700;
}

.facts dd { margin: 0; font-weight: 650; }

.meet-row a, .manage-row a {
  color: var(--green);
  font-weight: 800;
}

.demo-note {
  background: var(--banner);
  color: var(--banner-ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

footer, .noscript {
  width: min(640px, calc(100% - 32px));
  margin: 18px auto 40px;
  text-align: center;
  color: #8d847a;
  font-size: 13px;
  line-height: 1.5;
}

.admin-main {
  width: min(560px, calc(100% - 32px));
  margin: 48px auto;
}

.admin-main h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.admin-main textarea { min-height: 120px; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  h1 { font-size: 34px; }
  html[lang="he"] h1 { font-size: 36px; }
  .hero { gap: 14px; }
  .avatar { width: 68px; height: 68px; font-size: 22px; }
  .card { padding: 18px 16px 16px; border-radius: 22px; }
  .schedule { grid-template-columns: 1fr; gap: 18px; }
  .slot-list { max-height: none; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .done-title { font-size: 32px; }
}
