/* Four Bites — one stylesheet, phone first.
   Rebuilt 2026-09-21: the previous file had grown to 1,750 lines of layers
   overriding each other (the post grid alone was defined three times). This
   is one pass, one scale, organised by component. Phone styles are the
   default; wider screens add to them. */

/* Gambarino — the Four Bites brand face (Fontshare FFL: web use permitted,
   self-hosting allowed; see fonts/Gambarino-LICENSE.txt). Display only. */
@font-face {
  font-family: "Gambarino";
  src: url("../fonts/Gambarino-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --paprika: #F5451E;      /* Coquelicot */
  --persimmon: #F5451E;
  --pumpkin: #EE7828;
  --mustard: #E8A33D;
  --sage: #7A9471;
  --sage-dark: #5C7052;
  --page: #ECEBE5;
  --ink: #211F1C;
  --cream: #FFFDF9;
  --cream-dim: #F1EFE8;
  --espresso: #211F1C;
  --espresso-soft: #6B6966;
  --line: #D9D2C6;
  --line-strong: #C5BAAA;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(33, 31, 28, 0.06), 0 2px 10px rgba(33, 31, 28, 0.05);
  --shadow-lg: 0 10px 30px rgba(33, 31, 28, 0.16);
  --max: 1120px;
  --gutter: 16px;
  --appbar-h: 52px;
  --tabbar-h: 58px;
  --serif: "Gambarino", Georgia, "Times New Roman", serif;
}
@media (min-width: 640px) { :root { --gutter: 20px; } }
@media (min-width: 760px) { :root { --appbar-h: 60px; --tabbar-h: 0px; } }
@media (min-width: 1000px) { :root { --gutter: 28px; } }

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--page);
  color: var(--espresso);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(245, 69, 30, 0.12);
  /* Room for the phone tab bar so nothing hides behind it. */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 760px) { body { font-size: 16px; padding-bottom: 0; } }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.35em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
main { display: block; }
[hidden] { display: none !important; }

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

