/* The feed pages' scaffold: /events, /market, /podcasts and /articles
 * (rails-homepage, 2026-11). Fonts, reset, the base tokens index.html keeps
 * inline, and the page's title block and shell. The feeds themselves (panels,
 * cards, boxes, modals) are feeds.css, shared with the homepage's modals. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-display.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-italic.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Never let the page itself scroll sideways (a wide child would otherwise
   leave fixed modals off to the right on a phone). */
html, body { overflow-x: hidden; max-width: 100vw; }

:root {
  --cream:   #f5eedc;
  --cream-d: #ede3c8;
  --navy:    #3a3125;
  --navy-l:  #3a2f28;
  --green:   #5e7d3a;
  --green-d: #46602c;
  --orange:  #f7931a;
  --orange-d:#d97b0e;
  --text:    #2d2010;
  --muted:   #6b5a3e;
  --border:  #d4c4a0;
  --white:   #fffdf7;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  /* The homepage's feeds section sat on white with the cream shell inside;
     the pages keep that. */
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  color-scheme: light;
}
a { color: var(--green-d); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-d); }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Title block (the homepage's section-title scaffold) ── */
.home-module { max-width: var(--feed-track, 60rem); margin: 0 auto; padding: 1.5rem 1.25rem; }
.home-module-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.home-module-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.15rem;
}
.home-module-title a { color: inherit; text-decoration: none; }
.home-module-title a:hover { color: var(--green-d); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.feed-page-sub { margin-top: 0.3rem; color: var(--muted); font-size: 0.98rem; max-width: 46rem; }
.feed-page-sub a { color: var(--green-d); }
.feed-page { padding-top: 0.5rem; }
.feeds-title { padding-bottom: 0.9rem; }
.feeds-title .home-module-head { margin-bottom: 0; }

/* The page's shell is the homepage's: a cream card at the column's width.
   The lid (tab chrome) is gone, so the panel starts at the top edge. */
.feeds-shell-wrap { max-width: var(--feed-track, 60rem); margin: 0 auto; padding: 0 1.25rem 2rem; }
.feeds-shell { border: 1px solid var(--border); border-radius: 14px; background: var(--cream); overflow: clip; }
.feed-panels-inner { padding-top: 1.25rem; }
@media (max-width: 640px) {
  .feeds-shell-wrap { padding: 0 0 2rem; }
  .feeds-shell { border-left: 0; border-right: 0; border-radius: 0; }
}
