/* =========================================================
   PEP IN STEP — pepinstep.net
   Lab-notebook editorial. Pen & Paper palette.
   ========================================================= */

:root{
  /* palette */
  --paper:        #F1ECDF;
  --paper-2:      #E8E1CF;
  --paper-edge:   #D8CFB5;
  --grid:         rgba(28, 41, 64, 0.06);
  --grid-strong:  rgba(28, 41, 64, 0.11);
  --ink:          #1C2940;
  --ink-2:        #41506C;
  --ink-3:        #6C7790;
  --pen:          #C8362A;
  --pen-soft:     #E27265;
  --highlight:    #F4E07A;
  --reagent-1:    #2B5F3F;
  --reagent-2:    #B8861B;

  /* type stacks */
  --mono:  "IBM Plex Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --serif: "IBM Plex Serif", "Iowan Old Style", Georgia, serif;
  --hand:  "Caveat", "Bradley Hand", cursive;

  /* spacing */
  --page-pad: 32px;
  --max:      1180px;
  --max-read: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }

body{
  background:
    linear-gradient(var(--grid-strong) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--paper);
  min-height: 100vh;
  position: relative;
}
body::before{
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, rgba(110, 90, 50, 0.06) 70%, rgba(80, 60, 30, 0.11) 100%);
}

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
a:hover { color: var(--pen); text-decoration-color: var(--pen); }

img, svg { max-width: 100%; display: block; }

/* =========================================================
   SITE HEADER (nav)
   ========================================================= */
.site{ position: relative; z-index: 1; }

