/* ═══════════════════════════════════════════════════════════════
   system3 / main.css
   All styles in one file. Custom properties at :root.
   Visual target: docs/design/system3-font-explorer-v8.html
═══════════════════════════════════════════════════════════════ */


/* ───────────────────────────────
   DESIGN TOKENS
─────────────────────────────── */
:root {
  /* Ink palette */
  --ink:          #1C1C1A;
  --ink-mid:      #4A4A42;
  --ink-muted:    #7A7A70;
  --ink-faint:    #C0B8A8;
  --rule:         #D0C8B8;

  /* Green accent (primary) */
  --green:        #6FA810;
  --green-dk:     #3A6000;
  --green-pale:   #EBF5D0;

  /* Page background */
  --cream:        #F4EFE4;

  /* Top bar */
  --hdr-bg:       #1A1C18;
  --hdr-fg:       #F4EFE4;

  /* Code block */
  --code-bg:      #272B20;
  --code-fg:      #C8DCA0;
  --code-kw:      #9FCC38;
  --code-str:     #E8C060;
  --code-cmt:     #607050;
  --code-tag:     #70C890;
  --code-atr:     #B8D860;

  /* Font stacks */
  --font-sans:    'Jost', system-ui, sans-serif;
  --font-serif:   'EB Garamond', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-mono:    'MonoLisa', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;

  /* Layout */
  --page-max:     1100px;
  --page-pad:     1.5rem;
  --side-width:   230px;
  --side-gap:     3.5rem;
}


/* ───────────────────────────────
   RESET
─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.72;
  min-height: 100vh;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ───────────────────────────────
   TOP BAR
─────────────────────────────── */
.site-header {
  background: var(--hdr-bg);
  color: var(--hdr-fg);
  min-height: 48px;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--hdr-fg);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list a {
  font-family: var(--font-serif);
  font-size: 0.57rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-list a:hover,
.nav-list a.nav-current {
  color: rgba(255, 255, 255, 0.9);
}


/* ───────────────────────────────
   BREADCRUMB
─────────────────────────────── */
.breadcrumb {
  padding: 0.48rem var(--page-pad);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.38rem;
  background: var(--cream);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--ink-faint);
  font-style: normal;
}

.breadcrumb .bc-cur {
  color: var(--ink);
  font-style: italic;
}


/* ───────────────────────────────
   PAGE OUTER + TUFTE GRID
─────────────────────────────── */
.page-outer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2.5rem var(--page-pad) 5rem;
}

.tufte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-width);
  gap: 0 var(--side-gap);
  align-items: start;
}

.main-col {
  min-width: 0;
}

.side-col {
  position: relative;
}


/* ───────────────────────────────
   POST HEADER
─────────────────────────────── */
.kicker {
  font-family: var(--font-serif);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.48rem;
}

.kicker a {
  color: inherit;
  text-decoration: none;
}

.kicker a:hover {
  text-decoration: underline;
}

.article-h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--green);
  font-size: 1.65rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.article-subtitle {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--ink-mid);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.byline {
  font-family: var(--font-serif);
  font-size: 0.73rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 1.35rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.8rem;
}

.byline a {
  color: inherit;
  text-decoration: none;
}

.byline a:hover {
  text-decoration: underline;
}


/* ───────────────────────────────
   PROSE
─────────────────────────────── */
.prose p {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.prose h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.62rem;
}

.prose h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  color: var(--ink-mid);
  margin-top: 1.5rem;
  margin-bottom: 0.42rem;
  line-height: 1.3;
}

.prose h4,
.prose h5,
.prose h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-mid);
  margin-top: 1.25rem;
  margin-bottom: 0.38rem;
  line-height: 1.4;
}

.prose ul,
.prose ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--ink);
}

.prose li {
  margin-bottom: 0.3rem;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--green-dk);
}

