@charset "utf-8";

/* ==========================================================================
   Yeshiva Derech Hatorah of Monsey — ydhom.org
   Pure CSS. No frameworks, no build step, no external requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (self-hosted — the site makes no third-party requests)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/archivo-black-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cantarell";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cantarell-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cantarell";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/cantarell-700.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --navy-deep: #0b1630;   /* flyer background */
  --navy: #15143e;        /* logo ink */
  --navy-mid: #1c2a52;
  --navy-brand: #191970;  /* original theme-color */
  --gold: #c6ab6e;
  --gold-bright: #ddc68d;

  /* Surfaces */
  --page: #f7f6f2;
  --surface: #ffffff;
  --ink: #16182b;
  --ink-soft: #4a4f66;
  --rule: #e2ded3;

  /* Type */
  --font-display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Cantarell", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-hebrew: "Cantarell", "Segoe UI", "Noto Sans Hebrew", "David", system-ui, sans-serif;

  /* Rhythm */
  --gutter: 20px;
  --measure: 1120px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(11, 22, 48, 0.18);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-brand);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 50;
  padding: 0.7em 1.2em;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-block: clamp(1.25rem, 4vw, 2.25rem);
  text-align: center;
}

.site-header__logo-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
}

.site-header__logo {
  width: min(420px, 78vw);
  height: auto;
}

.site-header__tagline {
  margin: 0;
  font-family: var(--font-hebrew);
  font-size: clamp(0.8125rem, 2.4vw, 0.9375rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-header__tagline .he {
  letter-spacing: normal;
  text-transform: none;
  font-size: 1.15em;
}

/* --------------------------------------------------------------------------
   Hero — the registration flyer
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--navy-mid) 0%, var(--navy-deep) 62%),
    var(--navy-deep);
  padding-block: clamp(1.75rem, 5vw, 3.5rem);
}

.hero__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__image {
  width: min(800px, 100%);
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--navy-deep);
}

.hero__caption {
  max-width: 62ch;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: #d8dced;
  font-size: 1rem;
  text-align: center;
  text-wrap: balance;
}

.hero__caption strong {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Contact strip
   -------------------------------------------------------------------------- */

.contact {
  background: var(--gold);
  color: #1a1710;
}

.contact__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 2rem;
  margin: 0;
  padding-block: clamp(0.9rem, 2.5vw, 1.15rem);
  list-style: none;
  text-align: center;
}

.contact__list li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.contact__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.contact a,
.contact span.contact__value {
  color: #1a1710;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 23, 16, 0.35);
}

.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: #1a1710;
}

.contact :focus-visible {
  outline-color: var(--navy);
}

/* --------------------------------------------------------------------------
   Actions — the calls to action
   -------------------------------------------------------------------------- */

.actions {
  padding-block: clamp(2.25rem, 6vw, 3.75rem);
}

.actions__heading {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  text-align: center;
  color: var(--navy);
}

.actions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  max-width: 760px;
  margin-inline: auto;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0.85rem 1.4rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--navy);
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--navy-brand);
  border-color: var(--navy-brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 22, 48, 0.26);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn__note {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

/* --------------------------------------------------------------------------
   Visit / closing note
   -------------------------------------------------------------------------- */

.visit {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2rem, 5vw, 3rem);
}

.visit__inner {
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
}

.visit h2 {
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  color: var(--navy);
}

.visit p {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.visit p:last-child {
  margin-bottom: 0;
}

.visit a {
  color: var(--navy-brand);
  font-weight: 700;
  text-underline-offset: 3px;
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: #b9c0d6;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.site-footer__name {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-footer__address {
  margin: 0;
  font-style: normal;
}

.site-footer a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.82rem;
  color: #8e97b3;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56vh;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  text-align: center;
}

.notfound h1 {
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  color: var(--navy);
}

.notfound p {
  max-width: 48ch;
  margin-inline: auto;
  color: var(--ink-soft);
}

.notfound .btn {
  display: inline-flex;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .actions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions__grid > .btn:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 320px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
  }
}

/* --------------------------------------------------------------------------
   Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}

@media print {
  .skip-link,
  .actions,
  .hero {
    break-inside: avoid;
  }

  body {
    background: #fff;
    color: #000;
  }

  .btn {
    border-color: #000;
    color: #000;
    background: none;
  }
}
