/* GetMezuzah.com styles (adapted from GetShabbatCandles.com).
   Inspired by the typography, palette, and tone of GetTefillin.com
   (DM Sans + Manrope, dark ink, cream accent). Original CSS; no assets copied. */

:root {
  --ink: #fbf5e6;            /* page background: warm ivory */
  --ink-deep: #f4ead2;
  --ink-soft: #1b2a41;       /* text on gold buttons: deep navy */
  --ink-panel: #fffdf7;
  --cream: #f0c25a;          /* gold: button fill, accents */
  --cream-hover: #f6d27c;
  --cream-soft: #a8741a;     /* gold: focus / selected borders */
  --white: #1b2a41;          /* body text: deep navy (13:1 on ivory) */
  --muted: #4a566b;          /* secondary text (6.8:1 on ivory) */
  --line: rgba(27, 42, 65, 0.18);
  --input-bg: #fffdf7;
  --input-bg-focus: #ffffff;
  --danger: #a3261a;
  --accent-text: #8a5a00;    /* gold text on ivory (5.4:1) */
  --link: #1b5e8c;           /* sky-blue link (6.4:1 on ivory) */
  --sky: #dcedf8;
  --sky-deep: #a9d3ee;
  --field-border: rgba(27, 42, 65, 0.55);
  --font-sans: "DM Sans", Arial, sans-serif;
  --font-display: "Manrope", Arial, sans-serif;
  --container: min(1120px, calc(100% - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color-scheme: light;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cream);
  color: var(--ink-soft);
  padding: 8px 14px;
  z-index: 20;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  max-width: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 82% -8%, rgba(255, 214, 120, 0.55), transparent 62%),
    radial-gradient(ellipse 60% 45% at 8% 4%, rgba(169, 211, 238, 0.55), transparent 62%),
    linear-gradient(180deg, #fdf8ea 0%, #fbf5e6 55%, #f7eed6 100%);
}

.glow::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: 8%;
  top: 40px;
  background: radial-gradient(circle, rgba(255, 207, 98, 0.45), rgba(255, 225, 150, 0.15) 45%, transparent 70%);
  filter: blur(10px);
}

.wrap {
  position: relative;
  z-index: 1;
  width: var(--container);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.logo b {
  color: var(--accent-text);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--link);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  grid-template-rows: auto auto auto;
  column-gap: 28px;
  row-gap: 6px;
  align-items: start;
  padding: 28px 0 64px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.hero h1 {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
}

.hero h1 em {
  white-space: nowrap;
}

.hero .lede {
  grid-column: 1;
  grid-row: 2;
  margin: 8px 0 4px;
  min-width: 0;
  max-width: none;
}

.hero-art {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  justify-self: stretch;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.signup {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  max-width: 100%;
}

.hero .signup {
  margin-top: 10px;
}

.hero h1,
.apply-page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -0.07em;
  line-height: 1.06;
}

.apply-page h1 {
  font-size: clamp(36px, 5.6vw, 72px);
  max-width: 14ch;
}

.hero h1 em,
.apply-page h1 em {
  color: var(--accent-text);
  font-style: normal;
}

.lede {
  margin: 22px 0 36px;
  max-width: 38em;
  color: var(--white);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.45;
}

.hero-copy .lede {
  margin-bottom: 12px;
}

@media (min-width: 1024px) {

  .hero .lede {
    white-space: normal;
    max-width: 38em;
    font-size: clamp(14px, 1.2vw, 16px);
  }
}


/* Form */
.signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 680px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

[hidden],
.field[hidden] {
  display: none !important;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-group legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.optional {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.signup input,
.signup textarea,
.signup select {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 57px;
  padding: 0 18px;
  color: var(--white);
  background: var(--input-bg);
  border: 1px solid var(--field-border);
  border-radius: 5px;
  font: inherit;
  font-size: 16px;
  backdrop-filter: blur(8px);
  outline: none;
}

.signup select {
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-text) 50%), linear-gradient(135deg, var(--accent-text) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.signup select option {
  color: #1b2a41;
  background: #fffdf7;
}

.signup textarea {
  height: auto;
  min-height: 84px;
  padding: 14px 18px;
  resize: vertical;
}

.signup input::placeholder,
.signup textarea::placeholder {
  color: #5b6678;
  opacity: 1;
}

.signup input:focus,
.signup textarea:focus,
.signup select:focus {
  background: var(--input-bg-focus);
  border-color: var(--cream-soft);
  box-shadow: 0 0 0 3px rgba(168, 116, 26, 0.28);
}

.signup button[type="submit"] {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 59px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.signup button[type="submit"]:hover {
  background: var(--cream-hover);
}

.signup button svg {
  width: 22px;
  height: 22px;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--cream-soft);
  border-radius: 5px;
  background: rgba(240, 194, 90, 0.18);
  color: var(--accent-text);
  font-size: 14px;
}

.form-status.is-visible {
  display: block;
}

/* Apply page extras */
.apply-page {
  padding: 56px 0 80px;
}

.apply-form {
  max-width: 720px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field-group legend {
  padding: 0;
  margin-bottom: 4px;
}

.field-hint {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 5px;
  background: var(--input-bg);
  cursor: pointer;
  color: var(--white);
  font-size: 15px;
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent-text);
  appearance: auto;
}

.choice:hover {
  border-color: var(--cream-soft);
}

.choice:has(:checked),
.choice:has(:focus-visible) {
  border-color: var(--cream-soft);
  background: rgba(240, 194, 90, 0.18);
}

.commitment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px;
  border: 1px solid var(--cream-soft);
  border-radius: 8px;
  background: rgba(240, 194, 90, 0.18);
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
}

.commitment input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--accent-text);
  appearance: auto;
}

