/* Tree Association — Brooklyn self-guided walking tour
   Palette: paper #f6f2e8 · ink #26301f · verdigris #4a6b5f
   Type: Bricolage Grotesque (display) · Karla (text) */

:root {
  --paper: #f6f2e8;
  --card: #ffffff;
  --ink: #26301f;
  --ink-70: rgba(38, 48, 31, 0.7);
  --ink-55: rgba(38, 48, 31, 0.55);
  --ink-40: rgba(38, 48, 31, 0.4);
  --rule: rgba(38, 48, 31, 0.14);
  --wash: rgba(38, 48, 31, 0.07);
  --green: #4a6b5f;
  --green-deep: #3d5a4f;
  --green-wash: rgba(74, 107, 95, 0.14);
  --pad-x: clamp(18px, 5vw, 64px);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: Karla, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- header + stops menu ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px var(--pad-x);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--wash);
  font-size: 13px;
  border: 0;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}
.pill:hover { background: rgba(38, 48, 31, 0.12); }
.pill--green { background: var(--green); color: var(--paper); }
.pill--tag {
  padding: 7px 14px;
  background: var(--green-wash);
  color: var(--green-deep);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: default;
}
.pill__caret { font-size: 10px; opacity: 0.7; }

.menu {
  display: none;
  border-top: 1px solid rgba(38, 48, 31, 0.12);
  background: var(--paper);
  max-height: 60vh;
  overflow: auto;
}
.menu[data-open='true'] { display: block; }
.menu .wrap { padding-top: 14px; padding-bottom: 22px; }

.menu__welcome {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid rgba(38, 48, 31, 0.1);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(38, 48, 31, 0.1);
  color: var(--ink);
}
.menu__item--soon { color: var(--ink-40); pointer-events: none; }
.menu__num {
  flex: none;
  width: 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  opacity: 0.65;
}
.menu__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

/* ---------- welcome ---------- */

.welcome { padding: clamp(40px, 7vw, 96px) var(--pad-x) 96px; }

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.045em;
  font-size: clamp(44px, 8vw, 112px);
}

.hero__intro {
  margin: clamp(26px, 3.5vw, 40px) 0 0;
  max-width: 44ch;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(38, 48, 31, 0.86);
  text-wrap: pretty;
}

.photo { position: relative; overflow: hidden; background: var(--wash); isolation: isolate; -webkit-transform: translateZ(0); transform: translateZ(0); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--hero { aspect-ratio: 1 / 1; min-height: 240px; border-radius: 220px; }
.photo--portrait { aspect-ratio: 4 / 5; min-height: 200px; border-radius: 24px; }
.photo--card { aspect-ratio: 4 / 3; border-radius: 16px; }

.route { margin-top: clamp(56px, 9vw, 120px); }
.route__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}
.route__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}
.route__note { font-size: 13px; color: var(--ink-55); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.cards .card { padding: 16px; gap: 14px; border-radius: 22px; }
.cards .card__title { font-size: 20px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card);
  border-radius: 26px;
  padding: 22px;
  color: var(--ink);
  transition: transform 0.18s ease;
}
a.card:hover { transform: translateY(-4px); color: var(--ink); }
.card--soon { background: rgba(38, 48, 31, 0.05); color: var(--ink-40); }
.card--soon .photo { aspect-ratio: 4 / 3; border: 1px dashed rgba(38, 48, 31, 0.22); border-radius: 16px; background: none; }

.card__row { display: flex; align-items: flex-start; gap: 14px; }
.card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.card__with { margin-top: 8px; font-size: 14px; font-weight: 300; color: rgba(38, 48, 31, 0.62); }

.badge {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}
.badge--sm { width: 34px; height: 34px; }
.badge--outline { background: none; border: 1px solid rgba(38, 48, 31, 0.22); color: inherit; }

/* ---------- stop page ---------- */

.banner {
  background: var(--green);
  color: var(--paper);
  padding: 12px var(--pad-x);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

.stop { padding: clamp(32px, 5vw, 64px) var(--pad-x) 120px; }

.stop__kicker { display: flex; align-items: center; gap: 12px; }
.stop__kicker span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
}

/* Two-column on wide screens; on narrow the photo moves between the
   tags and the description (stack order 1-2-3). */
.split {
  display: grid;
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 22px;
  align-items: start;
}
.split--tree { margin-top: clamp(20px, 3vw, 36px); grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); grid-template-rows: auto 1fr; }
.split--person { margin-top: clamp(20px, 3vw, 32px); grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); }

.split--tree .s1 { grid-area: 1 / 1; }
.split--tree .s3 { grid-area: 2 / 1; }
.split--tree .s2 { grid-area: 1 / 2 / span 2 / 2; }
.split--person .s2 { grid-area: 1 / 1 / span 2 / 1; }
.split--person .s1 { grid-area: 1 / 2; min-width: 0; }
.split--person .s3 { grid-area: 2 / 2; min-width: 0; }

@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .split .s1 { grid-area: 1 / 1; }
  .split .s2 { grid-area: 2 / 1; }
  .split .s3 { grid-area: 3 / 1; }
}