.prose strong {
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

/* Pull quote — from Ghost blockquote card */
.prose blockquote {
  border-left: 3px solid var(--green);
  padding: 0.32rem 0 0.32rem 1.15rem;
  margin: 1.75rem 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-mid);
}

.prose blockquote p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin-bottom: 0;
}

/* Superscript footnote references */
.prose sup {
  color: var(--green);
  font-size: 0.78em;
  font-weight: 500;
  vertical-align: super;
  line-height: 0;
  font-family: var(--font-serif);
}

.prose sup a {
  color: inherit;
  text-decoration: none;
}

.prose sup a:hover {
  text-decoration: underline;
}


/* ───────────────────────────────
   INLINE CODE
─────────────────────────────── */
.prose code,
.prose :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.80em;
  background: var(--green-pale);
  color: var(--green-dk);
  padding: 0.1em 0.32em;
  border-radius: 1px;
  font-feature-settings: "liga" 1, "calt" 1, "zero" 1;
}


/* ───────────────────────────────
   CODE BLOCKS
─────────────────────────────── */
.prose pre {
  background: var(--code-bg);
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  position: relative;
  margin: 1.4rem 0;
}

.prose pre code {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.72;
  color: var(--code-fg);
  background: none;
  padding: 0;
  border-radius: 0;
  display: block;
  white-space: pre;
  font-feature-settings: "liga" 1, "calt" 1, "zero" 1;
}

/* Language tag — low-opacity top-right label */
.prose pre[class*="language-"]::before,
.prose pre[data-language]::before {
  content: attr(data-language);
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* Ghost card code block — .kg-code-card */
.kg-code-card pre {
  background: var(--code-bg);
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  margin: 1.4rem 0;
}

.kg-code-card pre code {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.72;
  color: var(--code-fg);
  background: none;
  padding: 0;
}


/* ───────────────────────────────
   FIGURES
─────────────────────────────── */

/* Column-width figure with caption */
.figure-col {
  margin: 1.6rem 0;
}

.figure-col img {
  display: block;
  width: 100%;
  height: auto;
}

/* Column-width, no caption — subtle bottom rule */
.figure-col.no-caption {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1.6rem;
}

/* Wide figure — extends into sidenote margin */
.figure-wide {
  margin: 1.6rem 0;
  width: calc(100% + var(--side-width) + var(--side-gap));
}

.figure-wide img {
  display: block;
  width: 100%;
  height: auto;
}

/* Figure caption */
.fig-caption,
.prose figcaption {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  line-height: 1.18;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0.45rem;
  padding-left: 0.1rem;
}

.fig-caption strong,
.prose figcaption strong {
  font-weight: 600;
  font-style: normal;
  color: var(--ink-mid);
}

/* Ghost image cards */
.kg-image-card {
  margin: 1.6rem 0;
}

.kg-image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.kg-image-card figcaption {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  line-height: 1.18;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0.45rem;
}

.kg-width-wide .kg-image {
  width: calc(100% + var(--side-width) + var(--side-gap));
  max-width: calc(100% + var(--side-width) + var(--side-gap));
}

.kg-width-full .kg-image {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}


/* ───────────────────────────────
   SIDENOTES (desktop)
─────────────────────────────── */
.sidenote {
  font-family: var(--font-serif);
  font-size: 0.80rem;
  line-height: 1.62;
  color: var(--ink-muted);
  font-style: italic;
  border-left: 2px solid var(--green);
  padding-left: 0.65rem;
  position: absolute;
  width: var(--side-width);
}

.sidenote .sn-n {
  color: var(--green);
  font-size: 0.78em;
  font-weight: 500;
  vertical-align: super;
  line-height: 0;
  margin-right: 0.15rem;
}

/* Mobile inline sidenote callout */
.sn-inline {
  display: none;
  background: var(--green-pale);
  border-left: 2px solid var(--green);
  padding: 0.38rem 0.65rem;
  font-family: var(--font-serif);
  font-size: 0.80rem;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.55;
  margin: 0.38rem 0 1rem;
}

.sn-inline .sn-n {
  color: var(--green);
  font-size: 0.78em;
  font-weight: 500;
  vertical-align: super;
  line-height: 0;
  margin-right: 0.15rem;
}


/* ───────────────────────────────
   FOOTNOTES (article bottom)
─────────────────────────────── */
.prose .footnotes,
.prose section.footnotes {
  border-top: 1px solid var(--rule);
  margin-top: 2.4rem;
  padding-top: 1.1rem;
}

.prose .footnotes ol,
.prose section.footnotes ol {
  padding-left: 1.2rem;
}

.prose .footnotes li,
.prose section.footnotes li {
  font-family: var(--font-serif);
  font-size: 0.83rem;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 0.55rem;
}

.prose .footnotes li p,
.prose section.footnotes li p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin-bottom: 0;
  display: inline;
}