/* Horizontal rails bleed to the screen edge on phones and scroll sideways. */
.rail-scroll {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail-scroll::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------- app bar */
.appbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  padding-top: env(safe-area-inset-top, 0px);
}
.appbar-inner {
  max-width: var(--max); margin: 0 auto; height: var(--appbar-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand-logo { height: 24px; width: auto; display: block; }
@media (min-width: 760px) { .brand-logo { height: 28px; } }

/* Desktop: the main sections sit in the bar itself. */
.appbar-nav { display: none; }
@media (min-width: 900px) {
  .appbar-nav { display: flex; gap: 2px; margin-left: 18px; }
  .appbar-nav a {
    color: rgba(255, 253, 249, 0.78); text-decoration: none; font-size: 14px; font-weight: 600;
    padding: 7px 11px; border-radius: 999px;
  }
  .appbar-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
  .appbar-nav a.is-current { color: #fff; background: rgba(255, 255, 255, 0.12); }
}

.appbar-account {
  margin-left: auto; text-decoration: none; color: var(--cream);
  font-size: 13px; font-weight: 600; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28); white-space: nowrap; max-width: 44vw;
  overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 6px;
}
.appbar-account:hover { border-color: rgba(255, 255, 255, 0.6); }
.appbar-account:not(.is-in) { background: var(--paprika); border-color: var(--paprika); color: #fff; }
.appbar-account.is-in { border-color: transparent; background: rgba(255, 255, 255, 0.1); }
.appbar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex: 0 0 7px; }
.appbar-extra { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mustard); }

.hamburger {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer;
}
.hamburger span { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; }

/* ------------------------------------------------------------ phone tabs */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tabbar a {
  height: var(--tabbar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: rgba(255, 253, 249, 0.62); text-decoration: none;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em;
}
.tabbar svg { width: 22px; height: 22px; }
.tabbar a.is-current { color: #fff; }
.tabbar a.is-current svg { color: var(--paprika); }
.tabbar a.is-cta { color: var(--mustard); }
@media (min-width: 760px) { .tabbar { display: none; } }

/* ------------------------------------------------------------ nav drawer */
.nav-drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.nav-drawer.open { display: block; }
.nav-scrim { position: absolute; inset: 0; background: rgba(33, 31, 28, 0.5); }
.nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 84vw);
  background: var(--cream); padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 18px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.nav-panel-head strong { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.nav-close {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--cream-dim);
  font-size: 1rem; cursor: pointer;
}
.nav-panel a {
  display: flex; align-items: center; min-height: 46px; padding: 0 4px;
  text-decoration: none; border-bottom: 1px solid var(--line);
  color: var(--espresso); font-size: 16px; font-weight: 600;
}
.nav-panel a:last-child { border-bottom: none; }
.nav-panel a.is-current { color: var(--paprika); }
.nav-panel a[href="subscribe.html"] { color: var(--paprika); }
.nav-count {
  font-size: 11.5px; background: var(--paprika); color: #fff; border-radius: 999px;
  padding: 1px 7px; margin-left: 8px;
}

/* ---------------------------------------------------------- page chrome */
.page-head { padding: 18px 0 4px; }
.page-head h1 { font-size: 1.75rem; margin: 0; }
.page-head p { color: var(--espresso-soft); max-width: 56ch; margin: 4px 0 0; font-size: 0.95em; }
@media (min-width: 760px) {
  .page-head { padding: 30px 0 6px; }
  .page-head h1 { font-size: 2.2rem; }
}

.section-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 22px 0 10px;
}
.section-row h2 { margin: 0; font-size: 1.3rem; }
.section-row a { font-size: 13.5px; font-weight: 600; color: var(--sage-dark); text-decoration: none; white-space: nowrap; }
.section-row a:hover { text-decoration: underline; }
@media (min-width: 760px) { .section-row { margin: 32px 0 12px; } .section-row h2 { font-size: 1.55rem; } }
.section-sub { margin: -4px 0 10px; color: var(--espresso-soft); font-size: 13.5px; max-width: 48em; }

.kicker {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap; line-height: 1.3;
}
.kicker .dot { opacity: 0.4; }
.kicker .kicker-kind { color: var(--paprika); font-weight: 700; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; font-weight: 700;
  color: var(--paprika); margin-bottom: 6px;
}

.empty-state {
  padding: 28px 18px; text-align: center; color: var(--espresso-soft);
  background: var(--cream); border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-top: 12px;
}

/* --------------------------------------------------------------- buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 20px; border: none; border-radius: 999px;
  background: var(--paprika); color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary[disabled] { opacity: 0.6; cursor: default; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--cream);
  color: var(--espresso); text-decoration: none; font-weight: 600; font-size: 15px;
}
.btn-ghost:hover { border-color: var(--paprika); color: var(--paprika); }
.btn-link {
  background: none; border: 0; padding: 6px 0; color: var(--sage-dark); text-decoration: underline;
  cursor: pointer; font-size: 14px; font-family: inherit;
}
.more-row { display: flex; justify-content: center; margin: 14px 0 6px; }
.more-btn {
  min-height: 42px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--cream); color: var(--espresso); font-weight: 600; font-size: 14px; cursor: pointer;
}
.more-btn:hover { border-color: var(--paprika); color: var(--paprika); }

/* ---------------------------------------------------------------- search */
.search-form {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 4px 4px 16px; box-shadow: var(--shadow);
}
.search-form input[type="search"] {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 16px; /* 16px keeps iOS from zooming the page on focus */
  color: var(--espresso); height: 36px;
}
.search-form input::placeholder { color: #A99A8C; }
.search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-form .search-clear {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; min-width: 34px; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--espresso-soft); font-size: 1rem; cursor: pointer;
}
.search-form .search-clear:not([hidden]) { display: flex; }
.search-form .search-clear:hover { background: var(--cream-dim); color: var(--paprika); }
.search-form button[type="submit"] {
  border: none; background: var(--paprika); color: #fff; font-weight: 700;
  border-radius: 999px; height: 36px; padding: 0 16px; font-size: 14px; cursor: pointer; white-space: nowrap;
}

/* --------------------------------------------------------- filter pills */
/* One swipeable row on phones; wrapping rows from tablet width. */
.filter-bar {
  display: flex; gap: 6px; margin: 12px calc(-1 * var(--gutter)) 2px; padding: 0 var(--gutter) 4px;
  overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
}
.filter-bar::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .filter-bar { flex-wrap: wrap; overflow: visible; margin: 14px 0 2px; padding: 0; } }
.filter-bar-sub { margin-top: 0; }
.filter-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 34px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0 12px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--espresso-soft); font-family: inherit; line-height: 1; cursor: pointer;
}
.filter-pill:hover { border-color: var(--paprika); }
.filter-pill.active, .filter-pill.is-active, .filter-pill.is-parent {
  background: var(--espresso); border-color: var(--espresso); color: #fff;
}

.result-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.result-count { color: var(--espresso-soft); font-size: 13px; margin: 10px 0 0; }
.reset-btn {
  border: 1px solid var(--line); background: #fff; color: var(--espresso-soft); font-family: inherit;
  font-size: 12.5px; font-weight: 600; border-radius: 999px; min-height: 32px; padding: 0 12px; margin-top: 8px; cursor: pointer;
}
.reset-btn:hover { border-color: var(--paprika); color: var(--paprika); }