.tree__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.tree__latin {
  margin-top: 14px;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink-70);
}
.tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

.body {
  margin: 0;
  max-width: 50ch;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 300;
  color: rgba(38, 48, 31, 0.86);
  text-wrap: pretty;
}
.body--wide { max-width: 54ch; }

.panel {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--card);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(20px, 4vw, 56px);
}

.label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.person__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.person__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.person__dates { color: var(--ink-70); }

.poem {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(38, 48, 31, 0.12);
  padding-top: clamp(24px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  align-items: flex-start;
}
.poem__head { flex: 1 1 200px; max-width: 280px; }
.poem__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.poem__by { margin-top: 8px; }
.poem__text {
  flex: 2 1 300px;
  min-width: 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 300;
  white-space: pre-line;
  color: rgba(38, 48, 31, 0.9);
}

.stop__nav {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.stop__nav span { color: var(--ink-40); }

/* ---------- stop page: additions for varied content ---------- */

.stop__address {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
}

.body + .body,
.body + .quote,
.quote + .body,
.quote + .quote { margin-top: 20px; }
.body a, .quote a { border-bottom: 1px solid rgba(74, 107, 95, 0.4); }

.quote { margin: 0; max-width: 54ch; }
.quote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  text-wrap: pretty;
}
.quote p + p { margin-top: 14px; }
.quote__by strong { font-weight: 700; color: var(--ink); }
.quote__by {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
  font-style: normal;
}

.photo-stack { display: grid; gap: 16px; }
.photo--natural { border-radius: 16px; background: none; }
.photo--natural img { height: auto; }

.assoc__title {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.assoc__by {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 50ch;
}
.split--assoc h3 {
  margin: 12px 0 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 50ch;
}
.split--assoc { margin-top: clamp(16px, 2.5vw, 28px); grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); }
.split--assoc .s1 { grid-area: 1 / 1; min-width: 0; }
.split--assoc .s3 { grid-area: 2 / 1; min-width: 0; }
.split--assoc .s2 { grid-area: 1 / 2 / span 2 / 2; }
.assoc--solo .s3 { margin-top: 22px; }
@media (max-width: 760px) {
  .split--assoc { grid-template-columns: minmax(0, 1fr); }
  .split--assoc .s1 { grid-area: 1 / 1; }
  .split--assoc .s2 { grid-area: 2 / 1; width: 100%; }
  .split--assoc .s3 { grid-area: 3 / 1; }
  .split--assoc .assoc__by, .split--assoc h3 { max-width: none; }
}

.poem-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  white-space: pre-line;
  color: rgba(38, 48, 31, 0.9);
}

.embed { margin-top: clamp(28px, 4vw, 44px); max-width: 760px; }
.embed iframe { display: block; width: 100%; border: 0; border-radius: 16px; background: var(--wash); }
.embed--video iframe { aspect-ratio: 16 / 9; height: auto; }
.embed--audio iframe { height: 352px; border-radius: 12px; }
.fallback {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--green-deep);
  border-bottom: 1px solid rgba(74, 107, 95, 0.4);
}

.stop__nav a.pill { font-size: 13px; }

/* ---------- welcome: map ---------- */

.map { margin-top: clamp(56px, 9vw, 120px); }
.map__frame {
  margin-top: 22px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(38, 48, 31, 0.05);
  aspect-ratio: 16 / 10;
  min-height: 320px;
}
.map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__frame--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(38, 48, 31, 0.22);
  color: var(--ink-40);
  font-size: 14px;
}
.route + .map { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- thank you ---------- */

.thanks__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.thanks__body { margin-top: clamp(28px, 4vw, 44px); }
.signature {
  margin-top: 22px;
  font-style: italic;
  font-size: 19px;
  font-weight: 400;
}

/* ---------- survey ---------- */

.survey {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}
.survey__link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(74, 107, 95, 0.4);
}
.survey__note {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-55);
}

.survey--feature {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(22px, 3vw, 32px);
  border-radius: 26px;
  background: var(--card);
  display: block;
}
.survey--feature .survey__link { font-size: clamp(20px, 2.4vw, 26px); }
.survey--feature .survey__note { margin-top: 8px; display: block; }
.survey__intro { margin: 0 0 18px; max-width: 60ch; font-size: 17px; line-height: 1.55; text-wrap: pretty; }

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

.footer {
  border-top: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 44px) var(--pad-x) clamp(36px, 5vw, 56px);
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer p {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(38, 48, 31, 0.78);
  text-wrap: pretty;
}
.footer a { border-bottom: 1px solid rgba(74, 107, 95, 0.4); }
.footer .pill { flex: none; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--green-deep); }
.footer .pill:hover { color: var(--ink); }
.footer__links { flex: none; display: flex; align-items: center; gap: 18px; }
.footer .footer__link { border-bottom: 1px solid rgba(74, 107, 95, 0.4); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); }
.footer .footer__link:hover { color: var(--ink); }
.footer__survey { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(38, 48, 31, 0.1); }
