:root {
  color-scheme: light;
  --ink: #070a10;
  --navy: #111d2a;
  --cyan: #01aad5;
  --blue-text: #00657c;
  --ice: #d3f6ff;
  --page: #f8f7f3;
  --muted: #444648;
  --gold: #eccd89;
  --gold-dark: #795723;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #0085a8; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead { background: #fff; border-bottom: 1px solid #e4ebef; }
.masthead-inner, .footer-inner {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: .9rem;
}
.logo { display: block; width: 9rem; height: auto; }
.top-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.5rem; }
.header-link { font-size: .95rem; font-weight: 650; text-decoration: none; }
.header-link:hover { color: var(--blue-text); text-decoration: underline; }

.campaign-main {
  display: flow-root;
  background: #091724 url('advent-sternenhimmel.webp') center top / cover no-repeat;
}
.hero {
  color: #fff;
}
.hero-inner {
  min-height: 31rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 2rem;
  padding-block: 4rem;
}
.calendar-stage { position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; }
.calendar-hero { min-height: clamp(31rem, 43vw, 49rem); padding-block: 3.5rem 2.5rem; }
.calendar-copy { grid-column: 1; }
.gift-dates { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.gift-dates a {
  padding: .55rem .7rem;
  border: 1px solid #e7ca8b76;
  border-radius: .3rem;
  background: #091724d9;
  color: var(--gold);
  font-weight: 650;
  text-decoration: none;
}
.gift-dates a:hover, .gift-dates a[aria-current] { background: var(--gold); color: var(--navy); }
.eyebrow { color: var(--blue-text); font-weight: 750; letter-spacing: .055em; }
.hero .eyebrow { color: var(--gold); }
h1 { margin-top: .6rem; font-size: clamp(2.9rem, 6vw, 6rem); line-height: .98; letter-spacing: -.065em; }
h1 span { display: inline-block; margin-top: .17em; }
.intro { margin-top: 1.35rem; max-width: 33rem; color: #dbeaf1; font-size: clamp(1.025rem, 2vw, 1.2rem); line-height: 1.62; }
.button {
  display: inline-flex;
  min-height: 3rem;
  padding: .72rem 1.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: .25rem;
  background: var(--cyan);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #34c7ec; }
.button-outline { background: transparent; border-color: #a8bfc8; color: var(--blue-text); }
.button-outline:hover { background: #e9f7fb; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.2rem; margin-top: 1.55rem; }
.text-link { color: var(--gold); font-weight: 650; }
.hero a:focus-visible { outline-color: var(--gold); }
.mailing-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mailing-hero h1 { font-size: clamp(2rem, 4vw, 4rem); overflow-wrap: anywhere; }
.mailing-hero .intro strong { display: block; margin-top: .3rem; color: var(--gold); }

.calendar-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
  mask-image: linear-gradient(#000 0 87%, transparent);
}
.calendar-art { position: absolute; right: 0; top: 50%; width: max(100cqw, 250cqh); transform: translateY(-50%); }
.calendar-art img { display: block; width: 100%; height: auto; }
.gift-number {
  position: absolute;
  left: 74%;
  top: 49%;
  transform: translate(-50%, -50%) skewY(4deg) scaleX(.74);
  color: var(--gold);
  font: 500 clamp(1.4rem, 4.2cqw, 6rem)/1 "Arial Narrow", Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow: 0 .1rem .22rem #220d04aa;
}
.gift-status { display: grid; gap: .35rem; margin-top: 1.35rem; }
.gift-label { font: 600 clamp(1.45rem, 3vw, 2rem)/1.1 Georgia, serif; }
.gift-note { color: #d6e9ef; font-size: .925rem; }
.collection { padding-block: 3.7rem 4.1rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .9rem 2rem; margin-bottom: 1.6rem; }
.section-heading .eyebrow { margin-bottom: .45rem; }
.section-heading > p { color: var(--muted); line-height: 1.55; max-width: 31rem; }
h2 { font-size: clamp(1.9rem, 4vw, 3.15rem); line-height: 1.05; letter-spacing: -.04em; }
.prize-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.prize-card {
  display: flex; align-items: flex-start; gap: .8rem; padding: 1.05rem;
  border: 1px solid #e6d9bf; border-radius: .65rem;
  background: #fff;
}
.prize-emblem { flex: 0 0 1.9rem; display: grid; place-items: center; height: 1.9rem; background: #fbefd4; color: var(--gold-dark); border-radius: 50%; }
.prize-card h3 { font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.prize-card p { margin-top: .35rem; color: var(--muted); font-size: .925rem; line-height: 1.45; }

.participation {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1.25rem 2.5rem;
  margin-block: 2.35rem 3.5rem;
  padding: clamp(1rem, 4vw, 2.8rem);
  background: #fff;
  border: 1px solid #e6d9bf;
  border-radius: .65rem;
  scroll-margin-top: 1rem;
}
.prize h2 { margin-block: .45rem .8rem; font-size: clamp(1.7rem, 3.5vw, 2.65rem); overflow-wrap: anywhere; }
.prize p:not(.eyebrow), .hint { line-height: 1.55; color: var(--muted); }
.prize p + p { margin-top: .65rem; }
.entry-fields { display: grid; grid-column: 2; gap: .45rem; }
.entry-fields h3 { margin-bottom: .5rem; font-size: 1.25rem; }
label { font-weight: 700; }
input:not([type="hidden"]), textarea {
  display: block;
  width: 100%;
  margin-bottom: .45rem;
  padding: .68rem .72rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #89a1ad;
  border-radius: .25rem;
  font: inherit;
}
textarea { resize: vertical; }
.hint { font-size: .875rem; }
.hint a { color: var(--blue-text); }
.entry-fields .button { justify-self: start; margin-top: .6rem; }
.button:disabled { background: #e3e9ed; color: #46525b; cursor: default; }
.message { grid-column: 2; padding: .8rem 1rem; border-radius: .25rem; line-height: 1.5; }
.message-error { color: #782032; background: #fff0f2; }
.message-success { color: #114d43; background: #e2f7ef; }

.terms { margin-block: 2.5rem 3.5rem; padding: clamp(1rem, 4vw, 2.55rem); background: #fff; border: 1px solid #e6d9bf; border-radius: .65rem; }
.terms h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); overflow-wrap: anywhere; }
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 2rem; margin-top: 1.5rem; }
.terms h3 { font-size: 1.16rem; margin-bottom: .35rem; }
.terms p { line-height: 1.6; }
.terms a { color: var(--blue-text); }
.privacy-note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e6d9bf; }
.privacy-note p + p { margin-top: .7rem; }
.collection, .terms, .privacy-note { scroll-margin-top: 1rem; }
.footer { background: var(--ink); color: #e1eaf0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .875rem; }
.footer a:hover { color: #8fe8fb; }
.footer a:focus-visible { outline-color: var(--ice); }

@media (max-width: 57rem) {
  .prize-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.55rem; padding-block: 2.8rem 2rem; }
  .calendar-hero { min-height: 0; }
  .calendar-scene {
    position: relative;
    inset: auto;
    width: 100cqw;
    aspect-ratio: 1.65;
    margin-inline: calc((100% - 100cqw) / 2);
    mask-image: linear-gradient(transparent, #000 12%, #000 87%, transparent);
  }
  .participation, .terms-grid { grid-template-columns: 1fr; }
  .entry-fields, .message { grid-column: 1; }
}
@media (max-width: 34rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 4.1rem; }
  .logo { width: 7rem; }
  .header-link { font-size: .875rem; }
  .top-nav { gap: .5rem 1rem; }
  .top-nav .button { min-height: 2.5rem; padding: .45rem .65rem; font-size: .875rem; }
  h1 { font-size: clamp(1.9rem, 10vw, 3.65rem); }
  .collection { padding-block: 2.6rem 3rem; }
  .prize-list { grid-template-columns: 1fr; }
}
