@font-face {
  font-display: swap;
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/space-grotesk-400.ttf') format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/space-grotesk-500.ttf') format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/space-grotesk-600.ttf') format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/space-grotesk-700.ttf') format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/jetbrains-mono-400.ttf') format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/jetbrains-mono-500.ttf') format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/jetbrains-mono-600.ttf') format('truetype');
}

:root {
  --color-bg: #030305;
  --color-surface: #0d0b12;
  --color-surface-raised: #17121f;
  --color-border: rgba(255, 255, 255, 0.11);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --color-text: #f8f7ff;
  --color-text-muted: #bbb4c5;
  --color-text-subtle: #837b90;
  --color-primary: #a855f7;
  --color-primary-light: #c084fc;
  --color-cyan: #22d3ee;
  --color-lime: #a3e635;
  --color-button-text: #12091b;
  --color-footer: #08070a;
  --color-mobile-nav: #0b090e;
  --color-header: rgba(3, 3, 5, 0.82);
  --color-code-bg: #0e0b13;
  --color-code-text: #f1eaff;
  --color-card-address: #ddd6e6;
  --radius: 1rem;
  --radius-sm: 0.625rem;
  --max-width: 1200px;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html[data-theme='light'] {
  --color-bg: #f8f6fb;
  --color-surface: #ffffff;
  --color-surface-raised: #eeeaf5;
  --color-border: rgba(43, 26, 61, 0.14);
  --color-border-strong: rgba(43, 26, 61, 0.22);
  --color-text: #211a2a;
  --color-text-muted: #5f5669;
  --color-text-subtle: #7d7187;
  --color-primary: #7c3aed;
  --color-primary-light: #6d28d9;
  --color-cyan: #0e7490;
  --color-lime: #4d7c0f;
  --color-button-text: #ffffff;
  --color-footer: #eeeaf5;
  --color-mobile-nav: #ffffff;
  --color-header: rgba(248, 246, 251, 0.9);
  --color-code-bg: #f0ebf7;
  --color-code-text: #2b1b3d;
  --color-card-address: #3b2455;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[data-theme='light'] body { color-scheme: light; }

a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

.container { margin: 0 auto; max-width: var(--max-width); padding: 0 1.5rem; width: 100%; }
.eyebrow {
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: var(--color-button-text); }
.btn--primary:hover { background: var(--color-primary-light); }
.btn--small { font-size: 0.82rem; min-height: 2.4rem; padding: 0.45rem 0.85rem; }
.text-link { color: var(--color-text); font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(168, 85, 247, 0.7); text-underline-offset: 0.35rem; }
.text-link:hover { color: var(--color-primary-light); }

/* Navigation */
.site-header {
  backdrop-filter: blur(16px);
  background: var(--color-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner { align-items: center; display: flex; height: 4.7rem; justify-content: space-between; }
.site-brand { align-items: center; display: inline-flex; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; gap: 0.65rem; letter-spacing: -0.025em; }
.site-logo { height: 2.1rem; width: auto; }
.site-logo--mark { width: 2.1rem; }
.site-wordmark { color: var(--color-text); white-space: nowrap; }
.site-wordmark strong { color: var(--color-primary-light); }
.site-nav { align-items: center; display: flex; gap: 1.35rem; }
.site-nav a:not(.btn) { color: var(--color-text-muted); font-size: 0.84rem; font-weight: 500; transition: color 160ms ease; }
.site-nav a:not(.btn):hover { color: var(--color-text); }
.site-nav .nav-sign-in { color: var(--color-text); }
.theme-toggle { align-items: center; background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-muted); cursor: pointer; display: inline-flex; font: inherit; font-size: 0.78rem; gap: 0.4rem; min-height: 2.25rem; padding: 0.35rem 0.6rem; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.theme-toggle:hover { background: var(--color-surface-raised); border-color: var(--color-border-strong); color: var(--color-text); }
.theme-toggle-icon { color: var(--color-primary-light); font-size: 1rem; line-height: 1; }
.menu-toggle { background: transparent; border: 0; cursor: pointer; display: none; min-height: 44px; min-width: 44px; padding: 0.7rem; }
.hamburger, .hamburger::before, .hamburger::after { background: var(--color-text); content: ''; display: block; height: 2px; position: relative; transition: transform 160ms ease; width: 1.35rem; }
.hamburger::before, .hamburger::after { left: 0; position: absolute; }
.hamburger::before { top: -0.4rem; }
.hamburger::after { top: 0.4rem; }

/* Home */
.journal-hero { border-bottom: 1px solid var(--color-border); overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); position: relative; }
.journal-hero::before { background: radial-gradient(circle, rgba(168, 85, 247, 0.17), transparent 66%); content: ''; height: 42rem; pointer-events: none; position: absolute; right: -16rem; top: -24rem; width: 42rem; }
.journal-hero-grid { align-items: center; display: grid; gap: clamp(2.5rem, 7vw, 8rem); grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.75fr); position: relative; }
.journal-hero-copy { max-width: 47rem; }
.journal-hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6.5vw, 5.5rem); letter-spacing: -0.065em; line-height: 0.94; margin: 1rem 0 1.5rem; }
.journal-hero-description { color: var(--color-text-muted); font-size: clamp(1.06rem, 1.8vw, 1.28rem); line-height: 1.6; max-width: 41rem; }
.journal-hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.brand-gradient-card { background: linear-gradient(135deg, rgba(168, 85, 247, 0.17), rgba(13, 11, 18, 0.9) 58%); border: 1px solid rgba(192, 132, 252, 0.35); border-radius: var(--radius); }
html[data-theme='light'] .brand-gradient-card { background: linear-gradient(135deg, rgba(124, 58, 237, 0.13), rgba(255, 255, 255, 0.96) 64%); border-color: rgba(124, 58, 237, 0.24); box-shadow: 0 1rem 2.5rem rgba(76, 29, 149, 0.08); }
.journal-hero-note { padding: clamp(1.4rem, 3vw, 2.1rem); }
.journal-note-label { color: var(--color-text); font-size: 0.86rem; font-weight: 600; }
.journal-address-list { border-bottom: 1px solid var(--color-border); border-top: 1px solid var(--color-border); display: grid; gap: 0.75rem; margin: 1.2rem 0; padding: 1.1rem 0; }
.journal-address-list span { align-items: center; color: var(--color-card-address); display: flex; font-family: var(--font-mono); font-size: clamp(0.67rem, 1.2vw, 0.78rem); gap: 0.6rem; overflow-wrap: anywhere; }
.journal-address-list i { background: var(--color-lime); border-radius: 50%; flex: 0 0 auto; height: 0.45rem; width: 0.45rem; }
.journal-hero-note > p:not(.journal-note-label) { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.2rem; }

