/* Novel Goose competition site. Tokens come from the Figma file (Test/rework page). */
:root {
  --ink: #33241a;
  --muted: #6e5a43;
  --cream: #fbf4e6;
  --surface: #fffdf8;
  --line: #ebdcc0;
  --orange: #e98a2b;
  --orange-light: #f09a40;
  --orange-text: #c46a1a;
  --sand: #f5e9d3;
  --glow: #fff8ea;
  --display: "Irish Grover", "Georgia", serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 36.3%, var(--surface) 50.1%, var(--surface) 79.5%, var(--cream) 91.6%, var(--cream) 93.9%, var(--surface) 96.4%, var(--surface) 100%);
  background-color: var(--cream);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: #f6d3a4; color: var(--ink); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: 120px; }
.eyebrow { font-weight: 600; font-size: 14px; line-height: 1.2; letter-spacing: 0.08em; color: var(--muted); }

/* Buttons: outlined by default, dark fill for the book CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border: 1.5px solid var(--ink); border-radius: 12px;
  font: 700 17px/1.2 var(--body); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: transparent; transition: background-color .15s ease, color .15s ease;
}
.btn--dark { background: var(--ink); color: var(--surface); }
@media (hover: hover) {
  .btn:hover { background: var(--ink); color: var(--surface); }
  .btn--dark:hover { background: #4a3526; }
}

/* Nav */
.nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 64px; max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand__name { font-family: var(--display); font-size: 32px; line-height: 1.2; white-space: nowrap; }
.brand__divider { width: 1px; height: 24px; background: var(--line); }
.brand__slogan { font-size: 18px; line-height: 1.6; color: var(--muted); white-space: nowrap; }
.nav__links { display: flex; gap: 40px; font-weight: 600; font-size: 18px; line-height: 1.6; }
.nav__links a { text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; padding: 48px 64px; max-width: 1440px; margin: 0 auto; gap: 24px; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__brand .brand__name { font-size: 32px; }
.footer small, .footer__contact { font-size: 14px; color: var(--muted); }
.footer__contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; padding-top: 29px; }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }

