/* ================================================================
   STEVEN TROTTER BLOG — main.css
   WCAG 2.2 AAA compliant
   Contrast verified:
     Dark  primary:   #f0ede8 on #221e15 → ~12:1
     Dark  secondary: #a8a5a0 on #221e15 → ~6.8:1 — used only for UI labels
     Light primary:   #0c0b09 on #f0ede8 → ~17:1
     Light secondary: #4e4b48 on #f0ede8 → ~7.5:1
================================================================ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  /* Artifact Futurism palette */
  --paper: #F4F1E9; --paper-raised: #FBF9F4; --putty: #E7E3D6; --rule: #D8D2C2;
  --ink: #1B1A17; --muted: #5F5B51;
  --accent: #784A9D; --accent-deep: #5C3879;
  --ochre: #D9A93C; --ochre-deep: #7A6210;
  --accent3: #2E8B7F; --accent3-deep: #1F5A52;
  --highlight: #D9A93C;
  /* extended palette - mirrors steventrotter.com st.css (Atlas harvest 2026-06-14); additive only */
  --bg2: #ECE7D9; --border-hair: #E4DFD1; --text3: #7A756A;
  --violet-mid: #8A6BB0; --indigo: #5A4F8A; --coral: #B5546E;
  --status-green: #2E7D52; --status-amber: #B07A1E; --status-red: #9E3B3B;
  --tint-violet: #ECE4F3; --tint-amber: #F7EED8; --tint-teal: #E3F0EC; --tint-coral: #F0DCE0;
  --heat-1: #E0D2EC; --heat-2: #C3A9DC; --heat-3: #9B72C0; --heat-4: #5C3879;
  --seg-1: #784A9D; --seg-2: #2E8B7F; --seg-3: #C58A1E; --seg-4: #B5546E; --seg-5: #4A6B82;
  --seg-6: #6E8B5A; --seg-7: #8A6BB0; --seg-8: #B26A3C; --seg-9: #5A4F8A; --seg-10: #7E6A3A;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-serif: 'Lora', Georgia, serif;
  --ease-mech: cubic-bezier(0.2, 0, 0, 1);
  /* legacy theme tokens remapped to the AF light palette */
  --bg: #F4F1E9; --bg-2: #FBF9F4; --text: #1B1A17; --text-2: #5F5B51; --text-3: #BDB6A6;
  --border: #D8D2C2; --focus: #784A9D;
  --hl-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M2 12.4 C1.6 6 5.5 3 13 2.8 C39 0.9 62 3.9 85 2.4 C93.5 1.9 98.7 5 98.4 12 C98.9 18.8 93.5 21.4 86 21.5 C59 23.6 37 19.8 13.5 21.6 C6 22 1.7 18.8 2 12.4 Z' fill='%23F7E5A3'/%3E%3C/svg%3E");
  --hl-brush-purple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M2 12.4 C1.6 6 5.5 3 13 2.8 C39 0.9 62 3.9 85 2.4 C93.5 1.9 98.7 5 98.4 12 C98.9 18.8 93.5 21.4 86 21.5 C59 23.6 37 19.8 13.5 21.6 C6 22 1.7 18.8 2 12.4 Z' fill='%23E3D4F5'/%3E%3C/svg%3E");
}


/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: clip; /* prevents horizontal scroll from full-bleed elements */
}
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Override plugin-injected body backgrounds */
img { display: block; max-width: 100%; height: auto; }
ul  { list-style: none; }
a   { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ── Accessibility ───────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -9999px; left: 1rem;
  background: var(--text); color: var(--bg);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 0.5rem 1rem; z-index: 9999;
}
.skip-link:focus { top: 0; outline: 3px solid var(--focus); }

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

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

/* ── Layout ──────────────────────────────────────────────────── */
.wrap      { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }
.wrap--mid { max-width: 900px;  margin: 0 auto; padding: 0 2.5rem; }
.wrap--sm  { max-width: 720px;  margin: 0 auto; padding: 0 2.5rem; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  transition: background 0.2s ease;
}
/* Account for WP admin bar */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 3.25rem;
}