/* ---------------------------------------------------------------- tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px; background: var(--cream-dim);
  border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600;
  color: var(--sage-dark); text-decoration: none;
}
a.tag-chip { min-height: 30px; }
a.tag-chip:hover { background: var(--sage); color: #fff; }
.lock {
  display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700; color: var(--cream);
  background: rgba(33, 31, 28, 0.86); padding: 3px 7px; border-radius: 999px; line-height: 1.2;
}
.read-mark { color: var(--sage-dark); font-weight: 700; }
.new-mark { color: var(--paprika); font-weight: 700; }

/* ---------------------------------------------------------- place cards */
/* Phones: a list of rows, thumbnail left. Tablet up: a grid of tiles. */
.capsule-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.capsule-card {
  display: grid; grid-template-columns: 76px 1fr; align-items: center;
  text-decoration: none; color: inherit; background: var(--cream);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 76px;
}
.capsule-card-photo { width: 76px; height: 100%; min-height: 76px; background: var(--cream-dim); overflow: hidden; }
.capsule-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.capsule-card-body { padding: 8px 12px; min-width: 0; }
.capsule-card-body h3 { font-size: 1.02rem; line-height: 1.2; margin: 0 0 2px; }
.capsule-card-addr {
  font-size: 12.5px; color: var(--espresso-soft); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.capsule-card .tag-chip { font-size: 11px; padding: 2px 7px; }
.capsule-card .tag-chip:nth-child(n + 3) { display: none; }
@media (min-width: 560px) {
  .capsule-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .capsule-card { display: block; min-height: 0; }
  .capsule-card-photo { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .capsule-card-body { padding: 10px 12px 12px; }
  .capsule-card-addr { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (min-width: 900px) { .capsule-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.capsule-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
@media (hover: hover) { .capsule-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } }

/* ----------------------------------------------------------- post cards */
/* Same rhythm as place cards: rows on phones, tiles from tablet width. */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px 0 18px; }
.post-card {
  display: flex; flex-direction: row; align-items: stretch;
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (hover: hover) { .post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } }
.post-card-photo { position: relative; flex: 0 0 96px; width: 96px; min-height: 88px; background: var(--cream-dim); }
.post-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card-photo .lock { position: absolute; top: 6px; left: 6px; }
.post-card-body { padding: 9px 12px 10px; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.post-card-body h3 {
  font-size: 1rem; line-height: 1.22; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-body p { display: none; margin: 0; font-size: 13.5px; color: var(--espresso-soft); line-height: 1.45; }
.post-card.is-read .post-card-photo img { opacity: 0.75; }
@media (min-width: 560px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .post-card { flex-direction: column; }
  .post-card-photo { flex: none; width: 100%; min-height: 0; aspect-ratio: 3 / 2; }
  .post-card-photo .lock { left: auto; right: 8px; top: 8px; }
  .post-card-body { padding: 10px 12px 12px; justify-content: flex-start; }
  .post-card-body h3 { font-size: 1.05rem; }
}
@media (min-width: 900px) {
  .post-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .post-card-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
/* Row variant keeps the row shape at every width (capsule page, account). */
.post-grid.is-compact { grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) { .post-grid.is-compact { grid-template-columns: 1fr 1fr; } }
.post-card.is-row { flex-direction: row; }
.post-card.is-row .post-card-photo { flex: 0 0 88px; width: 88px; aspect-ratio: auto; min-height: 80px; }
.post-card.is-row .post-card-photo .lock { left: 6px; right: auto; top: 6px; }
.post-card.is-row .post-card-body { justify-content: center; }
.post-card.is-row .post-card-body p { display: none; }

/* Rail variant: a sideways-scrolling strip of tiles (home page). */
.post-grid.is-rail { display: flex; gap: 10px; margin-bottom: 6px; }
.post-grid.is-rail .post-card { flex: 0 0 64%; flex-direction: column; scroll-snap-align: start; }
.post-grid.is-rail .post-card-photo { flex: none; width: 100%; min-height: 0; aspect-ratio: 3 / 2; }
.post-grid.is-rail .post-card-photo .lock { left: auto; right: 8px; top: 8px; }
.post-grid.is-rail .post-card-body { justify-content: flex-start; }
@media (min-width: 560px) { .post-grid.is-rail .post-card { flex-basis: 38%; } }
@media (min-width: 900px) {
  .post-grid.is-rail { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 8px 0 18px; padding: 0; }
  .post-grid.is-rail .post-card { flex: none; }
}

.year-head {
  font-family: var(--serif); font-size: 1.2rem; margin: 22px 0 8px;
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
}

/* ------------------------------------------------------------ home page */
[data-view="in"] { display: none; }
html.is-in [data-view="in"] { display: block; }
html.is-in [data-view="out"] { display: none; }

.home-banner { position: relative; background: var(--ink); overflow: hidden; }
.home-banner-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.home-banner-tiles img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #2b2926; }
.home-banner-tiles img:nth-child(n + 5) { display: none; }
@media (min-width: 640px) {
  .home-banner-tiles { grid-template-columns: repeat(3, 1fr); }
  .home-banner-tiles img:nth-child(n + 5) { display: block; }
  .home-banner-tiles img:nth-child(n + 7) { display: none; }
}
@media (min-width: 1000px) {
  .home-banner-tiles { grid-template-columns: repeat(5, 1fr); }
  .home-banner-tiles img:nth-child(n + 7) { display: block; }
  .home-banner-tiles img:nth-child(n + 11) { display: none; }
}
/* Subscribers see a single band of photos: the page below is about them. */
html.is-in .home-banner-tiles img { aspect-ratio: 5 / 4; }
html.is-in .home-banner-tiles img:nth-child(n + 3) { display: none; }
@media (min-width: 640px) {
  html.is-in .home-banner-tiles img:nth-child(3) { display: block; }
  html.is-in .home-banner-tiles img:nth-child(n + 4) { display: none; }
}
@media (min-width: 1000px) {
  html.is-in .home-banner-tiles img { aspect-ratio: 3 / 2; }
  html.is-in .home-banner-tiles img:nth-child(-n + 5) { display: block; }
}
html.is-in .home-banner-shade {
  background: linear-gradient(to top, rgba(22, 20, 18, 0.94) 0%, rgba(22, 20, 18, 0.62) 55%, rgba(22, 20, 18, 0.3) 100%);
}
.home-banner-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 20, 18, 0.9) 0%, rgba(22, 20, 18, 0.5) 45%, rgba(22, 20, 18, 0.05) 85%);
}
@media (min-width: 1000px) {
  .home-banner-shade {
    background:
      linear-gradient(90deg, rgba(22, 20, 18, 0.86) 0%, rgba(22, 20, 18, 0.45) 40%, rgba(22, 20, 18, 0) 70%),
      linear-gradient(to top, rgba(22, 20, 18, 0.5) 0%, rgba(22, 20, 18, 0) 50%);
  }
}
.home-banner-text { position: absolute; inset: 0; display: flex; align-items: flex-end; pointer-events: none; }
.home-banner-text .wrap { width: 100%; padding-bottom: 16px; }
.home-banner .hero-eyebrow { color: var(--mustard); margin-bottom: 4px; }
.home-banner h1 {
  color: var(--cream); margin: 0; max-width: 13ch;
  font-size: 2.35rem; line-height: 1.02; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
@media (min-width: 640px) { .home-banner h1 { font-size: 3.2rem; } }
@media (min-width: 1000px) { .home-banner h1 { font-size: 4.2rem; } .home-banner-text .wrap { padding-bottom: 30px; } }
html.is-in .home-banner h1 { font-size: 1.9rem; max-width: 18ch; }
@media (min-width: 1000px) { html.is-in .home-banner h1 { font-size: 2.8rem; } }

.hero { padding: 16px var(--gutter) 6px; }
.hero h1 { font-size: 2rem; max-width: 12ch; }
.hero p { color: var(--espresso-soft); max-width: 46ch; margin: 0; }
.pitch-lede { font-size: 15.5px; max-width: 36em; color: var(--espresso-soft); margin: 0; }
.pitch-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.pitch-ctas .btn-primary, .pitch-ctas .btn-ghost { flex: 1 1 auto; }
@media (min-width: 640px) { .pitch-ctas .btn-primary, .pitch-ctas .btn-ghost { flex: 0 0 auto; } }
@media (min-width: 760px) { .hero { padding-top: 22px; } .pitch-lede { font-size: 17px; } }

/* Four numbers in one strip, not four boxes. */
.proof-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px auto 4px;
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0;
  max-width: calc(var(--max) - 2 * var(--gutter));
}
.wrap.proof-strip { margin-left: var(--gutter); margin-right: var(--gutter); }
@media (min-width: 1176px) { .wrap.proof-strip { margin-left: auto; margin-right: auto; } }
.proof-strip div { padding: 10px 6px; text-align: center; border-left: 1px solid var(--line); }
.proof-strip div:first-child { border-left: 0; }
.proof-strip strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--paprika); line-height: 1.05; }
.proof-strip span { display: block; font-size: 10.5px; color: var(--espresso-soft); line-height: 1.25; margin-top: 2px; }
@media (min-width: 640px) { .proof-strip strong { font-size: 1.7rem; } .proof-strip span { font-size: 12.5px; } }

/* This week: two thumbnail rows side by side from tablet width. */
.week-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) { .week-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.week-card {
  display: flex; background: var(--cream); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.week-photo { position: relative; width: 104px; flex: 0 0 104px; min-height: 92px; background: var(--cream-dim); }
.week-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.week-tag {
  position: absolute; top: 6px; left: 6px; background: rgba(33, 31, 28, 0.86); color: var(--mustard);
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 3px 7px; border-radius: 999px;
}
.week-body { padding: 9px 12px; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.week-body h3 { font-size: 1rem; line-height: 1.22; margin: 0; }
.week-body p { display: none; }
.week-cta { color: var(--paprika); font-weight: 600; font-size: 12.5px; }
@media (min-width: 700px) { .week-photo { width: 140px; flex-basis: 140px; } .week-body h3 { font-size: 1.1rem; } }

.why-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.why-card {
  display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; align-items: start;
  background: var(--cream); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow);
}
.why-icon { font-size: 20px; line-height: 1.2; grid-row: span 2; }
.why-card h3 { font-size: 1.05rem; margin: 0; }
.why-card p { margin: 0; font-size: 13.5px; color: var(--espresso-soft); line-height: 1.45; }
.why-price { margin: 12px 0 0; font-size: 14.5px; }
.why-price a { color: var(--sage-dark); font-weight: 600; }

.about-strip { margin-top: 26px; }
.about-strip h2 { font-size: 1.35rem; margin: 2px 0 4px; }
.about-strip p { max-width: 46em; color: var(--espresso-soft); margin: 0; line-height: 1.55; font-size: 14.5px; }
.about-strip a { color: var(--sage-dark); font-weight: 600; }

/* ---------------------------------------------- subscriber home ("you") */
.you { padding-top: 12px; }
.you-chips { display: flex; gap: 6px; margin-top: 12px; }
.you-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  background: var(--cream); border-radius: 999px; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--espresso); text-decoration: none; white-space: nowrap;
}
.you-chip b { color: var(--paprika); font-weight: 700; }
.you-chip.is-extra { background: var(--ink); color: var(--cream); }
.you-chip.is-extra b { color: var(--mustard); }
.you-chip.is-upgrade { background: var(--paprika); color: #fff; }
.you-chip.is-upgrade b { color: #fff; }
.place-rail { display: flex; gap: 10px; }
.place-tile {
  flex: 0 0 132px; scroll-snap-align: start; text-decoration: none; color: inherit;
  background: var(--cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.place-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cream-dim); }
.place-tile span { display: block; padding: 7px 9px 9px; font-family: var(--serif); font-size: 0.95rem; line-height: 1.2; }
.you-empty {
  display: flex; align-items: center; gap: 12px; background: var(--cream); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 14px; text-decoration: none; color: inherit;
}
.you-empty .heart {
  flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--cream-dim); color: var(--paprika);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.you-empty strong { display: block; font-size: 14.5px; }
.you-empty span { font-size: 13px; color: var(--espresso-soft); }
.you-empty .arrow { margin-left: auto; color: var(--paprika); font-size: 18px; }

/* ---------------------------------------------------------------- events */
.event-list { display: grid; gap: 8px; margin: 8px 0 18px; }
@media (min-width: 900px) { .event-list { grid-template-columns: 1fr 1fr; gap: 12px; } }
.event-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; background: var(--cream);
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 10px; align-self: start; }
.event-date .d { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--paprika); }
.event-date .m { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); font-weight: 700; }
.event-date .y { font-size: 10.5px; color: var(--espresso-soft); }
.event-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.event-card .event-where { font-size: 12.5px; color: var(--espresso-soft); margin: 0 0 4px; }
.event-card p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.event-card p:not(.event-where) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-card .event-price { font-size: 12px; color: var(--sage-dark); margin-top: 4px; font-weight: 600; }
.event-card.is-past { opacity: 0.82; }
.events-empty { background: var(--cream); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin: 8px 0; }
.events-empty h2 { font-size: 1.15rem; margin: 0 0 4px; }
.events-empty p { margin: 0; color: var(--espresso-soft); font-size: 14px; }
.events-empty a { color: var(--sage-dark); font-weight: 600; }
.hub-section { margin: 0 0 8px; }

