/* Addy Drop landing. White paper, ink type, colour from the flyers, the map as the one dark object.
   See docs/DESIGN_BRIEF.md in the project root. */
:root {
  --paper: #ffffff;
  --paper-2: #f4f3f0;
  --ink: #121110;
  --ink-2: #55524c;
  --ink-3: #8d8981;
  --rule: rgba(18, 17, 16, 0.1);
  --amber: #ffb21a;
  --night: #14120f;
  --night-ink: #f2eee7;
  --night-ink-2: #a9a399;
  --rolled: #e5483a;
  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --sans: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.02em; }

/* Header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 19px/1 var(--display); letter-spacing: -0.01em; }
.mark svg { width: 22px; height: 22px; }
.text-link { font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }

/* Hero */
.hero { padding: 8px 0 56px; overflow-x: clip; }
.hero .wrap { display: grid; gap: 20px; }
.hero h1 { font-size: 30px; line-height: 1.06; }
.lead { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); max-width: 30em; }

.fan { position: relative; height: 300px; margin: 0 -8px; }
.fan img {
  position: absolute; top: 14px; width: 188px; aspect-ratio: 4 / 5; height: auto; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 30px -10px rgba(0, 0, 0, 0.28);
  transform-origin: 50% 90%;
  animation: deal 700ms cubic-bezier(.2, .8, .2, 1) both;
}
.fan .f1 { left: 2%; transform: rotate(-9deg); animation-delay: 60ms; }
.fan .f2 { left: 50%; margin-left: -94px; top: 0; transform: rotate(1deg); z-index: 1; animation-delay: 140ms; }
.fan .f3 { right: 2%; transform: rotate(8deg); top: 22px; animation-delay: 220ms; }
@keyframes deal { from { transform: translateY(24px) rotate(0deg); opacity: 0; } }
.tag {
  position: absolute; z-index: 2; left: 50%; bottom: 6px; transform: translateX(-50%) rotate(-2deg);
  background: var(--paper); border-radius: 6px; padding: 9px 12px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 8px 20px -8px rgba(0, 0, 0, 0.3);
  font-size: 13px; line-height: 1.3; color: var(--ink-2);
}
.tag b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.tag .count { font-variant-numeric: tabular-nums; }

