:root {
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --paper: #f7f6f3; --surface: #fff; --ink: #1e2a26; --ink-soft: #52605a;
  --label: #7c8783; --accent: #2f6b4f; --accent-ink: #23503c; --accent-soft: #e5ede7;
  --warn: #a9761f; --warn-soft: #f1e7d5; --rule: #e2e1db; --focus: #2f6b4f;
  --measure: 42rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141a18; --surface: #1c2422; --ink: #e9eae4; --ink-soft: #a7b0ab;
    --label: #7e8985; --accent: #6bb088; --accent-ink: #8ac6a4; --accent-soft: #22302a;
    --warn: #d6a24e; --warn-soft: #2c2617; --rule: #2a322f; --focus: #6bb088;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141a18; --surface: #1c2422; --ink: #e9eae4; --ink-soft: #a7b0ab;
  --label: #7e8985; --accent: #6bb088; --accent-ink: #8ac6a4; --accent-soft: #22302a;
  --warn: #d6a24e; --warn-soft: #2c2617; --rule: #2a322f; --focus: #6bb088;
}

* { box-sizing: border-box; }
html, body { background: var(--paper); }
html { overflow-x: hidden; }
body {
  margin: 0; color: var(--ink); max-width: 100vw; overflow-x: hidden;
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: calc(var(--measure) + 3rem); }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.site-header {
  border-bottom: 1px solid var(--rule); background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.05rem 0;
}
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; flex-shrink: 0; }

/* ---- hamburger (mobile only) ---- */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 2.25rem; height: 2.25rem; background: transparent; border: 1px solid var(--rule);
  border-radius: 6px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 1.1rem; height: 1.5px; margin: 0 auto; background: var(--ink-soft); transition: transform 0.15s ease, opacity 0.15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---- primary nav ---- */
.site-nav { display: flex; align-items: center; gap: 1.75rem; flex: 1; justify-content: flex-end; }
.nav-menu { display: flex; align-items: stretch; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item__row { display: flex; align-items: center; }
.nav-item > .nav-item__row > a {
  display: block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--label); text-decoration: none; padding: 0.6rem 0.6rem;
}
.nav-item > .nav-item__row > a:hover, .nav-item > .nav-item__row > a[aria-current="page"] { color: var(--accent); }
.nav-item__caret {
  display: flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem;
  margin-left: -0.35rem; background: none; border: 0; color: var(--label); cursor: pointer;
}
.nav-item__caret:hover { color: var(--accent); }
.nav-item--parent.is-open .nav-item__caret svg { transform: rotate(180deg); }
.nav-item__caret svg { transition: transform 0.15s ease; }

.nav-submenu {
  list-style: none; margin: 0; padding: 0.5rem; display: none;
  position: absolute; top: 100%; left: 0; min-width: 13rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 12px 28px -12px rgba(20, 26, 24, 0.22); z-index: 50;
}
.nav-item--parent.is-open .nav-submenu { display: block; }
.nav-submenu li + li { margin-top: 0.1rem; }
.nav-submenu a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 6px;
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); text-decoration: none;
}
.nav-submenu a:hover { background: var(--accent-soft); color: var(--accent-ink); }

.nav-tools { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--rule); color: var(--ink-soft);
  border-radius: 999px; width: 2.1rem; height: 2.1rem; font-family: var(--mono); cursor: pointer; line-height: 1;
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 62rem) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(20rem, 85vw); flex: none;
    background: var(--paper); border-left: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 1.25rem 1.25rem 2rem; gap: 1.5rem; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.2s ease; z-index: 45;
  }
  .site-nav.is-open { transform: translateX(0); box-shadow: -20px 0 40px -20px rgba(0,0,0,0.25); }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--rule); }
  .nav-item__row { justify-content: space-between; }
  .nav-item > .nav-item__row > a { padding: 0.85rem 0; font-size: 0.8rem; }
  .nav-item__caret { width: 2.25rem; height: 2.25rem; margin-left: 0; }
  .nav-submenu {
    position: static; display: none; border: 0; box-shadow: none; background: transparent;
    padding: 0 0 0.6rem 0.75rem; border-radius: 0;
  }
  .nav-item--parent.is-open .nav-submenu { display: block; }
  .nav-tools { justify-content: flex-start; padding-top: 0.5rem; }
}

main { padding: 3rem 0 4rem; }
.page-head { margin-bottom: 2.5rem; }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--label); margin: 0 0 0.9rem; }
.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6rem; text-wrap: balance; }
.page-intro { font-size: 1.12rem; color: var(--ink-soft); max-width: var(--measure); margin: 0; }