.site-header{
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.site-header .bar{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--page-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand{ display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover{ color: var(--ink); }
.brand .lab{ font-family: var(--mono); font-size: 10.5px; color: var(--pen); border: 1px solid var(--pen); padding: 2px 7px; letter-spacing: 0.1em; }

/* wordmark */
.wm{ font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 0.9; color: var(--ink); }
.wm .in{
  font-family: var(--mono); font-weight: 500;
  font-size: 0.44em; vertical-align: 0.45em; color: var(--pen);
  border: 1.5px solid var(--pen); padding: 3px 9px; margin: 0 6px;
  text-transform: lowercase; letter-spacing: 0.04em;
  transform: rotate(-2deg); display: inline-block;
}
.wm-sm{ font-size: 24px; }
.wm-md{ font-size: 36px; }
.wm-lg{ font-size: 56px; }
.wm-xl{ font-size: clamp(64px, 9vw, 132px); }

.nav-primary{ display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-primary a{ color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav-primary a:hover{ color: var(--pen); }
.nav-primary a.active{ color: var(--ink); border-bottom-color: var(--ink); }
.nav-primary a.sub{ color: var(--paper); background: var(--ink); padding: 6px 12px; border: 1.5px solid var(--ink); }
.nav-primary a.sub:hover{ background: var(--pen); border-color: var(--pen); color: var(--paper); }

/* =========================================================
   PAGE WRAPPERS
   ========================================================= */
.page{ max-width: var(--max); margin: 0 auto; padding: 56px var(--page-pad) 96px; position: relative; z-index: 1; }
.page-read{ max-width: var(--max-read); margin: 0 auto; padding: 56px var(--page-pad) 96px; position: relative; z-index: 1; }

/* =========================================================
   META BARS & TAGS
   ========================================================= */
.meta-row{ display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.meta-row .iss{ color: var(--pen); border: 1px solid var(--pen); padding: 2px 8px; font-weight: 600; }
.meta-row .dot::before{ content: "·"; margin-right: 6px; color: var(--ink-3); }

.tag{ display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink); padding: 4px 10px; background: var(--paper); border: 1px solid var(--ink); text-transform: uppercase; text-decoration: none; }
.tag:hover{ background: var(--ink); color: var(--paper); }
.tag .sigil{ font-weight: 700; color: var(--pen); }
.tag.hl{ background: var(--highlight); }
.tag.hl:hover{ background: var(--ink); color: var(--paper); }

/* =========================================================
   BYLINE
   ========================================================= */
.byline{ display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.byline .avatar{ width: 40px; height: 40px; background: var(--paper); border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--ink); flex-shrink: 0; }
.byline b{ color: var(--ink); font-weight: 600; }
.byline a{ color: var(--pen); text-decoration: none; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{ display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; padding: 11px 18px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; text-transform: uppercase; text-decoration: none; }
.btn:hover{ background: var(--ink); color: var(--paper); }
.btn.solid{ background: var(--ink); color: var(--paper); }
.btn.solid:hover{ background: var(--pen); border-color: var(--pen); }
.btn.pen{ background: var(--pen); color: var(--paper); border-color: var(--pen); }
.btn.pen:hover{ background: var(--ink); border-color: var(--ink); }
.btn .ar{ font-weight: 400; }
.btn:hover .ar{ transform: translateX(3px); }
.btn .ar{ transition: transform 0.18s ease; }

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */
.hero{ display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: end; padding-bottom: 56px; border-bottom: 1.5px solid var(--ink); }
.hero .hero-meta{ margin-bottom: 22px; }
.hero h1{
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px); line-height: 1.0;
  letter-spacing: -0.025em; margin: 0 0 22px; color: var(--ink);
}
.hero h1 em{ font-style: italic; }
.hero h1 a{ text-decoration: none; color: inherit; }
.hero h1 a:hover{ color: var(--pen); }
.hero .dek{ font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 22px; max-width: 44ch; font-weight: 400; }

.side-protocol{ background: var(--paper-2); border: 1.5px solid var(--ink); padding: 18px; font-family: var(--mono); font-size: 12.5px; align-self: end; }
.side-protocol .h{ display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--ink-3); }
.side-protocol .h .pen{ color: var(--pen); }
.side-protocol .row-r{ display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; }
.side-protocol .row-r .k{ color: var(--ink-3); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; align-self: center; }
.side-protocol .row-r .v{ color: var(--ink); font-weight: 500; }
.side-protocol .row-r.status{ border-top: 1px dashed var(--ink-3); margin-top: 8px; padding-top: 10px; }
.side-protocol .row-r .ok{ color: var(--reagent-1); }

/* =========================================================
   POST LIST (homepage + archive)
   ========================================================= */
.section-head{ display: flex; align-items: baseline; justify-content: space-between; margin: 56px 0 18px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); gap: 18px; }
.section-head h2{ font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.section-head .right{ font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }

.post-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-bottom: 1.5px solid var(--ink); }
.post-grid .post{ padding: 28px 28px 36px; border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.post-grid .post:nth-child(3n){ border-right: 0; }
.post-grid .post .topline{ display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.post-grid .post .topline .n{ color: var(--pen); }
.post-grid .post h3{ font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.18; letter-spacing: -0.012em; margin: 0; color: var(--ink); }
.post-grid .post h3 a{ text-decoration: none; color: inherit; }
.post-grid .post h3 a:hover{ color: var(--pen); }
.post-grid .post p{ font-family: var(--serif); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.post-grid .post .ft{ font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.06em; margin-top: auto; padding-top: 8px; }

/* archive — flat list */
.archive-list{ margin-top: 32px; }
.archive-list .row{ display: grid; grid-template-columns: 90px 90px 1fr auto; gap: 24px; align-items: baseline; padding: 18px 0; border-top: 1px dashed var(--ink-3); }
.archive-list .row:last-child{ border-bottom: 1px dashed var(--ink-3); }
.archive-list .row .num{ font-family: var(--mono); font-size: 11.5px; color: var(--pen); letter-spacing: 0.08em; }
.archive-list .row .date{ font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.archive-list .row .title{ font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.archive-list .row .title a{ text-decoration: none; color: var(--ink); }
.archive-list .row .title a:hover{ color: var(--pen); }
.archive-list .row .title em{ font-style: italic; }
.archive-list .row .filed{ font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }

/* category strip on home */
.cats{ margin-top: 56px; padding: 24px 28px; border: 1.5px solid var(--ink); background: var(--paper); position: relative; }
.cats .cap{ position: absolute; top: -10px; left: 18px; background: var(--paper); padding: 0 10px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink); text-transform: uppercase; }
.cats .row{ display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.cats .count{ font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-left: 4px; }

/* =========================================================
   ARTICLE (post page)
   ========================================================= */
.article-header{ padding: 24px 0 32px; border-bottom: 1px dashed var(--ink-3); }
.article-header .meta-row{ margin-bottom: 26px; }
.article-header h1{
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05;
  letter-spacing: -0.022em; margin: 0 0 18px; color: var(--ink);
}
.article-header h1 em{ font-style: italic; }
.article-header .dek{ font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink-2); margin: 0 0 28px; max-width: 36em; font-weight: 400; }
.article-header .byline-row{ display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.article-header .share{ display: flex; gap: 10px; }
.article-header .share a{ font-family: var(--mono); font-size: 11px; text-decoration: none; padding: 5px 9px; border: 1px solid var(--ink-3); color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; }
.article-header .share a:hover{ border-color: var(--pen); color: var(--pen); }

/* article body — long-form reading */
.article{ padding: 40px 0 24px; }
.article p, .article ul, .article ol{ font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--ink); margin: 0 0 22px; max-width: 64ch; }
.article p.lede:first-of-type::first-letter{
  font-family: var(--serif); font-weight: 400;
  font-size: 5.6em; line-height: 0.85; float: left;
  padding: 6px 10px 0 0; color: var(--ink);
}
.article a{ color: var(--ink); text-decoration-color: var(--pen); text-decoration-thickness: 1.5px; }
.article a:hover{ color: var(--pen); }
.article strong{ font-weight: 600; }
.article em{ font-style: italic; }
.article h2{ font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; letter-spacing: -0.012em; margin: 48px 0 14px; color: var(--ink); }
.article h2::before{ content: "§ "; color: var(--pen); font-family: var(--mono); font-size: 0.6em; font-weight: 600; letter-spacing: 0.08em; vertical-align: 0.18em; }
.article h3{ font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; margin: 36px 0 10px; color: var(--ink); }
.article ul, .article ol{ padding-left: 24px; }
.article li{ margin: 6px 0; padding-left: 4px; }
.article ol li::marker{ font-family: var(--mono); color: var(--pen); font-weight: 600; font-size: 14px; }
.article ul li::marker{ color: var(--pen); }
.article hr{ border: 0; border-top: 1px dashed var(--ink-3); margin: 40px 0; max-width: 64ch; }

/* pull quote */
.pullquote{
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.4; color: var(--ink);
  padding: 8px 0 12px 24px;
  border-left: 3px solid var(--pen);
  margin: 36px 0; max-width: 36em;
  position: relative;
}
.pullquote .star{ position: absolute; left: -6px; top: -14px; font-family: var(--hand); color: var(--pen); font-size: 32px; }
.pullquote cite{ display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; font-style: normal; margin-top: 14px; }

/* in-line highlight */
.hl-pen{ background: var(--highlight); padding: 0 4px; }

/* article protocol block */
.protocol{ background: var(--paper-2); border: 1.5px solid var(--ink); padding: 0; font-family: var(--mono); margin: 32px 0; max-width: 64ch; position: relative; }
.protocol .top{ display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--paper); padding: 11px 16px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.protocol .top .n{ background: var(--pen); padding: 2px 8px; color: var(--paper); }
.protocol table{ width: 100%; border-collapse: collapse; }
.protocol td{ padding: 10px 16px; font-size: 13px; border-bottom: 1px dashed var(--ink-3); }
.protocol tr:last-child td{ border-bottom: 0; }
.protocol td:first-child{ color: var(--ink-3); width: 40%; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.protocol td:last-child{ color: var(--ink); font-weight: 500; }
.protocol .accent{ color: var(--pen); }
.protocol .ok{ color: var(--reagent-1); }
.protocol .note{ padding: 10px 16px; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; font-style: italic; border-top: 1px dashed var(--ink-3); background: var(--paper); }

/* article figure / image */
.fig{ margin: 32px 0; }
.fig .placeholder{
  background:
    repeating-linear-gradient(135deg, var(--paper-edge) 0 10px, var(--paper-2) 10px 20px);
  border: 1.5px solid var(--ink);
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink); letter-spacing: 0.1em; text-transform: uppercase;
}
.fig figcaption{ font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; padding-top: 10px; max-width: 64ch; }
.fig figcaption b{ color: var(--ink); font-weight: 600; }

/* hand-written margin note */
.scribble{ display: inline-block; font-family: var(--hand); color: var(--pen); font-size: 22px; line-height: 1.1; transform: rotate(-2deg); }

/* footnotes */
.fn-ref{ font-family: var(--mono); font-size: 0.75em; color: var(--pen); text-decoration: none; vertical-align: super; padding: 0 1px; }
.fn-ref:hover{ background: var(--highlight); }
.footnotes{ margin-top: 48px; padding-top: 18px; border-top: 1px dashed var(--ink-3); max-width: 64ch; }
.footnotes h4{ font-family: var(--mono); font-size: 11px; color: var(--ink); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.footnotes ol{ font-family: var(--serif); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); padding-left: 22px; margin: 0; }
.footnotes ol li{ margin: 8px 0; }

/* article footer — substack link + tags */
.article-foot{ margin-top: 48px; padding: 24px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.article-foot .ssk{ font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; }
.article-foot .ssk a{ color: var(--pen); text-decoration: none; border-bottom: 1.5px solid var(--pen); padding-bottom: 1px; }

/* next / prev */
.np{ display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 32px; border: 1.5px solid var(--ink); }
.np a{ padding: 20px 22px; text-decoration: none; color: var(--ink); display: block; }
.np a:first-child{ border-right: 1.5px solid var(--ink); }
.np a:hover{ background: var(--paper-2); }
.np a:hover .ttl{ color: var(--pen); }
.np .lbl{ font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.np .ttl{ font-family: var(--serif); font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-hero{ padding: 24px 0 32px; border-bottom: 1px dashed var(--ink-3); }
.about-hero h1{ font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: 0.96; letter-spacing: -0.03em; margin: 0 0 18px; color: var(--ink); }
.about-hero h1 em{ font-style: italic; }
.about-hero .dek{ font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink-2); margin: 0; max-width: 32em; }

/* masthead card */
.masthead{ margin-top: 48px; border: 1.5px solid var(--ink); background: var(--paper); padding: 0; max-width: 64ch; }
.masthead .top{ background: var(--ink); color: var(--paper); padding: 11px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; display: flex; justify-content: space-between; }
.masthead .top .n{ background: var(--pen); padding: 2px 8px; }
.masthead table{ width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.masthead td{ padding: 10px 18px; border-bottom: 1px dashed var(--ink-3); }
.masthead tr:last-child td{ border-bottom: 0; }
.masthead td:first-child{ color: var(--ink-3); width: 32%; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.masthead td:last-child{ color: var(--ink); }
.masthead a{ color: var(--pen); text-decoration: none; }

/* =========================================================
   SUBSCRIBE BLOCK (sitewide, links to substack)
   ========================================================= */
.subscribe{ margin-top: 72px; padding: 40px 32px 44px; border: 1.5px solid var(--ink); background: var(--paper); position: relative; }
.subscribe .cap{ position: absolute; top: -10px; left: 22px; background: var(--paper); padding: 0 10px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--pen); text-transform: uppercase; }
.subscribe h3{ font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 10px; color: var(--ink); max-width: 24ch; }
.subscribe h3 em{ font-style: italic; }
.subscribe p{ font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0 0 22px; max-width: 50ch; }
.subscribe .input{ display: flex; max-width: 480px; border: 1.5px solid var(--ink); background: var(--paper); }
.subscribe .input input{ flex: 1; border: 0; background: transparent; padding: 13px 16px; font-family: var(--mono); font-size: 13.5px; color: var(--ink); outline: none; }
.subscribe .input input::placeholder{ color: var(--ink-3); }
.subscribe .input button{ border: 0; background: var(--ink); color: var(--paper); padding: 0 22px; font-family: var(--mono); font-weight: 500; font-size: 12px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.08em; }
.subscribe .input button:hover{ background: var(--pen); }
.subscribe .note{ font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 12px; letter-spacing: 0.02em; }
.subscribe .scribble{ position: absolute; bottom: 14px; right: 24px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ margin-top: 72px; border-top: 1.5px solid var(--ink); background: var(--paper); position: relative; z-index: 1; }
.site-footer .bar{ max-width: var(--max); margin: 0 auto; padding: 36px var(--page-pad); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h5{ font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px; font-weight: 600; }
.site-footer ul{ list-style: none; padding: 0; margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.9; }
.site-footer ul a{ color: var(--ink-2); text-decoration: none; }
.site-footer ul a:hover{ color: var(--pen); }
.site-footer .colophon{ font-family: var(--serif); font-style: italic; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.site-footer .bottom{ max-width: var(--max); margin: 0 auto; padding: 14px var(--page-pad); border-top: 1px dashed var(--ink-3); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  :root{ --page-pad: 22px; }
  .nav-primary{ gap: 14px; font-size: 11px; }
  .nav-primary a.sub{ padding: 5px 9px; }
  .hero{ grid-template-columns: 1fr; gap: 28px; }
  .post-grid{ grid-template-columns: 1fr; }
  .post-grid .post{ border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .post-grid .post:last-child{ border-bottom: 0; }
  .archive-list .row{ grid-template-columns: 60px 1fr; }
  .archive-list .row .date, .archive-list .row .filed{ display: none; }
  .article-header h1{ font-size: 36px; }
  .article p, .article ul, .article ol{ font-size: 17px; }
  .article p.lede:first-of-type::first-letter{ font-size: 4em; }
  .article h2{ font-size: 26px; }
  .site-footer .bar{ grid-template-columns: 1fr 1fr; gap: 28px; }
  .np{ grid-template-columns: 1fr; }
  .np a:first-child{ border-right: 0; border-bottom: 1.5px solid var(--ink); }
}
@media (max-width: 600px){
  .article-header h1{ font-size: 30px; }
  .hero h1{ font-size: 36px; }
  .wm-md{ font-size: 28px; }
  .site-footer .bar{ grid-template-columns: 1fr; }
}

/* Print — basic clean reading */
@media print{
  body{ background: white; }
  .site-header, .site-footer, .subscribe, .np, .article-foot .share{ display: none; }
  body::before{ display: none; }
  .article p, .article ul, .article ol{ color: #000; }
}