/* Back-reference link */
.prose .footnotes a.footnote-backref,
.prose section.footnotes a[role="doc-backlink"] {
  color: var(--green);
  text-decoration: none;
  margin-left: 0.25rem;
  font-style: normal;
}

/* Footnote number marker */
.prose .footnotes li::marker,
.prose section.footnotes li::marker {
  color: var(--green);
  font-size: 0.80rem;
  font-weight: 500;
  font-style: normal;
}


/* ───────────────────────────────
   POST HERO (homepage first post)
   See ADR-0004
─────────────────────────────── */
.post-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid var(--ink);
  /* Full width of page-outer — text constrained separately in .ph-body */
}

/* Feature image: breaks out of page-outer padding to reach its edges */
.ph-image {
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  margin-bottom: 1.75rem;
}

.ph-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.ph-body {
  max-width: 680px;
}

/* H1-scale title in --ink (not green — see ADR-0004 for rationale) */
.ph-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.ph-title a {
  color: inherit;
  text-decoration: none;
}

.ph-title a:hover {
  color: var(--green);
}

.ph-excerpt {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--ink-mid);
  margin-bottom: 0.75rem;
}

/* Post feature image in post.hbs (additional top margin to breathe after byline rule) */
.post-feature-image {
  margin-top: 2rem;
}


/* ───────────────────────────────
   POST LISTING (index / tag / author)
─────────────────────────────── */
.post-listing {
  max-width: 680px;
}

.post-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-card:first-child {
  padding-top: 0;
}

.pc-kicker {
  font-family: var(--font-serif);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.32rem;
}

.pc-kicker a {
  color: inherit;
  text-decoration: none;
}

.pc-kicker a:hover {
  text-decoration: underline;
}

.pc-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.42rem;
}

.pc-title a {
  color: inherit;
  text-decoration: none;
}

.pc-title a:hover {
  color: var(--green);
}

.pc-excerpt {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-mid);
  margin-bottom: 0.62rem;
}

.pc-byline {
  font-family: var(--font-serif);
  font-size: 0.73rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ───────────────────────────────
   ARCHIVE HEADER (tag / author pages)
─────────────────────────────── */
.archive-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.archive-label {
  font-family: var(--font-serif);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.archive-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.archive-desc {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--ink-mid);
  font-style: italic;
  line-height: 1.6;
}

.archive-count {
  font-family: var(--font-serif);
  font-size: 0.73rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* Author archive extras */
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  object-fit: cover;
}

.author-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.author-links a {
  font-family: var(--font-serif);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  text-decoration: none;
}

.author-links a:hover {
  text-decoration: underline;
}


/* ───────────────────────────────
   PAGINATION
─────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 0.78rem;
}

.pagination-older,
.pagination-newer {
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.pagination-older:hover,
.pagination-newer:hover {
  text-decoration: underline;
}

.pagination-info {
  color: var(--ink-muted);
  font-style: italic;
}


/* ───────────────────────────────
   SITE FOOTER
─────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.1rem var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 0.68rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 0.4rem;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-powered {
  font-style: italic;
}


/* ───────────────────────────────
   GHOST CARDS (built-in editor cards)
─────────────────────────────── */

/* Bookmark card */
.kg-bookmark-card {
  border: 1px solid var(--rule);
  margin: 1.4rem 0;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: var(--ink);
}

.kg-bookmark-content {
  padding: 1rem;
  flex: 1;
}

.kg-bookmark-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.kg-bookmark-description {
  font-family: var(--font-serif);
  font-size: 0.83rem;
  color: var(--ink-mid);
  line-height: 1.5;
}

.kg-bookmark-thumbnail {
  width: 160px;
  flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.73rem;
  color: var(--ink-muted);
}

.kg-bookmark-icon {
  width: 16px;
  height: 16px;
}

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 0.75rem;
  background: var(--green-pale);
  border-left: 3px solid var(--green);
  padding: 0.85rem 1rem;
  margin: 1.4rem 0;
}