.converted-note {
  margin-top: 8px;
}

/* Lighting times */
.times-form {
  max-width: 560px;
}

.times-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.times-row input {
  flex: 1;
  appearance: none;
  height: 57px;
  padding: 0 18px;
  color: var(--white);
  background: var(--input-bg);
  border: 1px solid var(--field-border);
  border-radius: 5px;
  font: inherit;
  font-size: 16px;
  backdrop-filter: blur(8px);
  outline: none;
}

.times-row input::placeholder {
  color: #5b6678;
  opacity: 1;
}

.times-row input:focus {
  background: var(--input-bg-focus);
  border-color: var(--cream-soft);
  box-shadow: 0 0 0 3px rgba(168, 116, 26, 0.28);
}

.times-row button {
  flex: none;
  padding: 0 20px;
  height: 57px;
  border: 0;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.times-row button:hover {
  background: var(--cream-hover);
}

.times-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.times-fallback {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
}

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
}

.section h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.05em;
  line-height: 1.12;
  max-width: 18ch;
}

.section h2 em {
  color: var(--accent-text);
  font-style: normal;
}

.intro {
  max-width: 40em;
  margin: 0 0 36px;
  color: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  padding: 24px 22px 26px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-num {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.step h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.step p a {
  color: var(--link);
}

/* Torah */
.teachings {
  display: grid;
  gap: 18px;
}

.teaching {
  padding: 26px 26px 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cream);
  border-radius: 8px;
}

.teaching blockquote {
  margin: 0 0 14px;
  padding: 0;
  color: var(--white);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  font-weight: 400;
}

.teaching cite {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.teaching cite a {
  color: var(--link);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0 20px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--accent-text);
  border-bottom: 1.5px solid var(--accent-text);
  transform: translateY(-70%) rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-list .answer {
  margin: 0 0 18px;
  color: var(--white);
  max-width: 62ch;
}

.faq-list .answer p {
  margin: 0 0 12px;
}

.faq-list .answer p:last-child {
  margin-bottom: 0;
}

/* Donate */
.donate-card {
  max-width: 680px;
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
}

.donate-card p {
  margin: 0 0 18px;
  color: var(--white);
}

.donate-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 18px;
  background: transparent;
  color: var(--accent-text);
  border: 1px solid var(--accent-text);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.donate-link:hover {
  background: var(--sky-deep);
  color: var(--white);
}

/* Footer — styled like GetTefillin.com */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 26px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}

.credits,
.credits strong {
  margin: 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
  font-size: 11px;
}

.footer-contact {
  color: inherit;
  text-decoration: none;
}

.footer-contact:hover {
  color: var(--accent-text);
}

.attribution {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Mobile / stacked hero below 960px */
@media (max-width: 959px) {
  :root {
    --container: min(1120px, calc(100% - 32px));
  }

  .site-header {
    padding: 20px 0 16px;
  }

  .nav {
    gap: 20px;
  }

  .nav a {
    letter-spacing: 0.15em;
    font-size: 10px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 0 48px;
    gap: 8px;
    overflow: hidden;
  }

  .hero h1,
  .hero .lede,
  .hero-art,
  .signup,
  .thanks-actions {
    width: 100%;
    max-width: 100%;
    grid-column: auto;
    grid-row: auto;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    max-width: none;
  }

  .hero h1 em {
    white-space: nowrap;
  }

  .hero .lede {
    white-space: normal;
    margin: 10px 0 4px;
    font-size: 15px;
  }

  .hero-art {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: 260px;
    order: 0;
    margin: 8px auto 14px;
    overflow: hidden;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .signup {
    grid-template-columns: 1fr;
  }

  .times-row {
    flex-direction: column;
  }

  .logo {
    white-space: normal;
    line-height: 1.15;
  }
}

@media (max-width: 520px) {

  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }


  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }


  .hero-art {
    height: 230px;
  }
}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }
}


@media (max-width: 360px) {

  .hero h1 em {
    white-space: normal;
  }
}


/* Thank-you page */
.thanks-actions {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  max-width: 100%;
  margin-top: 10px;
}

.thank-you-page .hero-art {
  min-height: 420px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 680px;
  height: 59px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--cream-hover);
}

.share-btn svg {
  width: 22px;
  height: 22px;
}

.share-status {
  display: none;
  margin: 12px 0 0;
  color: var(--accent-text);
  font-size: 14px;
}

.share-status.is-visible {
  display: block;
}

.share-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  font-size: 14px;
}

.share-alt a {
  color: var(--link);
}

@media (max-width: 959px) {

  .thank-you-page .hero-art {
    min-height: 0;
  }
}


/* Hero art: doorpost + mezuzah illustration */
.hero-art svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #fbf5e6 0%, rgba(251, 245, 230, 0.55) 10%, transparent 30%),
    linear-gradient(270deg, #fbf5e6 0%, rgba(251, 245, 230, 0.4) 8%, transparent 24%),
    linear-gradient(180deg, #fbf5e6 0%, rgba(251, 245, 230, 0.5) 10%, transparent 28%),
    linear-gradient(0deg, #fbf5e6 0%, rgba(251, 245, 230, 0.7) 10%, transparent 30%);
}

/* Pickup / Chabad House lookup (home page) */
.zip-form {
  max-width: 560px;
}

/* Small helper for the TODO donation note (visible only in draft builds) */
.draft-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--danger);
}

.section h2.wide {
  max-width: 24ch;
}

/* Verse (Psalms 118:20), compact, under the hero button */
.hero-verse {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.hero-verse .verse-he {
  margin: 0 0 4px;
  font-family: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--white);
  unicode-bidi: isolate;
}

.hero-verse .verse-en {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-verse .verse-cite {
  margin: 0;
}

.hero-verse .verse-cite cite {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
}
