/*
Theme Name: DMW
Template: twentyseventeen
Description: David Monis-Weston personal site — informededucation.com
Version: 1.6.0
Author: David Monis-Weston
*/

/* ================================================================
   DESIGN SYSTEM — custom properties
   ================================================================ */

:root {
  --bg: #faf7f0;
  --ink: #171513;
  --ink-soft: #3a332d;
  --ink-mute: #75695c;
  --rule: #1715131a;
  --accent: oklch(0.55 0.13 35);
  --accent-soft: oklch(0.9 0.04 40);
  --paper: #f4efe4;
  --max: 1240px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-y: 88px;
  --hero-y: 100px;
}

/* Offset anchor targets below sticky nav on all pages */
#top, #work, #labs, #writing, #media, #book, #speaking, #about, #contact,
#path, #working-assumptions, #commitments, #what-i-help-with {
  scroll-margin-top: 72px;
}

/* Narrower reading measure for single posts */
:root {
  --measure: 680px;
  --wide: 880px;
}
.dmw-measure {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Dark theme — front page + blog + single posts */
body.single-post {
  --bg: #141210;
  --ink: #f0ebe0;
  --ink-soft: #cfc6b6;
  --ink-mute: #8a8174;
  --rule: #f0ebe01a;
  --paper: #1f1c18;
  --accent: oklch(0.7 0.12 40);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.single-post a { color: inherit; text-decoration: none; }

body.home {
  --bg: #141210;
  --ink: #f0ebe0;
  --ink-soft: #cfc6b6;
  --ink-mute: #8a8174;
  --rule: #f0ebe01a;
  --paper: #1f1c18;
  --accent: oklch(0.7 0.12 40); /* lighter terracotta readable on dark bg */
}

/* ================================================================
   BLOG PAGE — filter, posts, year groups
   ================================================================ */

body.blog { background: var(--bg); color: var(--ink); }

/* Sticky filter bar */
.dmw-filter-bar {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 57px;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
}

/* Filter chips */
.dmw-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dmw-chip:hover { color: var(--ink); }
.dmw-chip-active {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--rule);
}
.dmw-chip-count { color: var(--ink-mute); margin-left: 4px; }

/* Year groups */
.dmw-year-group { margin-top: 48px; }
.dmw-year-label {
  font-family: 'Fraunces', serif;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* Post row */
.dmw-post-row {
  display: grid;
  grid-template-columns: 130px 1fr 32px;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.dmw-post-row:hover {
  background: color-mix(in srgb, var(--paper) 50%, transparent);
}

.dmw-post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}
.dmw-post-cat { color: var(--ink); font-weight: 500; }
.dmw-post-cat.is-accent { color: var(--accent); }

/* Media type pills (Video / Article / Audio / Publication) */
.dmw-media-type {
  font-weight: 500;
  letter-spacing: 0.12em;
}
.dmw-media-video       { color: var(--accent); }
.dmw-media-audio       { color: #d9b76a; }          /* warm gold */
.dmw-media-article     { color: var(--ink); }
.dmw-media-publication { color: #9ab7a5; }          /* muted sage */
.dmw-media-outlet {
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 10px;
}
.dmw-media-outlet-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 6px 0 4px;
}

.dmw-post-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
  transition: color .15s;
}
.dmw-post-title.is-accent { color: var(--accent); }
.dmw-post-row:hover .dmw-post-title { color: var(--accent); }

.dmw-post-excerpt {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dmw-post-arrow {
  color: var(--ink-mute);
  font-size: 14px;
  align-self: start;
  text-align: right;
  padding-top: 4px;
  transition: color .15s;
}
.dmw-post-row:hover .dmw-post-arrow { color: var(--ink); }

/* Pagination numbers */
.dmw-page-nums .nav-links {
  display: flex;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.dmw-page-nums .page-numbers {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  border-radius: 2px;
  border: none;
  background: none;
  text-decoration: none;
  padding: 0;
}
.dmw-page-nums .page-numbers:hover { color: var(--ink); }
.dmw-page-nums .page-numbers.current {
  background: var(--ink);
  color: var(--bg);
}

/* Blog responsive */
@media (max-width: 720px) {
  .dmw-post-row { grid-template-columns: 1fr 24px !important; gap: 8px 16px !important; }
  .dmw-post-row .dmw-post-meta { grid-column: 1 / -1; flex-direction: row; gap: 8px; }
}

/* ================================================================
   GLOBAL TYPOGRAPHY (all pages)
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

body,
button, input, select, textarea {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

code, pre, kbd, .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ================================================================
   TWENTYSEVENTEEN OVERRIDES (inner pages)
   ================================================================ */

body:not(.home) {
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

/* Site header */
.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.custom-header { background: var(--bg) !important; }

.site-title a,
.site-title a:hover,
.site-title a:focus {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink) !important;
  text-decoration: none;
}

.site-description {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Navigation */
.main-navigation a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.main-navigation a:hover { color: var(--ink); }
.main-navigation .current-menu-item > a { color: var(--ink); }

/* Entry */
.entry-title,
.entry-title a {
  font-family: 'Fraunces', serif;
  font-weight: 350;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
}
.entry-title a:hover { color: var(--ink-soft); }

.entry-content {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }

.entry-content h1, .entry-content h2,
.entry-content h3, .entry-content h4 {
  font-family: 'Fraunces', serif;
  font-weight: 350;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2em;
}

.entry-content p { margin-bottom: 1.4em; }

.entry-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5em;
  color: var(--ink-mute);
  font-style: italic;
  margin: 2em 0;
}

/* Post meta */
.entry-meta,
.entry-footer,
.posted-on,
.byline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Archive / blog index */
.page-header .page-title {
  font-family: 'Fraunces', serif;
  font-weight: 350;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 5vw, 56px);
}

/* Site footer */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer a { color: var(--ink-mute); }
.site-footer a:hover { color: var(--ink); }

/* Buttons */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  font-family: 'Inter', sans-serif;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .2s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ================================================================
   FRONT PAGE — design system
   ================================================================ */

body.home {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  transition: background .4s ease, color .4s ease;
  margin: 0;
  padding: 0;
}

body.home a { color: inherit; text-decoration: none; }
body.home .serif { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
body.home .container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
body.home .rule { height: 1px; background: var(--rule); width: 100%; }

body.home section { padding: var(--section-y) 0; }
body.home .hero-section { padding-top: var(--hero-y) !important; padding-bottom: calc(var(--hero-y) * 0.7) !important; }

/* NAV */
body.home .dmw-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--rule);
}
body.home .dmw-nav-inner {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 0;
}

/* Front-page nav — brand · sections · /Blog */
.dmw-nav-inner--fp {
  gap: 24px;
  flex-wrap: wrap;
  align-items: baseline;
}
.dmw-nav-sections {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  align-items: baseline;
  flex: 1;
  justify-content: center;
}
.dmw-nav-sections a {
  position: relative;
  padding-bottom: 2px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.dmw-nav-sections a:hover { color: var(--ink); }
.dmw-nav-sections a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.dmw-nav-sections a:hover::after { transform: scaleX(1); }

.dmw-blog-link {
  display: flex; align-items: baseline; gap: 14px;
  font-family: 'Fraunces', serif; text-decoration: none;
  flex-shrink: 0;
}
.dmw-nav-divider { color: var(--ink-mute); font-weight: 300; font-size: 18px; }
.dmw-nav-label {
  font-style: italic; font-weight: 400; font-size: 20px;
  color: var(--accent); letter-spacing: -0.01em;
}
body.home .dmw-brand {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
body.home .dmw-brand em { font-style: italic; font-weight: 400; color: var(--ink-mute); }
body.home .dmw-nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-soft); }
body.home .dmw-nav-links a { position: relative; padding-bottom: 2px; color: var(--ink-soft); text-decoration: none; }
body.home .dmw-nav-links a:hover { color: var(--ink); }
body.home .dmw-nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
body.home .dmw-nav-links a:hover::after { transform: scaleX(1); }

/* BTN */
body.home .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 13px; letter-spacing: 0.02em;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: all .2s ease; text-decoration: none;
}
body.home .btn:hover { background: var(--ink); color: var(--bg); }
body.home .btn-ghost { border-color: var(--rule); color: var(--ink-soft); }
body.home .btn-ghost:hover { border-color: var(--ink); color: var(--bg); background: var(--ink); }
body.home .arrow { display: inline-block; transition: transform .2s; }
body.home .btn:hover .arrow { transform: translateX(3px); }

/* EYEBROW */
body.home .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 10px;
}
body.home .eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--ink-mute); }
body.home .eyebrow.no-line::before { display: none; }

