:root {
  --ink: #0a0a0b;
  --paper: #f4f2ea;
  --paper-bright: #fffdf5;
  --acid: #edff4f;
  --red: #e94d33;
  --line: rgba(10, 10, 11, 0.18);
  --muted: #66635e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.5 "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.page-shell { width: 100%; overflow: hidden; }

.masthead {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; letter-spacing: .07em; font-size: .72rem; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; flex: none; background: var(--ink); color: var(--acid); border-radius: 50%; font-family: "DM Mono", monospace; }
.masthead-meta { display: flex; align-items: center; gap: 18px; font-family: "DM Mono", monospace; font-size: .75rem; letter-spacing: .05em; }
.masthead-meta > span { display: none; }
.filter-trigger, .show-more, .apply-button, .empty-state button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--acid);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: .8rem;
}
.filter-trigger:focus-visible, .show-more:focus-visible, .apply-button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.filter-trigger { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.filter-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  transform: translateX(-140%);
  pointer-events: none;
}
.filter-trigger:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10, 10, 11, 0.22); }
@keyframes filter-trigger-sheen {
  0%, 58% { transform: translateX(-140%); }
  78%, 100% { transform: translateX(140%); }
}

.hero {
  min-height: 575px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 16px 16px;
  background: var(--ink);
  color: white;
  overflow: hidden;
}
.hero::after {
  content: "NYC";
  position: absolute;
  right: -18px;
  top: 94px;
  color: rgba(255,255,255,.055);
  font: 500 9rem/.72 "DM Mono", monospace;
  writing-mode: vertical-rl;
  letter-spacing: -.1em;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; font-family: "DM Mono", monospace; font-size: .75rem; letter-spacing: .13em; }
