/* Kien Wang · Toronto — hand-rolled, self-contained styles.
   Green-forward palette, one self-hosted variable display face, no CDNs. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f8fbf6;
  --sage: #e6efe2;
  --ink: #14231a;
  --ink-soft: #3f5449;
  --herb: #2f9e5a;
  --herb-dark: #24793f;
  --forest: #15402a;
  --gold: #f2b134;
  --line: #d7e4d1;

  /* Per-neighbourhood accent, overridden inline on cards and guide pages. */
  --accent: var(--herb);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.3rem + 1.1vw, 2.3rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);

  --space: clamp(1rem, 0.8rem + 1vw, 1.75rem);
  --radius: 14px;
  --measure: 44rem;
  --shadow: 0 2px 14px rgba(20, 35, 26, 0.07);
  --shadow-lift: 0 10px 28px rgba(20, 35, 26, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-3); letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a { color: var(--herb-dark); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--herb);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--space);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus { left: 0; color: var(--paper); }

/* Icons ------------------------------------------------------------- */

.icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.icon-inline { color: var(--accent); }

.icon-heading {
  color: var(--accent);
  margin-right: 0.5rem;
  vertical-align: -0.15em;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { flex-shrink: 0; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-title {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--herb-dark);
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: var(--step--1);
  font-weight: 600;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--herb-dark); }

.site-nav a[aria-current="page"] {
  color: var(--herb-dark);
  border-bottom-color: var(--herb);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(58rem 30rem at 108% -18%, rgba(242, 177, 52, 0.22), transparent 62%),
    radial-gradient(52rem 28rem at -18% 118%, rgba(47, 158, 90, 0.18), transparent 62%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* The food-and-recreation scatter. Dense enough to set a tone, faint enough
   to stay behind the copy — and static, because a drifting pattern behind
   body text is a motion problem and a paint-cost problem at once. */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--herb);
  opacity: 0.09;
  pointer-events: none;
}

.hero-tile { display: block; width: 100%; height: 100%; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: calc(var(--space) * 2);
  padding-block: calc(var(--space) * 3);
}

.hero-copy .lede { max-width: var(--measure); }

.hero h1 { font-size: var(--step-3); }

.hero-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-monogram { filter: drop-shadow(0 8px 22px rgba(47, 158, 90, 0.4)); }

.hero-mark-caption {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  margin: 0;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--herb-dark);
  font-weight: 700;
  margin-bottom: 0.75em;
}

.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-header {
  background: linear-gradient(180deg, var(--sage), var(--paper));
  border-bottom: 1px solid var(--line);
  padding-block: calc(var(--space) * 2.25);
}

.page-header h1 { max-width: 50rem; }

/* ------------------------------------------------------------------ */
/* Buttons, chips, links                                               */
/* ------------------------------------------------------------------ */

.button {
  display: inline-block;
  background: var(--herb);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-0);
  padding: 0.65em 1.5em;
  border: 2px solid var(--herb);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button:hover {
  background: var(--herb-dark);
  border-color: var(--herb-dark);
  color: var(--paper);
  transform: translateY(-1px);
}

.button-ghost { background: transparent; color: var(--herb-dark); }

.button-ghost:hover {
  background: rgba(47, 158, 90, 0.1);
  color: var(--forest);
  border-color: var(--herb-dark);
}

.button-light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--forest);
}

.button-light:hover { background: var(--sage); border-color: var(--sage); color: var(--forest); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.chip {
  display: inline-block;
  padding: 0.45em 1.15em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.chip:hover { background: var(--accent); color: var(--paper); }

.text-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--herb-dark);
}

/* ------------------------------------------------------------------ */
/* Sections and cards                                                  */
/* ------------------------------------------------------------------ */

.section { padding-block: calc(var(--space) * 2.5); }

.section-alt {
  background: var(--sage);
  border-block: 1px solid var(--line);
}

.section-lede {
  max-width: var(--measure);
  color: var(--ink-soft);
  margin-bottom: calc(var(--space) * 1.25);
}

.card-grid {
  display: grid;
  gap: var(--space);
  margin-top: var(--space);
}

.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.15);
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }

.card-icon {
  margin: 0 0 0.6rem;
  color: var(--herb);
  line-height: 1;
}

