/* ============================================================
   BRÉVANT — shared stylesheet
   Design system: clay ground, cream reverse-out, warm paper
   reading surface. Fraunces for display, system sans for body.
   ============================================================ */

:root {
  --clay:        #a85a34;
  --clay-deep:   #7c3f22;
  --cream:       #f4ece0;
  --cream-bright:#fbf4ea;
  --cream-dim:   #eaddcb;
  --paper:       #faf6ef;
  --ink:         #29201a;
  --ink-soft:    #4a3f35;
  --muted:       #6b5d50;
  --rule:        #e7dccb;
  --rule-clay:   rgba(244, 236, 224, 0.22);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --measure: 34rem;      /* editorial reading width */
  --page-max: 60rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- Skip link (accessibility) ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream-bright);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Shared width wrapper ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 26px 28px 24px;
  max-width: var(--page-max);
  margin: 0 auto;
}
.nav--onclay { }                 /* nav sitting over the clay hero */
.nav--onpaper { border-bottom: 1px solid var(--rule); }

.nav__mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--ink);
}
.nav--onclay .nav__mark { color: var(--cream-bright); }

.nav__links {
  display: flex;
  gap: 26px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__links a {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav__links a:hover { color: var(--clay); border-color: var(--clay); }
.nav--onclay .nav__links a { color: var(--cream-dim); }
.nav--onclay .nav__links a:hover { color: var(--cream-bright); border-color: var(--cream-bright); }

/* ============================================================
   HOMEPAGE HERO (clay ground)
   ============================================================ */
.hero {
  background: var(--clay);
  color: var(--cream);
}
.hero__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px 28px 64px;
}
.hero__mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: 0.24em;
  color: var(--cream-bright);
  margin: 0 0 34px;
}
.hero__tag {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.16;
  color: var(--cream-bright);
  margin: 0 0 26px;
  max-width: 20ch;
}
.hero__intro {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--cream-dim);
  max-width: 44ch;
  margin: 0;
}

/* ============================================================
   CITY DIRECTORY (homepage, warm paper)
   ============================================================ */
.directory {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px 28px 72px;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 28px;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.city-grid li { margin: 0; }
.city-grid a {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 1.7rem);
  color: var(--ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s, padding-left 0.15s;
}
.city-grid a:hover,
.city-grid a:focus { color: var(--clay); padding-left: 8px; outline: none; }
.city-grid a:focus-visible { padding-left: 8px; color: var(--clay); }

/* ============================================================
   CITY PAGE MASTHEAD (clay band)
   ============================================================ */
.masthead {
  background: var(--clay);
  color: var(--cream);
}
.masthead__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px 28px 56px;
}
.masthead__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 18px;
}
.masthead__city {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 1.02;
  color: var(--cream-bright);
  margin: 0 0 22px;
}
.masthead__lede {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--cream-dim);
  max-width: 46ch;
  margin: 0;
}

/* ============================================================
   RESTAURANTS (city page reading surface — equal treatment)
   ============================================================ */
.selections {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 8px 28px 40px;
}
.entry {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
  max-width: var(--measure);
}
.entry:last-child { border-bottom: none; }
.entry__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 6px;
}
.entry__place {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 18px;
}
.entry__body {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.entry__link {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--clay-deep);
  border-bottom: 1px solid var(--cream-dim);
  padding-bottom: 3px;
  transition: border-color 0.15s;
}
.entry__link:hover { border-color: var(--clay); }
.entry__link::after { content: " \2197"; }

/* back-to-cities link on city pages */
.backlink {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 28px 72px;
}
.backlink a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: color 0.15s, border-color 0.15s;
}
.backlink a:hover { color: var(--clay); border-color: var(--clay); }
.backlink a::before { content: "\2190  "; }

/* ============================================================
   PROSE (About / methodology)
   ============================================================ */
.prose {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px 28px 72px;
}
.prose__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.7rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 22ch;
}
.prose p {
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 22px;
}
.prose p.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--rule);
  margin-top: 8px;
}
.foot__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 34px 28px 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: baseline;
  justify-content: space-between;
}
.foot__mark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-decoration: none;
}
.foot__note {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.foot__links { display: flex; gap: 22px; }
.foot__links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.foot__links a:hover { color: var(--clay); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .city-grid { grid-template-columns: 1fr; column-gap: 0; }
  .nav { padding: 20px 22px; }
  .wrap, .hero__inner, .directory, .masthead__inner,
  .selections, .backlink, .prose, .foot__inner { padding-left: 22px; padding-right: 22px; }
  .hero__inner { padding-top: 24px; padding-bottom: 52px; }
  .entry { padding: 36px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ============================================================
   HOMEPAGE MAP
   ============================================================ */
.mapsection {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px 28px 40px;
}
.canada-map {
  width: 100%;
  height: auto;
  max-width: 820px;
  display: block;
  margin: 10px auto 40px;
}
.map-land {
  fill: #efe4d4;
  stroke: #dccab3;
  stroke-width: 1;
  stroke-linejoin: round;
}
.map-dot {
  fill: var(--clay);
  stroke: var(--paper);
  stroke-width: 2;
  transition: fill 0.15s ease, r 0.15s ease;
}
.map-hit { fill: transparent; cursor: pointer; }
.canada-map a:hover .map-dot,
.canada-map a:focus-visible .map-dot {
  fill: var(--clay-deep);
  r: 8.5;
}
.canada-map a:focus-visible { outline: none; }
.canada-map a:focus-visible .map-dot { stroke: var(--clay-deep); }
