:root {
  --night: #0f0a17;
  --night-2: #1a1024;
  --coral: #ff5a3c;
  --pink: #ffa3cf;
  --gold: #f2c46d;
  --cream: #faf3ea;
  --cream-60: rgba(250, 243, 234, 0.6);
  --cream-30: rgba(250, 243, 234, 0.3);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --maxw: 640px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo { object-fit: cover; object-position: 50% 38%; }
.hero-canvas { z-index: 1; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(15, 10, 23, 0.96) 0%, rgba(15, 10, 23, 0.72) 26%, rgba(15, 10, 23, 0) 58%),
    linear-gradient(to bottom, rgba(15, 10, 23, 0.55) 0%, rgba(15, 10, 23, 0) 22%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 3;
}
.hero-contest {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--cream-60);
}
.hero-name {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: min(24vw, 200px);
  line-height: 0.78;
  letter-spacing: -0.03em;
  margin-left: -0.06em;
  color: var(--cream);
  text-shadow: 0 0 60px rgba(255, 90, 60, 0.35);
}
.hero-line {
  margin: 20px 0 22px;
  font-size: 18px;
  max-width: 34ch;
  color: var(--cream);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--night);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: 0.005em;
  box-shadow: 0 10px 40px rgba(255, 90, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 48px rgba(255, 90, 60, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.cta:active { transform: translateY(1px) scale(0.99); }

.countdown {
  margin: 0;
  font-size: 15px;
  color: var(--cream-60);
  font-variant-numeric: tabular-nums;
}
.countdown strong { color: var(--gold); font-weight: 600; }

/* Sections */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
section { padding: 72px 0; }
h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
h2 em { font-style: italic; color: var(--pink); }
.lede { margin: 0 0 32px; font-size: 18px; color: var(--cream-60); max-width: 40ch; }

/* Steps */
.how { position: relative; overflow: hidden; }
.how-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/img/feathers.webp");
  background-size: cover;
  background-position: 70% 40%;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 20px 20px 16px;
  border-radius: 20px;
  background: rgba(26, 16, 36, 0.75);
  border: 1px solid rgba(250, 243, 234, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.steps li::before {
  content: counter(step);
  flex: 0 0 40px;
  font-family: var(--display);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
}
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--cream-60); font-size: 16px; }

/* Gallery */
.gallery { padding-top: 24px; }
.frames { display: grid; gap: 16px; }
.frame { position: relative; border-radius: 22px; overflow: hidden; background: var(--night-2); }
.frame img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.frame figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* Share */
.share { text-align: left; }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(250, 243, 234, 0.3);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--pink); background: rgba(255, 163, 207, 0.08); }
.share-note { margin: 14px 0 0; font-size: 15px; color: var(--cream-60); min-height: 1.5em; }
.share-url {
  margin: 28px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 7vw, 40px);
  color: var(--gold);
  word-break: break-all;
}

/* Footer */
footer { padding: 32px 0 calc(110px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--cream-30); }
footer p { margin: 0 0 6px; }
footer a { color: var(--cream-60); }

/* Sticky vote bar (phone) */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(15, 10, 23, 0.95), rgba(15, 10, 23, 0.7));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stickybar.show { transform: translateY(0); }
.stickybar .cta { width: 100%; }

@media (min-width: 720px) {
  :root { --gutter: 40px; --maxw: 760px; }
  .hero-copy { left: 6vw; right: 6vw; bottom: 56px; }
  .hero-name { font-size: clamp(160px, 22vw, 320px); }
  .hero-line { font-size: 21px; }
  .frames { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stickybar { display: none; }
  footer { padding-bottom: 48px; }
  section { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .btn-ghost, .stickybar { transition: none; }
}
