@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400;500;600;700&family=Public+Sans:wght@300;400;500;600;700&display=swap');

/* =============================================
   CSS 自定义属性
   ============================================= */
:root {
  --c-primary: #eb879c;
  --c-primary-dark: #d4607a;
  --c-primary-light: #f5b8c8;
  --c-secondary: #ffb6c1;
  --c-ink: #26171a;
  --c-ink-80: #3e2428;
  --c-ink-60: #664850;
  --c-ink-40: #9d7a80;
  --c-bg: #fdf6f8;
  --c-bg-card: #ffffff;
  --c-bg-aside: #fef0f3;
  --c-border: #f0d8dc;

  --ff-title: 'Libre Bodoni', Georgia, serif;
  --ff-body: 'Public Sans', system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;
  --r-card: 0px;

  --shadow-card: 0 2px 8px rgba(38,23,26,.08), 0 1px 2px rgba(38,23,26,.04);
  --shadow-card-hover: 0 6px 20px rgba(38,23,26,.13), 0 2px 6px rgba(38,23,26,.07);
  --shadow-aside: 0 2px 12px rgba(38,23,26,.07);

  --nav-h: 64px;
  --prose-max: 740px;
  --layout-max: 1200px;

  --anim: 220ms ease;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  padding-bottom: var(--nav-h);
}

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

a { color: var(--c-primary-dark); text-decoration: none; transition: color var(--anim); }
a:hover { color: var(--c-primary); }
a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol { padding-left: 1.4em; }
li { margin-bottom: .3em; }

h1, h2, h3, h4 {
  font-family: var(--ff-title);
  line-height: 1.25;
  color: var(--c-ink);
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); margin-bottom: .5em; }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); margin-bottom: .35em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

time { color: var(--c-ink-60); font-size: .85rem; }

/* =============================================
   Eyebrow / Small label
   ============================================= */
small.eyebrow {
  display: block;
  font-family: var(--ff-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  margin-bottom: .45em;
}

/* =============================================
   Buttons
   ============================================= */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .5em 1.4em;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 600;
  border: 2px solid var(--c-primary);
  color: var(--c-primary-dark);
  background: transparent;
  transition: background var(--anim), color var(--anim), box-shadow var(--anim), transform var(--anim);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-pill:hover {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(235,135,156,.35);
  transform: translateY(-1px);
}
.btn-pill:focus-visible {
  outline: 3px solid var(--c-primary-dark);
  outline-offset: 3px;
}
.btn-pill--primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-pill--primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
}
.btn-pill--light {
  background: #fff;
  color: var(--c-ink);
  border-color: #fff;
}
.btn-pill--light:hover {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  color: var(--c-ink);
}
.btn-pill--sm {
  min-height: 36px;
  padding: .4em 1em;
  font-size: .8rem;
}

/* =============================================
   Layout wrapper
   ============================================= */
.site-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 960px) {
  .site-wrapper {
    flex-direction: row;
    align-items: flex-start;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    gap: 2.5rem;
  }
}

main {
  flex: 1;
  min-width: 0;
}

.wrap {
  width: 100%;
}

/* =============================================
   Global Aside
   ============================================= */
.global-aside {
  width: 100%;
  background: var(--c-bg-aside);
  padding: 1.5rem;
}

@media (min-width: 960px) {
  .global-aside {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 1.5rem;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-aside);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
  }
}

.aside-inner {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.aside-title {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--c-ink);
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.aside-list dt,
.aside-list dd {
  margin: 0;
  padding: 0;
}

.aside-list dt a,
.aside-list dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: .35em .6em;
  border-radius: var(--r-sm);
  font-size: .875rem;
  color: var(--c-ink-80);
  transition: background var(--anim), color var(--anim);
}

.aside-list dt a:hover,
.aside-list dd a:hover {
  background: var(--c-primary-light);
  color: var(--c-ink);
}

.aside-list--related dd a {
  flex-direction: column;
  align-items: flex-start;
  min-height: auto;
  padding: .5em .6em;
  gap: .15em;
}

.related-item__title { font-weight: 500; font-size: .875rem; }
.related-item__date { font-size: .75rem; color: var(--c-ink-40); }

.aside-cta { margin-top: .5rem; width: 100%; text-align: center; }

/* =============================================
   Hero — Home
   ============================================= */
.hero {
  padding: 2rem 1rem;
  background: var(--c-bg);
}

@media (min-width: 960px) {
  .hero { padding: 0; }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 50vh;
}

