@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/BarlowCondensed-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --purple: #220b3f;
  --panel: #30164c;
  --ink: #fffaf7;
  --muted: #c9bdd8;
  --line: #604672;
  --pink: #ff1496;
  --cyan: #13ddeb;
  --orange: #ff8b24;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --body: 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--purple); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button, input { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
::selection { background: var(--pink); color: white; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 5; background: var(--cyan); color: var(--purple); padding: 16px; }
.skip-link:focus { top: 10px; }
.site-header, .landing, .how-it-works, .site-footer { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; }
.brand { display: inline-flex; align-items: baseline; gap: 3px; font-size: 23px; font-weight: 800; letter-spacing: -1px; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.header-note, .eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 750; }
.header-note { color: var(--muted); }
.landing { position: relative; isolation: isolate; padding-block: 40px 54px; text-align: center; }
.landing::before { content: ''; position: absolute; inset: -30px -40px 0; z-index: -1; background: url('/cover.svg') center 15% / 1120px auto no-repeat; pointer-events: none; }
.hero-copy { width: min(100%, 820px); margin-inline: auto; }
.eyebrow { margin: 0 0 24px; color: var(--cyan); }
h1 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 64px; line-height: 1; margin: 0 0 24px; letter-spacing: -.5px; }
.poster-title { font-size: clamp(84px, 12vw, 150px); line-height: .88; transform: rotate(-3deg); margin: 0 0 34px; text-shadow: 4px 5px 0 #220b3f70; }
.poster-title > span { display: block; }
.poster-title > span + span { font-size: 1.2em; }
.title-bang { color: var(--cyan); padding-left: 8px; }
.hero-description { font-size: clamp(17px, 2vw, 22px); font-weight: 650; margin: 0 0 8px; }
.hero-invitation { font-size: 15px; color: var(--muted); margin: 0 0 26px; }
.button { border: 1px solid var(--cyan); background: var(--cyan); color: var(--purple); display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 15px 24px; border-radius: 6px; font-weight: 750; font-size: 15px; transition: background .18s, transform .18s; }
.button:hover { background: #81f0f5; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.join-button { width: min(100%, 310px); justify-content: flex-start; box-shadow: 4px 4px 0 var(--pink); }
.join-button svg { width: 23px; height: 23px; }
.join-button > span { margin-left: auto; font-size: 22px; font-weight: 400; }
.access-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 20px 0 10px; }
.access-note strong { color: var(--ink); font-weight: 650; }
.text-link { display: inline-block; font-size: 12px; font-weight: 600; padding-block: 8px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.text-link:hover, .inline-link:hover { color: var(--cyan); text-decoration-color: var(--cyan); }
.inline-link { text-decoration: underline; text-underline-offset: 3px; }
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-block: 1px solid var(--line); padding-block: 28px; }
.how-it-works > div { display: flex; gap: 16px; align-items: flex-start; }
.step-number { font: italic 900 30px/1 var(--display); color: var(--pink); }
.how-it-works > div:nth-child(2) .step-number { color: var(--cyan); }
.how-it-works > div:nth-child(3) .step-number { color: var(--orange); }
.how-it-works p { margin: 0; font-size: 12px; line-height: 1.7; }
.how-it-works strong { display: block; font-weight: 650; font-size: 13px; margin-bottom: 3px; }
.how-it-works p > span { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 24px; font-size: 11px; color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { display: inline-block; padding-block: 10px; }
.site-footer a:hover { color: var(--cyan); }

/* Quiet forms retain the sticker's palette without placing paint behind fields. */
.message-body { min-height: 100svh; display: grid; place-items: center; padding: 32px 20px; }
.message-card { width: min(100%, 580px); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--pink); border-radius: 12px; padding: 44px; }
.message-card .brand { margin-bottom: 48px; }
.message-card h1 { font-size: 58px; }
.message-copy { line-height: 1.75; color: var(--muted); margin-bottom: 28px; }
.message-card .text-link { display: block; margin-top: 12px; }
.message-card .eyebrow { margin-bottom: 16px; }
.login-card { width: min(100%, 540px); }
.login-card .message-copy { font-size: 14px; margin-bottom: 20px; }
.login-submit { width: 100%; margin-top: 20px; }
.login-card .form-feedback { margin-top: 20px; }
.login-admin-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 22px 0 0; }
.text-button { display: block; margin-inline: auto; min-height: 44px; border: 0; background: none; color: var(--muted); padding: 12px 0; text-decoration: underline; font-size: 12px; }
#code { font-size: 24px; letter-spacing: 4px; }
.admin-main { width: min(840px, calc(100% - 48px)); margin: 35px auto 70px; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.admin-top h1 { font-size: 56px; margin-bottom: 12px; }
.admin-top p { color: var(--muted); margin: 0; font-size: 14px; }
.admin-email { font-size: 12px; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.signout-button { min-height: 44px; margin-top: 12px; padding: 9px 18px; background: none; border: 1px solid var(--orange); color: var(--ink); border-radius: 6px; font-weight: 650; font-size: 13px; }
.signout-button:hover { background: var(--orange); color: var(--purple); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px; margin-bottom: 20px; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.status-line[data-state=active] .status-dot { background: var(--cyan); }
.status-line[data-state=expiring] .status-dot { background: var(--orange); }
.status-line[data-state=expired] .status-dot { background: var(--pink); }
.status-detail { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 10px 0 0; }
.status-detail:empty { display: none; }
.admin-main h2 { font-size: 17px; margin: 0 0 8px; font-weight: 650; }
.field { margin-top: 22px; }
.field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.field input { width: 100%; min-height: 48px; background: var(--purple); border: 1px solid #9a7eac; border-radius: 6px; padding: 12px; color: var(--ink); font-size: 14px; }
.field input::placeholder { color: var(--muted); opacity: .85; }
.field input:disabled { opacity: .6; }
.field p, .panel-intro, .admin-help { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
.form-divider { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; margin: 20px 0; }
.checkbox-label input { accent-color: var(--cyan); margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.form-footer { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.form-feedback { font-size: 13px; line-height: 1.6; margin: 0; color: var(--cyan); }
.form-feedback[data-error=true] { color: #ff9dc4; }
.setup-note { font-size: 12px; line-height: 1.7; margin: 0; color: #ffc088; }
.sticker-panel { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.sticker-preview { display: block; width: 200px; max-width: 100%; height: auto; border-radius: 6px; flex-shrink: 0; }
.sticker-details { flex: 1; min-width: 0; }
.sticker-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; flex-shrink: 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 600; }
.secondary-button:hover { border-color: var(--cyan); color: var(--cyan); }
[data-sticker-download][aria-disabled=true] { pointer-events: none; opacity: .5; }
.safety-note { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 20px 4px 0; }
.privacy-main { width: min(680px, calc(100% - 40px)); margin: 36px auto 64px; }
.privacy-main h1 { font-size: 64px; }
.privacy-main h2 { font-size: 18px; margin-top: 30px; }
.privacy-main p { font-size: 14px; color: var(--muted); line-height: 1.8; }

@media (min-width: 1500px) { .landing { padding-block: 70px 76px; } }
@media (max-width: 800px) {
  .site-header, .landing, .how-it-works, .site-footer { width: calc(100% - 48px); }
  .how-it-works { gap: 20px; }
  .how-it-works > div { gap: 10px; }
}
@media (max-width: 600px) {
  .site-header, .landing, .how-it-works, .site-footer { width: calc(100% - 40px); }
  .site-header { padding-block: 24px; }
  .brand { font-size: 21px; }
  .header-note { font-size: 8px; letter-spacing: 1px; max-width: 95px; text-align: right; line-height: 1.7; }
  .landing { padding-block: 32px 34px; }
  .landing::before { inset: -40px -20px 0; background-size: 760px auto; background-position: center -10px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .poster-title { font-size: clamp(68px, 18vw, 108px); margin-bottom: 28px; }
  .hero-description { font-size: 16px; }
  .hero-invitation { font-size: 13px; }
  .join-button { max-width: 340px; }
  .how-it-works { grid-template-columns: 1fr; gap: 22px; padding-block: 26px; }
  .how-it-works > div { gap: 18px; }
  .step-number { width: 25px; }
  .site-footer { align-items: flex-start; font-size: 10px; gap: 12px; }
  .site-footer > span { padding-block: 10px; }
  .site-footer nav { gap: 16px; }
  .message-card { padding: 30px 25px; }
  .message-card .brand { margin-bottom: 36px; }
  .message-card h1 { font-size: 48px; }
  .admin-main { width: calc(100% - 32px); margin-top: 20px; }
  .admin-top { display: block; }
  .admin-top h1 { font-size: 50px; }
  .admin-email { text-align: left; margin-top: 20px; }
  .panel { padding: 22px 18px; }
  .form-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .form-footer .button { width: 100%; }
  .sticker-panel { align-items: flex-start; flex-direction: column; }
  .sticker-preview { width: 100%; max-width: 280px; align-self: center; }
  .sticker-details, .sticker-downloads { width: 100%; }
  .sticker-panel .secondary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
