/*
  Design system: v2 prototype port (docs/v2-prototype → SSR)
  Color: teal-950 #06292C ground · cream #F2EFE4 text · orange #FF5A26 single accent
         muted #8FA3A1 secondary text · hairline rgba(242,239,228,0.14)
  Type:  display = Archivo (variable wdth/wght, self-hosted), uppercase, tight
         body = Geologica (variable, self-hosted), light
         mono = Space Mono (self-hosted) — labels, chips, tabs, stamps
  Single committed dark theme. City picker stays native <details>/<summary>
  ("JS enhances, never required"). One universal ground/accent — no per-city
  color; the legacy `pine` body class is accepted but inert.
*/

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-100-900-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geologica-100-900-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-mono-700-latin.woff2") format("woff2");
}

:root {
  --teal-950: #06292c;
  --teal-900: #0a363b;
  --teal-800: #0f454b;
  --teal-700: #155a60;
  --cream: #f2efe4;
  --cream-dim: #c9c8bb;
  --muted: #8fa3a1;
  --orange: #ff5a26;
  --orange-soft: #ff7a4d;
  --line: rgba(242, 239, 228, 0.14);

  --display: "Archivo", system-ui, sans-serif;
  --body: "Geologica", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-inout: cubic-bezier(0.33, 1, 0.68, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--teal-950);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--cream); }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* ---------- type utilities ---------- */

.display {
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 860;
  letter-spacing: -0.015em;
  line-height: 0.92;
  text-transform: uppercase;
}

.display-wide { font-variation-settings: "wdth" 108, "wght" 780; }

.mono-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hairline { border-color: var(--line); }

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 41, 44, 0.82);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 780;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  /* ~44px tap target without changing the row height */
  padding-block: 13px;
  margin-block: -13px;
}

.wordmark .wordmark-o { color: var(--orange); }

.wordmark-mark {
  width: 0.9em;
  height: 0.9em;
  transform: translateY(0.09em);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wordmark,
.wordmark[aria-current="true"] { color: var(--cream); }

.nav-tab {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: 13px;
  margin-block: -13px;
  transition: color 0.3s;
}

.nav-tab:hover { color: var(--cream); }

.nav-tab[aria-current="true"] {
  color: var(--orange);
  text-decoration: underline dashed 1px;
  text-underline-offset: 5px;
}

.city-picker { position: relative; }

.city-picker summary {
  list-style: none;
  cursor: pointer;
}

.city-picker summary::-webkit-details-marker { display: none; }

.city-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-block: 13px;
  margin-block: -13px;
  padding-inline: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.city-picker:hover .city-button,
.city-picker[open] .city-button { color: var(--cream); }

.city-button .caret {
  font-size: 0.6rem;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.city-picker[open] .caret { transform: rotate(180deg); }

.city-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: var(--teal-900);
  border: 1px solid var(--line);
  padding: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.city-group-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px 4px;
}

.city-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 0.88rem;
  text-decoration: none;
}

.city-option:hover { background: var(--teal-800); }
.city-option[aria-current="true"] { color: var(--orange); }

/* ---------- hero ---------- */

.hero { padding-block: 48px 40px; position: relative; }

.hero-content { position: relative; }

h1.headline {
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 860;
  text-transform: uppercase;
  font-size: clamp(3rem, 13.5vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  margin: 16px 0 0;
  text-wrap: balance;
}

h1.headline .accent { color: var(--orange); }

.date-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0;
}

.date-city { position: relative; }

.date-city > summary,
.date-city-static {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--orange);
}

.date-city > summary {
  list-style: none;
  cursor: pointer;
  padding-block: 13px;
  margin-block: -13px;
  padding-inline: 2px;
}

.date-city > summary::-webkit-details-marker { display: none; }

.date-pin {
  width: 0.95em;
  height: 0.95em;
  fill: currentColor;
  flex: none;
}