.kg-callout-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.6;
}

.kg-callout-text {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.65;
}

/* Toggle card */
.kg-toggle-card {
  border: 1px solid var(--rule);
  margin: 1.4rem 0;
}

.kg-toggle-heading {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

.kg-toggle-content {
  padding: 0 1rem 0.75rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* Gallery card */
.kg-gallery-card {
  margin: 1.4rem 0;
}

.kg-gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.kg-gallery-image {
  flex: 1 1 auto;
  min-width: 200px;
}

.kg-gallery-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Header card */
.kg-header-card {
  background: var(--hdr-bg);
  color: var(--hdr-fg);
  padding: 3rem var(--page-pad);
  margin: 1.4rem 0;
  text-align: center;
}

.kg-header-card h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--hdr-fg);
}

/* Button card */
.kg-button-card {
  text-align: left;
  margin: 1.4rem 0;
}

.kg-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.kg-btn:hover {
  background: var(--green-dk);
  text-decoration: none;
  color: #fff;
}

/* Video card */
.kg-video-card {
  margin: 1.4rem 0;
}

/* Audio card */
.kg-audio-card {
  border: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  margin: 1.4rem 0;
}

/* File card */
.kg-file-card {
  border: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  margin: 1.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kg-file-card a {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--green);
}


/* ───────────────────────────────
   COMMENTS
─────────────────────────────── */
.post-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}


/* ───────────────────────────────
   PAGE TEMPLATE (static pages)
─────────────────────────────── */
.page-content {
  max-width: 680px;
}


/* ───────────────────────────────
   ERROR PAGES
─────────────────────────────── */
.error-page {
  max-width: 560px;
  margin: 4rem auto;
  padding: 0 var(--page-pad);
  text-align: center;
}

.error-code {
  font-family: var(--font-sans);
  font-size: 4rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-message {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink-mid);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.error-link {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ───────────────────────────────
   RESPONSIVE
─────────────────────────────── */
@media (max-width: 760px) {
  html {
    font-size: 17px;
  }

  .tufte {
    grid-template-columns: 1fr;
  }

  .side-col {
    display: none;
  }

  .sn-inline {
    display: block;
  }

  .figure-wide {
    width: 100%;
  }

  .kg-width-wide .kg-image {
    width: 100%;
    max-width: 100%;
  }

  .article-h1 {
    font-size: 1.42rem;
  }

  .ph-title {
    font-size: 1.42rem;
  }

  .post-listing {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0 1rem;
  }

  .page-outer {
    padding: 1.75rem 1rem 3.5rem;
  }

  /* Match negative margin to reduced page-outer padding */
  .ph-image {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .breadcrumb {
    padding: 0.38rem 1rem;
  }

  .site-footer {
    padding: 0.85rem 1rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .kg-bookmark-container {
    flex-direction: column;
  }

  .kg-bookmark-thumbnail {
    width: 100%;
    height: 140px;
  }
}
