/* NEW YORKERS · the front door.
   Dark, like the rest of the site, and built around four things a visitor can
   actually do: meet a stranger, find out which New Yorker they are, share it,
   and go looking for what is hidden. Palette and type come from site.css. */

.home-edit { background: var(--ink); color: var(--cloud); }
.home-edit main { max-width: 1600px; margin: 0 auto; }
.home-edit main a { color: inherit; }
.home-edit h2 {
  font: 500 clamp(33px, 3.8vw, 58px)/1.08 var(--serif);
  letter-spacing: -.035em; margin: 0;
}
.eyebrow, .fly-kicker {
  font: 500 11px/1.5 var(--mono); letter-spacing: .19em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 24px;
}
.quiet { font: 400 12px/1.7 var(--sans); color: var(--slate); max-width: 340px; }

/* ---------- buttons ---------- */
.primary, .fly-btn {
  display: inline-flex; gap: 14px; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  border-radius: var(--r); padding: 16px 24px;
  font: 500 14px/1.4 var(--sans); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.primary:hover, .fly-btn:hover { background: #1B4FD8; color: #fff; }
.fly-btn.ghost { background: transparent; color: var(--cloud); border-color: var(--divider); }
.fly-btn.ghost:hover { background: var(--card); border-color: var(--slate); color: var(--cloud); }
.text-link {
  font: 500 14px/1.5 var(--sans); text-decoration: underline;
  text-underline-offset: 5px; text-decoration-color: var(--divider);
}
.text-link:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* ---------- the welcome ---------- */
.welcome {
  padding: 100px 5vw 88px; display: grid;
  grid-template-columns: .82fr 1.18fr; gap: 5vw; align-items: center;
}
.welcome h1 {
  font: 500 clamp(58px, 6.2vw, 104px)/.97 var(--serif);
  letter-spacing: -.06em; margin: 0 0 28px;
}
.welcome h1 em { font-style: italic; color: var(--cyan); }
.intro { font: 400 19px/1.65 var(--sans); max-width: 400px; color: var(--cloud); }
.actions { display: flex; align-items: flex-start; flex-direction: column; gap: 22px; margin: 32px 0; }
.hero-art {
  display: block; background: var(--card); padding: 14px;
  border: 1px solid var(--divider); border-radius: var(--r2);
  box-shadow: var(--shadow); transform: rotate(1deg);
}
.hero-art img {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
  background: var(--ink); display: block; border-radius: 3px;
}
.hero-art > span {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 6px 4px; font: 10px var(--mono); color: var(--slate);
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-art b { font-weight: 500; color: var(--cloud); }
.hero-art i { margin-left: auto; font-style: normal; color: var(--cyan); }

/* ---------- section furniture ---------- */
.selection, .meet, .which, .more-city, .hunt {
  padding: 76px 5vw; border-top: 1px solid var(--divider);
}
.section-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; gap: 24px; }
.section-top .eyebrow { margin-bottom: 12px; }

/* ---------- meet a stranger ---------- */
.meet-shell {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 4vw; align-items: center;
  background: var(--card); border: 1px solid var(--divider);
  border-radius: var(--r2); padding: 26px; margin-top: 8px;
}
.fly-spin-art { margin: 0; }
.fly-spin-art img {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
  display: block; background: var(--ink); border-radius: var(--r);
}
.fly-spin-name { font: 500 clamp(28px, 3vw, 42px)/1.1 var(--serif); letter-spacing: -.03em; margin: 0 0 12px; }
.fly-spin-where { font: 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.fly-spin-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.meet-shell.dealt .fly-spin-art img { animation: flyDeal .45s var(--ease); }
@keyframes flyDeal { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* ---------- which New Yorker are you ---------- */
.which { background: var(--card2); }
.which-head { max-width: 620px; margin-bottom: 34px; }
.which-head p { font: 15px/1.75 var(--sans); color: var(--slate); margin-top: 18px; }
.fly-quiz h3 {
  font: 500 clamp(26px, 3vw, 40px)/1.18 var(--serif);
  letter-spacing: -.03em; margin: 0 0 30px; max-width: 20ch;
}
.fly-quiz h3:focus { outline: none; }
.fly-options { list-style: none; display: grid; gap: 12px; max-width: 760px; padding: 0; }
.fly-options button {
  width: 100%; text-align: left; background: var(--ink); color: var(--cloud);
  border: 1px solid var(--divider); border-radius: var(--r);
  padding: 20px 22px; font: 400 16px/1.45 var(--sans);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.fly-options button:hover { border-color: var(--cyan); background: #10141C; transform: translateX(4px); }
.fly-back { background: none; border: 0; color: var(--slate); font: 12px var(--mono); letter-spacing: .1em; margin-top: 24px; padding: 8px 0; }
.fly-back:hover { color: var(--cyan); }
.fly-progress { height: 2px; background: var(--divider); margin-top: 28px; max-width: 760px; }
.fly-progress i { display: block; height: 2px; background: var(--cyan); transition: width .35s var(--ease); }
.fly-loading { font: 14px var(--mono); color: var(--slate); letter-spacing: .1em; padding: 40px 0; }

.fly-result { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center; }
.fly-result figure { margin: 0; }
.fly-result img {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--r); background: var(--ink);
  border: 1px solid var(--divider);
}
.fly-result h3 { font: 500 clamp(30px, 3.4vw, 50px)/1.06 var(--serif); letter-spacing: -.035em; margin: 0 0 16px; }
.fly-verdict { font: 400 17px/1.6 var(--sans); color: var(--cloud); margin-bottom: 16px; max-width: 42ch; }
.fly-where { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.fly-fine { margin-top: 20px; font: 12px var(--sans); }
.fly-fine a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- a few faces ---------- */
.art-selection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.art-card:nth-child(n+4) { display: none; }
.art-card img {
  width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover;
  background: var(--card); display: block; border-radius: var(--r);
  transition: transform .2s var(--ease);
}
.art-card:hover img { transform: translateY(-4px); }
.art-card span { display: flex; flex-direction: column; gap: 7px; font: 500 16px var(--sans); padding-top: 16px; }
.art-card small { font: 10px var(--mono); letter-spacing: .12em; color: var(--slate); }

/* ---------- the museum ---------- */
.museum-invite {
  padding: 80px 5vw; background: #101821; border-top: 1px solid var(--divider);
  display: grid; grid-template-columns: .75fr 1.25fr; gap: 6vw; align-items: center;
}
.museum-invite p:not(.eyebrow) { font: 15px/1.8 var(--sans); max-width: 380px; margin: 24px 0; color: var(--cloud); }
.museum-invite .quiet { color: var(--slate) !important; font-size: 12px !important; }
.room-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r); }
.room-photo span {
  display: flex; justify-content: space-between; font: 11px var(--mono);
  letter-spacing: .12em; text-transform: uppercase; padding-top: 18px; color: var(--slate);
}
.room-photo b { font-weight: 400; color: var(--cyan); }

/* ---------- rooms worth the walk ---------- */
.room-picks { padding: 80px 5vw; background: #101821; border-top: 1px solid var(--divider); }
.room-selection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.room-card img {
  width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover;
  background: var(--card); display: block; border-radius: var(--r);
  transition: transform .2s var(--ease);
}
.room-card:hover img { transform: translateY(-4px); }
.room-card span { display: flex; flex-direction: column; gap: 7px; padding-top: 16px; }
.room-card small { font: 10px var(--mono); letter-spacing: .12em; color: var(--cyan); }
.room-card strong { font: 500 18px var(--serif); }
.room-card em { font: 400 13px/1.6 var(--sans); font-style: normal; color: var(--slate); }

/* ---------- follow your curiosity ---------- */
.more-city > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.more-city a { border-top: 1px solid var(--divider); padding: 24px 0; display: block; transition: border-color .2s var(--ease); }
.more-city a:hover { border-color: var(--cyan); }
.more-city small { font: 10px var(--mono); letter-spacing: .12em; color: var(--slate); }
.more-city h3 { font: 500 29px/1.2 var(--serif); margin: 20px 0 12px; }
.more-city p { font: 14px/1.6 var(--sans); color: var(--slate); margin-bottom: 28px; }
.more-city span { font: 500 13px var(--sans); color: var(--cyan); }

/* ---------- the hunt ---------- */
.hunt-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.hunt-copy p { font: 15px/1.8 var(--sans); color: var(--slate); margin-top: 18px; max-width: 44ch; }
.fly-hunt {
  background: var(--card); border: 1px solid var(--divider);
  border-left: 3px solid var(--divider); border-radius: var(--r); padding: 30px;
}
.fly-hunt.on { border-left-color: var(--acid); }
.fly-hunt-count { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.fly-hunt-count b { font: 500 52px/1 var(--serif); color: var(--cloud); }
.fly-hunt.on .fly-hunt-count b { color: var(--acid); }
.fly-hunt-count span { font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.fly-pips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.fly-pips i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--divider); display: block; }
.fly-pips i.on { background: var(--acid); border-color: var(--acid); }
.fly-hunt-copy { font: 14px/1.7 var(--sans); color: var(--slate); margin-bottom: 22px; }

/* ---------- the artist ---------- */
.artist-note { text-align: center; padding: 76px 5vw 100px; border-top: 1px solid var(--divider); }
.artist-note p:not(.eyebrow) { font: 15px/1.7 var(--sans); margin: 25px auto; color: var(--slate); max-width: 52ch; }
.artist-note .eyebrow { display: block; }

/* ---------- shared bits ---------- */
.fly-toast {
  position: fixed; z-index: 9999; left: 50%; bottom: 34px;
  transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--card); color: var(--cloud);
  border: 1px solid var(--divider); border-left: 3px solid var(--acid);
  padding: 13px 20px; border-radius: var(--r);
  font: 13px/1.5 var(--sans); transition: all .4s var(--ease); pointer-events: none;
}
.fly-toast.on { opacity: 1; transform: translateX(-50%); }
.fly-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 999; background: var(--cloud); color: var(--ink); padding: 15px; }
.skip-link:focus { top: 10px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 4px;
}

/* ---------- narrow ---------- */
@media (max-width: 900px) {
  .meet-shell, .fly-result, .hunt-shell { grid-template-columns: 1fr; gap: 28px; }
  .museum-invite { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; padding: 54px 6vw; gap: 36px; }
  .welcome h1 { font-size: 60px; }
  .hero-art { transform: none; }
  .hero-art i { display: none; }
  .art-selection { grid-template-columns: 1fr; }
  .art-card:nth-child(n+3) { display: none; }
  .room-selection { grid-template-columns: 1fr; }
  .room-picks { padding: 52px 6vw; }
  .section-top { align-items: start; flex-direction: column; }
  .selection, .meet, .which, .more-city, .hunt { padding: 52px 6vw; }
  .museum-invite { padding: 52px 6vw; gap: 24px; }
  .more-city > div { grid-template-columns: 1fr; gap: 8px; }
  .artist-note { padding: 44px 6vw 70px; }
  .meet-shell { padding: 18px; }
  .fly-hunt { padding: 22px; }
  .fly-options button { padding: 17px 18px; font-size: 15px; }
  .fly-spin-btns .fly-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fly-options button:hover { transform: none; }
}