/* ------------------------------------------------------------------ map */
.map-section { margin: 4px auto 0; }
.map-stat { margin: 0 0 6px; font-size: 12.5px; color: var(--espresso-soft); }
.map-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.map-filters-scroll {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px;
}
.map-filters-scroll::-webkit-scrollbar { display: none; }
.map-filters + .map-filters { margin-top: 6px; }
.map-filter {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--espresso);
  border-radius: 999px; min-height: 32px; padding: 0 11px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.map-filter span { opacity: 0.55; font-weight: 500; margin-left: 3px; }
.map-filter:hover { border-color: var(--paprika); }
.map-filter.is-active { background: var(--paprika); border-color: var(--paprika); color: #fff; }
.map-filter.is-active span { opacity: 0.85; }
.map-filters-sub { padding-top: 2px; }
.map-filter-sub { min-height: 28px; font-size: 12px; padding: 0 10px; background: var(--cream-dim); }
.map-filter-sub.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.buffalo-map {
  height: 300px; width: 100%; margin-top: 10px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #e8e8e2;
  /* Own stacking context keeps Leaflet's high z-indexes under the app bar. */
  position: relative; z-index: 0;
}
@media (min-width: 760px) { .buffalo-map { height: 420px; } }
.leaflet-container { font: inherit; background: #e8e8e2; }
.leaflet-tile-pane { filter: saturate(0.55) contrast(0.95); }
.map-cta {
  display: inline-flex; align-items: center; min-height: 40px; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--paprika); text-decoration: none;
}
.map-cta:hover { text-decoration: underline; }

.map-popup { display: flex; flex-direction: column; gap: 3px; min-width: 150px; }
.map-popup strong { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.map-popup-type { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paprika); font-weight: 700; }
.map-popup-addr { font-size: 13px; color: var(--espresso-soft); }
.map-popup .map-popup-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; margin-top: 6px;
  background: var(--paprika); color: #fff; font-weight: 700; text-decoration: none;
  border-radius: 999px; padding: 0 16px; font-size: 13px;
}

