/* ==========================================================================
   Patrick Speters Photography — public site stylesheet
   Editorial, photography-first, minimal chrome. No frameworks.
   ========================================================================== */

:root {
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: #fbfaf8;
  --bg-elevated: #ffffff;
  --text: #171614;
  --text-muted: #5c584f;
  --text-faint: #8a8577;
  --border: #e6e2da;
  --border-strong: #cfc9bc;
  --accent: #171614;
  --accent-contrast: #fbfaf8;
  --danger: #a4342a;
  --focus: #1c6ef2;
  --overlay: rgba(15, 14, 12, 0.86);

  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --max-width: 1440px;
  --radius: 2px;
  --dur-fast: 150ms;
  --dur: 320ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110;
    --bg-elevated: #1a1917;
    --text: #f1efe9;
    --text-muted: #b4afa2;
    --text-faint: #7c7767;
    --border: #2c2a26;
    --border-strong: #3d3a34;
    --accent: #f1efe9;
    --accent-contrast: #121110;
    --overlay: rgba(8, 7, 6, 0.92);
  }
}
:root[data-theme="dark"] {
  --bg: #121110;
  --bg-elevated: #1a1917;
  --text: #f1efe9;
  --text-muted: #b4afa2;
  --text-faint: #7c7767;
  --border: #2c2a26;
  --border-strong: #3d3a34;
  --accent: #f1efe9;
  --accent-contrast: #121110;
  --overlay: rgba(8, 7, 6, 0.92);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
@media (max-width: 640px) { .container { padding: 0 var(--space-2); } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

.cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--bg-elevated); border-top: 1px solid var(--border-strong);
  box-shadow: 0 -4px 20px -8px rgba(0, 0, 0, 0.2);
}
.cookie-notice__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  flex-wrap: wrap;
}
.cookie-notice p { margin: 0; font-size: 0.85rem; color: var(--text-muted); max-width: 62ch; }
.cookie-notice p a { color: var(--text); border-bottom: 1px solid var(--text-faint); }
.cookie-notice .btn { flex: none; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   Header / navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand img { max-height: 64px; width: auto; }

.nav-primary { display: flex; align-items: center; gap: var(--space-4); }
.nav-primary__links { display: flex; gap: var(--space-3); }
.nav-primary__links a {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-primary__links a:hover,
.nav-primary__links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }

.nav-utility { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--border); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav-primary__links { display: none; }
  .menu-toggle { display: inline-flex; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform var(--dur) var(--ease);
  display: flex; flex-direction: column;
  padding: var(--space-3);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
.mobile-nav__links { display: flex; flex-direction: column; gap: var(--space-3); }
.mobile-nav__links a { font-family: var(--serif); font-size: 1.8rem; }

/* -------------------------------------------------------------------------
   Buttons / forms
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { opacity: 0.85; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.78rem; }

.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.field input[type="text"], .field input[type="email"], .field input[type="search"], .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field-error { color: var(--danger); font-size: 0.82rem; margin-top: 0.4rem; }
.field-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--text-muted); }
.field-check input { margin-top: 0.25rem; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: var(--space-3); font-size: 0.92rem; }
.alert--success { background: color-mix(in srgb, #2f7d4f 15%, var(--bg-elevated)); border: 1px solid #2f7d4f; }
.alert--error { background: color-mix(in srgb, var(--danger) 12%, var(--bg-elevated)); border: 1px solid var(--danger); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: min(88vh, 900px);
  min-height: 480px;
  overflow: hidden;
  background: #0e0d0c;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.15) 100%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-5) var(--space-3);
  color: #fff;
}
.hero__eyebrow { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; margin-bottom: var(--space-1); }
.hero__title { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 400; line-height: 1.05; max-width: 20ch; }
.hero__cta { margin-top: var(--space-3); }
.hero--empty {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--border) 0, var(--border) 1px, transparent 1px, transparent 14px);
}
.hero--empty .hero__placeholder-text { font-family: var(--serif); color: var(--text-faint); font-size: 1.4rem; }

/* -------------------------------------------------------------------------
   Sections / editorial blocks
   ------------------------------------------------------------------------- */
.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-4); gap: var(--space-3); flex-wrap: wrap; }
.section-heading h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-heading .link-more { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid var(--text-faint); padding-bottom: 2px; white-space: nowrap; }

.intro-block { max-width: 62ch; }
.intro-block h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; margin-bottom: var(--space-3); }
.intro-block p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.75; }

/* -------------------------------------------------------------------------
   Photo grid (portfolio / masonry-like)
   ------------------------------------------------------------------------- */
