:root {
  color-scheme: dark;
  --ink: #11100e;
  --paper: #ede7dc;
  --paper-dark: #d8d0c2;
  --orange: #ee6c2b;
  --white: #f7f2eb;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Oswald', Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-shell, .share-shell { max-width: 1500px; margin: 0 auto; box-shadow: 0 0 0 1px #ffffff12; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(22px, 5vw, 72px); background: #11100e; position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 27px; height: 30px; color: var(--ink); background: var(--white); font-size: 21px; line-height: 1; clip-path: polygon(0 0, 75% 0, 100% 30%, 100% 68%, 48% 100%, 0 75%); }
.edition { font-family: var(--display); font-size: 13px; letter-spacing: .16em; color: #a6a09a; }
.topbar-action { border: 1px solid #776f65; background: transparent; color: var(--white); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.topbar-action:hover { background: var(--white); color: var(--ink); }

.hero { min-height: min(790px, 78vw); height: calc(100svh - 74px); max-height: 920px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 44%; }
.hero-shade { background: linear-gradient(90deg, #11100e9e 0%, transparent 65%), linear-gradient(0deg, #11100e 3%, #11100e00 57%); }
.hero-copy { position: relative; z-index: 1; padding: 0 clamp(24px, 7vw, 104px) 105px; max-width: 890px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .16em; }
.eyebrow-line { display: inline-block; width: 28px; height: 2px; background: var(--orange); }
.hero h1, .intro-section h2, .templates-section h2, .rewards-section h2, .share-content h2 { font-family: var(--display); font-weight: 700; line-height: .94; letter-spacing: -.035em; margin: 0; }
.hero h1 { font-size: clamp(90px, 13vw, 190px); text-shadow: 0 6px 22px #0008; }
.hero h1 em, .intro-section h2 i, .templates-section h2 i, .rewards-section h2 i, .share-content h2 i { font-style: normal; color: var(--orange); }
.hero-lede { font-size: clamp(16px, 2vw, 23px); margin: 30px 0; }
.pill-button { min-height: 55px; width: fit-content; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; gap: 38px; border-radius: 999px; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: .035em; transition: transform .2s, background .2s; }
.pill-button:hover { transform: translateY(-3px); }
.pill-button span { font-size: 25px; line-height: 1; }
.pill-button-light { background: var(--white); color: var(--ink); }
.pill-button-orange { background: var(--orange); color: var(--ink); }
.hero-bottom { position: absolute; z-index: 1; bottom: 28px; left: clamp(24px, 7vw, 104px); right: clamp(24px, 7vw, 104px); display: flex; justify-content: space-between; font-family: var(--display); font-size: 12px; letter-spacing: .18em; color: #e9e2d4c9; }

.paper-wrap { background: var(--ink); padding: 0 clamp(10px, 2.4vw, 34px) 32px; }
.paper-inner { color: var(--ink); max-width: 1320px; margin: 0 auto; position: relative; background: var(--paper); background-image: repeating-linear-gradient(105deg, #38220d04 0, #38220d04 2px, transparent 2px, transparent 6px), radial-gradient(circle at 10% 15%, #fff7 0, transparent 34%), radial-gradient(circle at 80% 85%, #9c755b15 0, transparent 38%); box-shadow: inset 0 0 60px #5c32151b; }
.paper-inner::before, .paper-inner::after { content: ''; position: absolute; pointer-events: none; width: 100%; height: 22px; background: var(--ink); z-index: 1; }
.paper-inner::before { top: -1px; clip-path: polygon(0 0,100% 0,100% 40%,97% 55%,93% 27%,88% 55%,81% 28%,76% 54%,70% 23%,61% 50%,53% 26%,45% 49%,36% 30%,28% 52%,19% 28%,11% 54%,4% 30%,0 50%); }
.paper-inner::after { bottom: -1px; transform: rotate(180deg); clip-path: polygon(0 0,100% 0,100% 40%,97% 55%,93% 27%,88% 55%,81% 28%,76% 54%,70% 23%,61% 50%,53% 26%,45% 49%,36% 30%,28% 52%,19% 28%,11% 54%,4% 30%,0 50%); }
.section-kicker { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #1c1a1760; padding-top: 14px; font-family: var(--display); font-size: 12px; letter-spacing: .17em; font-weight: 600; }
.intro-section, .templates-section, .rewards-section { padding: clamp(50px, 8vw, 100px) clamp(24px, 6.5vw, 92px) 0; }
.intro-section { text-align: center; }
.intro-section .section-kicker, .templates-section .section-kicker, .rewards-section .section-kicker { text-align: left; }
.invite-banner { max-width: 760px; margin: 42px auto 0; display: flex; align-items: center; text-align: left; gap: 18px; padding: 18px 22px; border: 1px solid #d67a46; background: #f7ddc6; }
.invite-symbol { color: #b64710; font-size: 30px; }
.invite-banner strong { font-family: var(--display); letter-spacing: .08em; }
.invite-banner p { font-size: 13px; margin: 3px 0 0; }
.pumpkin-glyph { font-size: 23px; margin: 56px 0 20px; color: #9d522c; }
.intro-section h2, .templates-section h2, .rewards-section h2 { font-size: clamp(50px, 8.3vw, 110px); }
.intro-copy { max-width: 620px; margin: 28px auto 60px; line-height: 1.6; font-size: clamp(16px, 1.7vw, 20px); }
.three-steps { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 940px; margin: 0 auto; border-top: 1px solid #4d403552; border-bottom: 1px solid #4d403552; }
.three-steps > div { display: flex; align-items: center; flex-direction: column; padding: 25px 8px 29px; }
.three-steps > div + div { border-left: 1px solid #4d403552; }
.three-steps b { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 18px; }
.three-steps strong { font-family: var(--display); font-size: 23px; margin-top: 10px; }
.three-steps span { font-size: 13px; }
.score-section { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 55px clamp(24px, 6.5vw, 92px) 0; }
.score-card { background: var(--ink); color: var(--white); min-height: 185px; border-top: 4px solid var(--orange); padding: 26px 30px; display: flex; flex-direction: column; }
.score-card > span { font-family: var(--display); letter-spacing: .07em; font-size: 16px; }
.score-card strong { font-family: var(--display); color: var(--orange); font-size: 68px; line-height: 1.1; margin-top: 3px; }
.score-card small { font-size: 12px; color: #c9bcb0; }
.templates-section { padding-top: 110px; }
.templates-section h2, .rewards-section h2 { margin-top: 47px; }
.section-subtitle { margin: 14px 0 35px; font-size: 17px; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.template-card { background: #f8f3e9; border: 1px solid #b9ad9e; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.template-card:hover { transform: translateY(-4px); box-shadow: 0 11px 20px #17130b1c; }
.template-card-invited { outline: 3px solid var(--orange); outline-offset: -3px; }
.template-picture { aspect-ratio: 4 / 4.2; overflow: hidden; position: relative; background: #302b27; }
.template-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.template-badge { position: absolute; left: 14px; top: 14px; background: var(--orange); color: var(--ink); padding: 7px 10px; font-family: var(--display); font-weight: 700; letter-spacing: .05em; font-size: 12px; }
.template-details { padding: 20px 19px 18px; }
.template-details h3 { font-family: var(--display); font-size: clamp(27px, 3vw, 39px); margin: 0; line-height: 1; }
.template-details p { margin: 10px 0 20px; font-size: 13px; min-height: 36px; }
.template-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #bdb5a9; padding-top: 13px; }
.template-footer span { font-size: 12px; color: #6c6056; }
.template-footer button { background: var(--ink); color: var(--white); border: 0; border-radius: 999px; padding: 9px 18px; font-family: var(--display); font-size: 15px; }
.template-footer button:hover { background: var(--orange); color: var(--ink); }
.rewards-section { padding-top: 110px; padding-bottom: 110px; }
.reward-row { display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 25px; padding: 24px 0; border-top: 1px solid #a79a8c; }
.reward-row:last-child { border-bottom: 1px solid #a79a8c; }
.reward-num { font-family: var(--display); font-size: 28px; color: #9c6a50; }
.reward-row strong { font-family: var(--display); font-size: 22px; }
.reward-row p { font-size: 13px; margin: 4px 0 0; }
.reward-row b { background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 16px; letter-spacing: .05em; padding: 10px 14px; white-space: nowrap; }
.page-footer { padding: 30px clamp(24px, 6.5vw, 92px) 35px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #1c1a1750; font-family: var(--display); font-size: 12px; letter-spacing: .11em; }

.mock-dock { position: fixed; z-index: 15; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 9px; background: #1b1a18ef; color: #f4f0e9; border: 1px solid #ffffff3a; box-shadow: 0 8px 30px #0008; border-radius: 999px; padding: 7px 9px 7px 13px; font-size: 11px; }
.mock-dock span { color: #e29a6d; font-family: var(--display); letter-spacing: .09em; white-space: nowrap; }
.mock-dock button, .mock-dock a { border: 0; border-radius: 999px; background: #e8e0d3; color: var(--ink); font-size: 11px; font-weight: 700; padding: 8px 11px; white-space: nowrap; }
.mock-dock a { background: #3e3732; color: var(--white); }
.toast { position: fixed; z-index: 25; left: 50%; bottom: 100px; transform: translate(-50%, 15px); background: #24201d; color: white; border: 1px solid #ea8853; box-shadow: 0 8px 24px #0008; padding: 12px 18px; font-size: 13px; text-align: center; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100vw - 30px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mock-dialog { border: 1px solid #a88e77; width: min(410px, calc(100vw - 34px)); padding: 31px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px #000a; }
.mock-dialog::backdrop { background: #070605c7; }
.dialog-kicker { font-family: var(--display); color: #a4552b; font-size: 13px; letter-spacing: .12em; }
.mock-dialog h2 { font-family: var(--display); font-size: 42px; margin: 10px 0; line-height: 1; }
.mock-dialog p { font-size: 14px; line-height: 1.5; }
.dialog-actions { display: flex; gap: 8px; margin-top: 24px; }
.dialog-actions button { border: 0; border-radius: 999px; padding: 12px 14px; flex: 1; font-weight: 700; font-size: 12px; }
.dialog-secondary { background: #d4c9ba; }
.dialog-primary { background: var(--orange); }

/* Share page */
.topbar-share { border-bottom: 1px solid #ffffff22; }
.share-layout { min-height: calc(100svh - 130px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.video-stage { min-height: 670px; position: relative; overflow: hidden; background: #201c19; }
.video-stage > img, .video-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-stage > img { object-fit: cover; }
.video-vignette { background: linear-gradient(0deg, #0d0c0be6 0%, transparent 55%), linear-gradient(180deg, #0d0c0b7f 0%, transparent 40%); }
.video-topline { position: absolute; top: 31px; left: 36px; right: 36px; display: flex; justify-content: space-between; gap: 15px; font-family: var(--display); font-size: 12px; letter-spacing: .11em; }
.video-caption { position: absolute; bottom: 50px; left: 44px; right: 35px; }
.video-caption small { font-family: var(--display); letter-spacing: .16em; font-size: 12px; }
.video-caption h1 { font-family: var(--display); font-size: clamp(46px, 5vw, 75px); line-height: .98; text-transform: uppercase; margin: 13px 0; max-width: 550px; }
.video-caption p { font-size: 14px; }
.share-content { padding: clamp(55px, 7vw, 105px) clamp(30px, 5.7vw, 80px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--paper); color: var(--ink); background-image: radial-gradient(circle at 100% 0, #fff9, transparent 35%), repeating-linear-gradient(108deg, #38220d04 0, #38220d04 2px, transparent 2px, transparent 6px); }
.share-content .eyebrow { color: #6b5648; }
.share-content h2 { font-size: clamp(68px, 7.2vw, 112px); }
.share-intro { max-width: 410px; font-size: 17px; line-height: 1.55; margin: 30px 0; }
.code-box { width: 100%; max-width: 480px; border: 1px solid #8a8176; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 17px 24px; margin: 4px 0 25px; }
.code-box small { display: block; font-family: var(--display); font-size: 12px; letter-spacing: .11em; color: #655b50; }
.code-box strong { display: block; font-family: var(--display); font-size: 34px; letter-spacing: .05em; line-height: 1.3; }
.code-box button { border: 0; background: var(--ink); color: var(--white); border-radius: 999px; padding: 11px 17px; font-family: var(--display); font-size: 13px; white-space: nowrap; }
.share-content .pill-button { width: 100%; max-width: 480px; justify-content: space-between; }
.text-button { border: 0; border-bottom: 1px solid #7c6a5a; background: transparent; padding: 5px 0; color: #55483d; margin-top: 22px; font-size: 13px; }
.share-footnote { margin-top: 75px; border-top: 1px solid #a79a8c; padding-top: 18px; width: 100%; display: flex; justify-content: space-between; gap: 10px; font-family: var(--display); font-size: 12px; letter-spacing: .09em; }
.share-footer { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-top: 1px solid #ffffff27; color: #b9b1a9; font-family: var(--display); font-size: 11px; letter-spacing: .1em; }

@media (max-width: 850px) {
  .hero { height: min(870px, calc(100svh - 66px)); min-height: 670px; }
  .hero-image { object-position: 48% center; }
  .hero-shade { background: linear-gradient(0deg, #11100e 0%, #11100e0a 77%); }
  .hero-copy { padding-bottom: 105px; }
  .hero h1 { font-size: clamp(75px, 15vw, 130px); }
  .share-layout { grid-template-columns: 1fr; }
  .video-stage { height: 78svh; min-height: 480px; max-height: 850px; }
  .share-content { min-height: 590px; }
}

@media (max-width: 600px) {
  .topbar { height: 62px; padding: 0 17px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 23px; height: 26px; font-size: 18px; }
  .edition { display: none; }
  .topbar-action { padding: 7px 13px; }
  .hero { height: min(780px, calc(100svh - 62px)); min-height: 620px; }
  .hero-image { object-position: 51% 35%; }
  .hero-copy { padding: 0 23px 100px; }
  .hero h1 { font-size: clamp(66px, 18vw, 102px); }
  .hero-lede { margin: 18px 0 22px; max-width: 250px; line-height: 1.3; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .12em; }
  .hero-bottom { left: 24px; right: 24px; bottom: 20px; font-size: 10px; }
  .hero-bottom span:last-child { display: none; }
  .paper-wrap { padding: 0 7px 22px; }
  .intro-section, .templates-section, .rewards-section { padding-left: 20px; padding-right: 20px; }
  .intro-section { padding-top: 55px; }
  .section-kicker { font-size: 10px; }
  .section-kicker span:last-child { text-align: right; }
  .pumpkin-glyph { margin: 53px 0 18px; }
  .intro-section h2, .templates-section h2, .rewards-section h2 { font-size: clamp(46px, 13.2vw, 70px); }
  .intro-copy { margin: 24px auto 45px; font-size: 15px; }
  .three-steps > div { padding: 20px 4px; }
  .three-steps b { width: 31px; height: 31px; font-size: 15px; }
  .three-steps strong { font-size: 17px; }
  .three-steps span { font-size: 10px; line-height: 1.25; }
  .score-section { gap: 8px; padding: 32px 20px 0; }
  .score-card { min-height: 140px; padding: 15px 13px; }
  .score-card > span { font-size: 11px; line-height: 1.2; min-height: 27px; }
  .score-card strong { font-size: 51px; }
  .score-card small { font-size: 10px; line-height: 1.2; }
  .templates-section { padding-top: 80px; }
  .templates-section h2, .rewards-section h2 { margin-top: 35px; }
  .section-subtitle { font-size: 14px; }
  .template-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .template-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 48% 52%; }
  .template-card:first-child .template-picture { height: 100%; }
  .template-picture { aspect-ratio: 4 / 4.6; }
  .template-details { padding: 14px 12px; display: flex; flex-direction: column; }
  .template-details h3 { font-size: 27px; }
  .template-details p { font-size: 11px; line-height: 1.35; margin: 8px 0 12px; }
  .template-footer { margin-top: auto; }
  .template-footer span { font-size: 10px; }
  .template-footer button { font-size: 13px; padding: 7px 12px; }
  .template-badge { left: 7px; top: 7px; font-size: 9px; padding: 5px 7px; }
  .rewards-section { padding-top: 80px; padding-bottom: 70px; }
  .reward-row { grid-template-columns: 30px 1fr; gap: 10px; padding: 20px 0; }
  .reward-row strong { font-size: 17px; }
  .reward-row p { font-size: 11px; line-height: 1.4; }
  .reward-row b { grid-column: 2; width: fit-content; font-size: 12px; padding: 7px 10px; }
  .reward-num { font-size: 21px; align-self: start; }
  .page-footer { padding: 25px 20px 70px; font-size: 9px; }
  .mock-dock { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); justify-content: center; gap: 5px; padding: 6px; }
  .mock-dock span, .mock-dock button, .mock-dock a { font-size: 9px; }
  .mock-dock button, .mock-dock a { padding: 8px; }
  .video-stage { height: 66svh; min-height: 470px; }
  .video-topline { top: 20px; left: 20px; right: 20px; font-size: 10px; }
  .video-topline span:last-child { display: none; }
  .video-caption { bottom: 27px; left: 22px; right: 20px; }
  .video-caption h1 { font-size: clamp(44px, 13vw, 65px); }
  .share-content { padding: 60px 23px 90px; min-height: 0; }
  .share-content h2 { font-size: clamp(66px, 18vw, 100px); }
  .share-intro { font-size: 15px; }
  .share-footnote { margin-top: 55px; font-size: 10px; }
  .share-footer { padding: 0 17px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