.card-link {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.neighbourhood-card { border-top: 4px solid var(--accent); }

.card-art svg { display: block; width: 100%; height: auto; }

.card-body { padding: calc(var(--space) * 1.15); }

.eat-first {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.eat-first-lead {
  font-size: var(--step-0);
  max-width: var(--measure);
  margin-top: 1rem;
}

.guide-art svg {
  display: block;
  width: 100%;
  height: clamp(120px, 20vw, 220px);
}

/* The nine-city run */

.city-run {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.city-pill {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding: 0.4em 0.95em;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.city-run-note,
.sample-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.sample-note {
  background: var(--sage);
  border: 1px dashed var(--herb);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: var(--space);
  max-width: none;
}

/* Neighbourhood "at a glance" panel */

.glance-list {
  margin: var(--space) 0 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glance-row {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: calc(var(--space) * 0.75);
  padding: calc(var(--space) * 0.8) calc(var(--space) * 1.1);
  border-top: 1px solid var(--line);
}

.glance-row:first-child { border-top: 0; }

.glance-row dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--accent);
}

.glance-row dd {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 34rem) {
  .glance-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Client-rendered panels: skeleton while the data is in flight.
   The skeleton mirrors the real content's box so nothing shifts on settle. */

.panel-slot { margin-top: var(--space); }
.panel-slot > .glance-list { margin-top: 0; }

.skeleton-line {
  display: block;
  height: 0.85em;
  margin: 0.42em 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--line) 25%, var(--sage) 37%, var(--line) 63%);
  background-size: 400% 100%;
  animation: skeleton-sheen 1.4s ease-in-out infinite;
}

.skeleton-line-short { width: 62%; }
.skeleton-line-caption { width: 45%; height: 0.7em; margin-top: 1.1em; }
.skeleton-line-label { width: 70%; }

.skeleton-testimonial { display: block; min-height: 13rem; }
.skeleton-value { display: block; }

@keyframes skeleton-sheen {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line { animation: none; background: var(--line); }
}

.panel-error {
  margin: 0;
  padding: calc(var(--space) * 0.9) calc(var(--space) * 1.1);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* ------------------------------------------------------------------ */
/* Reviews carousel                                                    */
/* ------------------------------------------------------------------ */

/*
 * The rail is a scroll-snap row first and an Embla carousel second. If the
 * script never runs, or Embla throws, this is still a usable draggable,
 * keyboard-scrollable list — the JavaScript only upgrades it.
 *
 * No autoplay, no dots, no arrows: a peek layout says "there is more" on its
 * own, and reviews that advance by themselves are the single most-complained-
 * about pattern on sites like this one.
 */

.reviews {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.reviews.has-embla {
  overflow: hidden;
  cursor: grab;
  padding-bottom: 0;
}

.reviews.has-embla:active { cursor: grabbing; }

.reviews__track {
  display: flex;
  gap: var(--space);
  align-items: stretch;
}

.reviews .testimonial {
  flex: 0 0 clamp(16rem, 82%, 26rem);
  scroll-snap-align: start;
}

@media (min-width: 46rem) {
  .reviews .testimonial { flex-basis: 40%; }
}

.testimonial {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.15);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.5;
}

.testimonial blockquote p { margin: 0; }

.testimonial figcaption {
  font-size: var(--step--1);
  color: var(--herb-dark);
  font-weight: 600;
}

/* CTA band */

.cta-band {
  background: var(--forest);
  color: var(--paper);
  padding-block: calc(var(--space) * 2.25);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
}

.cta-band h2 { color: var(--paper); margin-bottom: 0.25em; }
.cta-band p { margin: 0; color: rgba(248, 251, 246, 0.85); max-width: var(--measure); }

/* ------------------------------------------------------------------ */
/* Prose pages                                                         */
/* ------------------------------------------------------------------ */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.6em; }
.prose strong { color: var(--ink); }

/* FAQ */

.faq-list { max-width: 50rem; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-family: var(--display);
  color: var(--herb);
}

.faq-item[open] summary::after { content: "–"; }

.faq-item summary h2 {
  display: inline;
  font-size: var(--step-1);
  margin: 0;
}

.faq-answer { padding: 0 1.25rem 1.1rem; max-width: var(--measure); }
.faq-answer p { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Contact form                                                        */
/* ------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: calc(var(--space) * 2);
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.4);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: var(--step--1);
}

.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.6em 0.8em;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--herb);
  outline-offset: 1px;
  border-color: var(--herb);
}

.field [aria-invalid="true"] { border-color: #b3261e; }

.field-error {
  color: #b3261e;
  font-size: var(--step--1);
  margin: 0.35rem 0 0;
}

.form-error-summary {
  background: #fdecea;
  border: 1px solid #e6b4ae;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
}

.form-error-summary p { margin: 0; }

/* Honeypot: visually removed, still in the accessibility-hidden document flow. */
.field-nectar {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-aside h2 { font-size: var(--step-1); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--sage);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  background: var(--forest);
  color: var(--sage);
  margin-top: 0;
  padding-block: calc(var(--space) * 2) var(--space);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: calc(var(--space) * 1.5);
}

.footer-brand p { margin: 0.35rem 0 0; }

.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  margin-top: 0.75rem !important;
  color: var(--paper);
}

.footer-tagline { color: rgba(230, 239, 226, 0.72); }

.footer-heading {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a { color: var(--sage); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

.footer-fine {
  margin-top: calc(var(--space) * 1.5);
  padding-top: var(--space);
  border-top: 1px solid rgba(230, 239, 226, 0.2);
  font-size: var(--step--1);
  color: rgba(230, 239, 226, 0.62);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 46rem) {
  .hero-inner { grid-template-columns: 1fr; padding-block: calc(var(--space) * 2); }
  .hero-mark { order: -1; align-items: flex-start; }
  .hero-monogram { width: 96px; height: 96px; }
  .hero-mark-caption { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