.thumb { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 8px; border: 1px solid var(--rule); background: var(--accent-soft); }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list > li { border-top: 1px solid var(--rule); }
.post-list > li:first-child { border-top: 0; }
.post-row { display: grid; grid-template-columns: 1fr 12rem; gap: 1.5rem 1.75rem; align-items: start; padding: 1.9rem 0; }
.post-row__body { display: grid; gap: 0.4rem; }
.post-row__meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.post-row__meta a { color: var(--accent); text-decoration: none; }
.post-row__title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.25; margin: 0.15rem 0 0; text-wrap: balance; }
.post-row__title a { color: var(--ink); text-decoration: none; }
.post-row__title a:hover { color: var(--accent); }
.post-row__excerpt { margin: 0.35rem 0 0; color: var(--ink-soft); max-width: var(--measure); }
@media (max-width: 620px) { .post-row { grid-template-columns: 1fr; } .post-row__thumb { order: -1; } .thumb { aspect-ratio: 16 / 9; } }

.featured { display: grid; gap: 1.4rem; padding-bottom: 2.5rem; border-bottom: 2px solid var(--ink); }
.featured__media { border-radius: 10px; border: 1px solid var(--rule); width: 100%; aspect-ratio: 16 / 8; object-fit: contain; background: var(--accent-soft); }
.featured__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.14; margin: 0.2rem 0 0; text-wrap: balance; }
.featured__title a { color: var(--ink); text-decoration: none; }
.featured__title a:hover { color: var(--accent); }
.featured__excerpt { margin: 0.4rem 0 0; color: var(--ink-soft); max-width: var(--measure); font-size: 1.08rem; }

.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; font-family: var(--mono); font-size: 0.85rem; }
.pagination a, .pagination span { padding: 0.5rem 0.85rem; border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; color: var(--ink-soft); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { border-color: var(--accent); color: var(--accent); }
.pagination .disabled { opacity: 0.4; }

.breadcrumb { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--label); margin: 0 0 1.4rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.article-hero { width: 100%; max-height: 26rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); margin: 0 0 2rem; }
.article-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 1rem; text-wrap: balance; }
.article-meta { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--label); display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.article-meta a { color: var(--accent); text-decoration: none; }

.prose { max-width: var(--measure); font-size: 1.09rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.25; margin-top: 2.4rem; text-wrap: balance; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; margin-top: 1.9rem; }
.prose h4 { font-size: 1.08rem; font-weight: 600; margin-top: 1.6rem; }
.prose a { color: var(--accent-ink); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.4rem; }
.prose img { border-radius: 8px; border: 1px solid var(--rule); margin: 1.6rem 0; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { font-size: 0.85rem; color: var(--label); margin-top: 0.5rem; font-family: var(--mono); }
.prose blockquote { margin: 1.6rem 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--accent-ink); }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.15rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.5rem 0 0; }
.chip { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.7rem; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

.disclaimer { max-width: var(--measure); margin: 3rem 0 0; padding: 1.2rem 1.3rem; background: var(--warn-soft); border-radius: 6px; font-size: 0.9rem; color: var(--ink-soft); }
.disclaimer strong { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; color: var(--warn); margin-bottom: 0.4rem; }

.related { margin: 3.5rem 0 0; border-top: 1px solid var(--rule); padding-top: 2rem; }
.related h2 { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--label); margin: 0 0 1.2rem; }
.related__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.related__item a.rt { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; color: var(--ink); text-decoration: none; display: block; margin-top: 0.6rem; }
.related__item a.rt:hover { color: var(--accent); }
.related__item p { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label); margin: 0.4rem 0 0; }

.search-form { display: flex; gap: 0.6rem; max-width: 30rem; margin: 0 0 2.5rem; }
.search-form input { flex: 1; font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
.search-form button { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0 1.1rem; border: 1px solid var(--accent); background: var(--accent); color: #0d1a13; border-radius: 6px; cursor: pointer; }

.site-footer { border-top: 1px solid var(--rule); background: var(--surface); padding: 3rem 0; margin-top: 2rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.site-footer h3 { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--label); margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.4rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
}
.site-footer__legal { margin: 0; font-size: 0.82rem; color: var(--label); max-width: 34rem; flex: 1 1 20rem; min-width: 0; }
.site-footer__legal-links {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; flex: 1 1 auto; min-width: 0; max-width: 100%;
  font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding-top: 0.15rem;
}
.site-footer__legal-links a { color: var(--ink-soft); text-decoration: none; }
.site-footer__legal-links a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .site-footer__legal-links { flex-basis: 100%; }
}

.empty-state { padding: 3rem 0; color: var(--ink-soft); font-family: var(--mono); font-size: 0.9rem; }

:where(a, button, summary, input):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 640px) { main { padding: 2rem 0 3rem; } }