/* WRITING ROWS */
body.home .writing-row,
body.home .typo-row { transition: opacity .15s; }
body.home .writing-row:hover,
body.home .typo-row:hover { opacity: 0.7; }
body.home .featured-row { transition: opacity .15s; }
body.home .featured-row:hover { opacity: 0.85; }

/* FOOTER */
body.home .dmw-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
body.home .dmw-footer-inner {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; align-items: baseline;
}
body.home .dmw-footer .mono {
  font-size: 12px; color: var(--ink-mute); letter-spacing: 0.08em;
}

/* Status chips (Labs section) */
.status-chip {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-chip.is-live  { color: var(--accent); }
.status-chip.is-other { color: var(--ink-mute); }

/* ================================================================
   FRONT PAGE — responsive
   ================================================================ */

@media (max-width: 860px) {
  body.home .labs-grid { grid-template-columns: 1fr !important; }
  body.home .two-col { grid-template-columns: 1fr !important; gap: 40px !important; }
  body.home .two-col .sticky-label { position: static !important; }
  body.home .hero-grid { grid-template-columns: 1fr !important; }
  body.home .featured-row { grid-template-columns: 1fr !important; gap: 24px !important; }
  body.home .help-grid { grid-template-columns: 1fr !important; }
  body.home .byline-strip { grid-template-columns: 1fr 1fr !important; }
  body.home .byline-strip > div:nth-child(n+3) { display: none; }
  /* Tighten section gaps on medium screens */
  .dmw-nav-sections { gap: 14px; font-size: 12px; justify-content: flex-start; }
}

/* Mobile — section links drop onto a second row below brand / Blog */
@media (max-width: 600px) {
  .dmw-nav-inner--fp { padding-bottom: 0; row-gap: 0; }
  .dmw-brand { order: 1; }
  .dmw-blog-link { order: 2; margin-left: auto; }
  .dmw-nav-sections {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 16px;
    font-size: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 14px;
    border-top: 1px solid var(--rule);
    margin-top: 4px;
    padding-top: 12px;
  }
  .dmw-nav-sections::-webkit-scrollbar { display: none; }
}

@media (max-width: 560px) {
  body.home .writing-row { grid-template-columns: 1fr auto !important; }
  body.home .writing-row > :first-child { display: none; }
}

/* ================================================================
   INNER PAGES — shared nav, content, footer
   ================================================================ */

/* Inner nav */
.dmw-inner-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.dmw-inner-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.dmw-brand {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.dmw-brand em { font-style: italic; font-weight: 400; color: var(--ink-mute); }

.dmw-nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.dmw-nav-links a {
  position: relative;
  padding-bottom: 2px;
  color: var(--ink-soft);
  text-decoration: none;
}
.dmw-nav-links a:hover { color: var(--ink); }
.dmw-nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.dmw-nav-links a:hover::after { transform: scaleX(1); }

/* Content wrap */
.dmw-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Entry header */
.dmw-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.dmw-entry-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 48px;
}

/* Entry content */
.dmw-entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.dmw-entry-content p { margin-bottom: 1.4em; }
.dmw-entry-content a { color: var(--accent); }
.dmw-entry-content a:hover { text-decoration: underline; }

.dmw-entry-content h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 350;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.4em 0 0.6em;
  border-top: 1px solid var(--rule);
  padding-top: 1.2em;
}
.dmw-entry-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.dmw-entry-content h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 2em 0 0.5em;
}