@media (min-width: 700px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    min-height: 70vh;
    gap: 2.5rem;
  }
}

.hero__media {
  flex: 1;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--r-md);
}

.hero__media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
}

.hero__placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-primary-light) 100%);
  border-radius: var(--r-md);
}

.hero__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 700px) {
  .hero__text {
    align-items: flex-start;
    text-align: left;
  }
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--c-ink-60);
  max-width: 46ch;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

/* =============================================
   Home Sections
   ============================================= */
.home-content {
  padding: 2rem 1rem;
  border-top: 1px solid var(--c-border);
}

@media (min-width: 960px) {
  .home-content { padding: 2.5rem 0; }
}

.home-content__body .prose { max-width: var(--prose-max); }

.home-sections {
  padding: 2rem 1rem;
  background: var(--c-bg);
}

@media (min-width: 960px) {
  .home-sections { padding: 2.5rem 0; }
}

.home-sections__inner,
.home-latest__inner {
  max-width: 100%;
}

.sec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 600px) {
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
}

.sec-card {
  background: var(--c-bg-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--anim), transform var(--anim);
  border: 1px solid var(--c-border);
}

.sec-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.sec-card__img { overflow: hidden; }
.sec-card__img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 300ms ease;
}
.sec-card:hover .sec-card__img img { transform: scale(1.03); }

.sec-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.sec-card__body h3 { font-size: 1.05rem; }
.sec-card__body h3 a { color: var(--c-ink); }
.sec-card__body h3 a:hover { color: var(--c-primary-dark); }
.sec-card__body p { font-size: .875rem; color: var(--c-ink-60); line-height: 1.5; margin: 0; }

/* =============================================
   Home Latest
   ============================================= */
.home-latest {
  padding: 2rem 1rem;
  border-top: 1px solid var(--c-border);
}

@media (min-width: 960px) {
  .home-latest { padding: 2.5rem 0; }
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 600px) {
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .latest-grid { grid-template-columns: repeat(3, 1fr); }
}

.latest-item {
  padding: 1rem 1.25rem;
  background: var(--c-bg-card);
  border-left: 3px solid var(--c-primary);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--anim), transform var(--anim);
}

.latest-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.latest-item__meta { margin-bottom: .3em; }
.latest-item__title { font-size: 1rem; margin-bottom: .3em; }
.latest-item__title a { color: var(--c-ink); }
.latest-item__title a:hover { color: var(--c-primary-dark); }
.latest-item__desc { font-size: .825rem; color: var(--c-ink-60); line-height: 1.5; margin: 0; }

/* =============================================
   Page Hero (section, tag, etc.)
   ============================================= */
.page-hero {
  padding: 2rem 1rem 1.5rem;
  background: linear-gradient(160deg, var(--c-secondary) 0%, var(--c-bg) 60%);
}

@media (min-width: 960px) {
  .page-hero { padding: 2.5rem 0 2rem; border-radius: var(--r-md); }
}

.page-hero--section {
  background: linear-gradient(155deg, #fde8ed 0%, var(--c-bg) 65%);
}

.page-hero__inner {
  max-width: var(--prose-max);
}

.page-hero__desc {
  color: var(--c-ink-60);
  font-size: 1rem;
  max-width: 55ch;
  margin: 0;
}

/* =============================================
   Section Layout
   ============================================= */
.section-body {
  padding: 1.5rem 1rem;
}

@media (min-width: 960px) {
  .section-body { padding: 2rem 0; }
}

.section-body__content {
  max-width: 100%;
}

.section-index {
  margin-top: 2.5rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 600px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}

.story-card {
  background: var(--c-bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--anim), transform var(--anim);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
}

.story-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.story-card__img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.story-card__body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.story-card__meta { font-size: .8rem; color: var(--c-ink-40); }
.story-card__body h3 { font-size: .975rem; }
.story-card__body h3 a { color: var(--c-ink); }
.story-card__body h3 a:hover { color: var(--c-primary-dark); }
.story-card__body p { font-size: .825rem; color: var(--c-ink-60); line-height: 1.5; margin: 0; }

/* =============================================
   Table
   ============================================= */
.section-table {
  margin-top: 2.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-bg-card);
  font-size: .875rem;
}

thead th {
  background: var(--c-primary);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 600;
  padding: .75rem 1rem;
  text-align: left;
}

tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background var(--anim);
}

tbody tr:hover { background: var(--c-bg-aside); }
tbody tr:last-child { border-bottom: none; }

