@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ama-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ama-sans: "Source Sans 3", system-ui, sans-serif;
  --red: #a91e36;
  --red-dark: #821529;
  --black: #211c1e;
  --ink: #231e20;
  --muted: #615758;
  --paper: #fff;
  --soft: #faf6f3;
  --line: #e6dcd8;
  --radius: 12px;
  --ama-blush: #f5e7e6;
  --ama-surface: #f9f2ef;
  --ama-lift: 0 12px 26px rgb(50 26 29 / 8%);
  --ama-ease: cubic-bezier(.2, .65, .3, 1);
}

body { font-family: var(--ama-sans); }
h1, h2, h3 { font-family: var(--ama-serif); font-weight: 600; }
h1, .section-head h2, .ama-carousel-heading h2, .ama-calendar-heading h2 { text-wrap: balance; }
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.eyebrow { font-size: .75rem; letter-spacing: .13em; }
.button { border-radius: 8px; font-family: inherit; font-weight: 700; }
.button.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.text-link { text-underline-offset: .25em; }
.text-link:hover { text-decoration: underline; }

.topbar { background: var(--black); color: #eee1df; }
.topbar .container { min-height: 38px; }
.ama-language-toggle { background: transparent; border: 0; box-shadow: none; padding: 2px 0; }
.ama-language-toggle a { min-height: 30px; padding: 4px 9px; border-radius: 5px; }
.ama-language-toggle a.selected { background: #3d3032; color: #fff; box-shadow: none; }
.ama-language-toggle .ama-flag { width: 19px; height: auto; }

.site-header.ama-header {
  background: rgb(255 255 255 / 98%);
  border-color: var(--line);
  box-shadow: none;
}
.site-header.ama-header.ama-has-scrolled { box-shadow: 0 4px 22px rgb(46 23 25 / 8%); }
.ama-header .ama-header-inner { width: min(1180px, calc(100% - 40px)); min-height: 72px; }
.ama-header .logo-mark.ama-logo-mark { width: 54px; height: 54px; min-width: 54px; flex-basis: 54px; }
.ama-header .ama-brand-name strong { font: 650 1.65rem/.98 var(--ama-serif); letter-spacing: -.035em; color: var(--ink); }
.ama-header .brand-copy.ama-brand-name small { font-size: .71rem; color: var(--muted); }
.ama-header .ama-main-nav .ama-nav-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 5px;
}
.ama-header .ama-main-nav .ama-nav-link:is(:hover, .is-active),
.ama-header .ama-nav-dropdown:is([open], .is-active) > .ama-dropdown-trigger {
  color: var(--red-dark);
  background: transparent;
}
.ama-header .ama-main-nav .ama-nav-link.is-active::after,
.ama-header .ama-nav-dropdown.is-active > .ama-dropdown-trigger::after {
  background: var(--red);
  height: 2px;
}
.ama-header .ama-main-nav .ama-nav-cta {
  background: var(--red);
  border-radius: 7px;
  box-shadow: none;
  font-size: .9rem;
  font-weight: 700;
}
.ama-header .ama-main-nav .ama-nav-cta:hover { background: var(--red-dark); box-shadow: none; }
.ama-nav-cta > span, .ama-mobile-cta > span, .ama-weekly-promo-link > span,
.ama-calendar-all > span, .ama-calendar-agenda-arrow, .ama-view-all > span, .ama-event-card-more > span {
  font-family: "Segoe UI Symbol", "DejaVu Sans", sans-serif;
  font-variant-emoji: text;
}
.ama-header .ama-nav-dropdown > .ama-nav-submenu,
.ama-header .mobile-menu > .ama-mobile-panel {
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: var(--ama-lift);
}

/* Shared mastheads and reading surfaces. */
.page-hero {
  background: var(--black);
  border-bottom: 3px solid var(--red);
  padding-block: clamp(2.45rem, 5vw, 4.3rem);
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.06; letter-spacing: -.045em; }
.page-hero .eyebrow, .section-black .eyebrow { color: #efa8ac; }
.page-hero p { color: #eee3e0; font-size: 1.125rem; }
.page-hero.interactive-hero::before {
  background: radial-gradient(ellipse at 90% 0%, #4a282e, transparent 52%);
}
.page-hero.interactive-hero::after { display: none; }
.ama-events-section { background: var(--soft); }

.section-head h2, .ama-carousel-heading h2, .ama-calendar-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
:is(.ama-event-tile, .ama-news-card, .ama-event-carousel .ama-recent-event, .ama-event-sidebar) {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.ama-news-card .card-body { padding: clamp(1rem, 2.2vw, 1.5rem); }
.ama-news-card .card-body h3, .ama-event-carousel .ama-recent-event h3 {
  font-size: 1.45rem;
  line-height: 1.19;
  -webkit-line-clamp: unset;
}
.ama-news-card .card-media,
.ama-event-cover[data-cover-type="poster"] > img,
.ama-events-section .ama-event-tile-visual[data-cover-type="poster"] > img {
  background: var(--ama-surface);
}
.ama-news-card .card-body .tag { font-size: .7rem; }
.ama-news-card time, .ama-slide-counter { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }

footer { background: var(--black); border-top: 3px solid var(--red); }
.footer-grid > div > strong { color: #fff; font-size: 1.0625rem; }
.footer-grid > div:first-child > strong { font: 650 1.9rem/1 var(--ama-serif); }
.footer-grid p { color: #e1d4d3; font-size: .9375rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.copyright { color: #d1c0c0; border-color: #4b3b3f; font-size: .8125rem; }

/* Homepage masthead and weekly challenge. */
.ama-home-hero {
  background: var(--soft);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3.15rem, 6vw, 5.75rem);
}
.hero.ama-home-hero::before {
  background: radial-gradient(ellipse at 85% 85%, #f0ded9 0%, transparent 56%);
}
.ama-home-hero.interactive-hero::after { display: none; }
.ama-home-hero .hero-grid {
  grid-template-columns: minmax(0, 1.47fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.75rem);
}
.ama-home-hero .eyebrow { color: var(--red-dark); }
.ama-home-hero h1 {
  font-size: clamp(2.7rem, 5.35vw, 5.25rem);
  line-height: 1.015;
  letter-spacing: -.047em;
  margin: .18em 0 .3em;
  overflow-wrap: break-word;
}
.ama-home-hero p { margin: 0; max-width: 58ch; color: var(--muted); font-size: clamp(1.075rem, 1.55vw, 1.275rem); line-height: 1.52; }
.ama-home-hero .actions { margin-top: 1.6rem; }
.ama-home-hero .button { min-height: 46px; padding-inline: 1.15rem; }
.ama-home-hero .button.ghost { background: rgb(255 255 255 / 52%); border-color: #bba5a4; color: var(--ink); }
.ama-home-hero .button.ghost:hover { background: #fff; border-color: var(--red); color: var(--red-dark); }
.ama-home-hero .hero-card {
  position: relative;
  isolation: isolate;
  justify-content: flex-end;
  min-height: 18.75rem;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  background: var(--ama-blush);
  border: 1px solid #e8d2d0;
  border-inline-start: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  box-shadow: none;
  color: var(--ink);
}
.ama-home-hero .hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 88% -13%, transparent 0 26px, rgb(130 21 41 / 11%) 26px 27px, transparent 27px 49px);
  mask-image: linear-gradient(145deg, #0000 29%, #000 70%, #0000);
  pointer-events: none;
}
.ama-home-hero .math-symbol {
  position: absolute;
  display: block;
  top: -.17em;
  inset-inline-end: .13em;
  z-index: -1;
  font: 400 clamp(9rem, 17vw, 14rem)/1 Georgia, serif;
  color: rgb(130 21 41 / 13%);
  pointer-events: none;
}
.ama-home-hero .hero-card h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.ama-home-hero .hero-card p { font-size: 1rem; }
.ama-home-hero .hero-mini-stats { border-color: #d7bcbc; margin-top: 1.3rem; padding-top: .8rem; }
.ama-home-hero .hero-mini-stats strong {
  color: var(--red-dark);
  font: 600 clamp(1.65rem, 3vw, 2.2rem)/1.15 var(--ama-serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.ama-home-hero .hero-mini-stats span {
  font-size: .87rem;
  letter-spacing: normal;
  text-transform: none;
}

.ama-weekly-home-promo { background: var(--ama-surface); border-bottom-color: var(--line); padding-block: 0; }
.ama-weekly-promo-inner::before, .ama-weekly-promo-eyebrow::before { display: none; }
.ama-weekly-home-promo .ama-weekly-promo-inner {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 0;
  padding: .85rem 0;
  gap: clamp(.7rem, 2vw, 1.4rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ama-weekly-home-promo .ama-weekly-promo-inner:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.ama-weekly-home-promo .ama-weekly-promo-icon {
  width: 48px;
  height: 48px;
  color: var(--red-dark);
  background: var(--ama-blush);
  border: 0;
  border-radius: 7px;
}
.ama-weekly-promo-eyebrow { color: var(--red-dark); font-size: .6875rem; letter-spacing: .09em; }
.ama-weekly-home-promo .ama-weekly-promo-copy { gap: .06rem; }
.ama-weekly-home-promo .ama-weekly-promo-copy strong {
  color: var(--ink);
  font: 600 clamp(1.25rem, 2.2vw, 1.55rem)/1.15 var(--ama-serif);
}
.ama-weekly-home-promo .ama-weekly-promo-copy > span:last-child { color: var(--muted); font-size: .9375rem; }
.ama-weekly-home-promo .ama-weekly-promo-link {
  color: var(--red-dark);
  background: transparent;
  border: 1px solid #d9bcbc;
  border-radius: 7px;
  padding: .55rem .85rem;
  box-shadow: none;
  font-size: .9375rem;
}
.ama-weekly-home-promo .ama-weekly-promo-inner:hover .ama-weekly-promo-link {
  background: #fff;
  border-color: var(--red);
}

/* Event covers, cards, and calendar. */
.ama-showcase { background: #fff; border-color: var(--line); }
.ama-showcase > .container { container: featured-events / inline-size; }
.ama-spotlight-carousel .ama-spotlight-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  background: var(--soft);
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  color: var(--ink);
}
.ama-spotlight-carousel .ama-spotlight-content { padding: clamp(1.2rem, 3.6vw, 3.1rem); }
.ama-spotlight-carousel .ama-spotlight-content h3 {
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.ama-spotlight-carousel .ama-feature-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-line-clamp: unset;
}
.ama-feature-metadata { color: var(--red-dark); font-size: .9375rem; }
.ama-spotlight-carousel .ama-spotlight-pill {
  background: var(--red);
  font-size: .6875rem;
  border-radius: 5px;
}
.ama-spotlight-carousel .ama-spotlight-tag {
  background: var(--ama-blush);
  color: var(--red-dark);
  font-size: .75rem;
  border-radius: 5px;
}
.ama-spotlight-carousel .ama-countdown { color: var(--red-dark); }
.ama-spotlight-carousel .ama-countdown strong { font: 600 1.95rem/1.1 var(--ama-serif); }
.ama-spotlight-carousel .ama-countdown span { color: var(--muted); font-size: .875rem; }
.ama-feature-footer { padding-top: .9rem; border-top: 1px solid var(--line); gap: .7rem; }
.ama-spotlight-carousel .ama-spotlight-actions .button { font-size: .9375rem; }
.ama-spotlight-carousel .ama-spotlight-actions .ghost { color: var(--ink); border-color: #c1adaa; }
.ama-spotlight-carousel .ama-spotlight-actions .ghost:hover { color: var(--red-dark); border-color: var(--red); background: #fff; }
.ama-spotlight-carousel .ama-feature-image { order: -1; height: clamp(11rem, 52vw, 17rem); background: var(--ama-blush); }
.ama-feature-image[data-cover-type="poster"] > img { background: var(--ama-blush); padding: clamp(.75rem, 2.5vw, 2rem); }
.ama-spotlight-carousel .ama-feature-image .ama-cover-fallback { min-height: 0; background: var(--black); }
.ama-round-arrow {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.ama-round-arrow:not(:disabled):hover { background: var(--red); border-color: var(--red); color: #fff; }

@container featured-events (min-width: 44rem) {
  .ama-spotlight-carousel .ama-spotlight-card {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    min-height: 23.5rem;
  }
  .ama-spotlight-carousel .ama-feature-image {
    order: 0;
    height: auto;
    border-inline-start: 1px solid var(--line);
  }
}

.ama-home-calendar-section, .ama-home-events { background: var(--soft); border-color: var(--line); }
.ama-calendar-card, .ama-calendar-agenda { border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.ama-calendar-agenda-head { background: var(--ama-surface); border-color: var(--line); }
.ama-calendar-heading p, .ama-calendar-caption, .ama-calendar-agenda-count,
.ama-calendar-legend, .ama-calendar-weekdays span, .ama-calendar-agenda-info small { color: var(--muted); }
.ama-calendar-heading p { font-size: 1rem; }
.ama-calendar-all, .ama-calendar-agenda-info strong { font-size: .9375rem; }
.ama-calendar-navigation a { background: #fff; border-color: var(--line); border-radius: 8px; }
.ama-calendar-agenda-date { background: var(--ama-blush); color: var(--red-dark); }
.ama-calendar-day { border-radius: 6px; }
.ama-calendar-day.is-outside { opacity: 1; color: var(--muted); }
.ama-calendar-day.is-outside:not(.has-events) .ama-calendar-day-number { color: var(--muted); }
.ama-calendar-day.is-outside:not(.has-events) { background: var(--soft); }
.ama-calendar-day-number, .ama-calendar-weekdays span { font-size: .8125rem; }
.ama-calendar-mini-event, .ama-calendar-more-events { font-size: .75rem; }
.ama-calendar-mini-event:focus-visible { outline-offset: -2px; }
.ama-home-news { background: #fff; }
.ama-event-carousel .ama-recent-event:focus-visible { outline-offset: -3px; }
.ama-event-carousel .ama-recent-event-body { min-height: 0; }
.feature-strip { background: #59474a; border-radius: var(--radius); }
.feature-strip a { background: #2a2225; }
.feature-strip a:hover { background: #39292e; }
.feature-strip b { color: #efa8ac; }
.feature-strip strong { font: 600 1.3rem/1.25 var(--ama-serif); }
.feature-strip p { color: #e4d9d7; font-size: .9375rem; }

.wp-hero, .wp-feature { background: var(--black); }
.wp-hero h1 { font-family: var(--ama-serif); font-weight: 600; line-height: 1.08; text-wrap: balance; }
.wp-feature-content strong { font-family: var(--ama-serif); }
.wp-hero .wp-eyebrow { color: #efa8ac; }

@media (min-width: 75rem) {
  .ama-header .brand-copy.ama-brand-name small { display: block; }
}
@media (max-width: 59rem) {
  .ama-home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ama-home-hero h1 { max-width: 17ch; }
  .ama-home-hero .hero-card { min-height: 14rem; }
}
@media (max-width: 42rem) {
  .ama-header .ama-header-inner { min-height: 64px; }
  .ama-header .ama-header-inner, .ama-home-hero .container, .ama-weekly-home-promo .container {
    width: calc(100% - 32px);
  }
  .ama-home-hero h1 { font-size: clamp(2.25rem, 10.75vw, 3.25rem); }
  .ama-header .logo-mark.ama-logo-mark { width: 48px; height: 48px; min-width: 48px; flex-basis: 48px; }
  .ama-header .brand-copy.ama-brand-name small { display: block; max-width: 10rem; }
  .ama-weekly-home-promo .ama-weekly-promo-inner { grid-template-columns: 48px minmax(0, 1fr); }
  .ama-weekly-home-promo .ama-weekly-promo-link { grid-column: 2; width: fit-content; max-width: 100%; }
  .ama-carousel-heading { align-items: center; }
  .ama-calendar-mini-event { padding-inline: 2px; }
  .ama-calendar-day > .ama-calendar-event-dot { right: 4px; }
}
@media (max-width: 24rem) {
  .ama-home-hero .actions { gap: .55rem; }
  .ama-home-hero .button { padding-inline: .8rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .ama-home-hero .ama-hero-intro { animation: ama-settle .45s var(--ama-ease); }
  .ama-home-hero .hero-card { animation: ama-settle .5s .08s var(--ama-ease) backwards; }
  .ama-header details[open] > :is(.ama-nav-submenu, .ama-mobile-panel) {
    animation: ama-settle .19s var(--ama-ease);
  }
  .ama-page-transition { animation-delay: .23s; pointer-events: none; }
  :is(.ama-news-card .card-media, .ama-event-cover, .ama-feature-image) > img {
    transition: scale .45s var(--ama-ease);
  }
  @media (hover: hover) and (pointer: fine) {
    .ama-news-card:hover .card-media > img,
    .ama-recent-event:hover .ama-event-cover[data-cover-type="photo"] > img,
    .ama-spotlight-card:hover .ama-feature-image[data-cover-type="photo"] > img { scale: 1.026; }
    .ama-news-card:hover, .ama-event-carousel .ama-recent-event:hover { box-shadow: var(--ama-lift); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ama-page-transition { pointer-events: none; }
  .ama-home-hero *, .ama-showcase *, .ama-home-events *, .ama-home-news * {
    transition-duration: 0s !important;
  }
  .ama-home-news .ama-news-card:hover, .ama-home-events .ama-recent-event:hover { transform: none; }
}
@keyframes ama-settle {
  from { opacity: .72; translate: 0 7px; }
}