.site-logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text);
  transition: opacity 0.15s;
}
.site-logo:hover { opacity: 0.6; text-decoration: none; }
/* Logo bee - gold in all dark modes, matches brand */
:root .site-logo__bee,
[data-theme="brown"] .site-logo__bee,
[data-theme="black"] .site-logo__bee { color: var(--accent); width: 1.5rem; height: 1.3rem; flex-shrink: 0; }
[data-theme="light"] .site-logo__bee { color: var(--text); }

.site-logo__name {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 1.375rem; line-height: 1;
}

/* Active nav item uses accent underline in dark mode */
.site-nav .site-nav__list .current-menu-item > a,
.site-nav .site-nav__list .current-menu-ancestor > a,
.site-nav .site-nav__list .current_page_item > a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Uploaded logo switching */
.site-logo__img {
  height: 32px; width: auto; display: block; flex-shrink: 0;
}
.site-logo__img--dark  { display: block; }
.site-logo__img--light { display: none; }
[data-theme="light"] .site-logo__img--dark  { display: none; }
[data-theme="light"] .site-logo__img--light { display: block; }
.site-logo__img--only  { display: block !important; }

.site-nav { display: flex; align-items: center; gap: 0.125rem; }
.site-nav .site-nav__list {
  display: flex; align-items: center; list-style: none;
  margin: 0; padding: 0;
}
.site-nav .site-nav__list li { margin: 0; padding: 0; }
.site-nav .site-nav__list a,
.site-nav .site-nav__list a:visited {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding: 0.375rem 0.625rem;
  border-radius: 2px;
  transition: opacity 0.15s;
  display: block;
}
.site-nav .site-nav__list a:hover { opacity: 0.6; text-decoration: underline; }

/* Three-dot theme switcher */
.theme-switcher {
  display: flex; align-items: center; gap: 0;
  margin-left: 0.375rem;
}
.theme-dot {
  background: none; border: none; cursor: pointer;
  padding: 0.375rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.theme-dot:hover { background: rgba(128,128,128,0.12); }
.theme-dot__circle {
  width: 0.6875rem; height: 0.6875rem;
  border-radius: 50%; display: block; flex-shrink: 0;
  transition: transform 0.15s;
}
.theme-dot:hover .theme-dot__circle { transform: scale(1.2); }
.theme-dot--brown .theme-dot__circle {
  background: #3d3020;
  box-shadow: 0 0 0 1.5px #7a6a54;
}
.theme-dot--black .theme-dot__circle {
  background: #0d0c0a;
  box-shadow: 0 0 0 1.5px #555250;
}
.theme-dot--white .theme-dot__circle {
  background: #ffffff;
  box-shadow: 0 0 0 1.5px #a8a5a0;
}
/* Active: gap + outer ring using background as spacer */
.theme-dot[aria-pressed="true"] .theme-dot__circle {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

/* Hamburger - hidden on desktop */
.nav-toggle { display: none; }

/* Footer navigation */
.site-footer .footer-nav__list {
  display: flex; gap: 1.5rem; list-style: none;
  margin: 0; padding: 0;
}
.site-footer .footer-nav__list a {
  color: var(--text); text-decoration: none; font-size: inherit;
}
.site-footer .footer-nav__list a:hover { color: var(--text-2); }

/* ── Hero (home.php latest post) ─────────────────────────────── */
.hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero .wrap { position: relative; }
.hero__orbit {
  position: absolute; top: -90px; right: -90px;
  width: 320px; height: 320px; z-index: 0; opacity: 0.85;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0 3rem;
  align-items: center;
  position: relative; z-index: 2;
}
.hero__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); display: block; margin-bottom: 1.25rem;
}
.hero__cat-link {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.hero__cat-link:hover { color: var(--text); }
.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700; line-height: 1.02;
  letter-spacing: -0.025em; color: var(--text);
  text-decoration: none; display: block;
  max-width: 15ch; margin-bottom: 1.25rem;
}
.hero__title:hover { text-decoration: none; }
.hero__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem; color: var(--text-2);
  display: flex; gap: 1.5rem; margin-bottom: 1.25rem;
}
.hero__excerpt {
  font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); max-width: 44ch; margin: 0 0 1.5rem;
}
.hero__readlink { font-family: var(--font-sans); font-weight: 500; font-size: 0.9375rem; }
.hero__plate {
  margin: 0; border: 1.5px solid var(--ink); border-radius: 10px;
  background: var(--paper-raised); padding: 12px;
}
.hero__plate-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.625rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: 8px;
}
.hero__plate-head b { color: var(--ink); font-weight: 500; }
.hero__image-wrap {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 6px; border: 1px solid var(--rule);
}
.hero__image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.hero:hover .hero__image-wrap img { transform: scale(1.02); }
.hero__plate-cap {
  font-family: var(--font-serif); font-style: italic;
  font-size: 0.85rem; color: var(--muted); margin-top: 9px;
}

