:root {
  --cream: #fff6e0;
  --shell: #fffdf7;
  --yolk: #f7b63e;
  --yolk-deep: #c9831a;
  --ink: #182030;
  --navy: #182030;
  --navy-soft: #222b3d;
  --mute: #4c5466;
  --on-navy: #fbf4ea;
  --on-navy-mute: #c9cdd6;
  --rule: #ecdcb8;
  --focus: #1f5fd1;
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; background: var(--cream); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--shell); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--navy); border-bottom: 1px solid var(--navy-soft); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 0; }
.brand-mark { width: 40px; height: 40px; }
.brand-word { width: auto; height: 26px; }
.top nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.top nav a { display: inline-block; padding: 10px 12px; border-radius: 999px; font-weight: 650; text-decoration: none; color: var(--on-navy-mute); }
.top nav a:hover { color: var(--on-navy); background: var(--navy-soft); }
.top :focus-visible, .hero :focus-visible, .rules :focus-visible { outline-color: var(--yolk); }

/* Hero */
.hero { padding: 56px 0 80px; background: var(--navy); color: var(--on-navy); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.kicker { font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #8a5a10; margin-bottom: 14px; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 850; max-width: 13ch; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--mute); margin-top: 22px; max-width: 34em; }
.hero .kicker { color: var(--yolk); }
.hero .lead { color: var(--on-navy-mute); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--ink); transition: transform 160ms ease, box-shadow 160ms ease; }
.btn-primary { background: var(--ink); color: var(--shell); box-shadow: 0 4px 0 var(--yolk-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--yolk-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--shell); }
.hero .btn-primary { background: var(--yolk); border-color: var(--yolk); color: var(--navy); box-shadow: 0 4px 0 var(--yolk-deep); }
.hero .btn-ghost { border-color: var(--on-navy); color: var(--on-navy); }
.hero .btn-ghost:hover { background: var(--navy-soft); }
.hero-art { display: grid; place-items: center; }
.big-egg { width: min(380px, 100%); height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .big-egg { transform-origin: 50% 92%; animation: wobble 5s ease-in-out 1.2s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@keyframes wobble {
  0%, 84%, 100% { transform: rotate(0); }
  88% { transform: rotate(-3deg); }
  92% { transform: rotate(2.5deg); }
  96% { transform: rotate(-1deg); }
}

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 820; max-width: 20ch; }
.section-lead { color: var(--mute); margin-top: 16px; max-width: 38em; }

.cards { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--shell); border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px 24px 28px; box-shadow: 6px 6px 0 var(--yolk); }
.card h3 { font-size: 1.375rem; margin-top: 18px; }
.card p { color: var(--mute); margin-top: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.02em; padding: 6px 12px; border-radius: 999px; background: #fdf0cc; border: 1.5px dashed var(--yolk-deep); color: #6e4708; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yolk-deep); }

.rules { background: var(--navy); color: var(--on-navy); border-top: 0; }
.rules .kicker { color: var(--yolk); }
.rules .section-lead { color: var(--on-navy-mute); }
.rules-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.rule-list { list-style: none; counter-reset: rule; margin: 0; padding: 0; display: grid; gap: 14px; }
.rule-list li { counter-increment: rule; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 22px 24px; border: 1.5px solid #343f56; border-radius: var(--radius); }
.rule-list li::before { content: counter(rule); grid-row: span 2; display: grid; place-items: center; width: 52px; height: 64px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: var(--yolk); color: var(--ink); font-weight: 900; font-size: 1.375rem; }
.rule-list h3 { font-size: 1.25rem; align-self: end; }
.rule-list p { color: var(--on-navy-mute); margin-top: 4px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.contact { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--shell); border: 1.5px solid var(--rule); border-radius: var(--radius); }
.contact h3 { font-size: 1.2rem; }
.contact p { color: var(--mute); flex: 1; }
.contact a { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--yolk-deep); overflow-wrap: anywhere; padding-block: 6px; }
.contact a:hover { text-decoration-color: var(--ink); }

.foot { border-top: 1px solid var(--rule); padding: 32px 0 40px; color: var(--mute); font-size: 0.9375rem; }
.foot-inner { display: grid; gap: 6px; }

/* Not-found page */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost h1 { margin-inline: auto; }
.lost .lead { margin-inline: auto; }
.lost .actions { justify-content: center; }
.lost-mark { width: 160px; height: auto; margin: 0 auto 8px; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner, .rules-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; justify-items: start; }
  .big-egg { width: 170px; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 28px 0 56px; }
  .section { padding: 60px 0; }
  .top-inner { min-height: 0; }
  .top nav a { padding: 8px 10px; }
  .btn { width: 100%; }
  .rule-list li { grid-template-columns: 44px 1fr; padding: 18px; column-gap: 14px; }
  .rule-list li::before { width: 44px; height: 54px; font-size: 1.15rem; }
}
@media (max-width: 420px) {
  .top-inner { flex-direction: column; align-items: stretch; gap: 4px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { height: 22px; }
  .top nav ul { justify-content: space-between; flex-wrap: nowrap; gap: 0; }
  .top nav a { padding: 10px 6px; font-size: 0.9375rem; white-space: nowrap; }
}