td {
  padding: .7rem 1rem;
  vertical-align: top;
  color: var(--c-ink-80);
}

td a { color: var(--c-primary-dark); font-weight: 500; }
td a:hover { color: var(--c-primary); }

/* =============================================
   Story Layout
   ============================================= */
.story-header {
  padding: 2rem 1rem 1.5rem;
  background: linear-gradient(155deg, #fde8ed 0%, var(--c-bg) 60%);
}

@media (min-width: 960px) {
  .story-header { padding: 2.5rem 0 2rem; }
}

.story-header__inner { max-width: var(--prose-max); }

.breadcrumb {
  font-size: .8rem;
  color: var(--c-ink-40);
  margin-bottom: .75rem;
}

.breadcrumb a { color: var(--c-ink-60); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { margin: 0 .3em; }

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--c-ink-60);
}

.date-mod { color: var(--c-ink-40); }

.story-hero-wrap {
  margin-top: 1.25rem;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.story-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.story-body {
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 960px) {
  .story-body { padding: 2rem 0 2.5rem; }
}

.story-body__content { max-width: var(--prose-max); }

/* =============================================
   Tag Layout
   ============================================= */
.tag-header {
  padding: 2rem 1rem 1.5rem;
  background: linear-gradient(155deg, var(--c-secondary) 0%, var(--c-bg) 60%);
}

@media (min-width: 960px) {
  .tag-header { padding: 2.5rem 0 2rem; border-radius: var(--r-md); }
}

.tag-header__inner { max-width: var(--prose-max); }

.tag-desc {
  color: var(--c-ink-60);
  max-width: 55ch;
  margin-top: .5rem;
}

.tag-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 .9em;
  border-radius: var(--r-pill);
  font-size: .8rem;
  font-weight: 600;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  color: var(--c-ink-80);
  transition: background var(--anim), color var(--anim);
}

.tag-chip:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

.tag-body {
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 960px) {
  .tag-body { padding: 2rem 0 2.5rem; }
}

.tag-body__content { max-width: 100%; }

.tag-table { margin-top: 2rem; }

/* =============================================
   About Layout
   ============================================= */
.about-header {
  padding: 2.5rem 1rem 2rem;
  background: linear-gradient(155deg, #fde8ed 0%, var(--c-bg) 65%);
}

@media (min-width: 960px) {
  .about-header { padding: 3rem 0 2rem; }
}

.about-header__inner { max-width: var(--prose-max); }

.about-logo-wrap { margin-bottom: 1rem; }
.about-logo-wrap img { max-height: 60px; width: auto; }

.about-lead {
  font-size: 1.05rem;
  color: var(--c-ink-60);
  max-width: 55ch;
  margin: 0;
}

.about-body {
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 960px) {
  .about-body { padding: 2rem 0 2.5rem; }
}

.about-body__content { max-width: var(--prose-max); }

.about-stats {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--c-bg-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
}

.stats-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}

.stat-num {
  font-family: var(--ff-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: var(--c-ink-60);
}

.about-nav-list { margin-top: 2.5rem; }

.sitemap-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.sitemap-list li {
  padding: .6em .8em;
  background: var(--c-bg-card);
  border-left: 3px solid var(--c-secondary);
  font-size: .9rem;
  color: var(--c-ink-60);
  margin: 0;
}

.sitemap-list li a {
  font-weight: 600;
  color: var(--c-ink);
}

/* =============================================
   Legal / Privacy Layout
   ============================================= */
.legal-header {
  padding: 2.5rem 1rem 2rem;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

@media (min-width: 960px) {
  .legal-header { padding: 3rem 0 2rem; }
}

.legal-header__inner { max-width: var(--prose-max); }

.legal-updated {
  font-size: .85rem;
  color: var(--c-ink-40);
  margin: .5rem 0 0;
}

.legal-body {
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 960px) {
  .legal-body { padding: 2rem 0 2.5rem; }
}

.legal-body__content { max-width: var(--prose-max); }

.legal-contact {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--c-bg-aside);
  border-radius: var(--r-md);
}

.legal-contact h2 { margin-bottom: .5em; }
.legal-contact p { margin-bottom: 1em; }

/* =============================================
   Default Layout
   ============================================= */
.default-header {
  padding: 2rem 1rem;
  background: var(--c-bg);
}

@media (min-width: 960px) {
  .default-header { padding: 2.5rem 0; }
}

.default-body {
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 960px) {
  .default-body { padding: 2rem 0 2.5rem; }
}

/* =============================================
   Prose content
   ============================================= */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ink-80);
  max-width: var(--prose-max);
}