/* ============ sidebar / two-column layout ============ */
.wrap--with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: 3.5rem;
  align-items: start;
  max-width: 66rem;
}
.wrap--with-sidebar .content-col { min-width: 0; }
@media (max-width: 60rem) {
  .wrap--with-sidebar { grid-template-columns: 1fr; gap: 2.5rem; }
  .sidebar { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
}

.sidebar { font-size: 0.95rem; position: sticky; top: 1.5rem; }
@media (max-width: 60rem) { .sidebar { position: static; } }
.sidebar__block { margin-bottom: 2rem; }
.sidebar__title {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--label); margin: 0 0 0.9rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule);
}
.sidebar__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.sidebar__links li { display: grid; gap: 0.15rem; }
.sidebar__links a {
  font-family: var(--serif); font-size: 1.02rem; line-height: 1.3;
  color: var(--ink); text-decoration: none;
}
.sidebar__links a:hover { color: var(--accent); }
.sidebar__date { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--label); }
.sidebar__topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.sidebar__topics li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.sidebar__topics a { color: var(--ink-soft); text-decoration: none; }
.sidebar__topics a:hover { color: var(--accent); }
.sidebar__count { font-family: var(--mono); font-size: 0.72rem; color: var(--label); }
.sidebar__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ============ article byline / author box ============ */
.author-box {
  display: flex; gap: 1.1rem; align-items: flex-start;
  max-width: var(--measure); margin: 2.5rem 0 0;
  padding: 1.4rem; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--surface);
}
.author-box__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__eyebrow { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--label); margin: 0 0 0.25rem; }
.author-box__name { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 0.4rem; }
.author-box__name a { color: var(--ink); text-decoration: none; }
.author-box__name a:hover { color: var(--accent); }
.author-box__role { font-family: var(--sans); font-size: 0.9rem; color: var(--label); font-weight: 400; }
.author-box__bio { margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.author-box__links { margin: 0; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.author-box__links a { color: var(--accent); text-decoration: none; }

/* ============ footer: about / social ============ */
.site-footer__blurb { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 0.9rem; max-width: 26rem; line-height: 1.65; }
.footer-about { grid-column: span 1; }
.footer-about__phone { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.footer-about__phone svg { color: var(--accent); flex-shrink: 0; }
.footer-about__phone a { color: var(--ink-soft); }
.footer-about__phone a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 0.65rem; margin-top: 2.2rem; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.social-icon:hover { filter: brightness(1.08); transform: translateY(-1px); }
.social-icon--facebook { background: #1877f2; }
.social-icon--x { background: #000000; }
.social-icon--instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-icon--pinterest { background: #e60023; }
.social-icon--youtube { background: #ff0000; }
:root[data-theme="dark"] .social-icon--x,
:root:not([data-theme="light"]) .social-icon--x { background: #ffffff; }
:root[data-theme="dark"] .social-icon--x svg *,
:root:not([data-theme="light"]) .social-icon--x svg * { fill: #000 !important; }

/* ============ comments ============ */
.comments { max-width: var(--measure); margin: 3.5rem 0 0; border-top: 1px solid var(--rule); padding-top: 2rem; }
.comments__heading { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0 0 1.4rem; }
.comments__flash {
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 6px; padding: 0.8rem 1rem; font-size: 0.92rem; margin: 0 0 1.5rem;
}
.comments__empty { color: var(--label); font-family: var(--mono); font-size: 0.85rem; }
.comments__list { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.6rem; }
.comment { border-bottom: 1px solid var(--rule); padding-bottom: 1.6rem; }
.comment:last-child { border-bottom: 0; }
.comment__meta { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label); margin: 0 0 0.4rem; display: flex; gap: 0.5rem; align-items: center; }
.comment__author { color: var(--ink); }
.comment__body { margin: 0; white-space: pre-wrap; }

.comment-form { position: relative; display: grid; gap: 0.9rem; max-width: var(--measure); }
.comment-form__heading { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 0; }
.comment-form__note { font-size: 0.85rem; color: var(--label); margin: 0; }
.comment-form__error { color: #b3261e; font-size: 0.88rem; margin: 0; }
:root[data-theme="dark"] .comment-form__error,
:root:not([data-theme="light"]) .comment-form__error { color: #f2b8b5; }
.comment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 34rem) { .comment-form__row { grid-template-columns: 1fr; } }
.comment-form label { display: grid; gap: 0.3rem; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label); }
.comment-form input, .comment-form textarea {
  font: inherit; font-family: var(--sans); text-transform: none; letter-spacing: normal;
  padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface); color: var(--ink); width: 100%;
}
.comment-form textarea { resize: vertical; }
.comment-form__submit {
  justify-self: start; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.7rem 1.4rem; border: 1px solid var(--accent); background: var(--accent); color: #0d1a13;
  border-radius: 6px; cursor: pointer;
}
.comment-form__submit:hover { filter: brightness(1.05); }

/* ============ ad slots ============ */
.ad-banner-wrap { background: var(--surface); border-bottom: 1px solid var(--rule); padding: 1rem 0; overflow: hidden; }
.ad-slot {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  width: 100%; max-width: 100%; overflow: hidden;
}
/* Google's responsive ad unit can otherwise inflate its own width past the
   viewport on mobile and drag the whole page into horizontal scroll with it. */
.ad-slot ins.adsbygoogle { max-width: 100%; overflow: hidden; }
.ad-slot__label {
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--label); opacity: 0.75;
}
.ad-slot__placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%;
  border: 1px dashed var(--rule); border-radius: 8px; background: var(--accent-soft);
  color: var(--label); font-family: var(--mono); font-size: 0.75rem; text-align: center;
  padding: 0.75rem;
}
.ad-slot--header { margin: 0; }
.ad-slot--sidebar { margin: 0 0 2rem; }
.ad-slot--in-article { margin: 1.8rem 0; }
.ad-slot--in-article .ad-slot__placeholder,
.ad-slot--sidebar .ad-slot__placeholder { margin: 0 auto; }

/* ============ homepage: hero slider ============ */
/* Slides stack image-then-text (no text-over-image overlay): the source graphics
   already carry their own baked-in headline text, so overlaying a second title
   on top of them reads as double-exposure. Keeping the two separate guarantees
   both stay legible regardless of what a given image looks like. */
.hero-slider {
  position: relative; border-radius: 12px; overflow: hidden;
  margin-bottom: 3rem; background: var(--surface); border: 1px solid var(--rule);
}
.hero-slider__viewport { position: relative; height: 29rem; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease;
  display: flex; flex-direction: column;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide__media { flex: 1 1 auto; min-height: 0; background: var(--accent-soft); }
.hero-slide__media a { display: block; width: 100%; height: 100%; }
.hero-slide__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-slide__body {
  flex: 0 0 auto; padding: 1.1rem clamp(1.1rem, 3vw, 1.7rem) 1.4rem;
  background: var(--surface); border-top: 1px solid var(--rule);
}
.hero-slide__meta {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--label); display: flex; gap: 0.5rem; align-items: center; margin: 0 0 0.4rem;
}
.hero-slide__meta a { color: var(--accent); text-decoration: none; }
.hero-slide__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.22; margin: 0 0 0.35rem; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-slide__title a { color: var(--ink); text-decoration: none; }
.hero-slide__title a:hover { color: var(--accent); }
.hero-slide__excerpt {
  font-size: 0.92rem; margin: 0; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.hero-slider__nav {
  position: absolute; top: calc(50% - 2.1rem); transform: translateY(-50%); z-index: 2;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.hero-slider__nav:hover { color: var(--accent); border-color: var(--accent); }
.hero-slider__nav--prev { left: 0.85rem; }
.hero-slider__nav--next { right: 0.85rem; }
.hero-slider__dots { position: absolute; bottom: 6.6rem; right: 1.25rem; z-index: 2; display: flex; gap: 0.4rem; }
.hero-slider__dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(0, 0, 0, 0.15); cursor: pointer; padding: 0; }
.hero-slider__dot.is-active { background: var(--accent); width: 1.15rem; border-radius: 999px; border-color: transparent; transition: width 0.2s ease; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
@media (max-width: 40rem) {
  .hero-slider__viewport { height: 32rem; }
  .hero-slider__nav { width: 2rem; height: 2rem; top: calc(50% - 3.2rem); }
  .hero-slider__dots { bottom: 8.4rem; }
}

/* ============ homepage: category shelves ============ */
.cat-shelf, .latest { margin-bottom: 3rem; }
.cat-shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--ink); }
.cat-shelf__title { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 0; }
.cat-shelf__title a { color: var(--ink); text-decoration: none; }
.cat-shelf__title a:hover { color: var(--accent); }
.cat-shelf__more { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); text-decoration: none; white-space: nowrap; }
.cat-shelf__more:hover { text-decoration: underline; }
.cat-shelf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem; }
.cat-card__media { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 8px; border: 1px solid var(--rule); background: var(--accent-soft); }
.cat-card__body { padding-top: 0.7rem; }
.cat-card__date { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label); margin: 0 0 0.3rem; }
.cat-card__title { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; line-height: 1.3; margin: 0; }
.cat-card__title a { color: var(--ink); text-decoration: none; }
.cat-card__title a:hover { color: var(--accent); }
