@font-face {
  font-family: CampaignBody;
  src: url('/assets/display.otf');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: CampaignBody;
  src: url('/assets/hero-bold.otf');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #30302e;
  --blue: #292968;
  --gold: #a3855e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f3f2ef url('/assets/campaign/art/paper.webp') center top / 1280px auto repeat;
  font-family: CampaignBody, Arial, sans-serif;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
img { display: block; }
.skip-link { position: fixed; top: -100px; right: 20px; z-index: 100; background: white; padding: 16px; }
.skip-link:focus { top: 10px; }
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: auto;
  padding: 18px 12%;
  border-bottom: 1px solid #a3855e30;
  font-size: 16px;
}
.page-nav a, .page-bottom a { text-decoration: none; }
.page-nav a:hover, .page-bottom a:hover { text-decoration: underline; }
.file-label { font: 11px Arial, sans-serif; border: 1px solid #8c816b; padding: 3px 4px; margin-inline-start: 7px; }
/* Desktop geometry is measured from the supplied 1124 × 1600 reference.
   Lettering, icons and medallions are separate original assets, with semantic
   HTML text and keyboard-accessible legend links retained underneath. */
.campaign {
  position: relative;
  width: min(100%, 1280px);
  aspect-ratio: 1124 / 1600;
  margin: auto;
  background: url('/assets/campaign/art/paper.webp') center / 100% 100%;
}
.campaign::before, .campaign::after {
  content: '';
  position: absolute;
  width: 1px;
  background: var(--gold);
  pointer-events: none;
}
.campaign::before { left: 10.1423%; top: 11.375%; height: 80.938%; }
.campaign::after { left: 89.413%; top: 25.313%; height: 67%; }
.art-block {
  position: absolute;
  left: calc(var(--x) / 1124 * 100%);
  top: calc(var(--y) / 1600 * 100%);
  width: calc(var(--w) / 1124 * 100%);
  height: calc(var(--h) / 1600 * 100%);
}
.source-art { width: 100%; height: 100%; pointer-events: none; }
.source-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.medallion { position: absolute; height: auto; pointer-events: none; z-index: 2; }
.track { transition: box-shadow .3s ease, translate .3s ease; }
.track:hover { box-shadow: 0 7px 24px #5040221a; }
.requirements {
  position: absolute;
  left: 2.5%;
  top: 4%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.requirement, .foundation-key {
  display: block;
  width: 32px;
  height: 32px;
  color: transparent;
  font-size: 0;
  border-radius: 2px;
}
.requirement svg { visibility: hidden; width: 100%; height: 100%; }
.requirement:hover, .foundation-key:hover { outline: 1px solid #fff8; outline-offset: 2px; }
.foundation-key { position: absolute; left: 0; top: 4%; }
.foundation-mobile { display: none; }
.legend:has(:target) { outline: 2px solid var(--gold); outline-offset: 6px; }
.legend [id] { scroll-margin-top: 35vh; }
.page-bottom {
  max-width: 1000px;
  margin: auto;
  padding: 24px 20px 30px;
  border-top: 1px solid #a3855e30;
  text-align: center;
  font-size: 16px;
}
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Subtle motion on separate artwork layers; text and layout stay steady. */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.motion-ready .track {
  transition-property: opacity, transform, box-shadow, translate;
  transition-duration: .7s, .7s, .3s, .3s;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0s, 0s;
}
.motion-ready .campaign-title.is-visible > .source-art {
  transform-origin: right center;
  animation: title-arrive 1s cubic-bezier(.2,.65,.25,1) both;
}
.motion-ready .track.is-visible .medallion,
.motion-ready .foundation.is-visible .medallion {
  animation: medallion-float var(--float-duration, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, .8s);
  animation-play-state: paused;
}
.motion-ready .track.is-visible.is-in-view .medallion,
.motion-ready .foundation.is-visible.is-in-view .medallion { animation-play-state: running; }
.motion-ready.motion-paused .track.is-visible .medallion,
.motion-ready.motion-paused .foundation.is-visible .medallion { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .motion-ready .track.is-visible:hover {
    translate: 0 -3px;
    box-shadow: 0 10px 26px #50402225;
  }
}
@keyframes title-arrive {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes medallion-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
/* Reflow independent cards on smaller screens, rather than shrinking a whole poster. */
@media (max-width: 1000px) {
  .page-nav { padding: 16px 24px; font-size: 14px; }
  .campaign { aspect-ratio: auto; padding: 28px 30px 35px; background-size: 100% auto; }
  .campaign::before, .campaign::after { display: none; }
  .art-block { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: var(--w) / var(--h); }
  .campaign-header { position: relative; }
  .partner { width: 230px; margin-inline-start: auto; }
  .bh { position: absolute; top: 10px; right: 0; left: auto; width: 28px; }
  .campaign-title { max-width: 620px; margin: 25px 0 20px; }
  .announcement { width: min(100%, 370px); margin-bottom: 60px; }
  .foundation { aspect-ratio: auto; padding: 55px 25px 26px; background: var(--gold); margin: 0 0 60px; }
  .foundation > .source-art { display: none; }
  .foundation .medallion { width: 100px !important; top: -43px !important; left: calc(50% - 50px) !important; }
  .foundation-mobile { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px 30px; }
  .foundation-mobile img { width: 100%; height: auto; margin: auto; }
  .foundation-mobile .mobile-title { max-width: 330px; }
  .foundation-mobile .mobile-motto { width: 145px; grid-row: 2; }
  .foundation-mobile .mobile-tasks { max-width: 340px; grid-column: 2; grid-row: 1 / 3; }
  .tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 24px; }
  .track { min-width: 0; }
  .requirements { gap: 4px; }
  .requirement { width: 36px; height: 36px; }
  .selection-note { aspect-ratio: auto; margin: 28px 0; padding: 20px 22px; border-inline-start: 2px solid var(--gold); }
  .selection-note > .source-art, .legend > .source-art { display: none; }
  .selection-note .source-copy, .legend .source-copy {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal;
  }
  .selection-note .source-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; font-size: 18px; line-height: 1.35; }
  .selection-note h2 { grid-column: 1 / -1; font-size: 20px; }
  .selection-note strong { color: var(--blue); display: block; }
  .legend { aspect-ratio: auto; }
  .legend h2 { font-size: 18px; margin-bottom: 10px; }
  .legend-items { display: grid; gap: 6px; }
  .legend-items p { display: flex; align-items: center; gap: 12px; color: white; background: #767171; padding: 10px 12px; font-size: 17px; line-height: 1.3; }
  .legend svg, .legend-icon { object-fit: contain; flex: 0 0 24px; width: 24px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
  .writing-frame { fill: white; }
  .writing-detail { stroke: #767171; }
  .writing-letter { fill: #767171; stroke: none; font: 15px Arial; }
  .legend .partial { font: 26px Arial; width: 24px; flex-shrink: 0; text-align: center; }
  .legend p:target { background: var(--blue); }
  .regulations { width: 260px; margin: 24px auto 0; }
}
@media (max-width: 560px) {
  .page-nav { gap: 14px; padding: 15px 18px; font-size: 13px; }
  .file-label { display: none; }
  .campaign { padding: 24px 22px 30px; }
  .partner { width: 210px; }
  .campaign-title { margin-top: 25px; }
  .foundation { padding: 54px 16px 22px; }
  .foundation-mobile { display: flex; flex-direction: column; gap: 9px; }
  .foundation-mobile .mobile-motto { width: 123px; }
  .foundation-mobile .mobile-tasks { margin-top: 6px; }
  .tracks { grid-template-columns: 1fr; gap: 55px; }
  .selection-note .source-copy { display: block; }
  .selection-note h2 { margin-bottom: 13px; }
  .selection-note p + p { margin-top: 17px; }
}
/* Failed image requests must not hide the readable HTML alternative. */
.art-unavailable { background: #f3eee3; padding: 20px; overflow: auto; }
.art-unavailable > .source-art { display: none; }
.art-unavailable > .source-copy { position: static; clip-path: none; width: auto; height: auto; overflow: visible; white-space: normal; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
  .motion-ready .campaign-title.is-visible > .source-art,
  .motion-ready .track.is-visible .medallion,
  .motion-ready .foundation.is-visible .medallion { animation: none; }
  .track { transition: none; }
  .motion-ready .track.is-visible:hover { translate: none; }
}
@media print {
  .page-nav, .page-bottom, .skip-link { display: none; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .track { break-inside: avoid; }
  .motion-ready .medallion, .motion-ready .campaign-title > .source-art { animation: none !important; }
}
