:root {
  --ink: #e7e1c8;
  --paper: #063798;
  --teal: #66e1dd;
  --red: #f2a279;
}

* { box-sizing: border-box; }

html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }

body {
  background: #063798;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

.poster {
  position: relative;
  width: 100vw;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
  cursor: none;
  background: var(--paper);
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.paper-grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 3;
  border: 1px solid rgba(231, 225, 200, .42);
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 38px;
  left: 42px;
  right: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .14em;
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand b { font-size: 20px; letter-spacing: -.08em; color: #fff3c7; }
.brand span { border-left: 1px solid currentColor; padding-left: 12px; }
.edition { font-size: 28px; font-weight: 800; line-height: .8; color: var(--red); }
.edition sup { font-size: 7px; margin-left: 2px; }
.meta { text-align: right; line-height: 1.5; }

.hero {
  position: absolute;
  z-index: 1;
  width: min(1040px, 86vw);
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  font: 600 10px/1.2 Arial, sans-serif;
  letter-spacing: .46em;
}

h1 {
  position: relative;
  width: min(1040px, 88vw);
  margin: 0 auto;
  line-height: 0;
}

.handwritten-title {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 8px 20px rgba(0, 19, 83, .72))
    drop-shadow(2px 1px 0 rgba(102, 225, 221, .26));
}

.sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

h1 .ccf-mark {
  position: absolute;
  left: 5%;
  top: -16%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 2vw, 30px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .12em;
  color: #fffdf4;
  transform: none;
  text-shadow: 0 2px 12px rgba(0, 19, 83, .88);
}

.subtitle {
  margin: 20px auto 0;
  display: inline-block;
  padding: 8px 14px 7px;
  padding: 0;
  color: #fffdf4;
  background: transparent;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: clamp(12px, 1.35vw, 20px);
  letter-spacing: .08em;
  text-shadow: 0 2px 12px rgba(0, 19, 83, .85);
}

.event-details {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: .13em;
  text-shadow: 0 2px 10px rgba(0, 19, 83, .9);
}
.event-details p { margin: 0; display: flex; gap: 9px; }
.event-details b { color: #ffba82; font-weight: 700; }
.event-details span { color: #fffdf4; font-weight: 600; }

.homepage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 8px 14px 7px;
  color: #fffdf4;
  border: 1px solid rgba(255, 253, 244, .56);
  background: rgba(6, 55, 152, .28);
  text-decoration: none;
  font: 700 11px/1 Arial, "PingFang SC", sans-serif;
  letter-spacing: .12em;
  text-shadow: 0 2px 10px rgba(0, 19, 83, .85);
  box-shadow: 0 6px 18px rgba(0, 19, 83, .18);
  transition: background .2s, border-color .2s, transform .2s;
}

.homepage-link:hover,
.homepage-link:focus-visible {
  background: rgba(102, 225, 221, .18);
  border-color: rgba(255, 253, 244, .86);
  transform: translateY(-1px);
}

.vertical-note {
  position: absolute;
  right: 43px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  transform: translateY(-48%);
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .36em;
}

.vertical-note i { width: 1px; height: 50px; background: currentColor; opacity: .55; }

.cmt-disclosure {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 70px;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255, 253, 244, .72);
  font: 500 9px/1.45 Arial, sans-serif;
  letter-spacing: .03em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 19, 83, .86);
}

.cmt-disclosure p { margin: 0; }

footer {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  font: 600 9px/1.4 Arial, sans-serif;
  letter-spacing: .16em;
}

.instruction { display: flex; align-items: center; gap: 10px; font-family: "Songti SC", serif; letter-spacing: .12em; }
.mouse-icon { width: 14px; height: 20px; border: 1px solid currentColor; border-radius: 9px; position: relative; }
.mouse-icon::after { content: ""; position: absolute; width: 2px; height: 4px; background: currentColor; top: 4px; left: 5px; }

.cursor-field {
  position: fixed;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 184, 129, .75);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: width .25s, height .25s, opacity .25s;
}

.cursor-field::before, .cursor-field::after {
  content: "";
  position: absolute;
  background: #ffb881;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cursor-field::before { width: 9px; height: 1px; }
.cursor-field::after { width: 1px; height: 9px; }

.loading {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--paper);
  transition: opacity .7s, visibility .7s;
}
.loading.ready { opacity: 0; visibility: hidden; }
.loading span { width: 50px; height: 1px; background: var(--red); transform-origin: left; animation: load 1s infinite alternate ease-in-out; }
.loading b { font-size: 10px; font-weight: 500; letter-spacing: .28em; }
@keyframes load { from { transform: scaleX(.1); } to { transform: scaleX(1); } }

@media (max-width: 720px) {
  .poster::after { inset: 10px; }
  .topbar { top: 28px; left: 25px; right: 25px; grid-template-columns: 1fr auto; }
  .topbar .edition { display: none; }
  .brand span { display: none; }
  .hero { width: 90vw; top: 47%; }
  h1 { width: 94vw; }
  h1 .ccf-mark { width: auto; left: 5%; top: -14%; font-size: clamp(16px, 6vw, 27px); letter-spacing: .06em; }
  .eyebrow { letter-spacing: .22em; }
  .subtitle { font-size: 9px; letter-spacing: .03em; }
  .event-details { flex-direction: column; align-items: center; gap: 7px; margin-top: 18px; font-size: 10px; }
  .homepage-link { margin-top: 13px; font-size: 10px; }
  .vertical-note { right: 22px; top: 31%; }
  .cmt-disclosure { left: 24px; right: 24px; bottom: 62px; font-size: 7.5px; line-height: 1.35; }
  footer { left: 25px; right: 25px; bottom: 24px; }
  footer > p { display: none; }
  .cursor-field { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-field { display: none; }
  .loading span { animation: none; }
}