.dmw-entry-content ul,
.dmw-entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}
.dmw-entry-content li { margin-bottom: 0.4em; }

.dmw-entry-content blockquote {
  border-left: 2px solid var(--accent);
  margin: 2em 0;
  padding: 0.5em 0 0.5em 1.5em;
  color: var(--ink-mute);
  font-style: italic;
  font-size: 18px;
}
.dmw-entry-content blockquote p { margin: 0; }

.dmw-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
  margin: 2em auto;
}

.dmw-entry-content pre {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.4em;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.dmw-entry-content code {
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.875em;
}

/* Back link */
.dmw-entry-footer { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--rule); }
.dmw-back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
}
.dmw-back-link:hover { color: var(--ink); }

/* Inner footer */
.dmw-inner-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.dmw-inner-footer a {
  color: var(--ink-mute);
  text-decoration: none;
}
.dmw-inner-footer a:hover { color: var(--ink); }

/* Pagination */
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links .page-numbers {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: all .2s;
}
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
  border-color: var(--ink);
  color: var(--ink);
}
.nav-links .page-numbers.current {
  background: var(--ink);
  color: var(--bg);
}

/* Responsive */
@media (max-width: 860px) {
  .dmw-nav-links a:nth-child(n+3) { display: none; }
  .dmw-nav-links { gap: 16px; }
}