.prose h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-top: 2em;
  margin-bottom: .5em;
  color: var(--c-ink);
  padding-bottom: .3em;
  border-bottom: 2px solid var(--c-secondary);
}

.prose h3 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-top: 1.5em;
  margin-bottom: .4em;
  color: var(--c-ink);
}

.prose p { margin-bottom: 1.1em; }

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.prose li { margin-bottom: .4em; line-height: 1.65; }

.prose strong { font-weight: 600; color: var(--c-ink); }

.prose a {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-decoration-color: var(--c-primary-light);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--c-primary);
  text-decoration-color: var(--c-primary);
}

.prose blockquote {
  margin: 1.5em 0;
  padding: .8em 1.2em;
  border-left: 4px solid var(--c-primary);
  background: var(--c-bg-aside);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--c-ink-60);
}

.prose img {
  border-radius: var(--r-sm);
  margin: 1.5em 0;
  box-shadow: var(--shadow-card);
}

.prose--legal { font-size: .95rem; }
.prose--legal h2 { font-size: 1.25rem; }

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,.85);
  margin-top: 3rem;
  padding-bottom: calc(var(--nav-h) + 1rem);
}

/* footer > section×n constraint */
.footer-cta {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(135deg, #3e2428 0%, var(--c-ink) 100%);
}

.footer-cta__inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.footer-cta__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary-light);
  margin: 0;
}

.footer-cta__title {
  font-family: var(--ff-title);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #fff;
  margin: 0;
}

.footer-nav {
  padding: 1.25rem 1.5rem;
}

.footer-nav nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .5rem;
  margin-bottom: .75rem;
}

.footer-nav nav dl dt,
.footer-nav nav dl dd {
  margin: 0;
}

.footer-nav nav dl dt a,
.footer-nav nav dl dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .2em .5em;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  transition: color var(--anim);
}

.footer-nav nav dl dt a:hover,
.footer-nav nav dl dd a:hover {
  color: var(--c-primary-light);
}

.footer-copy {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}

.footer-copy a {
  color: rgba(255,255,255,.55);
}

.footer-copy a:hover {
  color: var(--c-primary-light);
}

/* =============================================
   Bottom fixed nav bar
   ============================================= */
body::after {
  content: '';
  display: block;
  height: var(--nav-h);
}

/* The nav bar itself is in app.js — here we style it */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--c-bg-card);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -2px 12px rgba(38,23,26,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

.bottom-nav__brand {
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-ink);
  text-decoration: none;
  flex-shrink: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.bottom-nav__brand:hover { color: var(--c-primary-dark); }

.bottom-nav__pills {
  display: flex;
  align-items: center;
  gap: .4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  padding: 0 .75rem;
}

.bottom-nav__pills::-webkit-scrollbar { display: none; }

.bottom-nav__pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .35em .9em;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--c-ink-80);
  border: 1.5px solid var(--c-border);
  background: var(--c-bg);
  transition: background var(--anim), color var(--anim), border-color var(--anim);
  text-decoration: none;
  flex-shrink: 0;
}

.bottom-nav__pill:hover,
.bottom-nav__pill.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

.bottom-nav__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 0 .75em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--anim);
}

.bottom-nav__contact:hover {
  background: var(--c-primary-dark);
  color: #fff;
}

/* =============================================
   Scroll Reveal
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================
   Responsive helpers
   ============================================= */
@media (max-width: 959px) {
  .site-wrapper {
    padding: 0;
  }

  .global-aside {
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--c-border);
  }
}

@media (max-width: 599px) {
  body { font-size: 1rem; }

  .hero { padding: 1.25rem .75rem; }
  .hero__inner { min-height: auto; }
  .hero__media { min-height: 200px; }

  .home-sections,
  .home-content,
  .home-latest { padding: 1.5rem .75rem; }

  .section-body,
  .story-body,
  .tag-body,
  .about-body,
  .legal-body,
  .default-body { padding: 1.25rem .75rem 1.75rem; }

  .story-header,
  .page-hero,
  .tag-header,
  .about-header,
  .legal-header { padding: 1.5rem .75rem 1.25rem; }

  table { font-size: .8rem; }
  td, thead th { padding: .5rem .7rem; }

  .stats-row { gap: 1.25rem; }
}

/* =============================================
   Utility
   ============================================= */
.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;
}