.photo-grid {
  columns: 3;
  column-gap: var(--space-2);
}
@media (max-width: 980px) { .photo-grid { columns: 2; } }
@media (max-width: 560px) { .photo-grid { columns: 1; column-gap: var(--space-3); } }

.photo-card {
  position: relative; overflow: hidden; background: var(--border);
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin-bottom: var(--space-2);
}
@media (max-width: 560px) { .photo-card { margin-bottom: var(--space-3); } }

/* Uniform variant: a small, fixed-size curated set (e.g. homepage "Recent &
   featured") reads cleaner as even tiles than as masonry — with only a
   handful of items, masonry's per-column height difference stands out. */
.photo-grid--uniform {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  columns: initial;
}
.photo-grid--uniform .photo-card { break-inside: auto; margin-bottom: 0; }
.photo-grid--uniform .photo-card__frame { aspect-ratio: 4/3; }
@media (max-width: 980px) { .photo-grid--uniform { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-grid--uniform { grid-template-columns: 1fr; } }

.photo-card a { display: block; position: relative; }
.photo-card__frame { display: block; position: relative; width: 100%; aspect-ratio: var(--ar, 4/3); overflow: hidden; }
.photo-card img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  transition: transform 700ms var(--ease);
  background: var(--border);
}
.photo-card a:hover img { transform: scale(1.035); }
.photo-card__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-2);
  background: linear-gradient(to top, rgba(0,0,0,0.62), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.photo-card a:hover .photo-card__caption,
.photo-card a:focus-visible .photo-card__caption { opacity: 1; transform: translateY(0); }
.photo-card__caption .t { font-family: var(--serif); font-size: 1rem; }
.photo-card__caption .c { font-size: 0.78rem; opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .photo-card img { transition: none; }
  .photo-card a:hover img { transform: none; }
}

.empty-state {
  padding: var(--space-6) var(--space-3);
  text-align: center;
  color: var(--text-faint);
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* Category filter chips */
.chip-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: var(--space-4); }
.chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.load-more-wrap { display: flex; justify-content: center; margin-top: var(--space-5); }

/* -------------------------------------------------------------------------
   Photo detail page
   ------------------------------------------------------------------------- */
.photo-detail__stage {
  background: #0c0b0a;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
}
.photo-detail__stage img { max-height: 84vh; width: auto; height: auto; margin: 0 auto; }
.photo-detail__body { padding: var(--space-5) 0; }
.photo-detail__grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-5); }
@media (max-width: 900px) { .photo-detail__grid { grid-template-columns: 1fr; gap: var(--space-4); } }

.photo-detail h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: var(--space-2); }
.photo-detail__meta-row { display: flex; gap: var(--space-3); color: var(--text-faint); font-size: 0.85rem; margin-bottom: var(--space-3); flex-wrap: wrap; }
.photo-detail__description { color: var(--text-muted); line-height: 1.8; margin-bottom: var(--space-4); }

.spec-panel { border-top: 1px solid var(--border); padding-top: var(--space-3); }
.spec-panel h3 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--space-2); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; margin-bottom: var(--space-4); }
.spec-list div { display: flex; flex-direction: column; }
.spec-list dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); }
.spec-list dd { margin: 0; font-size: 0.92rem; }
.spec-list dd a { border-bottom: 1px solid var(--text-faint); }
.spec-list dd a:hover { border-color: var(--text); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-4); }
.tag-list a { font-size: 0.78rem; padding: 0.35rem 0.75rem; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-muted); }
.tag-list a:hover { color: var(--text); border-color: var(--text); }

.share-row { display: flex; gap: 0.75rem; align-items: center; }

.photo-nav {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0; margin: var(--space-4) 0;
}
.photo-nav a { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.photo-nav a:hover { color: var(--text); }
.photo-nav__center a { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }


/* -------------------------------------------------------------------------
   Collections
   ------------------------------------------------------------------------- */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .collection-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .collection-grid { grid-template-columns: 1fr; } }