/* ================================================================
   SINGLE POST — reading progress bar
   ================================================================ */

.dmw-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 60;
  transition: transform .1s linear;
}

/* ================================================================
   SINGLE POST — post header
   ================================================================ */

.post-header {
  padding: clamp(48px, 8vw, 120px) 0 clamp(32px, 5vw, 56px);
}
.dmw-breadcrumb {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 36px;
}
.dmw-breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.dmw-breadcrumb a:hover { color: var(--ink); }
.bc-sep { opacity: 0.5; }
.bc-current { color: var(--ink); }

.dmw-post-category {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); padding: 5px 12px;
  border: 1px solid var(--accent); border-radius: 999px;
  margin-bottom: 28px; text-decoration: none;
}
h1.dmw-post-title {
  font-family: 'Fraunces', serif; font-weight: 350;
  font-size: clamp(36px, 5.5vw, 68px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0; max-width: 20ch;
  color: var(--ink);
}
h1.dmw-post-title em { font-style: italic; font-weight: 400; }
.dmw-dek {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.4;
  color: var(--ink-soft); margin: 28px 0 0; max-width: 36ch;
}
.dmw-byline-strip {
  margin-top: 48px; padding: 20px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}
.dmw-byline-item { display: flex; flex-direction: column; gap: 4px; }
.dmw-byline-item .bv { color: var(--ink); }

/* ================================================================
   SINGLE POST — article body (Fraunces reading type)
   ================================================================ */

.article-body { padding: clamp(40px, 6vw, 80px) 0; }
.article-body > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.article-body p,
.article-body ul,
.article-body ol {
  font-family: 'Fraunces', Georgia, serif; font-weight: 350;
  font-size: 20px; line-height: 1.6; color: var(--ink-soft);
  margin: 0 auto 1.35em; letter-spacing: -0.005em;
}
.article-body p { max-width: var(--measure); }
.article-body strong { color: var(--ink); font-weight: 500; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--ink); border-bottom: 1px solid var(--accent);
  padding-bottom: 1px; transition: color .15s; text-decoration: none;
}
.article-body a:hover { color: var(--accent); }

.article-body.has-dropcap > p:first-of-type::first-letter {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 5.2em; float: left; line-height: 0.88;
  margin: 0.08em 0.12em 0 -0.02em; color: var(--ink);
}

.article-body h2 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 2em auto 0.6em; max-width: var(--measure);
}
.article-body h2 em { font-style: italic; }
.article-body h3 {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 18px; letter-spacing: 0.01em; color: var(--ink);
  margin: 1.8em auto 0.4em; max-width: var(--measure);
}
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin: 0.4em 0; }
.article-body li::marker { color: var(--ink-mute); }