/* ── Post index list ─────────────────────────────────────────── */
.post-index { padding: 0 0 5rem; }
.post-index__header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.75rem 0 0; margin-bottom: 0;
}
.post-index__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2);
}

/* Individual post list item - used on home, archive, search */
.post-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto 5.5rem;
  gap: 0 1.75rem;
  align-items: center;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.post-item:first-of-type { border-top: 1px solid var(--border); margin-top: 1.25rem; }
.post-item:hover { text-decoration: none; }

.post-item__num {
  font-size: 2.75rem; font-weight: 200; line-height: 1;
  color: var(--text-3); text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s;
  user-select: none;
}
.post-item:hover .post-item__num { color: var(--text-2); }

.post-item__info { min-width: 0; }
.post-item__title {
  font-size: 1.125rem; font-weight: 600; line-height: 1.3;
  margin-bottom: 0.3rem; transition: opacity 0.15s;
}
.post-item:hover .post-item__title { opacity: 1; }
.post-item__cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
}

.post-item__date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem; color: var(--text-2);
  white-space: nowrap; text-align: right;
}

.post-item__thumb {
  width: 5.5rem; aspect-ratio: 4 / 3; overflow: hidden;
}
.post-item__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.45s ease, transform 0.45s ease;
}
.post-item:hover .post-item__thumb img {
  filter: none;
  transform: scale(1.08);
}

.post-pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.post-pagination a {
  font-size: 0.8125rem; font-weight: 500; color: var(--text);
  text-decoration: underline; text-underline-offset: 3px;
}
.post-pagination a:hover { opacity: 0.6; }
.post-pagination span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
}

/* ── Archive page heading ─────────────────────────────────────── */
.archive-page { padding: 4rem 0 5rem; }
.archive-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.0;
  margin-bottom: 3rem;
}

/* ── Search form ─────────────────────────────────────────────── */
.search-form {
  display: flex; align-items: stretch;
  border-bottom: 2px solid var(--text);
  margin-bottom: 2.5rem;
}
.search-input {
  flex: 1; background: transparent; border: none;
  font-family: 'Outfit', sans-serif; font-size: 1.125rem; font-weight: 400;
  color: var(--text); padding: 0.75rem 0; outline: none;
}
.search-input::placeholder { color: var(--text-2); }
.search-form:focus-within { border-color: var(--text); }
.search-input:focus { outline: none; }
.search-submit {
  background: none; border: none; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); padding: 0.75rem 0 0.75rem 1rem;
  transition: opacity 0.15s;
}
.search-submit:hover { opacity: 0.6; }
.search-submit:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ── Single post ─────────────────────────────────────────────── */
.post-wrap { padding: 3rem 0 2rem; }

.back {
  display: inline-block; font-size: 0.8125rem; font-weight: 500;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  margin-bottom: 3rem;
  transition: color 0.15s;
}
.back:hover { color: var(--text); text-decoration: underline; }

.post-hd { margin-bottom: 2.5rem; }
.post-hd__cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  display: inline-block; margin-bottom: 1.125rem;
}
.post-hd__cat:hover { color: var(--text); }
.post-hd__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.post-hd__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem; color: var(--text-2);
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem;
  padding-bottom: 1.1rem;
}

