/* Pitch Society — tokens from the Claude Design "Maison Camp v2" direction */
:root {
  --paper: #faf9f7;
  --paper-tint: #efede9;
  --ink: #171615;
  --text: #3c3935;
  --muted: #6f6b66;
  --faint: #8a857e;
  --rule: #e4e1dc;
  --rule-soft: #efece8;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, blockquote { margin: 0; font-weight: 400; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
i { font-style: italic; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Shared type */
.label {
  font: 500 10.5px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.label--muted { color: var(--muted); }
.section-title { font: 400 44px/1 var(--serif); }
.text-link {
  align-self: flex-start;
  font: 500 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.text-link:hover { color: var(--muted); border-color: var(--muted); }
.text-link--soon { color: var(--muted); border-bottom-style: dashed; border-color: var(--faint); }
.btn {
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  font: 500 11px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 22px;
}
.btn:hover { background: #3c3935; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid transparent;
}
.nav { display: flex; gap: 28px; }
.nav--right { justify-content: flex-end; }
.nav a, .nav span, .mobile-menu a {
  font: 500 11px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover { color: var(--muted); }
.wordmark { font: 400 40px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.wordmark--small { font-size: 26px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.menu-toggle, .mobile-menu { display: none; }

/* Hero */
.hero { position: relative; height: min(76vh, 720px); min-height: 440px; overflow: hidden; background: #dedbd6; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  position: absolute; left: var(--gutter); bottom: 36px;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--paper);
  background: rgba(23, 22, 21, .55);
  padding: 16px 20px;
}
.hero__name { font: 400 30px/1 var(--serif); }
.hero__dots { position: absolute; right: var(--gutter); bottom: 40px; display: flex; gap: 8px; }
.hero__dots button {
  width: 28px; height: 18px; padding: 8px 0; border: 0; cursor: pointer;
  background: rgba(250, 249, 247, .45) content-box;
}
.hero__dots button[aria-selected="true"] { background-color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* Manifesto */
.manifesto {
  padding: 110px var(--gutter) 100px;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  text-align: center;
}
.manifesto .text-link { align-self: center; }
.manifesto__text { font: 400 40px/1.25 var(--serif); max-width: 900px; text-wrap: balance; }

/* New on the list */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px;
  padding: 0 var(--gutter) 120px;
  align-items: center;
}
.feature__media img { width: 100%; height: 560px; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
.feature__body p, .host__body p { font-size: 16px; line-height: 1.7; color: var(--text); }
.feature__body .text-link { margin-top: 8px; }
.feature__title { font: 400 52px/1 var(--serif); }

/* Collections */
.collections { padding: 0 var(--gutter) 120px; }
.collections .section-title { text-align: center; margin-bottom: 48px; }
.collections__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
.tile { display: flex; flex-direction: column; gap: 5px; text-align: center; text-decoration: none; }
.tile img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; margin-bottom: 9px; transition: opacity .3s; }
.tile:hover img { opacity: .88; }
.tile__title { font: 400 26px/1 var(--serif); }
.tile__sub { font: 600 13px/1.3 var(--sans); }

/* Map */
.map-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.map-teaser__intro {
  padding: 90px 64px;
  display: flex; flex-direction: column; gap: 30px; justify-content: center;
  border-right: 1px solid var(--rule);
}
.map-teaser__text { font: 400 38px/1.2 var(--serif); text-wrap: balance; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.filters button {
  border: 0; background: none; padding: 0 0 3px; cursor: pointer;
  font: 400 19px/1 var(--serif); color: var(--faint);
  border-bottom: 1px solid transparent; white-space: nowrap;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.map-teaser__map { position: relative; min-height: 620px; }
.map { position: absolute; inset: 0; }
.map .leaflet-tile-pane { filter: sepia(.12) brightness(1.03); }
.leaflet-container { background: #ecebe8; font-family: var(--sans); }
.leaflet-control-attribution { background: rgba(250, 249, 247, .85) !important; font-size: 10px; }

.pin-dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 2.5px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer;
}
.pin-label {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 12px 7px 9px;
  background: var(--paper); color: var(--ink);
  font: 400 16px/1 var(--serif);
  box-shadow: 0 2px 10px rgba(23, 22, 21, .18); cursor: pointer;
}
.pin-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.pin-label.is-on { background: var(--ink); color: var(--paper); }
.pin-label.is-on span { background: var(--paper); }
.pin-cluster {
  position: absolute; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font: 400 18px/1 var(--serif);
  box-shadow: 0 0 0 6px rgba(250, 249, 247, .7), 0 2px 10px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.map-card {
  position: absolute; left: 24px; bottom: 24px; z-index: 600;
  width: min(380px, calc(100% - 48px));
  background: var(--paper);
  box-shadow: 0 10px 40px rgba(23, 22, 21, .16);
}
.map-card__img img { width: 100%; height: 190px; object-fit: cover; }
.map-card__close {
  position: absolute; top: 0; right: 0; width: 40px; height: 40px;
  border: 0; background: var(--paper); cursor: pointer; font-size: 20px; line-height: 1;
}
.map-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; }
.map-card__name { font: 400 30px/1.05 var(--serif); }
.map-card__body p { font-size: 14.5px; line-height: 1.6; color: var(--text); }
.map-card__tags { font-size: 12.5px; color: var(--muted); }
.map-controls {
  position: absolute; right: 24px; bottom: 24px; z-index: 500;
  display: flex; flex-direction: column;
  background: var(--paper); box-shadow: 0 2px 10px rgba(23, 22, 21, .12);
}
.map-controls button {
  width: 42px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 20px;
  border-bottom: 1px solid var(--rule);
}
.map-controls button:last-child { border-bottom: 0; font: 600 10px var(--sans); letter-spacing: .1em; }
.map-controls button:hover { background: var(--rule-soft); }

/* Sites of the month */
.month { padding: 110px var(--gutter) 120px; }
.month__head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 52px; text-align: center; }
.month__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.month-card { display: flex; flex-direction: column; gap: 12px; }
.month-card__media img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; margin-bottom: 6px; transition: opacity .3s; }
.month-card__media:hover img { opacity: .88; }
.month-card__name { font: 400 26px/1.05 var(--serif); }
.month-card p { font-size: 14px; line-height: 1.6; color: var(--text); }

/* Coffee with a host */
.host {
  background: var(--paper-tint);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 72px;
  padding: 90px 64px;
  align-items: center;
}
.host__media img { aspect-ratio: 4 / 5; max-height: 560px; width: 100%; object-fit: cover; }
.host__body { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }

/* Founders */
.founders { position: relative; height: 560px; }
.founders > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founders__quote {
  position: absolute; left: 48px; bottom: 48px;
  max-width: 640px; background: var(--paper);
  padding: 40px 44px;
  display: flex; flex-direction: column; gap: 18px;
}
.founders__quote p { font: 400 36px/1.2 var(--serif); }

/* Newsletter */
.newsletter { padding: 100px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.newsletter > p { font-size: 15px; color: var(--text); max-width: 420px; }
.newsletter__form { display: flex; gap: 28px; align-items: flex-end; margin-top: 14px; }
.newsletter__form input {
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; padding: 8px 0;
  font: 400 14px var(--sans); color: var(--ink);
}
.newsletter__form input::placeholder { color: var(--faint); }
.newsletter__form input:focus { outline: none; border-bottom-width: 2px; padding-bottom: 7px; }
.newsletter__form input[name="name"] { width: 220px; }
.newsletter__form input[name="email"] { width: 280px; }
.newsletter__form .btn { padding: 14px 20px; }
.newsletter__status { min-height: 1.6em; font: 400 20px/1.3 var(--serif) !important; color: var(--ink) !important; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  font: 500 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.site-footer__links { display: flex; gap: 24px; }
.site-footer__links--right { justify-content: flex-end; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .collections__grid, .month__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { gap: 40px; }
  .feature__media img { height: 440px; }
  .map-teaser { grid-template-columns: minmax(0, 1fr); }
  .map-teaser__intro { border-right: 0; border-bottom: 1px solid var(--rule); padding: 72px var(--gutter); }
  .map-teaser__map { min-height: 560px; }
  .host { gap: 48px; padding: 72px var(--gutter); }
}

@media (max-width: 820px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 70px; }
  .site-header { grid-template-columns: 1fr auto; padding: 16px var(--gutter); border-bottom-color: var(--rule); }
  .nav { display: none; }
  .wordmark { font-size: 30px; justify-self: start; }
  .menu-toggle {
    display: block; justify-self: end;
    border: 0; background: none; cursor: pointer; padding: 8px 0;
    font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  }
  .mobile-menu:not([hidden]) {
    display: flex; flex-direction: column;
    grid-column: 1 / -1;
    padding: 12px 0 4px;
  }
  .mobile-menu a { padding: 14px 0; border-top: 1px solid var(--rule-soft); }

  .hero { height: 70vh; min-height: 420px; }
  .hero__caption { left: var(--gutter); right: var(--gutter); bottom: 56px; padding: 14px 16px; }
  .hero__name { font-size: 26px; }
  .hero__dots { left: var(--gutter); right: auto; bottom: 18px; }
  .hero__dots button { width: 22px; }

  .manifesto { padding: 72px var(--gutter) 64px; }
  .manifesto__text { font-size: 28px; }
  .section-title { font-size: 36px; }

  .feature { grid-template-columns: minmax(0, 1fr); padding-bottom: 80px; gap: 28px; }
  .feature__media img { height: auto; aspect-ratio: 4 / 3; }
  .feature__title { font-size: 42px; }

  .collections { padding-bottom: 80px; }
  .collections .section-title { margin-bottom: 32px; }
  .collections__grid { gap: 28px 12px; }
  .tile__title { font-size: 22px; }
  .tile__sub { font-size: 12px; }

  .map-teaser__intro { padding: 56px var(--gutter); gap: 24px; }
  .map-teaser__text { font-size: 28px; }
  .filters button { font-size: 17px; }
  .map-teaser__map { min-height: 480px; }
  .map-card { left: 12px; bottom: 12px; width: calc(100% - 78px); }
  .map-card__img img { height: 120px; }
  .map-card__body { padding: 14px 16px 16px; gap: 6px; }
  .map-card__name { font-size: 24px; }
  .map-card__body p { font-size: 13.5px; }
  .map-controls { right: 12px; bottom: 12px; }

  .month { padding: 72px var(--gutter) 80px; }
  .month__head { margin-bottom: 36px; }
  .month__grid { gap: 32px 12px; }
  .month-card__name { font-size: 22px; }

  .host { grid-template-columns: minmax(0, 1fr); padding: 56px var(--gutter); gap: 28px; }
  .feature__title { font-size: 40px; }

  .founders { height: auto; display: flex; flex-direction: column; }
  .founders > img { position: static; height: 300px; }
  .founders__quote { position: static; max-width: none; padding: 32px var(--gutter); }
  .founders__quote p { font-size: 28px; }

  .newsletter { padding: 72px var(--gutter); }
  .newsletter__form { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; gap: 18px; }
  .newsletter__form input[name] { width: 100%; }

  .site-footer { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding: 36px var(--gutter); text-align: center; }
  .site-footer .wordmark--small { order: -1; }
  .site-footer__links { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
}

@media (max-width: 480px) {
  .month__grid { grid-template-columns: minmax(0, 1fr); }
}
