:root {
  color: #14382f; background: #78d5f4; font: 100%/1.58 system-ui, sans-serif;
  --ink: #14382f; --deep: #0d4136; --ivory: #fff9e9; --sun: #ffdc68;
  --coral: #ff8272; --teal: #93ead6;
}
* { box-sizing: border-box; }
body { margin: 0; padding: clamp(8px, 3.5vw, 54px); }
main { position: relative; isolation: isolate; max-width: 1250px; margin: auto; background: var(--ivory); border-radius: clamp(16px, 3vw, 38px); overflow: clip; box-shadow: 0 15px 55px #164f6630; }
header, section, footer { padding: clamp(22px, 5vw, 76px); }
h1, h2, p, figure { margin: 0; }
p + p, h2 + p, p + .button { margin-top: 1rem; }
h1, h2 { line-height: 1.08; text-wrap: balance; }
h1 { font: 700 clamp(2.75rem, 6.8vw, 6rem)/.94 Georgia, serif; letter-spacing: -.05em; }
h1 em { display: block; color: var(--sun); font-style: normal; margin-top: .12em; }
h2 { font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.65rem); }
.hero { color: var(--ivory); background: radial-gradient(ellipse at 96% 0%, #29796b, transparent 65%), var(--deep); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.hero h2 { font-size: clamp(1.35rem, 2.3vw, 2rem); }
.brand { text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .88rem; color: var(--teal); margin-bottom: 1rem; }
.edition { display: inline-block; color: var(--ink); background: var(--teal); border-radius: 24px; padding: .35rem .85rem; font-weight: 750; margin: 1.2rem 0 1.45rem; }
figure { position: relative; }
figure img { display: block; width: 100%; height: auto; border: 6px solid var(--sun); border-radius: 26px; box-shadow: 9px 10px 0 var(--coral); }
figcaption { color: var(--ivory); font-size: .86rem; margin: 15px 0 0; }
.dark { color: var(--ivory); background: var(--deep); }
.dark h2 { color: var(--sun); }
section.event { background: var(--sun); color: var(--ink); padding-block: 24px; display: grid; grid-template-columns: 1.55fr 1fr 1.05fr 1fr; gap: 12px; }
.event strong { font-size: 1.05rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(25px, 5vw, 72px); }
.schedule { background: var(--teal); padding: clamp(20px, 3vw, 34px); border-radius: 24px; }
dt { font-weight: 800; }
dd { margin: 0 0 .85rem; }
.host, .closing { text-align: center; }
.host p, .closing p, footer p { max-width: 65ch; margin-inline: auto; }
.registration { scroll-margin-top: 12px; }
ol { padding-inline-start: 1.5rem; }
li { padding-inline-start: .25rem; margin-bottom: .85rem; }
li::marker { color: #087467; font-weight: 800; }
form { min-width: 0; padding: clamp(17px, 3vw, 34px); border: 2px solid #75c8b3; border-radius: 24px; background: #fffef8; }
form h2 { margin-bottom: 1rem; }
form > label:not(.choice) { display: block; font-weight: 700; margin-top: .7rem; }
input:not([type=checkbox]) { font: inherit; width: 100%; padding: .6rem; border: 1px solid #4c786a; border-radius: 8px; background: white; color: var(--ink); }
.choice { display: flex; align-items: center; gap: .7rem; min-height: 44px; margin: .7rem 0; cursor: pointer; }
.choice input { accent-color: #125e4d; flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.button { display: inline-flex; min-height: 48px; justify-content: center; align-items: center; background: var(--coral); color: #18352d; padding: .68rem 1.15rem; font: inherit; font-weight: 800; text-align: center; border: 2px solid transparent; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background-color .18s, transform .18s; }
.button:hover { background: var(--sun); transform: translateY(-3px); }
.button:active { transform: translateY(1px); }
:focus-visible { outline: 3px solid #076caa; outline-offset: 4px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--teal); }
form .button { width: 100%; margin-top: .35rem; }
form p { margin-top: .8rem; font-size: .94rem; }
details { max-width: 65ch; margin: 1rem auto 0; }
summary { cursor: pointer; min-height: 44px; font-weight: 750; }
footer { text-align: center; }
footer h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); }
.outline { border-color: var(--deep); background: transparent; }
.signature { margin-top: 1.5rem; font-size: .88rem; }
.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.sky i { position: absolute; width: 155px; height: 33px; border-radius: 40px; background: #fffdf2cf; box-shadow: 40px -13px 0 #fffdf2cf; left: -210px; top: 18px; animation: cloud 47s linear infinite; }
.sky i:nth-child(2) { top: auto; bottom: 7px; animation-duration: 63s; animation-delay: -29s; }
@keyframes cloud { to { transform: translateX(calc(100vw + 240px)); } }
.sky span { position: absolute; font-size: 20px; z-index: 0; opacity: 0; animation: edge 28s linear infinite; }
.mushroom { left: 2px; }
.butterfly { right: 2px; animation-delay: 14s !important; }
@keyframes edge { 0%, 40% { transform: translateY(-40px); opacity: 0; } 44%, 93% { opacity: 1; } 100% { transform: translateY(103vh); opacity: 0; } }
.reveal { animation: arrive .55s ease-out both; }
@keyframes arrive { from { opacity: .55; transform: translateY(8px); } }
@media (max-width: 850px) {
  .hero, .duo { grid-template-columns: minmax(0, 1fr); }
  figure { max-width: 640px; }
  section.event { grid-template-columns: 1fr 1fr; }
  .sky span { font-size: 12px; }
  .butterfly { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.countdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: .65rem 1.25rem;
  align-items: center;
  margin-top: .65rem;
  padding: .8rem;
  border-radius: 16px;
  background: var(--deep);
  color: var(--ivory);
}
.countdown-messages {
  display: grid;
}
.countdown-messages > * {
  grid-area: 1 / 1;
  align-self: center;
  visibility: hidden;
  margin: 0;
  color: var(--sun);
  font: 700 clamp(1.12rem, 2.3vw, 1.7rem)/1.16 Georgia, serif;
  text-wrap: balance;
}
.countdown[data-state="waiting"] [data-message="waiting"],
.countdown[data-state="live"] [data-message="live"],
.countdown[data-state="ended"] [data-message="ended"] {
  visibility: visible;
}
.countdown-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .25rem;
  text-align: center;
}
.countdown-units > div {
  border-radius: 8px;
  padding: .4rem 0;
  background: var(--ivory);
  color: var(--ink);
}
.countdown-units strong, .countdown-units span {
  display: block;
  line-height: 1.2;
}
.countdown-units strong {
  font-size: 1.28rem;
  font-variant-numeric: tabular-nums;
}
.countdown-units span { font-size: .78rem; }
@media (max-width: 600px) {
  .countdown {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
}