/* Full-bleed featured image */
.post-hero-wrap {
  width: 100vw;
  position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  aspect-ratio: 16 / 8; overflow: hidden;
  margin-bottom: 3.5rem;
}
.post-hero-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Entry content (post body) ───────────────────────────────── */
/*
   !important on font-family and color is necessary here because
   Spectra injects its own global style rules for block content
   that would otherwise override our theme styles.
*/
.entry-content { max-width: 64ch; padding-bottom: 1rem; }

.entry-content,
.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th,
.entry-content dd,
.entry-content dt {
  font-family: 'Outfit', sans-serif !important;
  color: var(--text) !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Outfit', sans-serif !important;
  color: var(--text) !important;
  font-weight: 700 !important;
}

.entry-content p,
.entry-content li { font-size: 1.0625rem; line-height: 1.85; }
.entry-content p { margin-bottom: 1.625rem; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  line-height: 1.2; letter-spacing: -0.02em;
}
.entry-content h2 { font-size: 1.5rem; margin: 2.5rem 0 0.875rem; }
.entry-content h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.entry-content h4 { font-size: 1.0625rem; margin: 1.75rem 0 0.625rem; }

.entry-content ul,
.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }

.entry-content blockquote {
  border-left: 2px solid var(--border);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0; color: var(--text-2);
}
.entry-content blockquote p { font-size: 1.125rem; font-style: italic; margin-bottom: 0; }

.entry-content strong { font-weight: 700; }
.entry-content em     { font-style: italic; }
.entry-content a      { text-decoration: underline; }
.entry-content a:hover { opacity: 1; }

.entry-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* WordPress image blocks inside entry-content */
.entry-content figure { margin: 2rem 0; }
.entry-content .wp-block-image img { max-width: 100%; height: auto; }
.entry-content .wp-block-image figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem; letter-spacing: 0.06em;
  color: var(--text-2); margin-top: 0.625rem;
  text-align: center;
}

/* Alignment classes */
.entry-content .alignfull {
  width: 100vw;
  position: relative; left: 50%;
  margin-left: -50vw; margin-right: -50vw;
  max-width: none;
}
.entry-content .alignwide {
  width: calc(100% + 8rem);
  margin-left: -4rem; margin-right: -4rem;
}
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.entry-content .alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

/* Embeds */
.entry-content .wp-block-embed { margin: 2rem 0; }
.entry-content .wp-block-embed__wrapper { position: relative; padding-top: 56.25%; }
.entry-content .wp-block-embed__wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* Code */
.entry-content code {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.875em;
  background: var(--bg-2); padding: 0.15em 0.4em; border-radius: 3px;
}
.entry-content pre {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.875rem;
  background: var(--bg-2); padding: 1.5rem; overflow-x: auto;
  margin-bottom: 1.5rem; border-radius: 3px; line-height: 1.7;
}
.entry-content pre code { background: none; padding: 0; }

/* ── CoBlocks Masonry Gallery — full-bleed grid override ──────── */
.entry-content .wp-block-coblocks-gallery-masonry {
  /* Full-bleed breakout from .wrap--sm */
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: none !important;

  /* Override CoBlocks masonry columns with uniform grid */
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 3px !important;
  column-count: unset !important;
  columns: unset !important;

  /* Spacing within post */
  margin-top: 2.5rem !important;
  margin-bottom: 3.5rem !important;
  padding: 0 !important;
}

.entry-content .wp-block-coblocks-gallery-masonry .masonry-brick,
.entry-content .wp-block-coblocks-gallery-masonry .wp-block-image {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  break-inside: unset !important;
  display: block !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.entry-content .wp-block-coblocks-gallery-masonry .masonry-brick img,
.entry-content .wp-block-coblocks-gallery-masonry .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  max-width: none !important;
  transition: opacity 0.2s ease;
}

.entry-content .wp-block-coblocks-gallery-masonry .masonry-brick:hover img {
  opacity: 0.88;
}