.date-city-name {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.date-city > summary:hover .date-city-name,
.date-city[open] .date-city-name {
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}

.date-rest { color: var(--cream-dim); }

/* Eyebrow menu anchors under the pin (left), not flush-right like the header's. */
.city-menu-left {
  right: auto;
  left: -2px;
  top: calc(100% + 6px);
  z-index: 10;
}

.hook {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 52ch;
  margin: 24px 0 0;
}

.hook b { color: var(--cream); font-weight: 400; }

/* ---------- chips ---------- */

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  color: var(--cream-dim);
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.chip-accent { border-color: var(--orange); color: var(--orange); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse-dot 1.6s var(--ease-inout) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- window (filter) tabs ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.filter-tab {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  position: relative;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}

.filter-tab:hover {
  color: var(--cream);
  border-color: rgba(242, 239, 228, 0.4);
}

.filter-tab[aria-current="true"] {
  color: var(--cream);
  border-color: var(--cream);
}

.filter-tab[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
}

/* ---------- section label ---------- */

.section-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 12px;
}

.later-events { padding-top: 12px; }

/* ---------- empty state (tilted dashed box) ---------- */

.empty-state {
  border: 2px dashed var(--line);
  transform: rotate(-1.6deg);
  padding: 48px 32px;
  text-align: center;
  max-width: 36rem;
  margin: 8px auto 32px;
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.empty-state strong { color: var(--cream); font-weight: 400; }
.empty-state a {
  color: var(--orange);
  text-decoration: underline dashed 1px;
  text-underline-offset: 3px;
}
.empty-state a:hover { text-decoration-style: solid; }

/* ---------- top pick hero ---------- */

.top-pick {
  border: 1px solid var(--line);
  background: var(--teal-900);
  margin-top: 32px;
}

.top-pick-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.top-pick-art {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(155deg, var(--art-a, #155a60), var(--art-b, #06292c));
}

.top-pick-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-pick-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 41, 44, 0.65), transparent 55%);
}

.top-pick-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: rgba(6, 41, 44, 0.7);
  backdrop-filter: blur(4px);
}

.top-pick-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.top-pick-when { color: var(--orange); display: flex; align-items: center; gap: 8px; }

.top-pick-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--cream);
  margin: 16px 0 0;
}

.top-pick-why {
  margin: 20px 0 0;
  color: var(--cream-dim);
  line-height: 1.6;
  max-width: 52ch;
  font-size: 0.95rem;
}

.top-pick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px;
}

.button-cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal-950);
  background: var(--orange);
  padding: 0.9rem 1.4rem;
  transition: background 0.3s;
}

.button-cta:hover { background: var(--orange-soft); }

.u-dashed {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: underline dashed 1px;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.u-dashed:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

@media (min-width: 768px) {
  .top-pick-grid { grid-template-columns: 1fr 1fr; }
  .top-pick-art { min-height: 420px; }
  .top-pick-body { padding: 40px; }
}

/* ---------- feed / event cards ---------- */

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding-block: 20px 8px;
}

.card {
  display: block;
  border: 1px solid var(--line);
  background: var(--teal-900);
  text-decoration: none;
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.5s var(--ease-out),
    filter 0.5s var(--ease-out);
}

/* Sibling dim: hovering one card in a feed blurs/quiets the rest. */
.feed:hover .card:not(:hover) {
  filter: blur(1.5px) saturate(0.75);
  opacity: 0.55;
  transform: scale(0.985);
}

.card:hover { transform: scale(1.02); }