/* ---------- Landing ---------- */
.landing-top { background: radial-gradient(ellipse 70% 900px at 100% 0%, var(--glow) 0%, rgba(255, 248, 234, 0) 100%); }
.hero { display: flex; align-items: center; gap: 48px; padding-block: 96px; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; width: 640px; flex: none; }
.hero__title { font-size: 104px; line-height: 1; white-space: nowrap; }
.hero__lead { font-size: 18px; line-height: 1.6; max-width: 560px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__mascots { flex: 1; min-width: 0; display: flex; gap: 20px; align-items: flex-end; justify-content: center; }
.hero__mascots .herbert { width: 244px; height: 279px; object-fit: contain; }
.hero__mascots .bandan { width: 244px; height: 249px; object-fit: contain; }

.promo { padding-block: 96px; }
.book { position: relative; }
.book__edges { position: absolute; left: 22px; right: 22px; bottom: -4px; height: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 2px 2px; }
.book__cover {
  position: relative; padding: 16px; border-radius: 4px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  filter: drop-shadow(0 30px 25px rgba(51, 36, 26, 0.45));
}
.book__pages { position: relative; display: flex; background: #fff; border-radius: 2px; overflow: hidden; min-height: 445px; }
.page { position: relative; flex: 1 1 0; min-width: 0; padding: 44px 48px 60px; display: flex; flex-direction: column; }
.page--left { justify-content: space-between; gap: 32px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 88%, #f1ede4 100%); }
.page--right { background: linear-gradient(270deg, var(--surface) 0%, var(--surface) 88%, #f1ede4 100%); }
.page--left::before, .page--right::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34px; pointer-events: none; }
.page--left::before { left: 0; background: linear-gradient(90deg, rgba(51, 36, 26, .05), rgba(51, 36, 26, 0)); }
.page--right::after { right: 0; background: linear-gradient(270deg, rgba(51, 36, 26, .05), rgba(51, 36, 26, 0)); }
.page--left::after, .page--right::before { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; pointer-events: none; }
.page--left::after { right: 0; background: linear-gradient(90deg, rgba(51, 36, 26, 0), rgba(51, 36, 26, .03) 60%, rgba(51, 36, 26, .1)); }
.page--right::before { left: 0; background: linear-gradient(270deg, rgba(51, 36, 26, 0), rgba(51, 36, 26, .03) 60%, rgba(51, 36, 26, .1)); }
.book__crease { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(40, 30, 23, .78); filter: blur(.5px); }
.book__ribbon { position: absolute; top: -16px; right: 64px; width: 26px; height: 92px; }
.book__label { font-size: 12px; letter-spacing: 1.4px; color: var(--muted); font-weight: 600; }
.page--right .book__label { font-weight: 400; }
.book__title { font-size: 44px; line-height: 48px; margin-top: 14px; }
.book__text { font-size: 16px; line-height: 25px; max-width: 320px; margin-top: 18px; }
.book__dates { font-size: 14px; line-height: 22px; color: var(--muted); margin-top: 12px; }
.prize-list { list-style: none; margin: 14px 0 0; padding: 0; }
.prize-row { display: flex; align-items: center; gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.prize-row:first-child { padding-block: 10px; }
.prize-row__place { font-weight: 500; font-size: 15px; white-space: nowrap; }
.prize-row__leader { flex: 1; min-width: 1px; height: 2px; background: url("../assets/leader.svg") left center / 100% 2px no-repeat; }
.prize-row__amount { font-family: var(--display); color: var(--orange-text); font-size: 30px; line-height: 1.2; white-space: nowrap; }
.prize-row:first-child .prize-row__amount { font-size: 38px; }
.early { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.early__title { font-family: var(--display); font-size: 20px; color: var(--orange-text); }
.early__text { font-size: 15px; line-height: 22px; max-width: 320px; }
.book__note { font-size: 13px; color: var(--muted); margin-top: 8px; }

.teaser { text-align: center; padding-block: 96px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.teaser__title { font-size: 56px; line-height: 1.1; }
.teaser__text { font-size: 22px; line-height: 1.6; color: var(--muted); max-width: 640px; font-weight: 500; }
.teaser__img { margin-top: 16px; width: 100%; max-width: 1200px; }
.teaser__img img { width: 100%; height: auto; }

.mission { text-align: center; padding: 120px 120px; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 1440px; margin: 0 auto; }
.mission__title { font-size: 56px; line-height: 1.1; text-wrap: balance; max-width: 1100px; }
@media (min-width: 1241px) { .book__title { white-space: nowrap; } }
.mission__text { font-weight: 500; font-size: 24px; line-height: 1.4; color: var(--muted); max-width: 860px; }

/* ---------- Contest ---------- */
.c-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 80px 120px 120px; background: radial-gradient(ellipse 70% 90% at 100% 0%, var(--glow), rgba(255, 248, 234, 0)); }
.c-hero__title { font-size: 92px; line-height: 1.2; text-wrap: balance; }
.c-hero__lead { font-weight: 500; font-size: 22px; line-height: 32px; color: var(--muted); max-width: 760px; }
.countdown { display: flex; gap: 14px; }
.countdown__unit { width: 108px; padding-block: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.countdown__num { font-weight: 700; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__label { font-weight: 600; font-size: 14px; line-height: 1.2; letter-spacing: 0.08em; color: var(--muted); }
.countdown__note { font-size: 14px; color: var(--muted); }

.c-section { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.c-section__title { font-size: 44px; line-height: 1.2; }
.deadlines { padding-block: 56px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: 100%; align-items: flex-start; }
.milestone { display: flex; flex-direction: column; gap: 6px; flex: none; }
.milestone__head { display: flex; align-items: center; gap: 10px; }
.milestone__dot { width: 16px; height: 16px; flex: none; }
.milestone__label { font-family: var(--display); font-size: 26px; line-height: 1.2; white-space: nowrap; }
.milestone__date { font-weight: 500; font-size: 17px; color: var(--muted); }
.timeline__line { flex: 1; min-width: 1px; padding-top: 15px; }
.timeline__line span { display: block; height: 2px; background: var(--line); }

.prizes { padding: 24px 120px 56px; }
.prizes__note { font-size: 16px; color: var(--muted); }
.podium { display: flex; gap: 16px; align-items: flex-end; width: 100%; }
.podium__item { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; flex: 372 1 0; min-width: 0; }
.podium__item--2 { padding-block: 38px; }
.podium__item--1 { flex-grow: 424; padding-block: 56px; background: linear-gradient(180deg, var(--orange-light), var(--orange)); border-color: var(--orange); }
.podium__amount { font-family: var(--display); font-size: 46px; line-height: 1.2; }
.podium__item--1 .podium__amount { font-size: 56px; }
.podium__place { font-weight: 600; font-size: 18px; color: var(--muted); }
.podium__item--1 .podium__place { color: var(--ink); }
.early-goose { width: 100%; display: flex; align-items: center; gap: 32px; padding: 32px; background: var(--ink); border-radius: 18px; }
.early-goose__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.early-goose__title { font-family: var(--display); font-size: 30px; line-height: 1.2; color: var(--surface); }
.early-goose__text { font-size: 17px; color: var(--line); }
.early-goose__divider { width: 2px; height: 72px; background: rgba(255, 253, 248, .25); flex: none; }

.rules { padding: 24px 120px 72px; }
.rule-cards { display: flex; gap: 24px; width: 100%; align-items: stretch; }
.rule-card { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.rule-card h3 { font-family: var(--body); font-weight: 700; font-size: 20px; }
.rule-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rule-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.rule-card li::before { content: ""; width: 22px; height: 22px; border-radius: 11px; background: #f6d3a4; flex: none; }
.rule-card--no li::before { background: #f3dccb; }
.rule-card p { font-size: 16px; }

.closing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 72px 120px; background: linear-gradient(180deg, rgba(255, 253, 248, 0) 0%, rgba(251, 244, 230, .8) 35%, var(--sand) 100%); }
.closing__title { font-size: 46px; line-height: 1.2; }
.closing__text { font-weight: 500; font-size: 20px; color: var(--muted); }

/* ---------- About ---------- */
.meet { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 72px 120px; background: radial-gradient(ellipse 70% 90% at 100% 0%, var(--glow), rgba(255, 248, 234, 0)); }
.meet__title { font-size: 72px; line-height: 1.2; text-align: center; text-wrap: balance; }
.meet__cards { display: flex; gap: 40px; align-items: flex-start; }
.mascot-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 6px 18px rgba(71, 43, 10, .1); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mascot-card img { width: 320px; height: 340px; object-fit: contain; }
.mascot-card h2 { font-size: 34px; line-height: 1.2; text-align: center; }
.what { padding-block: 56px 156px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.what__title { font-size: 48px; line-height: 1.2; }
.what__body { max-width: 820px; font-size: 18px; line-height: 29px; display: flex; flex-direction: column; gap: 18px; }
.what__body strong { font-weight: 600; }
.what__cta { display: flex; align-items: center; gap: 24px; padding-top: 6px; flex-wrap: wrap; }
.what__cta p { font-weight: 600; font-size: 18px; }

/* ---------- In-between widths ---------- */
@media (max-width: 1240px) {
  .wrap, .prizes, .rules, .c-hero, .meet, .closing { padding-inline: 48px; }
  .nav__inner, .footer__inner { padding-inline: 48px; }
  .hero__copy { width: auto; flex: 1 1 520px; }
  .hero__title { font-size: clamp(72px, 8vw, 104px); }
  .hero__mascots img { width: 42% !important; height: auto !important; }
  .mission { padding-inline: 48px; }
  .c-hero__title { font-size: clamp(64px, 7.4vw, 92px); }
  .early-goose__title { font-size: 26px; }
  .milestone__label { font-size: 22px; }
}
@media (max-width: 1000px) {
  .brand__divider, .brand__slogan { display: none; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero__mascots { width: 100%; justify-content: flex-start; }
  .page { padding: 36px 32px 44px; }
  .book__title { font-size: 36px; line-height: 40px; }
  .meet__cards { gap: 20px; }
  .mascot-card img { width: 260px; height: 276px; }
  .mascot-card h2 { font-size: 26px; }
}

/* ---------- Mobile (Figma frames are 390 wide) ---------- */
@media (max-width: 767px) {
  .wrap, .prizes, .rules, .c-hero, .meet, .closing, .mission { padding-inline: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .nav__inner { padding: 12px 16px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 0; }
  .brand__divider { display: none; }
  .brand__slogan { display: block; font-size: 11px; }
  .nav .brand__name { font-size: 26px; }
  .nav__links { gap: 16px; font-size: 14px; }
  .footer__inner { flex-direction: column; padding: 32px 24px 40px; gap: 16px; }
  .footer__brand .brand__name { font-size: 26px; }
  .footer__contact { align-items: flex-start; padding-top: 4px; }

  .landing-top { background: radial-gradient(ellipse 120% 600px at 100% 0%, var(--glow), rgba(255, 248, 234, 0)); }
  .hero { padding-block: 28px 64px; align-items: stretch; text-align: center; }
  .hero__copy { gap: 16px; align-items: center; width: 100%; flex: none; }
  .hero__title-stack { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .hero__title { font-size: 56px; white-space: normal; }
  .hero__lead { font-size: 16px; }
  .hero__lead br { display: none; }
  .eyebrow { font-size: 12px; }
  .hero__ctas { flex-direction: column; gap: 12px; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .hero__mascots { display: none; }
  .hero__mini-mascots { display: flex !important; justify-content: space-between; align-items: flex-end; width: 100%; margin-bottom: -8px; }
  .hero__mini-mascots .herbert { width: 99px; height: 113px; object-fit: contain; }
  .hero__mini-mascots .bandan { width: 99px; height: 101px; object-fit: contain; }

  .promo { padding-block: 16px 56px; }
  .book__cover { padding: 10px; }
  .book__edges { left: 14px; right: 14px; }
  .book__pages { flex-direction: column; min-height: 0; }
  .page { padding: 32px 24px; }
  .page--left { justify-content: flex-start; gap: 24px; }
  .page--left, .page--right { background: var(--surface); }
  .page--left::before, .page--left::after, .page--right::before, .page--right::after { display: none; }
  .page--left .btn { align-self: flex-start; }
  .book__crease { display: none; }
  .page--right { border-top: 2px solid rgba(51, 36, 26, .08); }
  .book__ribbon { top: -12px; right: 40px; }
  .book__title { font-size: 32px; line-height: 38px; }
  .book__text, .early__text { max-width: none; }
  .prize-row__amount { font-size: 26px; }
  .prize-row:first-child .prize-row__amount { font-size: 32px; }

  .teaser { padding-block: 56px 48px; }
  .teaser__title { font-size: 36px; }
  .teaser__text { font-size: 17px; font-weight: 400; }
  .mission { padding-block: 72px; gap: 16px; }
  .mission .eyebrow { font-size: 14px; }
  .mission__title { font-size: 36px; }
  .mission__text { font-size: 17px; font-weight: 400; }

  .c-hero { padding-block: 40px 72px; gap: 20px; }
  .c-hero__title { font-size: 48px; line-height: 1.25; }
  .c-hero__lead { font-size: 16px; line-height: 32px; }
  .countdown { gap: 8px; width: 100%; }
  .countdown__unit { width: auto; flex: 1; }
  .countdown__num { font-size: 32px; }
  .countdown__label { font-size: 12px; }
  .countdown__note { font-size: 12px; }
  .c-section__title { font-size: 32px; }
  .deadlines { padding-block: 32px; }
  .timeline { gap: 8px; }
  .milestone { flex: 1 1 0; min-width: 0; }
  .milestone__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .milestone__label { font-size: 15px; white-space: normal; }
  .milestone__date { font-size: 13px; font-weight: 400; }
  .timeline__line { display: none; }
  .prizes { padding-block: 24px 40px; }
  .prizes__note { font-size: 14px; }
  .podium { flex-wrap: wrap; gap: 10px; }
  .podium__item { flex: 1 1 calc(50% - 5px); padding: 24px 12px !important; }
  .podium__item--1 { order: -1; flex-basis: 100%; padding-block: 40px !important; }
  .podium__amount { font-size: 34px; }
  .podium__item--1 .podium__amount { font-size: 50px; }
  .podium__place { font-size: 15px; }
  .early-goose { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; }
  .early-goose__title { font-size: 22px; }
  .early-goose__text { font-size: 15px; }
  .early-goose__divider { width: 100%; height: 1px; }
  .rules { padding-block: 24px 40px; }
  .rule-cards { flex-direction: column; gap: 14px; }
  .closing { padding-block: 56px; }
  .closing__title { font-size: 32px; }
  .closing__text { font-size: 15px; }

  .meet { padding-block: 40px 40px; gap: 20px; }
  .meet__title { font-size: 40px; }
  .meet__cards { gap: 12px; width: 100%; }
  .mascot-card { flex: 1 1 0; min-width: 0; padding: 12px 10px 16px; border-radius: 20px; gap: 8px; }
  .mascot-card img { width: 100%; height: auto; aspect-ratio: 320 / 340; }
  .mascot-card h2 { font-size: 15px; }
  .what { padding-block: 32px 40px; }
  .what__title { font-size: 32px; }
  .what__body { font-size: 16px; line-height: 26px; gap: 14px; }
  .what__cta { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.hero__mini-mascots { display: none; }

/* Mobile timeline connectors between dots */
@media (max-width: 767px) {
  .milestone { position: relative; }
  .milestone:not(:last-child)::after { content: ""; position: absolute; top: 7px; left: 28px; right: 4px; height: 2px; background: var(--line); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