/* If CoBlocks uses a lightbox wrapper, make sure it fills the cell */
.entry-content .wp-block-coblocks-gallery-masonry .masonry-brick a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* ── Post tags ───────────────────────────────────────────────── */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-bottom: 1rem;
}
.post-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--text);
  text-decoration: none;
  padding: 0.3em 0.75em;
  border-radius: 2px;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.post-tag:hover {
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

/* ── Post navigation (prev/next) ─────────────────────────────── */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  padding-bottom: 5rem;
}
.post-nav__item {
  text-decoration: none;
}
.post-nav__item--next { text-align: right; }
.pn-dir {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.625rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2);
  display: block; margin-bottom: 0.5rem;
}
.pn-title {
  font-size: 1rem; font-weight: 600; color: var(--text);
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-nav__item:hover .pn-title { opacity: 0.7; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); padding: 1.875rem 0;
}
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.8125rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text) !important;
}
.site-footer__inner * { color: var(--text) !important; }
.footer-links { display: flex; gap: 1.5rem; }
.site-footer a,
.site-footer a:visited,
.site-footer .footer-nav__list a,
.site-footer .footer-nav__list a:visited {
  color: var(--text) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.site-footer a:hover,
.site-footer .footer-nav__list a:hover { opacity: 0.6; }

/* ── Static page ─────────────────────────────────────────────── */
.page-static .entry-content {
  max-width: 64ch;
  padding-bottom: 0;
}

/* ── WordPress core blocks (tag cloud, categories, archives) ─── */
/* These appear on the /search/ page as Gutenberg blocks          */
.wp-block-categories ul,
.wp-block-archives ul,
.wp-block-latest-posts ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.wp-block-categories li,
.wp-block-archives li,
.wp-block-latest-posts li {
  padding: 0.4375rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.wp-block-categories a,
.wp-block-archives a,
.wp-block-latest-posts a {
  color: var(--text) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.wp-block-categories a:hover,
.wp-block-archives a:hover,
.wp-block-latest-posts a:hover { opacity: 0.6; }

/* Tag cloud block */
.wp-block-tag-cloud {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  line-height: 1.8;
}
.wp-block-tag-cloud a {
  color: var(--text-2) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-size: inherit !important; /* override WP font-size inline styles */
}
.wp-block-tag-cloud a:hover { color: var(--text) !important; }

/* Two-column layout block used on search page */
.wp-block-columns { gap: 2rem; }
.wp-block-column h2,
.wp-block-column h3 {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.625rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2) !important;
  font-weight: 400 !important;
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 1.75rem 0; }
  .hero__orbit { display: none; }
  .hero__title { max-width: none; }
  .hero__plate { max-width: 360px; }
  .entry-content .alignwide {
    width: calc(100% + 3rem);
    margin-left: -1.5rem; margin-right: -1.5rem;
  }
}

@media (max-width: 680px) {
  .wrap, .wrap--mid, .wrap--sm { padding: 0 1.25rem; }

  /* Disable sticky header on mobile */
  .site-header {
    position: relative;
    top: auto;
  }

  /* More breathing room below header on archive/category pages */
  .archive-page { padding-top: 2rem; }
  .cat-page { padding-top: 2rem; }

  /* Mobile nav - hamburger toggle */
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: var(--text);
    cursor: pointer; padding: 0.375rem; margin-right: 0.25rem;
    border-radius: 2px;
  }
  .nav-toggle svg { width: 1.25rem; height: 1.25rem; }
  .icon-close { display: none; }
  .nav-toggle.is-open .icon-hamburger { display: none; }
  .nav-toggle.is-open .icon-close { display: block; }

  /* Hide nav list by default on mobile, show when open */
  .site-nav .site-nav__list {
    display: none;
    position: absolute;
    top: 3.25rem;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
    flex-direction: column;
    gap: 0;
    z-index: 199;
  }
  .site-nav .site-nav__list.is-open { display: flex; }
  .site-nav .site-nav__list li { display: block !important; }
  .site-nav .site-nav__list a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: block;
    font-size: 0.9375rem;
    color: var(--text) !important;
  }
  .site-nav .site-nav__list li:last-child a { border-bottom: none; }

  /* Post list mobile */
  .post-item {
    grid-template-columns: 1fr auto;
    gap: 0 1rem;
  }
  .post-item__num  { display: none; }
  .post-item__date { display: none; }
  .post-item__info { padding-right: 0; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }

  .entry-content .wp-block-coblocks-gallery-masonry {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .entry-content .alignwide {
    width: 100%; margin-left: 0; margin-right: 0;
  }

  /* Footer - stack vertically to prevent overflow */
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-links .footer-nav__list {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .entry-content .wp-block-coblocks-gallery-masonry {
    grid-template-columns: 1fr !important;
  }
}

/* ── Touch devices: show photos in full color (no hover available) ── */
@media (hover: none) {
  .post-item__thumb img { filter: none; }
}


/* ============================================================
   ANALOG FUNCTIONALISM CHROME  (ported from steventrotter.com / st.css)
   ============================================================ */
header.site { border-bottom: 1px solid var(--rule); padding: 22px 0; background: var(--paper); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.wordmark { display: inline-flex; text-decoration: none; }
.wordmark img { height: 30px; width: auto; display: block; }
.menu-toggle { display: inline-flex; align-items: stretch; padding: 0; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--paper-raised); cursor: pointer; font-family: var(--font-mono); min-height: 38px; }
.menu-toggle .mt-label { display: flex; align-items: center; padding: 0 15px; font-size: 0.94rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); transition: background-color 150ms var(--ease-mech), color 150ms var(--ease-mech); }
.menu-toggle .mt-bars { display: flex; align-items: center; gap: 4px; padding: 0 12px; border-left: 1.5px solid var(--ink); background: var(--putty); transition: background-color 150ms var(--ease-mech); }
.menu-toggle .mt-bars i { width: 8px; height: 8px; background: var(--ink); display: block; }
.menu-toggle .mt-bars i:last-child { background: var(--accent); }
.menu-toggle:hover .mt-label { background: var(--ink); color: var(--paper-raised); }
.menu-toggle:hover .mt-bars, .menu-toggle[aria-expanded="true"] .mt-bars { background: var(--ochre); }
.menu-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tray-scrim { position: fixed; inset: 0; background: rgba(15,14,12,0.5); z-index: 90; opacity: 0; transition: opacity 200ms var(--ease-mech); }
.tray-scrim.open { opacity: 1; }
.tray { position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 86vw); background: var(--paper-raised); border-left: 1.5px solid var(--ink); z-index: 91; transform: translateX(101%); transition: transform 240ms var(--ease-mech); padding: 22px 26px; overflow-y: auto; }
.tray.open { transform: none; }
.tray-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.tray-head .label { font-family: var(--font-mono); font-size: 0.706rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tray-close { background: none; border: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink); min-height: 44px; min-width: 44px; }
.tray .tray-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: navidx -1; }
.tray .tray-menu li { margin: 0; }
.tray .tray-menu a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1.412rem; font-family: var(--font-sans); padding: 13px 6px; border-bottom: 1px solid var(--rule); }
.tray .tray-menu a::before { counter-increment: navidx; content: counter(navidx, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.765rem; color: var(--muted); }
.tray .tray-menu a:hover, .tray .tray-menu a:focus-visible { color: var(--accent-deep); }
.tray .tray-menu a:hover::before { color: var(--accent); }
.tray .tray-menu .current-menu-item a::before, .tray .tray-menu .current_page_item a::before { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .tray, .tray-scrim { transition: none; } }
footer.site { background: var(--ink); color: var(--paper); padding: 44px 0; margin-top: 64px; position: relative; overflow: hidden; }
footer.site > .wrap { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
footer.site .wordmark img { height: 32px; }
footer.site .label { font-family: var(--font-mono); font-size: 0.706rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper); }
.footer-credit { flex-basis: 100%; text-align: right; font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper); opacity: 0.85; margin-top: 2px; }
.footer-credit .heart { color: #AE8FD6; font-style: normal; }
.footer-orbit { position: absolute; right: -64px; bottom: -120px; width: 320px; height: 320px; opacity: 0.13; pointer-events: none; z-index: 0; }
.footer-orbit svg { display: block; width: 100%; height: 100%; }
.chip-readout { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; font-family: var(--font-mono); font-size: 0.824rem; background: var(--paper-raised); color: var(--ink); }
.chip-readout b { font-weight: 500; padding: 4px 10px; }
.chip-readout span { padding: 4px 8px; border-left: 1.5px solid var(--ink); background: var(--putty); font-size: 0.706rem; display: flex; align-items: center; letter-spacing: 0.08em; }
footer.site .chip-readout { border-color: var(--paper); background: transparent; color: var(--paper); height: 32px; align-items: center; }
footer.site .chip-readout span { border-color: var(--paper); background: transparent; }
/* prose register + marker links */
.entry-content { font-family: var(--font-serif); line-height: 1.85; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-sans); }
.entry-content a, a.hl { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; background-image: var(--hl-brush); background-repeat: no-repeat; background-size: 0% 90%; background-position: left center; padding: 0.04em 0.14em; margin: 0 -0.14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-size 300ms var(--ease-mech), color 300ms var(--ease-mech); }
.entry-content a:hover, .entry-content a:focus-visible, a.hl:hover, a.hl:focus-visible { background-size: 100% 90%; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .entry-content a, a.hl { transition: none; } }