.post-feed { padding-bottom: clamp(4.5rem, 8vw, 7rem); padding-top: clamp(3.5rem, 7vw, 6rem); }
.feed-header { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.045em; line-height: 1; margin-top: 0.6rem; }
.feed-product-link { color: var(--color-text-muted); font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.feed-product-link:hover { color: var(--color-cyan); }
.featured-post { background: var(--color-surface); border: 1px solid var(--color-border-strong); display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 3.2rem; min-height: 25rem; overflow: hidden; }
.featured-post-copy { align-items: flex-start; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.8rem, 5vw, 4.25rem); }
.post-card-tag { color: var(--color-cyan); display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; margin-bottom: 0.9rem; text-transform: uppercase; }
.featured-post h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.3vw, 3.05rem); letter-spacing: -0.05em; line-height: 1.02; margin-bottom: 1.05rem; }
.featured-post h3 a:hover, .post-card-title a:hover { color: var(--color-primary-light); }
.featured-post-copy > p { color: var(--color-text-muted); font-size: 1rem; line-height: 1.65; margin-bottom: 1.45rem; }
.featured-post-meta { color: var(--color-text-subtle); display: flex; flex-wrap: wrap; font-size: 0.8rem; gap: 0.4rem; margin-bottom: 1.5rem; }
.featured-post-image-link { background: #130f19; min-height: 100%; overflow: hidden; }
.featured-post-image { height: 100%; object-fit: cover; transition: transform 350ms ease; width: 100%; }
.featured-post:hover .featured-post-image { transform: scale(1.025); }
.post-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--color-border); border: 1px solid var(--color-border); }
.post-card { background: var(--color-bg); display: flex; flex-direction: column; min-width: 0; }
.post-card-image-link { aspect-ratio: 16 / 9; background: var(--color-surface); display: block; overflow: hidden; }
.post-card-image { height: 100%; object-fit: cover; transition: transform 300ms ease; width: 100%; }
.post-card:hover .post-card-image { transform: scale(1.035); }
.post-card-content { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.post-card-title { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: -0.035em; line-height: 1.18; margin-bottom: 0.8rem; }
.post-card-excerpt { color: var(--color-text-muted); flex: 1; font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.5rem; }
.post-card-meta { align-items: center; border-top: 1px solid var(--color-border); color: var(--color-text-subtle); display: flex; font-size: 0.75rem; gap: 0.8rem; justify-content: space-between; padding-top: 0.9rem; }
.post-card-author { align-items: center; display: flex; gap: 0.5rem; min-width: 0; }
.author-avatar { border-radius: 50%; height: 1.45rem; object-fit: cover; width: 1.45rem; }
.pagination { align-items: center; border-top: 1px solid var(--color-border); display: flex; font-size: 0.85rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; }
.pagination a { color: var(--color-text-muted); font-weight: 500; }
.pagination a:hover { color: var(--color-primary-light); }
.pagination-info { color: var(--color-text-subtle); }

.journal-product-bridge { background: var(--color-primary); color: #170822; }
.journal-product-bridge-inner { align-items: center; display: grid; gap: 2rem; grid-template-columns: 0.65fr 2fr auto; padding-bottom: 3.7rem; padding-top: 3.7rem; }
.journal-product-bridge .eyebrow { color: #3b1451; }
.journal-product-bridge h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.7vw, 2.4rem); letter-spacing: -0.045em; line-height: 1.04; max-width: 39rem; }
.journal-product-bridge p:not(.eyebrow) { color: rgba(23, 8, 34, 0.76); font-size: 0.93rem; margin-top: 0.7rem; max-width: 40rem; }
.journal-product-bridge .btn { background: #170822; color: #f7edff; white-space: nowrap; }
.journal-product-bridge .btn:hover { background: #2e1242; }

/* Article and page */
.post-header, .page-header { padding-bottom: 2rem; padding-top: clamp(3.5rem, 7vw, 6rem); text-align: center; }
.post-tag { color: var(--color-cyan); display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; margin-bottom: 1.1rem; text-transform: uppercase; }
.post-title, .page-title { font-family: var(--font-display); font-size: clamp(2.45rem, 6vw, 4.9rem); letter-spacing: -0.065em; line-height: 0.98; margin: 0 auto 1.25rem; max-width: 61rem; }
.post-excerpt, .page-excerpt { color: var(--color-text-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; margin: 0 auto 1.7rem; max-width: 44rem; }
.post-meta { align-items: center; color: var(--color-text-subtle); display: flex; font-size: 0.82rem; gap: 1.25rem; justify-content: center; }
.post-author { align-items: center; display: flex; gap: 0.7rem; }
.author-info { align-items: flex-start; display: flex; flex-direction: column; line-height: 1.35; }
.author-name { color: var(--color-text); font-weight: 600; }
.post-feature-image, .page-feature-image { margin: 0 auto clamp(2.7rem, 6vw, 5rem); max-width: 1440px; overflow: hidden; }
.post-feature-image img, .page-feature-image img { max-height: 680px; object-fit: cover; width: 100%; }
.gh-content { font-size: 1.08rem; line-height: 1.82; max-width: 45rem; }
.gh-content > * { margin-bottom: 1.45rem; }
.gh-content h2, .gh-content h3, .gh-content h4 { font-family: var(--font-display); letter-spacing: -0.035em; line-height: 1.12; margin-bottom: 0.9rem; margin-top: 2.8rem; }
.gh-content h2 { font-size: 2rem; }
.gh-content h3 { font-size: 1.5rem; }
.gh-content h4 { font-size: 1.2rem; }
.gh-content a { color: var(--color-primary-light); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.gh-content blockquote { border-left: 2px solid var(--color-primary); color: var(--color-text-muted); font-size: 1.15em; padding-left: 1.3rem; }
.gh-content code { background: var(--color-surface-raised); border-radius: 0.25rem; font-family: var(--font-mono); font-size: 0.83em; padding: 0.15rem 0.3rem; }
.gh-content pre { background: var(--color-code-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-code-text); font-size: 0.88em; line-height: 1.65; overflow-x: auto; padding: 1.2rem; }
.gh-content pre code { background: transparent; color: inherit; padding: 0; }
.gh-content img { border-radius: var(--radius-sm); }
.gh-content figcaption { color: var(--color-text-subtle); font-size: 0.78rem; margin-top: 0.55rem; text-align: center; }

/* Ghost Koenig editor: allow authors to choose an intentional wider canvas. */
.gh-content .kg-width-wide,
.gh-content .kg-width-full {
  position: relative;
  width: min(92vw, 68rem);
}
.gh-content .kg-width-wide {
  left: 50%;
  transform: translateX(-50%);
}
.gh-content .kg-width-full {
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
}
.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
  height: auto;
  width: 100%;
}

/* Koenig gallery and bookmark cards. These stay understated so editor-created
   content remains part of the PurpleToad reading surface. */
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: 0.65rem; }
.gh-content .kg-gallery-row { display: flex; gap: 0.65rem; }
.gh-content .kg-gallery-image { flex: 1; min-width: 0; }
.gh-content .kg-gallery-image img { height: 100%; object-fit: cover; width: 100%; }
.gh-content .kg-bookmark-card { margin: 1.8rem 0; width: 100%; }
.gh-content .kg-bookmark-container { align-items: stretch; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); color: var(--color-text); display: flex; min-height: 8rem; overflow: hidden; transition: border-color 160ms ease, transform 160ms ease; }
.gh-content .kg-bookmark-container:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.gh-content .kg-bookmark-content { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; padding: 1.1rem 1.3rem; }
.gh-content .kg-bookmark-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.25; }
.gh-content .kg-bookmark-description { color: var(--color-text-muted); font-size: 0.85rem; line-height: 1.45; margin-top: 0.45rem; }
.gh-content .kg-bookmark-metadata { align-items: center; color: var(--color-text-subtle); display: flex; flex-wrap: wrap; font-size: 0.72rem; gap: 0.45rem; margin-top: 0.75rem; }
.gh-content .kg-bookmark-icon { border-radius: 0.2rem; height: 1.1rem; object-fit: cover; width: 1.1rem; }
.gh-content .kg-bookmark-author, .gh-content .kg-bookmark-publisher { overflow-wrap: anywhere; }
.gh-content .kg-bookmark-thumbnail { flex: 0 0 10rem; min-height: 8rem; }
.gh-content .kg-bookmark-thumbnail img { height: 100%; object-fit: cover; width: 100%; }
.post-footer { padding-bottom: 4.5rem; padding-top: 3.5rem; }
.article-cta { margin-bottom: 3rem; padding: clamp(1.5rem, 4vw, 2.3rem); }
.article-cta h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -0.045em; line-height: 1.05; margin: 0.75rem 0; max-width: 34rem; }
.article-cta > p:not(.eyebrow) { color: var(--color-text-muted); font-size: 0.93rem; line-height: 1.6; max-width: 38rem; }
.article-cta-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.35rem; }
.post-tags { align-items: center; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-tags-label { color: var(--color-text-subtle); font-size: 0.82rem; }
.post-tags a { background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: 999px; font-size: 0.78rem; padding: 0.28rem 0.65rem; }
.post-tags a:hover { border-color: var(--color-primary); color: var(--color-primary-light); }
.post-comments { margin-top: 3rem; }

/* Author and tag */
.author-profile, .tag-header { border-bottom: 1px solid var(--color-border); padding-bottom: 2.7rem; padding-top: 4.5rem; text-align: center; }
.author-profile-inner { align-items: center; display: flex; flex-direction: column; gap: 1.2rem; }
.author-profile-image { border: 2px solid var(--color-border-strong); border-radius: 50%; height: 6.5rem; object-fit: cover; width: 6.5rem; }
.author-profile-name, .tag-name { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.055em; }
.author-profile-bio, .tag-description { color: var(--color-text-muted); margin: 0.65rem auto 0; max-width: 38rem; }
.author-profile-meta { color: var(--color-text-subtle); display: flex; flex-wrap: wrap; font-size: 0.85rem; gap: 1rem; justify-content: center; }
.author-profile-meta a { color: var(--color-primary-light); }
.tag-feature-image { border-radius: var(--radius-sm); margin-top: 2rem; max-height: 24rem; object-fit: cover; width: 100%; }

/* Subscribe and footer */
.subscribe-section { border-top: 1px solid var(--color-border); padding: clamp(4rem, 8vw, 7rem) 0; }
.subscribe-inner { align-items: center; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr); }
.subscribe-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 3rem); letter-spacing: -0.055em; line-height: 1; margin: 0.7rem 0 0.9rem; max-width: 31rem; }
.subscribe-description { color: var(--color-text-muted); font-size: 0.95rem; max-width: 35rem; }
.subscribe-form .form-group { display: flex; gap: 0.65rem; }
.subscribe-input { background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); color: var(--color-text); flex: 1; font: inherit; min-height: 2.8rem; min-width: 0; padding: 0.65rem 0.85rem; }
.subscribe-input::placeholder { color: var(--color-text-subtle); }
.form-success, .form-error { font-size: 0.8rem; margin-top: 0.7rem; }
.form-success { color: var(--color-lime); }
.form-error { color: #fb7185; }
.site-footer { background: var(--color-footer); border-top: 1px solid var(--color-border); padding: 4rem 0 1.8rem; }
.footer-grid { display: grid; gap: 4rem; grid-template-columns: minmax(13rem, 1fr) minmax(28rem, 2fr); margin-bottom: 3.8rem; }
.footer-description { color: var(--color-text-muted); font-size: 0.88rem; line-height: 1.55; margin-top: 0.9rem; max-width: 19rem; }
.footer-links { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-heading { color: var(--color-text); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 0.35rem; text-transform: uppercase; }
.footer-nav a { color: var(--color-text-muted); font-size: 0.84rem; }
.footer-nav a:hover { color: var(--color-primary-light); }
.footer-bottom { align-items: center; border-top: 1px solid var(--color-border); color: var(--color-text-subtle); display: flex; font-size: 0.76rem; gap: 1rem; justify-content: space-between; padding-top: 1.4rem; }

@media (max-width: 900px) {
  .site-nav { gap: 0.9rem; }
  .site-nav a:not(.btn) { font-size: 0.78rem; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-image-link { aspect-ratio: 16 / 8; grid-row: 1; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-product-bridge-inner { grid-template-columns: 1fr auto; }
  .journal-product-bridge .eyebrow { grid-column: 1 / -1; }
  .footer-grid { gap: 3rem; grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }
  .header-inner { height: 4.2rem; }
  .site-logo { height: 1.85rem; }
  .menu-toggle { align-items: center; display: inline-flex; justify-content: center; margin-right: -0.55rem; }
  .site-nav { background: var(--color-mobile-nav); border-bottom: 1px solid var(--color-border); border-top: 1px solid var(--color-border); display: none; flex-direction: column; gap: 0; left: 0; padding: 0.7rem 1.1rem 1.1rem; position: absolute; right: 0; top: 4.2rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { border-bottom: 1px solid var(--color-border); color: var(--color-text); font-size: 0.92rem; padding: 0.9rem 0; width: 100%; }
  .site-nav .theme-toggle { border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; justify-content: flex-start; min-height: 3rem; padding-left: 0; width: 100%; }
  .site-nav .btn { margin-top: 0.75rem; width: 100%; }
  .journal-hero { padding-top: 4.2rem; }
  .journal-hero-grid { grid-template-columns: 1fr; }
  .journal-hero h1 { font-size: clamp(2.7rem, 13vw, 4.1rem); }
  .journal-hero-note { max-width: 31rem; }
  .feed-header { align-items: flex-start; flex-direction: column; gap: 1.1rem; }
  .featured-post { margin-bottom: 2.4rem; }
  .featured-post-image-link { aspect-ratio: 16 / 10; }
  .post-grid { grid-template-columns: 1fr; }
  .journal-product-bridge-inner { align-items: flex-start; grid-template-columns: 1fr; padding-bottom: 3rem; padding-top: 3rem; }
  .journal-product-bridge .btn { width: 100%; }
  .post-header, .page-header { padding-top: 3.5rem; }
  .post-title, .page-title { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .post-meta { flex-wrap: wrap; gap: 0.8rem; }
  .gh-content { font-size: 1rem; line-height: 1.75; }
  .gh-content .kg-gallery-row { flex-direction: column; }
  .gh-content .kg-bookmark-container { flex-direction: column; }
  .gh-content .kg-bookmark-thumbnail { flex-basis: auto; min-height: 10rem; order: -1; }
  .gh-content .kg-width-wide,
  .gh-content .kg-width-full {
    left: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    transform: none;
    width: 100vw;
  }
  .post-feature-image, .page-feature-image { margin-bottom: 2.5rem; }
  .subscribe-inner { gap: 2rem; grid-template-columns: 1fr; }
  .subscribe-form .form-group { flex-direction: column; }
  .subscribe-form .btn { width: 100%; }
  .footer-links { gap: 2rem 1rem; grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
