/* Fork & Fables — editorial minimal, Michelin Guide x Kotn/Acne Studios */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

@font-face {
  font-family: "Melodrama";
  src: url("/static/fonts/Melodrama-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Melodrama";
  src: url("/static/fonts/Melodrama-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Melodrama";
  src: url("/static/fonts/Melodrama-Semibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Melodrama";
  src: url("/static/fonts/Melodrama-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Melodrama";
  src: url("/static/fonts/Melodrama-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
:root {
  --bg: #f5f1e6;
  --bg-raised: #fbf9f2;
  --ink: #173f35;
  --ink-soft: #5c6f66;
  --line: #e3dcc8;
  --line-strong: #c9bd9e;
  --accent: #173f35;
  --cream: #d4c9ac;
  --tan: #d4c9ac;
  --max: 1180px;
  --gutter: 1.5rem;
  --serif: "Melodrama", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 1.5rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo .amp { color: var(--accent); font-style: italic; }

.main-nav {
  display: flex;
  gap: 1.9rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.guide-year-badge {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--tan);
  border: 1px solid var(--ink);
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

/* ---------- Messages ---------- */

.messages {
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.messages .message {
  border: 1px solid var(--ink);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  background: var(--bg-raised);
}
.messages .message.success { border-color: var(--accent); }
.messages .message.error { border-color: #8a3324; color: #8a3324; }

/* ---------- Subscribe ---------- */

.subscribe {
  border-top: 1px solid var(--line);
  margin-top: 6rem;
  padding: 3.5rem 0;
  background: var(--bg-raised);
}
.subscribe-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.subscribe h2 {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}
.subscribe p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}
.subscribe-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  padding: 0.8rem 1rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  min-width: 16rem;
}
.subscribe-form .btn {
  cursor: pointer;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 3rem 0;
  background: var(--tan);
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}
.site-footer .foot-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.foot-legal {
  display: flex;
  gap: 1rem;
}
.foot-legal a { text-decoration: underline; text-underline-offset: 2px; }
.foot-legal a:hover { color: var(--ink); }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--ink);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem var(--gutter);
  font-size: 0.85rem;
}
.cookie-banner-inner p { margin: 0; max-width: 60ch; }
.cookie-banner-inner a { color: var(--bg); border-bottom: 1px solid var(--bg); }
.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-banner .btn {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--ink);
}
.cookie-banner .btn:hover { background: transparent; color: var(--bg); }
.cookie-banner .btn-outline {
  background: transparent;
  color: var(--bg);
}
.cookie-banner .btn-outline:hover { background: var(--bg); color: var(--ink); }

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

.hero {
  padding: 5.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  max-width: 16ch;
}
.hero p.lede {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- Section headings ---------- */

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.9rem; }
.section-head .see-all {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

/* ---------- Fork rating ---------- */

.forks { display: inline-flex; gap: 0.2rem; align-items: center; }
.fork-icon { width: 13px; height: 13px; }
.fork-icon .tine { fill: none; stroke: var(--accent); stroke-width: 1.6; }

/* ---------- Tags / badges ---------- */

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.tag.year { border-color: var(--ink); color: var(--ink); }
.tag.accolade { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 1.8rem;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.card .thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cream);
  overflow: hidden;
  margin-bottom: 1rem;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line-strong);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
}
.card .meta {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card .summary {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

/* ---------- Cities strip ---------- */

.city-strip {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.city-chip {
  padding: 1.1rem 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex: 1 1 auto;
  min-width: 160px;
}
.city-chip .name { font-family: var(--serif); font-size: 1.15rem; }
.city-chip .country { font-size: 0.7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.city-chip .count { font-size: 0.7rem; color: var(--ink-soft); margin-top: 0.3rem; }
.city-chip:hover { background: var(--bg-raised); }

/* ---------- Filters ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.filter-bar select, .filter-bar input[type="text"] {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink);
}
.filter-bar button {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
}

/* ---------- Map ---------- */

.map-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .map-shell { grid-template-columns: 1fr; } }

.map-sidebar {
  border-right: 1px solid var(--line);
  padding: 1.6rem;
  max-height: calc(100vh - 65px);
  overflow-y: auto;
}
.map-sidebar h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.map-city-list a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.map-city-list a.active { color: var(--accent); font-weight: 600; }

#map {
  width: 100%;
  height: calc(100vh - 65px);
  min-height: 480px;
  background: var(--cream);
}

.leaflet-popup-content-wrapper {
  border-radius: 0;
  font-family: var(--sans);
}
.map-popup .name { font-family: var(--serif); font-size: 1rem; margin-bottom: 0.2rem; }
.map-popup .meta { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }

/* ---------- Review detail ---------- */

.review-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.review-hero .eyebrow { margin-bottom: 0.8rem; }
.review-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.review-hero .location {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.review-hero .top-meta {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.6rem;
}
.review-hero .tag-row { margin-top: 1.4rem; }

.review-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}
@media (max-width: 820px) { .review-body { grid-template-columns: 1fr; } }

.review-body .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--cream);
  margin-bottom: 2rem;
  overflow: hidden;
}
.review-body .thumb img { width: 100%; height: 100%; object-fit: cover; }

.review-notes { font-size: 1rem; line-height: 1.75; white-space: pre-line; }

/* ---------- Journal / posts ---------- */

.post-body {
  max-width: 68ch;
  margin: 0 auto;
  padding: 3rem 0;
}
.post-body .cover {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--cream);
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.post-body .cover img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 1.05rem; line-height: 1.8; color: var(--ink); }
.prose > * + * { margin-top: 1.3rem; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2.2rem;
}
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.4rem; }
.prose blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
}
.prose img { width: 100%; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.prose th { font-weight: 700; color: var(--ink-soft); }
.prose code {
  font-family: monospace;
  background: var(--cream);
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
}

.related-restaurants {
  max-width: 68ch;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
}
.related-restaurants h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.related-restaurants .grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .related-restaurants .grid { grid-template-columns: 1fr; } }

.side-panel { border-left: 1px solid var(--line); padding-left: 2rem; }
@media (max-width: 820px) { .side-panel { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; } }
.side-panel h3 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; color: var(--ink-soft); }
.side-panel .block { margin-bottom: 2.2rem; }
.dish-list { list-style: none; margin: 0; padding: 0; }
.dish-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-family: var(--serif);
}
.dish-list li a { border-bottom: 1px solid var(--accent); }
#mini-map { width: 100%; height: 220px; background: var(--cream); }

/* ---------- Misc ---------- */

.empty-state {
  padding: 5rem 0;
  text-align: center;
  color: var(--ink-soft);
}

.pagehead {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.pagehead h1 { font-size: clamp(2rem, 4vw, 3rem); }
.pagehead p { margin-top: 0.8rem; color: var(--ink-soft); max-width: 60ch; }

.country-list, .region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 2rem;
}
@media (max-width: 700px) { .country-list, .region-grid { grid-template-columns: 1fr; } }
.country-list a, .region-grid a {
  background: var(--bg);
  padding: 2rem;
  display: block;
}
.country-list a:hover, .region-grid a:hover { background: var(--bg-raised); }
.country-list .name, .region-grid .name { font-family: var(--serif); font-size: 1.4rem; }
.country-list .count, .region-grid .count { font-size: 0.75rem; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.4rem; }