/* decorations */
.ruler { height: 20px; background-image: repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 48px), repeating-linear-gradient(to right, var(--muted) 0 1px, transparent 1px 8px); background-size: 100% 20px, 100% 11px; background-position: left bottom, left bottom; background-repeat: no-repeat; }
.dec-svg { display: inline-block; line-height: 0; }
.dec-svg svg { display: block; width: 100%; height: auto; }

/* post-title purple marker (matches the link highlighter) */
.hl-title { color: var(--ink); background-image: var(--hl-brush-purple); background-repeat: no-repeat; background-size: 0% 90%; background-position: left center; padding: 0.02em 0.12em; margin: 0 -0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 300ms var(--ease-mech), color 200ms var(--ease-mech); }
.hero__title:hover .hl-title, .hero__title:focus-visible .hl-title, .post-item:hover .hl-title, .post-item:focus-visible .hl-title { background-size: 100% 90%; }
@media (prefers-reduced-motion: reduce) { .hl-title { transition: none; } }

/* hero title: multi-line, so use a purple text color on hover instead of the marker */
.hero__title .hl-title { background-image: none; padding: 0; margin: 0; }
.hero__title:hover .hl-title, .hero__title:focus-visible .hl-title { color: var(--accent-deep); background-size: 0% 90%; }