.hero h1 { max-width: 700px; margin: 0; font-family: "Newsreader", serif; font-size: clamp(3.55rem, 14vw, 7rem); font-weight: 400; line-height: .82; letter-spacing: -.055em; }
.hero h1 em { color: var(--acid); font-weight: 400; }
.hero-intro { width: min(88%, 420px); margin: 24px 0 34px; font-size: 1rem; line-height: 1.55; color: rgba(255,255,255,.7); }
.hero-pick { position: relative; z-index: 1; width: 100%; padding: 19px; background: var(--paper); color: var(--ink); }
.pick-kicker { margin: 0 0 8px; color: var(--red); font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .11em; }
.hero-pick h2 { margin: 0; font-family: "Newsreader", serif; font-size: 2rem; line-height: 1; font-weight: 500; letter-spacing: -.025em; }
.hero-pick .pick-meta { margin: 11px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.hero-pick a { display: inline-block; font-size: .82rem; font-weight: 600; text-underline-offset: 4px; }

.edition { padding: 66px 16px 80px; }
.edition-heading { margin-bottom: 36px; }
.edition-heading h2 { max-width: 760px; margin: 0; font-family: "Newsreader", serif; font-size: clamp(3.25rem, 14vw, 6rem); font-weight: 400; line-height: .9; letter-spacing: -.045em; }
.edition-note { margin: 20px 0 0; max-width: 290px; color: var(--muted); font-size: .88rem; }
.taste-row { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; margin: -14px 0 26px; }
.taste-chip { min-height: 40px; display: inline-flex; align-items: baseline; gap: 7px; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 8px 13px; cursor: pointer; font-size: .8rem; white-space: normal; }
.taste-chip .taste-count { color: var(--muted); font-family: "DM Mono", monospace; font-size: .68rem; }
.taste-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.taste-chip[aria-pressed="true"] .taste-count { color: rgba(255,255,255,.65); }
.taste-chip:disabled { opacity: .42; cursor: default; }
.share-trigger { min-height: 42px; border: 0; background: none; padding: 6px 0; cursor: pointer; font-size: .82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.active-filter-row { margin: -12px 0 24px; padding: 12px 14px; background: var(--acid); align-items: center; justify-content: space-between; gap: 14px; font-size: .82rem; }
.active-filter-row:not([hidden]) { display: flex; }
.active-filter-row button { flex: none; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.event-grid { border-top: 1px solid var(--line); }
.event-card { min-height: 350px; padding: 25px 2px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.card-index { display: flex; justify-content: space-between; gap: 16px; font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .07em; color: var(--muted); }
.card-index span:last-child { text-align: right; }
.event-card h3 { margin: 44px 0 13px; font-family: "Newsreader", serif; font-size: 2.55rem; font-weight: 500; letter-spacing: -.035em; line-height: .96; }
.event-card .description { color: var(--muted); font-size: .95rem; margin: 0 0 28px; line-height: 1.55; }
.event-card .card-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.event-card .where-when { font-size: .82rem; max-width: 78%; }
.event-card .where-when strong { display: block; margin-bottom: 4px; }
.event-card a { min-height: 42px; display: inline-flex; align-items: center; white-space: nowrap; font-size: .82rem; font-weight: 600; text-underline-offset: 4px; }
.event-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hero-pick .event-actions { margin-top: 12px; align-items: flex-start; }
.report-trigger { border: 0; background: transparent; padding: 8px 0; color: var(--muted); cursor: pointer; font-size: .7rem; text-align: right; text-decoration: underline; text-underline-offset: 3px; }
.cost-pill { display: inline-block; margin-top: 11px; border: 1px solid var(--line); padding: 5px 9px; border-radius: 999px; font-family: "DM Mono", monospace; font-size: .7rem; }
.status-pill { display: inline-block; margin: 11px 0 0 6px; padding: 5px 9px; border-radius: 999px; background: var(--red); color: white; font-family: "DM Mono", monospace; font-size: .7rem; }
.show-more { display: block; margin: 38px auto 0; background: var(--ink); color: white; padding-inline: 20px; }
.show-more[hidden] { display: none; }
.section-label { margin: 0 0 14px; font-family: "DM Mono", monospace; font-size: .75rem; letter-spacing: .13em; }
.pool-section { margin-top: 64px; }
.pool-note { margin: -6px 0 18px; color: var(--muted); font-size: .88rem; }
.tune-more { margin: 34px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.tune-more button { border: 0; background: none; padding: 8px 2px; color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.empty-state { text-align: center; padding: 86px 16px; }
.empty-state h3 { font-family: "Newsreader", serif; font-size: 3rem; margin: 0 0 24px; font-weight: 400; }

.colophon { background: var(--ink); color: white; padding: 72px 16px 54px; }
.colophon-big { font-family: "Newsreader", serif; font-size: clamp(3.4rem, 15vw, 6.5rem); line-height: .86; letter-spacing: -.045em; margin: 0 0 42px; color: var(--acid); }
.colophon > div { font-size: .88rem; color: rgba(255,255,255,.62); }
footer { background: var(--ink); color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 16px; border-top: 1px solid rgba(255,255,255,.16); font-family: "DM Mono", monospace; font-size: .68rem; }
.footer-actions { order: 3; width: 100%; display: flex; gap: 18px; }
.footer-actions button { min-height: 42px; border: 0; background: none; padding: 6px 0; color: white; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.filter-dialog { width: min(100%, 680px); max-width: 100%; max-height: 88dvh; margin: auto 0 0; border: 0; border-radius: 24px 24px 0 0; padding: 0; background: var(--paper-bright); color: var(--ink); box-shadow: 0 -20px 80px rgba(0,0,0,.28); overflow: hidden; }
.filter-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.filter-panel { width: 100%; max-width: 100%; max-height: 88dvh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
.filter-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.filter-head > div { min-width: 0; }
.filter-head h2 { margin: 0; font-family: "Newsreader", serif; font-size: 2.75rem; line-height: .95; font-weight: 400; }
.close-button, .reset-button { min-height: 42px; border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
fieldset { width: 100%; min-inline-size: 0; border: 0; padding: 0; margin: 34px 0; }
legend { margin-bottom: 13px; font-family: "DM Mono", monospace; font-size: .76rem; letter-spacing: .1em; }
legend span { display: block; margin-top: 4px; color: var(--muted); font: 400 .75rem/1.4 "Manrope", sans-serif; letter-spacing: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; padding: 2px 2px 8px; }
.choice-row button { flex: none; max-width: 100%; min-height: 42px; border: 1px solid var(--line); background: transparent; padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: normal; }
.choice-row button.is-selected { background: var(--ink); border-color: var(--ink); color: white; }
.filter-actions { position: sticky; bottom: -1px; display: flex; align-items: center; justify-content: space-between; margin: 0 -18px -22px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper-bright); }
.apply-button { padding-inline: 20px; }

.form-dialog { width: min(100%, 720px); max-width: 100%; max-height: 92dvh; margin: auto 0 0; border: 0; border-radius: 24px 24px 0 0; padding: 0; background: var(--paper-bright); color: var(--ink); box-shadow: 0 -20px 80px rgba(0,0,0,.28); overflow: hidden; }
.form-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.submission-form { max-height: 92dvh; overflow-y: auto; padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
.form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.form-head > div { min-width: 0; }
.form-head h2 { margin: 0; font: 400 2.65rem/.95 "Newsreader", serif; letter-spacing: -.035em; }
.form-head p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }
.form-group { margin: 0 0 22px; }
.radio-row { display: flex; gap: 8px; }
.radio-row label { flex: 1; min-height: 48px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 10px 12px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field-label { display: block; margin: 18px 0 7px; font: 500 .76rem/1.35 "DM Mono", monospace; letter-spacing: .055em; }
.form-grid .field-label { margin-top: 0; }
.field-label span { color: var(--muted); font: 400 .72rem/1.35 "Manrope", sans-serif; letter-spacing: 0; }
.submission-form input:not([type="radio"]), .submission-form textarea, .submission-form select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); padding: 11px 12px; font: inherit; }
.submission-form textarea { resize: vertical; }
.submission-form [aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { min-height: 24px; margin: 20px 0 0; font-size: .85rem; }
.form-status.is-error { color: #a72c19; }
.form-status.is-success { font-weight: 600; }
.form-actions { position: sticky; bottom: -1px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 4px -18px -22px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper-bright); }
.cancel-button, .submit-button { min-height: 44px; border: 0; cursor: pointer; font-weight: 600; }
.cancel-button { background: transparent; padding: 9px 12px; text-decoration: underline; text-underline-offset: 3px; }
.submit-button { border-radius: 999px; background: var(--acid); padding: 10px 17px; }
.report-event-name { font-weight: 600; color: var(--ink) !important; }

@media (min-width: 720px) {
  .masthead { min-height: 72px; padding-inline: 28px; }
  .masthead-meta > span { display: inline; }
  .hero { min-height: 590px; padding: 72px 5vw 30px; }
  .hero::after { top: 80px; right: 1vw; font-size: 13rem; writing-mode: horizontal-tb; }
  .hero-pick { align-self: flex-end; width: min(390px, 46%); }
  .edition { padding: 100px 5vw; }
  .edition-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 52px; }
  .event-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
  .event-card { min-height: 380px; padding: 30px 26px; border-right: 1px solid var(--line); }
  .event-card:nth-child(2n) { border-right: 0; }
  .event-card h3 { font-size: 2.8rem; }
  .colophon { display: grid; grid-template-columns: 2fr 1fr; align-items: end; gap: 50px; padding: 95px 5vw; }
  .colophon-big { margin: 0; }
  footer { padding-inline: 5vw; }
  .footer-actions { order: initial; width: auto; }
  .filter-dialog { width: min(680px, calc(100% - 32px)); margin: auto; border-radius: 0; }
  .filter-panel { padding: 42px; }
  .filter-actions { position: static; margin: 0; padding: 24px 0 0; }
  .form-dialog { width: min(720px, calc(100% - 32px)); margin: auto; border-radius: 0; }
  .submission-form { padding: 42px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .form-actions { position: static; margin: 24px 0 0; padding: 20px 0 0; }
}

@media (min-width: 1100px) {
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .event-card:nth-child(2n) { border-right: 1px solid var(--line); }
  .event-card:nth-child(3n) { border-right: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .filter-trigger::after { animation: filter-trigger-sheen 6s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .filter-trigger { transition: none; }
}
