@font-face {
  font-family:'Roboto Mono';

  src:url('/assets/roboto-mono-variable.ttf') format('truetype');

  font-weight:100 700;

  font-style:normal;
  font-display:swap;
}

:root {
  --body-font: 'Manrope',Arial,sans-serif;
  --display-font: 'Cormorant Garamond','Frank Ruhl Libre',Georgia,serif;
  --place-font: var(--display-font);
  --date-font: var(--display-font);
  --link-underline-offset: 2px;
  --date-size-body: 18px;
  --date-size-section: 24px;
  --date-size-hero: 32px;
  --phone-font: 'Roboto Mono','SFMono-Regular',Consolas,monospace;
}

html[dir=rtl] {
  --display-font: 'Frank Ruhl Libre','Cormorant Garamond',serif;
  --place-font: var(--display-font);
}

body {
  font-family: var(--body-font);
}

h1,h2,h3,h4 {
  font-family: var(--display-font);
}

.hero h1,.letter-title,.brand {
  font-family: var(--display-font);
}

.dress-copy h2 {
  font-family: 'Cormorant Garamond',Georgia,serif;
}

html[lang=he] .letter-title,html[lang=he] .hero-word {
  letter-spacing: normal;
}

.place-type,.address-type,.hotel-mention,a[href^="https://www.hilton.com/"] {
  font-family: var(--place-font);
  font-style: normal;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.date-type,.phone-type {
  font-family: var(--date-font);
  font-weight: 500;
  font-style: normal;
  letter-spacing: normal;
  font-variant-numeric: lining-nums tabular-nums;
  text-transform: none;
}

.phone-type { font-family: var(--phone-font); white-space: nowrap; }
/* Only separator spaces shrink; digits retain their normal size. */
.phone-type .number-space { font-size: 50%; line-height: 0; }

/* Inline dates follow the surrounding text. Display dates opt into a size below. */
.date-type {
  font-size: inherit;
  line-height: inherit;
}

.letter .date-type { font-size: var(--date-size-body); line-height: 26px; }
.hero-location .hotel-mention { font-size: 24px; line-height: 30px; }

/* The event year belongs to the wordmark, not the date/time typography. */
.event-name,.event-year,.hero h1>.hero-year {
  font-family: var(--display-font);
  font-weight: 400;
  font-style: normal;
  font-variant-numeric: lining-nums proportional-nums;
  letter-spacing: normal;
}

.hero-meta strong {
  font-size: 22px;
  line-height: 28px;
}

.hero-meta strong.date-type,
.congress-support-anniversary.date-type {
  font-family: var(--date-font);
  font-weight: 500;
  font-size: var(--date-size-hero);
  line-height: 40px;
}

.address-type {
  font-size: 18px;
  line-height: 26px;
  margin: 0;
  font-variant-numeric: lining-nums;
}

.address-link {
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-decoration-style: solid;
  text-underline-offset: var(--link-underline-offset);
}

.address-link:hover {
  text-decoration-color: currentColor;
  color: var(--gold-bright);
}

.venue-address {
  margin-top: 24px;
  color: var(--gold);
}

.arrival-item .address-type {
  margin-top: 16px;
}

.arrival-item .arrival-schedule {
  font-family: var(--date-font);
  font-size: var(--date-size-body);
  line-height: 26px;
  font-weight: 500;
}

.program-date .program-day,.program-date .program-details {
  font-family: var(--date-font);
  font-weight: 500;
  font-style: normal;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: normal;
}

.program-date .program-day,.program-date .program-details {
  font-size: var(--date-size-hero);
  line-height: 40px;
}
@media(max-width:600px) {
  .program-date .program-day,.program-date .program-details { font-size: var(--date-size-section); line-height: 32px; }
}

/* Archive event labels and their years share the serif caption face. */
.memory figcaption > span,
.memory figcaption > span .date-type {
  font-family: var(--display-font);
}

.gallery figcaption h3 {
  font-family: var(--place-font);
  font-weight: 500;
  letter-spacing: normal;
}

.venue-photo-title,html[dir=rtl] .venue-photo-title {
  font-family: var(--place-font);
}

.contact-phones a[href^="tel:"] strong {
  font-family: var(--phone-font);
  font-size: 22px;
  font-weight: 500;
  font-style: normal;
  line-height: 30px;
  letter-spacing: normal;
  font-variant-numeric: lining-nums tabular-nums;
}

@media(max-width:600px) {
  .hero-meta strong {
    font-size: 20px;
  }
}

/* Underlines keep the same baseline offset in idle, hover and focus states.
   Only their colour fades. This includes wrapped and RTL text.
   Flex-item labels receive their own decoration; logo images remain untouched. */
a[href],a[href]>span,a[href]>strong {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-style: solid;
  text-decoration-color: transparent;
  text-underline-offset: var(--link-underline-offset);
  text-decoration-skip-ink: auto;
  transition: color .2s ease, text-decoration-color .2s ease;
}
a[href]:is(.hotel-mention,.address-link,.memory-report,.school-mention,.participation-link,.waze-link),
.memory-venue a[href],.school-actions a[href],.patrons-section > p a[href],.program-auction-summary a[href] {
  text-decoration-color: currentColor;
}
a[href]:is(:hover,:focus-visible),
a[href]:is(:hover,:focus-visible)>span,
a[href]:is(:hover,:focus-visible)>strong {
  text-decoration-color: currentColor;
}
/* These named text links remain visible before hover. */
a[href]:is(.congress-name-type,.hotel-mention) {
  text-decoration-color: currentColor;
}
@media (prefers-reduced-motion:reduce) {
  a[href],a[href]>span,a[href]>strong { transition: none; }
}
/* Language options remain undecorated in every interaction state. */
.language-menu a[href],
.language-menu a[href] * { text-decoration: none; }

/* Phone links underline the number only, not the location label. */
/* Paint menu underlines separately from the cursor's clipped text fill. */
.desktop-nav a[href], .desktop-nav a[href] * { text-decoration: none; }
.desktop-nav a[href]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.desktop-nav a[href]:is(:hover,:focus-visible)::after { opacity: 1; }
@media (prefers-reduced-motion:reduce) {
  .desktop-nav a[href]::after { transition: none; }
}

.contact-phones a[href],
.contact-phones a[href] > span { text-decoration: none; }

/* Keep the hint fade alongside the shared link underline transitions. */
a.scroll-cue[href] {
  transition: opacity .2s ease, visibility .2s ease, color .2s ease,
    text-decoration-color .2s ease;
}
@media (prefers-reduced-motion:reduce) {
  a.scroll-cue[href] { transition: none; }
}

/* Native font stacks keep text readable while web fonts load or fail. */

/* Brand is one event name plus a separate city line, without link underlining. */
.brand-name { display: block; white-space: nowrap; letter-spacing: normal; }
.brand small.place-type { font-family: var(--display-font); }
a.brand[href],a.brand[href]>span,a.brand[href] * {
  text-decoration: none;
}
a.brand[href] { color: var(--gold); transition: color .2s ease; }
/* Animate the parent once; inherited colours must not start nested transitions. */
a.brand[href] * { color: inherit; }
a.brand[href] :not(img) { transition: none; }
a.brand[href]:is(:hover,:focus-visible) { color: #fff; }
@media(prefers-reduced-motion:reduce) { a.brand[href] { transition: none; } }

/* Keep a space between the date/time and their secondary labels when copied. */
.hero-schedule > div > strong.date-type { white-space: pre-wrap; }

@font-face {
  font-family: 'Charis SIL';
  src: url('/assets/charis-sil-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Explicit wordmark sizing supplied by the organiser. */
.congress-wordmark,
.host .congress-wordmark {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  font-family: 'Charis SIL',serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: normal;
  color: inherit;
}
.host > a,.signature {
  --congress-logo-height: 64px;
  --congress-wordmark-width: 256px;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 16px;
  width: max-content;
  max-width: 100%;
}
.host > a { margin-inline: auto; padding-inline-end: 40px; }
.host > a > .congress-mark,.signature > .congress-mark {
  width: var(--congress-logo-height);
  height: var(--congress-logo-height);
  flex: none;
}
.host > a > .congress-wordmark,.signature > .congress-wordmark {
  width: var(--congress-wordmark-width);
  height: var(--congress-logo-height);
  flex: none;
}
@media(max-width:600px) {
  .host > a,.signature { --congress-logo-height: 48px; --congress-wordmark-width: 192px; gap: 12px; }
}
@media(max-width:360px) {
  .host > a,.signature { --congress-logo-height: 32px; --congress-wordmark-width: 128px; gap: 8px; }
}
.host > a > .congress-mark {
  filter: brightness(0) saturate(100%) invert(80%) sepia(25%) saturate(533%) hue-rotate(2deg) brightness(94%) contrast(88%);
  transition: filter .2s ease;
}
.host > a:is(:hover,:focus-visible) > .congress-mark { filter: none; }
.congress-wordmark,.congress-wordmark * {
  -webkit-user-select: none;
  user-select: none;
}
/* Supplied vector lettering preserves the original outlined typography. */
.congress-text-art { display: block; width: 100%; height: auto; }
.host .congress-wordmark { margin: 0; }
.host .congress-text-art {
  filter: brightness(0) saturate(100%) invert(80%) sepia(25%) saturate(533%) hue-rotate(2deg) brightness(94%) contrast(88%);
}
.signature .congress-text-art { filter: brightness(0) invert(1); }
.host .congress-text-art,.signature .congress-text-art { transition: filter .2s ease; }
.host > a:is(:hover,:focus-visible) .congress-text-art,
.signature:is(:hover,:focus-visible) .congress-text-art { filter: none; }
@media(prefers-reduced-motion:reduce) {
  .host .congress-mark,.host .congress-text-art,.signature .congress-text-art { transition: none; }
}
/* Section titles provide the hierarchy without uppercase eyebrow labels. */
main .eyebrow { display: none; }

/* Allow the larger wordmark and translated copy to determine mobile height. */
@media(max-width:600px) {
  .hero { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-inline: 0; padding-bottom: 0; }
  .hero-content { padding-inline: var(--section-gutter); }
  .hero-meta { position: relative; inset: auto; width: 100%; flex: none; }
}

/* The 300px radius makes a 600px light, clipped strictly to glyph outlines. */
.cursor-ink { display: inline; font: inherit; color: inherit; letter-spacing: inherit; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .cursor-ink.cursor-glow-active {
    background-image: radial-gradient(circle 300px at var(--glow-x) var(--glow-y),rgb(var(--cursor-gold-rgb,255 240 186) / var(--glow-strength,1)) 0%,var(--cursor-gold-edge,rgb(235 206 139 / 0%)) 100%),linear-gradient(currentColor,currentColor);
    /* A viewport-aligned light stays continuous over wrapped lines and links. */
    background-attachment: fixed;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
@media (forced-colors:active) {
  .cursor-ink.cursor-glow-active { background: none; -webkit-text-fill-color: currentColor; }
}

.congress-name-type {
  font-family: 'Charis SIL','Frank Ruhl Libre',serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: normal;
}

/* Use full-height proportional numerals consistently in every date/time label. */
.date-type,
.hero-meta strong.date-type,
.program-date .program-day,
.program-date .program-details,
.arrival-item .arrival-schedule {
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1, "onum" 0, "pnum" 1, "tnum" 0;
}

/* Keep the original vector colour underneath a light masked to its artwork. */
.brand-glow-layer { opacity: 0; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .brand-menorah.cursor-glow-active .brand-glow-layer { opacity: var(--glow-strength,1); }
}
@media (forced-colors:active) {
  .brand-menorah.cursor-glow-active .brand-glow-layer { opacity: 0; }
}

/* A restrained bronze tint keeps text contrast on the light dress-code panel. */
.dress-section {
  --cursor-gold-rgb: 121 99 57;
  --cursor-gold-edge: rgb(121 99 57 / 0%);
}

/* Pin underline width on labels as well as links, including cursor wrappers
   and invitation controls, rather than allowing font-dependent auto thickness. */
a[href] *,button,button * {
  text-decoration-thickness: 1px;
  text-decoration-style: solid;
}

/* Compact two-line header wordmark, centred on the candle-holder. */
.brand > span { line-height: 1; }
.brand small.place-type { line-height: 14px; margin-top: 0; position: relative; top: 2px; }

.school-mention {
  color: var(--gold);
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
  text-decoration-line: underline;
}

/* Standalone external text links reserve space for a quiet directional cue.
   Brand marks, inline prose links and phone links deliberately keep their layout. */
:is(.memory-report,.memory-venue a,.address-link,.venue-photo-name a,.hero-location .hotel-mention,.waze-link)[href^="https://"]::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-inline-start: 6px;
  flex: none;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5 11.5 4.5M4.5 4.5h7v7' fill='none' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5 11.5 4.5M4.5 4.5h7v7' fill='none' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transition: opacity .2s ease;
}
:is(.memory-report,.memory-venue a,.address-link,.venue-photo-name a,.hero-location .hotel-mention,.waze-link)[href^="https://"]:is(:hover,:focus-visible)::after { opacity: 1; }
html[dir=rtl] :is(.memory-report,.memory-venue a,.address-link,.venue-photo-name a,.hero-location .hotel-mention,.waze-link)::after { transform: scaleX(-1); }
.memory-report::after { margin-inline-start: 0; }
@media(prefers-reduced-motion:reduce) {
  :is(.memory-report,.memory-venue a,.address-link,.venue-photo-name a,.hero-location .hotel-mention,.waze-link)::after { transition: none; }
}

/* A leading location pin identifies the event address as a map link. */
.address-link > .line-icon {
  display: inline-block;
  vertical-align: -2px;
  color: inherit;
}

/* Keep mobile copy inside a consistent, safe-area-aware page gutter. */
@media (max-width:800px) {
  :root { --section-gutter:16px; }
  .section,.contact,main > footer {
    padding-left:max(var(--section-gutter),env(safe-area-inset-left));
    padding-right:max(var(--section-gutter),env(safe-area-inset-right));
  }
  main :is(h1,h2,h3,p,figcaption,address,summary) { overflow-wrap:anywhere; }
  .venue-photo-address { min-width:0; max-width:100%; }
}
@media (max-width:600px) {
  .hero-content {
    padding-left:max(var(--section-gutter),env(safe-area-inset-left));
    padding-right:max(var(--section-gutter),env(safe-area-inset-right));
  }
}

/* Related editorial headings share an explicit size. */
#school-title, #president-title { font-size: 48px; line-height: 56px; }
@media (max-width: 800px) {
  #school-title, #president-title { font-size: 40px; line-height: 48px; }
}