.fb-cluster {
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--paprika); color: #fff; font-weight: 700;
  border: 3px solid rgba(255, 255, 255, 0.9); box-shadow: 0 2px 8px rgba(33, 31, 28, 0.28);
}
.fb-cluster span { font-size: 0.85rem; letter-spacing: -0.01em; }
.fb-cluster-sm { background: #E8834F; }
.fb-cluster-md { background: var(--paprika); }
.fb-cluster-lg { background: #C2331A; }
.fb-cluster-lg span { font-size: 0.95rem; }
.marker-cluster-spider-leg { stroke: var(--paprika); }
.leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, 0.78) !important; }
.leaflet-control-attribution a { color: var(--espresso-soft) !important; }
@media (hover: none) {
  .leaflet-touch .leaflet-bar a, .leaflet-control-zoom a { width: 42px; height: 42px; line-height: 42px; font-size: 1.3rem; }
  .leaflet-bar { border-radius: 10px; overflow: hidden; }
}
.map-veil {
  position: absolute; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-family: inherit; background: rgba(33, 31, 28, 0.14);
  -webkit-tap-highlight-color: transparent;
}
.map-veil span {
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(33, 31, 28, 0.3);
}
.buffalo-map.is-inert, .buffalo-map.is-inert .leaflet-container { touch-action: pan-y !important; }

/* The dedicated map page fills the space between the bars. */
.map-page, .map-page body { height: 100%; }
.map-page .site-footer { display: none; }
.map-shell {
  display: flex; flex-direction: column;
  height: calc(100dvh - var(--appbar-h) - env(safe-area-inset-top, 0px) - var(--tabbar-h) - env(safe-area-inset-bottom, 0px));
  min-height: 380px;
}
.map-toolbar { flex: 0 0 auto; padding: 8px var(--gutter) 8px; background: var(--page); border-bottom: 1px solid var(--line); }
.map-full { flex: 1 1 auto; width: 100%; min-height: 0; position: relative; z-index: 0; background: var(--page); }