.card-art {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(155deg, var(--art-a, #155a60), var(--art-b, #06292c));
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}

.card:hover .card-photo {
  transform: scale(1.05);
  filter: brightness(1.08) contrast(1.05);
}

.stamp {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: rgba(6, 41, 44, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.date-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--line);
  background: rgba(6, 41, 44, 0.7);
  backdrop-filter: blur(4px);
  color: var(--cream-dim);
}

.card-art .date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.card-body { padding: 20px 20px 24px; }

.card-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.card-pin { width: 0.85em; height: 0.85em; fill: currentColor; flex: none; }

.card-title {
  display: inline;
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 860;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.92;
  font-size: 1.5rem;
  color: var(--cream);
  margin: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.15em;
  transition:
    letter-spacing 0.4s var(--ease-out),
    background 0.3s,
    color 0.3s;
}

.card:hover .card-title,
.card:focus-visible .card-title {
  letter-spacing: 0.06em;
  background: var(--orange);
  color: var(--teal-950);
}

.card-tags { margin-top: 16px; }

/* ---------- event detail ---------- */

.event-detail { padding-block: 28px 48px; }

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.back-link:hover { color: var(--cream); }

.back-link--bottom { margin-top: 20px; margin-bottom: 0; }

.event-stub {
  border: 1px solid var(--line);
  background: var(--teal-900);
  overflow: hidden;
}

.event-art {
  position: relative;
  aspect-ratio: auto;
  display: flex;
  justify-content: center;
  background: linear-gradient(155deg, var(--art-a, #155a60), var(--art-b, #06292c));
}

.event-art--placeholder { aspect-ratio: 16 / 9; }

.event-art-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.event-body { padding: 24px 24px 32px; }

.event-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 860;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 0.92;
  margin: 12px 0 16px;
  color: var(--cream);
  text-wrap: balance;
}

.event-when {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.event-price {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.3rem 0.6rem;
  margin: 0 0 16px;
}

.event-where {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--cream-dim);
}

.event-address { color: var(--muted); font-size: 0.88rem; }

.maps-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--orange);
}

.maps-link:hover { border-bottom-style: solid; }

.event-organizer { margin: 0 0 20px; }

.event-organizer a {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}

.event-organizer a:hover { text-decoration: underline dashed 1px; text-underline-offset: 3px; }

.event-description {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--cream-dim);
}

.event-cta { margin: 0; }

/* ---------- install banner ----------
   Deliberately breaks the site's committed dark theme — a light bar reads as
   "the familiar app-install banner", and that recognizability is the point of
   this one component. Nothing else on the site should follow suit. */

.install-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  background: #fbfaf7;
  border-bottom: 1px solid #e4dcc4;
  padding: 10px 16px;
}

.install-banner[hidden] { display: none; }

.install-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  color: #8a8272;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}

.install-dismiss:hover { color: #4a4030; }

.install-app-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22%;
  background: #fff;
  border: 1px solid #e4dcc4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.install-app-icon svg { width: 30px; height: 30px; }

.install-copy-block { flex: 1 1 auto; min-width: 0; }

.install-app-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #201c15;
  margin: 0;
  line-height: 1.3;
}

.install-copy {
  font-size: 0.78rem;
  color: #6b5d40;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.install-icon { width: 17px; height: 17px; flex: none; }

.install-instructions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #6b5d40;
}

.install-instructions[hidden] { display: none; }

.install-instructions-sep { color: #c9bd98; }

.install-button {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border: none;
  padding: 8px 18px;
  cursor: pointer;
}

.install-button:hover { background: var(--orange-soft); }
.install-button[hidden] { display: none; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  overflow: hidden;
}

.footer-giant {
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 860;
  text-transform: uppercase;
  font-size: clamp(4rem, 15.5vw, 22rem);
  line-height: 0.74;
  color: var(--orange);
  text-align: center;
  text-shadow: 0 0 22px rgba(255, 90, 38, 0.35);
  user-select: none;
  margin: 56px 0 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 40px 28px;
}

.footer-note {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.footer-note .footer-play { color: var(--orange); }

.footer-follow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.footer-follow a {
  color: var(--cream-dim);
  text-decoration: underline dashed 1px;
  text-underline-offset: 3px;
}
.footer-follow a:hover { color: var(--orange); text-decoration-color: var(--orange); }

/* ---------- entrance ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.9s var(--ease-out) both; }
.rise-1 { animation-delay: 0.08s; }
.rise-2 { animation-delay: 0.2s; }
.rise-3 { animation-delay: 0.34s; }

/* ---------- scrollbar ---------- */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--teal-950); }
::-webkit-scrollbar-thumb { background: var(--teal-700); }

@media (prefers-reduced-motion: reduce) {
  .caret { transition: none; }
  .card, .card-photo, .card-title { transition: none; }
  .rise { animation: none; }
  .live-dot { animation: none; }
}

@media (min-width: 720px) {
  .hero { padding-block: 80px 48px; }
}