.collection-card__frame { aspect-ratio: 4/5; overflow: hidden; background: var(--border); margin-bottom: var(--space-2); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.collection-card:hover img { transform: scale(1.04); }
.collection-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.collection-card p { color: var(--text-faint); font-size: 0.85rem; margin-top: 0.3rem; }

.collection-hero { padding: var(--space-5) 0 var(--space-4); border-bottom: 1px solid var(--border); }
.collection-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-2); }
.collection-hero p { max-width: 60ch; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* -------------------------------------------------------------------------
   Gear
   ------------------------------------------------------------------------- */
.gear-group { margin-bottom: var(--space-5); }
.gear-group h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: var(--space-3); padding-bottom: var(--space-1); border-bottom: 1px solid var(--border); }
.gear-archived { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.gear-archived .gear-item__thumb { opacity: 0.6; }
.gear-archived .gear-item__name { color: var(--text-muted); }
.gear-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .gear-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gear-list { grid-template-columns: 1fr; } }
.gear-item { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--border); transition: opacity 120ms ease; }
a.gear-item:hover { opacity: 0.7; }
.gear-item__thumb { width: 120px; height: 120px; flex: none; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gear-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gear-item__name { font-weight: 600; font-size: 0.95rem; }
.ext-link { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); }

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: var(--space-5); align-items: start; }
.about-grid--no-portrait { grid-template-columns: 1fr; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-portrait { aspect-ratio: 4/5; background: var(--border); overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-body h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: var(--space-3); }
.about-body p { color: var(--text-muted); line-height: 1.85; margin-bottom: var(--space-2); }
.about-meta { margin-top: var(--space-4); display: flex; gap: var(--space-4); flex-wrap: wrap; }
.about-meta div dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 0.2rem; }
.about-meta div dd { margin: 0; font-size: 0.92rem; }
.social-links { display: flex; gap: 0.9rem; margin-top: var(--space-3); }
.social-links a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--text-faint); }

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-5); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Map
   ------------------------------------------------------------------------- */
#photo-map { width: 100%; height: 72vh; min-height: 480px; background: var(--border); }
.map-popup { text-align: center; }
.map-popup img { width: 160px; height: 110px; object-fit: cover; margin-bottom: 0.5rem; }
.map-popup .t { font-family: var(--serif); font-size: 0.95rem; }
.map-popup .l { font-size: 0.78rem; color: #666; }
.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.photo-marker { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); }
.photo-mini-map {
  width: 100%; height: 160px; border-radius: var(--radius); overflow: hidden;
  background: var(--border); cursor: pointer;
}
.photo-mini-map:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.photo-mini-map .leaflet-control-attribution { font-size: 0.65rem; }

/* -------------------------------------------------------------------------
   Search
   ------------------------------------------------------------------------- */
.search-form { max-width: 560px; margin-bottom: var(--space-4); }
.search-form .field { margin: 0; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-5) 0 var(--space-4); margin-top: var(--space-6); }
.site-footer__grid { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
.site-footer__brand { font-family: var(--serif); font-size: 1.2rem; }
.site-footer__tagline { color: var(--text-faint); font-size: 0.85rem; margin-top: 0.4rem; max-width: 32ch; }
.site-footer nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-footer nav a { font-size: 0.85rem; color: var(--text-muted); }
.site-footer nav a:hover { color: var(--text); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-faint); }

.footer-newsletter { max-width: 22rem; }
.footer-newsletter__label { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-newsletter__copy { color: var(--text-faint); font-size: 0.85rem; margin-bottom: var(--space-2); }
.footer-newsletter__more { display: inline-block; margin-top: 0.6rem; font-size: 0.78rem; color: var(--text-muted); border-bottom: 1px solid var(--text-faint); }
.footer-newsletter__more:hover { color: var(--text); }
.footer-newsletter__consent { margin-top: 0.6rem; font-size: 0.74rem; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--bg-elevated); color: var(--text); font-size: 0.88rem;
}
.newsletter-form input[type="email"]:focus { border-color: var(--text); outline: none; }
.newsletter-points { margin-top: var(--space-3); color: var(--text-muted); font-size: 0.92rem; padding-left: 1.1rem; }
.newsletter-points li { margin-bottom: 0.5rem; }

.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;
}
.theme-switch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.theme-switch button { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-transform: uppercase; color: var(--text-faint); }
.theme-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: var(--space-5); }
.pagination a, .pagination span { padding: 0.5rem 0.9rem; font-size: 0.85rem; border: 1px solid var(--border-strong); }
.pagination a:hover { border-color: var(--text); }
.pagination .is-current { background: var(--text); color: var(--bg); border-color: var(--text); }

/* -------------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------------- */
.breadcrumbs { font-size: 0.78rem; color: var(--text-faint); margin-bottom: var(--space-3); }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span[aria-hidden] { margin: 0 0.4rem; }

/* -------------------------------------------------------------------------
   Utility
   ------------------------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }

/* -------------------------------------------------------------------------
   Scroll reveal (respects reduced motion)
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