/* ---------------------------------------------------------- place page */
.capsule-back, .post-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-top: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--sage-dark); text-decoration: none;
}
.capsule-back:hover, .post-back:hover { color: var(--paprika); }
.capsule-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 0 2px; }
.capsule-detail-head .eyebrow-row { flex: 1 1 100%; display: flex; gap: 6px; flex-wrap: wrap; }
.capsule-detail-head h1 { flex: 1 1 60%; font-size: 1.85rem; margin: 0; }
@media (min-width: 760px) { .capsule-detail-head h1 { font-size: 2.4rem; } }
.writeup { font-size: 15.5px; line-height: 1.6; max-width: 62ch; margin: 8px 0 14px; }
@media (min-width: 760px) { .writeup { font-size: 17px; } }
.writeup-pending { color: var(--espresso-soft); font-style: italic; }
.known-for { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0 0 12px; }
.known-for span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--espresso-soft); }
.known-for em { font-style: normal; font-size: 13px; font-weight: 600; background: var(--cream); border-radius: 999px; padding: 3px 10px; }

.capsule-meta {
  margin: 0 0 14px; padding: 12px 14px; background: var(--cream); border-radius: var(--radius);
  box-shadow: var(--shadow); display: grid; gap: 8px; font-size: 14.5px; max-width: 62ch;
}
.capsule-row { display: grid; grid-template-columns: 1fr; gap: 1px; }
@media (min-width: 480px) { .capsule-row { grid-template-columns: 78px 1fr; gap: 12px; align-items: baseline; } }
.capsule-row dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--espresso-soft); }
.capsule-row dd { margin: 0; }
.capsule-meta a { color: var(--paprika); text-decoration: none; font-weight: 600; }
.loc-count { margin: 12px 0 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--espresso-soft); }
.loc-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.loc-tab {
  border: 1px solid var(--line); background: #fff; color: var(--espresso); border-radius: 999px;
  min-height: 34px; padding: 0 13px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.loc-tab.is-active { background: var(--paprika); border-color: var(--paprika); color: #fff; }

.photo-strip {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 4px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-thumb {
  flex: 0 0 auto; width: 136px; height: 102px; padding: 0; border: 0; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--cream-dim); cursor: zoom-in; scroll-snap-align: start;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 760px) { .photo-thumb { width: 168px; height: 126px; } }
.capsule-reads { margin: 18px 0 4px; }
.capsule-reads h2 { font-size: 1.2rem; margin: 14px 0 6px; }
.capsule-reads .post-grid { margin: 0 0 8px; }

.save-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 13px;
  border: 1px solid var(--line-strong); background: var(--cream); color: var(--espresso);
  border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.save-btn:hover { border-color: var(--paprika); color: var(--paprika); }
.save-btn.is-on { background: var(--paprika); border-color: var(--paprika); color: #fff; }
.save-btn.is-small { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.save-icon { font-size: 14px; line-height: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center;
  background: rgba(33, 31, 28, 0.95); padding: 16px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(100%, 1100px); max-height: 84vh; object-fit: contain; border-radius: 6px; }
.lightbox-close, .lightbox-nav {
  position: absolute; border: none; background: rgba(255, 255, 255, 0.14); color: #fff;
  cursor: pointer; border-radius: 999px; line-height: 1;
}
.lightbox-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 42px; height: 42px; font-size: 1.6rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 42px; height: 42px; font-size: 1.8rem; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); color: rgba(255, 255, 255, 0.75); font-size: 12.5px; }

/* --------------------------------------------------------------- reader */
.post { max-width: 700px; margin: 0 auto; }
.post-head { margin: 2px 0 12px; }
.post-head h1 { font-size: 1.75rem; line-height: 1.12; margin: 6px 0 6px; }
@media (min-width: 760px) { .post-head h1 { font-size: 2.5rem; } }
.post-meta { font-size: 13px; color: var(--espresso-soft); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.post-meta a { color: var(--sage-dark); }
.post-head .save-btn { margin-top: 8px; }

.place-link {
  display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: var(--radius);
  padding: 8px 12px 8px 8px; margin: 10px 0; text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
.place-link img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex: 0 0 48px; }
.place-link-label { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-dark); font-weight: 700; }
.place-link strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; display: block; }
.place-link .arrow { margin-left: auto; color: var(--paprika); font-size: 18px; }

.post-body { font-size: 16.5px; line-height: 1.62; }
@media (min-width: 760px) { .post-body { font-size: 18px; } }
.post-body > p, .post-body > ul, .post-body > ol, .post-body > blockquote { margin: 0 0 1em; }
.post-body h2, .post-body h3 { margin: 1.4em 0 0.4em; }
.post-body h2 { font-size: 1.45rem; }
.post-body h3 { font-size: 1.2rem; }
.post-body figure { margin: 1.2em calc(-1 * var(--gutter)); }
.post-body figure img { width: 100%; height: auto; background: var(--cream-dim); }
.post-body figcaption { font-size: 12.5px; color: var(--espresso-soft); padding: 6px var(--gutter) 0; line-height: 1.4; }
@media (min-width: 760px) {
  .post-body figure { margin: 1.5em 0; }
  .post-body figure img { border-radius: var(--radius-sm); }
  .post-body figcaption { padding: 6px 2px 0; }
}
.post-body a { color: var(--sage-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.post-body blockquote { border-left: 3px solid var(--mustard); margin-left: 0; padding-left: 14px; color: var(--espresso-soft); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }
.post-body li { margin-bottom: 0.35em; }
.post-body img { max-width: 100%; }

.details-card { background: var(--cream); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; box-shadow: var(--shadow); }
.details-card h2 { font-size: 1.2rem; margin: 0 0 8px; }
.details-card dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 14px; }
@media (min-width: 560px) { .details-card dl { grid-template-columns: max-content 1fr; gap: 6px 14px; } }
.details-card dt { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); font-weight: 700; padding-top: 3px; }
.details-card dd { margin: 0 0 6px; font-size: 14.5px; }

.paywall {
  position: relative; margin: 6px 0 22px; padding: 18px 16px 16px; border-radius: var(--radius);
  background: var(--ink); color: var(--cream); box-shadow: var(--shadow-lg);
}
.paywall::before {
  content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 60px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(236, 235, 229, 0), var(--page));
}
.paywall h2 { font-size: 1.35rem; margin: 0 0 4px; color: var(--cream); }
.paywall p { margin: 0 0 10px; color: rgba(255, 253, 249, 0.8); font-size: 14px; }
.paywall .price { color: var(--mustard); font-weight: 700; }
.paywall form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.paywall input[type="email"], .paywall input[type="password"] {
  flex: 1 1 180px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08); color: var(--cream); font-size: 16px;
}
.paywall input::placeholder { color: rgba(255, 253, 249, 0.5); }
.paywall button {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--paprika); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer; flex: 1 1 auto;
}
@media (min-width: 560px) { .paywall button { flex: 0 0 auto; } }
.paywall button[disabled] { opacity: 0.6; cursor: wait; }
.paywall .paywall-msg { min-height: 18px; font-size: 13.5px; margin-top: 8px; color: var(--mustard); }
.paywall .paywall-msg.err { color: #FFB3A0; }
.paywall .paywall-alt { font-size: 13px; margin: 10px 0 0; color: rgba(255, 253, 249, 0.68); }
.paywall .paywall-alt a { color: var(--cream); }
.unlocked-note { font-size: 13px; color: var(--espresso-soft); margin: 0 0 14px; }
.post-tags { margin: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.post-tags span { font-size: 12px; background: var(--cream); border-radius: 999px; padding: 3px 9px; color: var(--espresso-soft); }
.post-more { margin-top: 26px; }
.post-more h2 { font-size: 1.3rem; }

/* ---------------------------------------------------------------- prose */
.prose { max-width: 62ch; font-size: 15.5px; color: var(--espresso-soft); }
.prose h2 { color: var(--espresso); margin-top: 1.4em; font-size: 1.35rem; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--paprika); font-weight: 600; }

/* ---------------------------------------------------------------- forms */
.form-card { background: var(--cream); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); max-width: 520px; }
@media (min-width: 640px) { .form-card { padding: 24px; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 16px; font-family: inherit; background: #fff; color: var(--espresso);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--paprika); outline-offset: 1px; }
.form-note, .hint { font-size: 13px; color: var(--espresso-soft); margin-top: 10px; }
.form-success { display: none; background: var(--sage); color: #fff; border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; margin-bottom: 14px; }
.form-success.show { display: block; }
.form-error {
  display: none; margin-bottom: 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: #fdecea; border: 1px solid #f5c2bd; color: #8c2f26; font-size: 14px;
}
.form-error.show { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------- signup */
.signup { margin: 26px auto 8px; }
.signup-card { background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; text-align: center; }
@media (min-width: 640px) { .signup-card { padding: 26px 24px; } }
.signup-card h2 { margin: 0 0 4px; font-size: 1.3rem; }
.signup-sub { margin: 0 0 12px; color: var(--espresso-soft); font-size: 14px; }
.signup-form {
  display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 4px 4px 16px; max-width: 440px; margin: 0 auto;
}
.signup-form input[type="email"] { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; color: var(--ink); height: 36px; }
.signup-form input[type="email"]:focus { outline: none; }
.signup-form button {
  border: 0; border-radius: 999px; height: 36px; padding: 0 16px; background: var(--paprika); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.signup-form button:disabled { opacity: 0.6; cursor: default; }
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg { min-height: 1.1em; margin: 8px 0 0; font-size: 13.5px; }
.signup-msg.ok { color: var(--sage-dark); }
.signup-msg.err { color: var(--paprika); }
.signup-paid { margin: 12px 0 0; font-size: 13px; color: var(--espresso-soft); border-top: 1px solid var(--line); padding-top: 12px; }
.signup-paid a { color: var(--paprika); font-weight: 600; }

/* -------------------------------------------------------------- account */
.account { max-width: 640px; padding-bottom: 8px; }
.account.is-wide { max-width: 760px; }
.account-profile {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 12px;
  background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 14px;
}
.account-avatar {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--paprika); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.5rem;
}
.account-profile h1 { font-size: 1.35rem; margin: 0; color: var(--cream); }
.account-profile p { margin: 1px 0 0; font-size: 12.5px; color: rgba(255, 253, 249, 0.68); overflow: hidden; text-overflow: ellipsis; }
.account-profile .tier {
  margin-left: auto; flex: 0 0 auto; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--mustard);
}
.account-profile > div { min-width: 0; }
.account-tabs {
  position: sticky; top: calc(var(--appbar-h) + env(safe-area-inset-top, 0px)); z-index: 5;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)) 10px; padding: 8px var(--gutter);
  background: var(--page);
}
.account-tabs::-webkit-scrollbar { display: none; }
.account-tabs a {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px;
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--espresso);
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
}
.account-tabs a.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.account-card {
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin: 0 0 12px; scroll-margin-top: calc(var(--appbar-h) + 60px);
}
@media (min-width: 640px) { .account-card { padding: 18px 20px; } }
.account-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.account-card > h3 { font-family: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage-dark); margin: 14px 0 6px; }
.account-card .post-card, .account-card .capsule-card { box-shadow: none; background: #fff; border: 1px solid var(--line); }
.account-sub { margin: 0 0 10px; color: var(--espresso-soft); font-size: 14px; line-height: 1.5; }
.account-sub a { color: var(--sage-dark); font-weight: 600; }
.account-form { display: grid; gap: 10px; }
.account-form label { display: grid; gap: 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--sage-dark); }
.account-form input, .account textarea {
  width: 100%; font-size: 16px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--espresso); font-family: inherit;
}
.account textarea { height: auto; min-height: 100px; padding: 10px 12px; }
.account-form .btn-primary { justify-self: start; }
.account-msg { min-height: 16px; margin: 0; font-size: 13.5px; color: var(--espresso-soft); }
.account-msg.ok { color: var(--sage-dark); }
.account-msg.err { color: var(--paprika); }
.account-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.account-links a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--cream-dim); color: var(--espresso); font-size: 13px; font-weight: 600; text-decoration: none;
}
.account-extra { background: var(--ink); color: var(--cream); }
.account-extra h2 { color: var(--cream); }
.account-extra .account-sub { color: rgba(255, 253, 249, 0.78); }
.account-extra .kicker .kicker-kind { color: var(--mustard); }