/* ============================================================
   ATLAS HARVEST  (mirrors steventrotter.com st.css, 2026-06-14)
   Shared AF component set so both surfaces stay in sync. Tokens above
   drive all colour. Not all are used by current blog templates; they
   are here to keep the design system consistent across surfaces.
   ============================================================ */

/* DEC-14 crop marks */
.cropmarks { position: relative; }
.cropmarks::before {
  content: ""; position: absolute; inset: -7px; pointer-events: none; z-index: 2;
  background-image:
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 9px 1.5px, 9px 1.5px, 9px 1.5px, 9px 1.5px, 1.5px 9px, 1.5px 9px, 1.5px 9px, 1.5px 9px;
  background-position:
    left 0 top 7px, right 0 top 7px, left 0 bottom 7px, right 0 bottom 7px,
    left 7px top 0, right 7px top 0, left 7px bottom 0, right 7px bottom 0;
}

/* DEC-15 document watermark */
.doc-watermark { position: absolute; right: -40px; bottom: -40px; width: 240px; height: 240px; z-index: 0; pointer-events: none; opacity: 0.06; }
.doc-watermark svg, .doc-watermark img { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .doc-watermark { width: 200px; height: 200px; right: -34px; bottom: -34px; } }

/* hatch fill + single progress bar (DEC-16) */
.progress { height: 24px; border: 1.5px solid var(--ink); background: var(--paper-raised); display: flex; overflow: hidden; }
.progress .done { background: var(--coral); }
.progress .rest { flex: 1; } /* inline: repeating-linear-gradient(45deg, <colour 35%> 0 2px, transparent 2px 8px) */