@media (min-width: 960px) {
  .hero { padding: 40px 0 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .hero-copy { order: -1; }
  .hero h1 { font-size: 50px; }
  .lead { font-size: 19px; margin-top: 18px; }
  .fan { height: 540px; margin: 0; }
  .fan img { width: 320px; top: 40px; }
  .fan .f1 { left: 0; }
  .fan .f2 { margin-left: -160px; top: 0; }
  .fan .f3 { right: 0; top: 64px; }
  .tag { bottom: 44px; padding: 12px 16px; font-size: 14px; }
  .tag b { font-size: 16px; }
}

/* Waitlist form */
.join { margin-top: 28px; max-width: 500px; }
.join form { display: grid; gap: 12px; }
.inline { display: grid; gap: 10px; }
@media (min-width: 540px) { .inline { grid-template-columns: 1fr auto; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input[type="email"], .share input {
  width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--paper-2); color: var(--ink); font: 400 16px var(--sans);
}
input[type="email"]::placeholder { color: var(--ink-3); }
input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 0; }
input[aria-invalid="true"] { outline: 2px solid var(--rolled); outline-offset: 0; }
.btn {
  height: 50px; padding: 0 22px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 500 16px var(--sans);
  transition: background-color 150ms ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.role { display: flex; align-items: center; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.role legend { float: left; font-size: 15px; color: var(--ink-2); padding: 0; margin-right: 12px; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border-radius: 8px; padding: 3px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 7px 16px; border-radius: 6px; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; text-align: center; transition: background-color 150ms ease, color 150ms ease; }
.seg input:checked + label { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.seg input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 22px; margin: 0; font-size: 15px; color: var(--ink-2); }
.status.err { color: var(--rolled); }
.fine { margin: 0; font-size: 14px; color: var(--ink-3); }
.done { padding: 4px 0; }
.done strong { display: block; font: 500 22px/1.2 var(--display); letter-spacing: -0.01em; }
.done p { margin: 6px 0 0; color: var(--ink-2); }

/* Referrals: the invite block after joining, and the /w/<code> status page */
.ref { display: grid; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }
.ref h2 { font-size: 20px; line-height: 1.2; }
.ref p { margin: 0; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiers li { border-top: 2px solid var(--rule); padding-top: 8px; font-size: 14px; line-height: 1.35; color: var(--ink-3); }
.tiers li.on { border-top-color: var(--ink); color: var(--ink-2); }
.tiers b { display: block; font-weight: 500; font-size: 15px; }
.tiers li.on b { color: var(--ink); }
.share { display: grid; grid-template-columns: 1fr; gap: 10px; }
.share:has(.link-btn:not([hidden])) { grid-template-columns: 1fr auto; }
.share input { grid-column: 1 / -1; font-size: 15px; text-overflow: ellipsis; }
.share input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.share .btn[hidden], .link-btn[hidden] { display: none; }
@media (min-width: 540px) {
  .share, .share:has(.link-btn:not([hidden])) { grid-template-columns: 1fr auto auto; }
  .share input { grid-column: auto; }
}
.link-btn {
  height: 50px; padding: 0 6px; border: 0; background: none; cursor: pointer; color: var(--ink);
  font: 500 16px var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--ink-3);
}
.share .btn { min-width: 7.5em; }
.done .ref p:not(.fine) { color: var(--ink-2); margin: 0; }
.status-page .kicker { margin: 0 0 6px; font-size: 15px; color: var(--ink-3); }
.status-page h1 { font-size: clamp(40px, 11vw, 64px); line-height: 1; }
.status-page .progress { margin: 12px 0 24px; font-size: 17px; }
.status-page .tiers { margin-bottom: 8px; }
.status-page .share { margin-top: 16px; }
.status-page .fine { margin-top: 20px; }
@media (hover: hover) and (pointer: fine) {
  .link-btn:hover { text-decoration-color: var(--ink); }
  .btn:hover { background: #000; }
  .seg label:hover { color: var(--ink); }
  .text-link:hover { text-decoration-color: var(--ink); }
  .party a:hover img { filter: brightness(0.94); }
}

/* This weekend: a listing grid, image first, no card chrome */
.weekend { padding: 8px 0 64px; }
.weekend .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.weekend h2 { font-size: 22px; }
.weekend .head p { margin: 0; font-size: 14px; color: var(--ink-3); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
  list-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.party { scroll-snap-align: start; min-width: 0; }
.party a { text-decoration: none; display: block; }
.party img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 8px; background: var(--paper-2); transition: filter 150ms ease; }
.party h3 { font: 500 16px/1.3 var(--sans); letter-spacing: 0; margin: 10px 0 2px; }
.party p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.party .who { color: var(--ink-3); }
.lit { display: inline-block; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
@media (min-width: 720px) { .rail { grid-auto-columns: 30%; } }
@media (min-width: 1100px) {
  .weekend { padding-bottom: 104px; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; overflow: visible; margin: 0; padding: 0; }
}

/* The drop: the one dark object */
.drop { background: var(--night); color: var(--night-ink); }
.drop .wrap { display: grid; gap: 0; padding: 0; }
.map { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--night) url("/img/map.svg") center / cover no-repeat; }
.area { position: absolute; border-radius: 50%; background: rgba(255, 178, 26, 0.11); border: 1px solid rgba(255, 178, 26, 0.45); transform: translate(-50%, -50%); }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; line-height: 1.15; color: var(--night-ink); text-shadow: 0 0 4px var(--night), 0 0 8px var(--night); white-space: nowrap; }
.pin i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--amber); background: radial-gradient(circle, var(--night) 0 3px, var(--amber) 3.5px 5px, transparent 5.5px); box-shadow: 0 0 0 4px rgba(255, 178, 26, 0.16); }
.pin.lame i { border-color: #8d8981; background: radial-gradient(circle, var(--night) 0 3px, #8d8981 3.5px 5px, transparent 5.5px); box-shadow: none; }
.pin.rolled i { border-color: var(--rolled); background: radial-gradient(circle, var(--night) 0 3px, var(--rolled) 3.5px 5px, transparent 5.5px); box-shadow: none; }
.pin.left { flex-direction: row-reverse; }
.drop-copy { padding: 40px var(--gutter) 56px; }
.drop h2 { font-size: 28px; line-height: 1.08; max-width: 13em; text-wrap: balance; }
.drop p { margin: 14px 0 0; color: var(--night-ink-2); font-size: 17px; max-width: 30em; }
.drop p b { color: var(--night-ink); font-weight: 500; }
.addr { margin-top: 28px; border-top: 1px solid rgba(255, 240, 220, 0.14); padding-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 15px; max-width: 30em; }
.addr dt { color: var(--night-ink-2); }
.addr dd { margin: 0; font-variant-numeric: tabular-nums; }
.reveal { position: relative; display: inline-block; }
.reveal .bars { position: absolute; inset: 0; display: flex; gap: 5px; align-items: center; }
.reveal .bars i { height: 12px; border-radius: 3px; background: rgba(255, 240, 220, 0.22); }
.reveal .txt { opacity: 0; }
.reveal.on .bars i { animation: wipe 420ms ease forwards; }
.reveal.on .bars i:nth-child(2) { animation-delay: 90ms; }
.reveal.on .bars i:nth-child(3) { animation-delay: 180ms; }
.reveal.on .txt { animation: show 400ms 300ms ease forwards; }
@keyframes wipe { to { transform: scaleX(0); opacity: 0; } }
@keyframes show { to { opacity: 1; } }
@media (min-width: 960px) {
  .drop .wrap { grid-template-columns: 1.25fr 1fr; align-items: center; max-width: none; }
  .map { aspect-ratio: auto; height: 640px; }
  .drop-copy { padding: 56px 64px 56px 56px; max-width: 560px; }
  .drop h2 { font-size: 40px; }
  .pin { font-size: 13px; }
}

/* Hosts: plain two-column list */
.hosts { padding: 64px 0; }
.hosts .wrap { display: grid; gap: 32px; }
.hosts h2 { font-size: 26px; line-height: 1.1; max-width: 14em; text-wrap: balance; }
.hosts .intro p { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; max-width: 26em; }
.terms { margin: 0; border-top: 1px solid var(--rule); }
.terms div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.terms dt { font-weight: 500; }
.terms dd { margin: 0; color: var(--ink-2); }
.stub { display: none; }
@media (min-width: 960px) {
  .hosts { padding: 112px 0; }
  .hosts .wrap { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .hosts h2 { font-size: 40px; }
  .terms div { padding: 20px 0; font-size: 17px; }
  .stub {
    display: flex; gap: 16px; align-items: center; margin-top: 40px; width: 330px; padding: 16px;
    background: var(--paper); border-radius: 10px; transform: rotate(-3deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 36px -14px rgba(0, 0, 0, 0.3);
  }
  .stub svg { width: 92px; height: 92px; flex: none; }
  .stub p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
  .stub b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; margin-bottom: 2px; }
}

/* Closing: the flyer wall */
.wall { padding: 8px 0 72px; overflow: hidden; }
.strip { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; }
.strip img { width: 120px; flex: none; aspect-ratio: 4 / 5; height: auto; border-radius: 6px; }
.strip img:nth-child(odd) { transform: translateY(14px); }
.wall .wrap { text-align: center; }
.wall h2 { font-size: 28px; line-height: 1.1; }
.wall p { margin: 10px auto 24px; color: var(--ink-2); font-size: 17px; max-width: 26em; }
.wall .btn { display: inline-flex; align-items: center; text-decoration: none; }
@media (min-width: 960px) {
  .wall { padding: 24px 0 120px; }
  .strip { gap: 18px; margin-bottom: 56px; }
  .strip img { width: 170px; }
  .wall h2 { font-size: 40px; }
}

/* Footer */
.foot { border-top: 1px solid var(--rule); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 72px; font-size: 14px; color: var(--ink-3); }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--ink); } }

/* Plain pages (terms, privacy, thanks, 404) */
.page { padding: 48px 0 88px; }
.page .wrap { max-width: 680px; }
.page h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.08; }
.page p, .page li { color: var(--ink-2); }
.page h2 { margin: 32px 0 8px; font-size: 20px; }
.page ul { padding-left: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal .bars { display: none; }
  .reveal .txt { opacity: 1; }
  html { scroll-behavior: auto; }
}