.article-body blockquote {
  max-width: var(--wide); margin: 2em auto;
  padding: 12px 0 12px 32px; border-left: 2px solid var(--accent);
  font-family: 'Fraunces', serif; font-weight: 350; font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35;
  color: var(--ink); letter-spacing: -0.01em;
}
.article-body blockquote cite {
  display: block; margin-top: 16px;
  font-family: 'JetBrains Mono', monospace; font-style: normal;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.article-body figure { max-width: var(--wide); margin: 2.5em auto; }
.article-body figure img { width: 100%; height: auto; display: block; background: var(--paper); }
.article-body figcaption {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-mute); margin-top: 14px; padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.article-body code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85em;
  background: var(--paper); color: var(--ink);
  padding: 2px 6px; border-radius: 3px; border: 1px solid var(--rule);
}
.article-body hr {
  border: 0; margin: 3em auto; max-width: var(--measure);
  text-align: center; color: var(--ink-mute);
}
.article-body hr::before {
  content: "· · ·"; letter-spacing: 1em;
  font-family: 'Fraunces', serif; font-size: 14px;
}
.article-body .wp-block-image,
.article-body .alignwide { max-width: var(--wide); margin-left: auto; margin-right: auto; }

/* ================================================================
   SINGLE POST — foot, tags, share
   ================================================================ */

.dmw-post-foot {
  border-top: 1px solid var(--rule); padding: 40px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 20px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}
.dmw-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dmw-tag {
  padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; transition: all .15s;
}
.dmw-tag:hover { color: var(--ink); border-color: var(--ink); }
.dmw-share { display: flex; gap: 16px; align-items: center; }
.dmw-share a { color: var(--ink-mute); text-decoration: none; }
.dmw-share a:hover { color: var(--ink); }
.dmw-copy-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); transition: color .15s;
}
.dmw-copy-link:hover { color: var(--ink); }

/* ================================================================
   SINGLE POST — author card
   ================================================================ */

.dmw-author {
  padding: 40px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 24px; align-items: center;
}
.dmw-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--paper); border: 1px solid var(--rule);
}
.dmw-avatar img { width: 80px; height: 80px; border-radius: 50%; display: block; }
.dmw-author-name { font-family: 'Fraunces', serif; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.dmw-author-bio { font-size: 14px; color: var(--ink-mute); margin-top: 4px; max-width: 52ch; }

/* ================================================================
   SINGLE POST — prev / next pager
   ================================================================ */

.dmw-pager {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--rule);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.dmw-pager a {
  background: var(--bg); padding: 32px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .15s; text-decoration: none;
}
.dmw-pager a:hover { background: var(--paper); }
.pager-dir {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.pager-next { text-align: right; align-items: flex-end; }
.pager-t {
  font-family: 'Fraunces', serif; font-size: 20px;
  line-height: 1.25; letter-spacing: -0.01em; color: var(--ink);
}
.dmw-pager a:hover .pager-t { color: var(--accent); }

/* ================================================================
   SINGLE POST — related posts
   ================================================================ */

.dmw-related { padding: 72px 0 48px; }
.dmw-related-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.dmw-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.dmw-related-grid a {
  background: var(--bg); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 220px; transition: background .15s; text-decoration: none;
}
.dmw-related-grid a:hover { background: var(--paper); }
.dmw-related-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); display: flex; gap: 12px;
}
.dmw-related-cat { color: var(--ink); }
.dmw-related-title {
  font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink); margin: 0;
}
.dmw-related-grid a:hover .dmw-related-title { color: var(--accent); }
.dmw-related-read { font-size: 14px; color: var(--ink-mute); margin-top: auto; }

/* ================================================================
   SINGLE POST — responsive
   ================================================================ */

@media (max-width: 860px) {
  .dmw-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dmw-pager { grid-template-columns: 1fr; }
  .dmw-author { grid-template-columns: 60px 1fr; }
  .dmw-author-follow { grid-column: 1 / -1; }
  .dmw-post-foot { flex-direction: column; align-items: flex-start; }
}