/* segmented weighted progress bar */
.segbar { display: flex; height: 62px; background: var(--putty); border: 1.5px solid var(--ink); overflow: hidden; }
.segbar .seg { position: relative; height: 100%; }
.segbar .seg + .seg { border-left: 1.5px solid var(--ink); }
.segbar .seg .fill { position: absolute; left: 0; top: 0; bottom: 0; }
.segbar .seg .todo { position: absolute; right: 0; top: 0; bottom: 0; }
.segtrack { display: flex; margin-top: 18px; }
.segtrack-item { min-width: 0; padding: 0 10px 0 9px; border-left: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--ink); white-space: nowrap; line-height: 1.5; }
.segtrack-item:first-child { border-left: none; padding-left: 0; }
.segtrack-item .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--ink); margin-right: 6px; }
.segtrack-item .nm { font-weight: 500; }
.segtrack-item .p { color: var(--muted); }

/* caution placard */
.due-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.78rem; background: var(--tint-amber); border: 1.5px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 5px 11px; }
.caution-tag { position: relative; font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.58rem; color: var(--ink); background: var(--ochre); border: 1.5px solid var(--ink); border-radius: 3px; padding: 2px 7px 2px 18px; margin-left: 6px; }
.caution-tag::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 11px; background-image: repeating-linear-gradient(-45deg, var(--ink) 0 3px, var(--ochre) 3px 6px); border-right: 1.5px solid var(--ink); border-radius: 2px 0 0 2px; }

/* poll - hole-punch selector + thin tally bar */
.poll { display: grid; gap: 16px; max-width: 420px; }
.poll-opt { position: relative; padding-bottom: 14px; }
.poll-opt-row { display: flex; align-items: center; gap: 11px; padding: 4px 0; }
.poll-mark { width: 18px; height: 18px; min-width: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); box-shadow: 1.5px 1.5px 0 var(--rule); position: relative; }
.poll-opt.is-selected .poll-mark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); }
.poll-label { flex: 1; }
.poll-pct { font-weight: 500; color: var(--ink); }
.poll-track { position: absolute; left: 0; right: 0; bottom: 4px; height: 7px; border-radius: 999px; background: var(--putty); border: 1px solid var(--rule); }
.poll-bar { position: absolute; left: 0; bottom: 4px; height: 7px; border-radius: 999px; z-index: 1; }

/* filter bar */
.filter-bar { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper-raised); padding: 8px 12px; }
.filter-chip { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.03em; border-radius: 6px; background: transparent; border: 1.5px solid transparent; color: var(--ink); padding: 7px 13px; cursor: pointer; }
.filter-chip:hover:not(.is-active) { color: var(--accent-deep); border-color: var(--rule); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-raised); }
.filter-sep { width: 1.5px; height: 22px; background: var(--rule); margin: 0 4px; }
.filter-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); margin-left: 6px; }

/* dashboard parts */
.dash-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.dash-stat { background: var(--paper-raised); border: 1.5px solid var(--ink); border-radius: 10px; padding: 16px 18px; }
.dash-stat.is-violet { background: var(--tint-violet); }
.dash-stat.is-amber { background: var(--tint-amber); }
.dash-stat.is-teal { background: var(--tint-teal); }
.dash-stat.is-coral { background: var(--tint-coral); }
.dash-stat .lbl { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }
.dash-stat .val { font-weight: 700; font-size: 2.1rem; line-height: 1.1; margin: 0.1em 0; font-variant-numeric: tabular-nums; }
.dash-stat .meta { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.dash-records { margin-top: 16px; display: grid; gap: 0; max-width: 420px; }
.dash-rec { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.dash-rec .dots { flex: 1; border-bottom: 1.5px dotted var(--muted); transform: translateY(-4px); }
.dash-rec .v { font-weight: 700; color: var(--ink); }
.dash-milestone { margin-top: 16px; }
.dash-ms-bar { height: 12px; background: var(--putty); border: 1.5px solid var(--ink); overflow: hidden; }
.dash-ms-fill { height: 100%; background: var(--ochre); }