/* ----------------------------------------------------------------- plans */
.plans { max-width: 900px; }
.plans-head h1 { font-size: 1.75rem; max-width: 18em; }
@media (min-width: 760px) { .plans-head h1 { font-size: 2.4rem; } }
.plans-head p { font-size: 15px; color: var(--espresso-soft); max-width: 42em; }
.plan-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 10px 0 22px; }
@media (min-width: 720px) { .plan-grid { grid-template-columns: 1fr 1.15fr; align-items: start; gap: 16px; } }
.plan-card { background: var(--cream); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .plan-card { padding: 20px; } }
.plan-card.is-extra { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-lg); }
.plan-tier { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-dark); font-weight: 700; }
.is-extra .plan-tier { color: var(--mustard); }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
.plan-price strong { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.plan-price span, .plan-price em { font-style: normal; font-size: 14px; color: var(--espresso-soft); }
.is-extra .plan-price span, .is-extra .plan-price em { color: rgba(255, 253, 249, 0.7); }
.plan-sub { margin: 0 0 10px; font-size: 14px; color: var(--espresso-soft); }
.is-extra .plan-sub { color: rgba(255, 253, 249, 0.8); }
.plan-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; }
.plan-list li { padding-left: 20px; position: relative; font-size: 14px; line-height: 1.45; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-dark); font-weight: 700; }
.is-extra .plan-list li::before { color: var(--mustard); }
.plan-form { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-form input[type="email"] { flex: 1 1 180px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 16px; background: #fff; }
.plan-cta .btn-primary { width: 100%; }
.plan-fine { font-size: 12.5px; color: rgba(255, 253, 249, 0.7); margin: 8px 0 0; }
.plan-fine a { color: var(--cream); }
.plan-faq { margin: 0 0 20px; }
.plan-faq h2 { font-size: 1.3rem; }
.plan-faq details { background: var(--cream); border-radius: var(--radius-sm); padding: 0 14px; margin-bottom: 6px; box-shadow: var(--shadow); }
.plan-faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; min-height: 46px; display: flex; align-items: center; }
.plan-faq p { margin: 0 0 12px; color: var(--espresso-soft); font-size: 14px; line-height: 1.5; }
.plan-faq a { color: var(--sage-dark); }
.plan-book {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream); border-radius: var(--radius); padding: 16px; margin: 0 0 24px; box-shadow: var(--shadow);
}
.plan-book h2 { font-size: 1.2rem; margin: 2px 0 2px; }
.plan-book p { margin: 0; color: var(--espresso-soft); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 34px; border-top: 1px solid var(--line); padding: 18px 0 24px;
  color: var(--espresso-soft); font-size: 13px;
}
.site-footer a { color: var(--espresso); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--paprika); }
.footer-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; margin-top: 8px; }
.footer-credit { margin-top: 14px; font-size: 12px; color: var(--espresso-soft); }
.site-footer .footer-credit a { font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.footer-row a { display: flex; align-items: center; min-height: 38px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) {
  .footer-row { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .footer-row a { min-height: 32px; border-bottom: 0; }
}

/* ---------------------------------------------------- legacy, still used */
.rotator-card { display: block; text-decoration: none; color: inherit; background: var(--cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rotator-photo { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-dim); }
.rotator-photo img { width: 100%; height: 100%; object-fit: cover; }
.rotator-body { padding: 12px 14px 14px; }
.rotator-kicker { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--paprika); margin-bottom: 4px; }
.rotator-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.rotator-body p { color: var(--espresso-soft); font-size: 14px; margin: 0; }

/* Rails become a four-up row on desktop; extra tiles are for swiping only. */
@media (min-width: 900px) { .post-grid.is-rail .post-card:nth-child(n + 5) { display: none; } }
.hero-in { padding-bottom: 0; }
.hero-in .search-form { margin-top: 0; }
.filter-bar.is-directory { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
.brand { min-height: 40px; }
