/* Shared 720px shell and the category-driven homepage. */
:root { --feed-width: 720px; --feed-gutter: 20px; --feed-ink: #36352f; --feed-paper: #f5f2e9; --feed-rule: rgba(54,53,47,.17); }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body { color: var(--feed-ink); }
body #stage { position: relative; padding: 0; overflow: visible; }
/* Each public page gets its two outer gutters here, once. */
#stage > .site-header, #stage > #page, #stage > footer {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--feed-width);
  margin-inline: auto;
  padding-inline: var(--feed-gutter);
}
.site-nav, .feed-shell { font-family: trade-gothic-next-condensed, sans-serif; }
.site-header { padding-block: 32px 28px; }
#stage .site-nav { display: flex; flex-direction: row; align-items: center; justify-content: space-between; position: relative; width: 100%; height: auto; margin: 0; }
#stage .site-nav > .site-brand { display: block; width: 240px; max-width: calc(100% - 64px); }
.site-brand img { display: block; width: 100%; height: auto; margin: 0; }
.site-menu-control { position: relative; }
.site-nav { min-height: 44px; }
.site-menu-toggle { display: grid; place-items: center end; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--feed-ink); cursor: pointer; }
.site-menu-toggle svg { width: 16px; height: 24px; }
.site-menu-toggle:hover { color: #c44984; }
.site-menu { position: absolute; right: 0; top: calc(100% + 10px); display: flex; flex-direction: column; gap: 0; z-index: 30; min-width: 160px; padding: 8px; background: var(--feed-paper); border: 1px solid var(--feed-rule); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.site-menu a { display: block; padding: 12px 16px; color: var(--feed-ink); text-decoration: none; font-size: 16px; line-height: 1.3; border-radius: 4px; }
.site-menu a:hover { background: rgba(54,53,47,.06); }
.feed-shell { width: 100%; }
.feed-intro { padding-block: 4px 34px; }
#stage #page .feed-intro p { font-size: 18px; line-height: 1.55; margin: 0; font-weight: 400; }
#stage #page .bio-read-more { white-space: nowrap; text-decoration: none; }
#stage #page .bio-read-more:hover { box-shadow: none; }
.feed-controls-sentinel { height: 1px; margin-bottom: -1px; }
.feed-controls { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 0; box-sizing: border-box; background: var(--feed-paper); }
.feed-controls > .site-menu-control { position: absolute; right: 0; }
#feed-title { margin: 0 auto; font: inherit; font-size: 18px; line-height: 1.25; color: var(--feed-ink); text-align: center; }
.feed-tabs { display: flex; flex: 1; align-items: center; justify-content: center; gap: 18px; min-width: 0; }
.feed-tab { display: block; position: relative; --tab-side-padding: 14px; padding: 10px var(--tab-side-padding); color: #77746c; font-family: inherit; font-size: 16px; line-height: 20px; text-decoration: none; white-space: nowrap; transition: color 150ms ease; }
.feed-tab::after { content: ''; position: absolute; bottom: 3px; inset-inline: var(--tab-side-padding); height: 1px; background: transparent; }
.feed-tab[aria-selected=true] { color: var(--feed-ink); }
.feed-tab[aria-selected=true]::after { background: currentColor; }
.feed-tab:hover { color: var(--feed-ink); }
.feed-back { position: absolute; left: 0; display: grid; place-items: center start; width: 44px; height: 44px; color: var(--feed-ink); text-decoration: none; }
.feed-back svg { width: 12px; height: 24px; }
.feed-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; width: 100%; background: var(--feed-paper); }
.feed-tile { display: block; position: relative; aspect-ratio: 4 / 5; min-width: 0; overflow: hidden; background: #e5e1d7; scroll-margin-top: 64px; }
.feed-tile img, .feed-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.feed-tile:hover img { filter: brightness(.95); }
.feed-video-mark { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
body #stage #page .feed-posts { max-width: var(--feed-width); }
body #stage #page .feed-posts .post { margin: 0 0 32px; scroll-margin-top: 68px; }
body #stage #page .feed-posts .post img { display: block; }
body #stage #page .posts .glide__arrow--left { left: 12px; }
body #stage #page .posts .glide__arrow--right { right: 12px; }
#stage #page .feed-posts .post .desc { padding-block: 20px 24px; }
body #stage #page .feed-posts .desc h3 { font-size: 21px; line-height: 1.35; font-weight: 400; }
body #stage #page .feed-posts .desc p { font-size: 17px; line-height: 1.5; }
body.feed-detail .site-header { display: none; }
.feed-load-more { padding: 12px 20px 28px; text-align: center; }
.feed-load-button { padding: 10px 20px; border: 1px solid var(--feed-rule); border-radius: 999px; background: transparent; color: var(--feed-ink); font: inherit; cursor: pointer; }
.feed-load-button:disabled { opacity: .5; cursor: wait; }
.feed-load-more.is-error .feed-load-button { border-color: #a55d42; }
#stage > footer { padding-block: 32px; }
#bow #stage #page .text { padding-inline: 0; }
#bio td:first-child { padding-inline-start: 0; }
#bio td:last-child { padding-inline-end: 0; }
.mc-form .combo { max-width: 360px; margin-inline: auto; }
@media (max-width: 430px) {
  .mc-form .combo { max-width: 230px; text-align: center; }
}
@media (min-width: 431px) {
  .mc-form .combo { display: flex; }
  .mc-form .combo input[type=email] { flex: 1; min-width: 0; }
}
@media (max-width: 1000px) {
  #bio td { padding-inline: 0; }
}
button:focus-visible, a:focus-visible { outline: 2px solid #8a6b52; outline-offset: 4px; }
@media (max-width: 700px) {
  .feed-shell[data-view=feed] { width: auto; margin-inline: calc(0px - var(--feed-gutter)); }
  [data-view=feed] .feed-back { left: var(--feed-gutter); }
  [data-view=feed] .feed-controls > .site-menu-control { right: var(--feed-gutter); }
}
@media (max-width: 500px) {
  :root { --feed-gutter: 18px; }
  .site-header { padding-block: 24px 20px; }
  #stage .site-nav > .site-brand { width: 218px; }
  .feed-intro { padding-block: 2px 24px; }
  #stage #page .feed-intro p { font-size: 16px; line-height: 1.5; }
  .feed-controls { min-height: 58px; padding: 7px 0; gap: 7px; }
  .feed-tabs { gap: 5px; }
  .feed-tab { --tab-side-padding: 11px; padding-block: 9px; font-size: 14px; }
  .feed-tile { scroll-margin-top: 58px; }
}
@media (max-width: 380px) {
  .feed-tab { --tab-side-padding: 5px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .feed-tab { transition: none; } }
