/* =========================================================
   The Slow Builds - Journal / Notebook
   Calm serif body, faint ruled lines, marginalia.
   Hand-drawn accents are condiment, never the meal.
   ========================================================= */

:root {
  --paper:        #f5f0e4;   /* cream */
  --paper-warm:   #efe7d4;   /* a touch warmer */
  --ink:          #1d1a14;   /* near-black, warm undertone */
  --ink-soft:     #514a3c;
  --ink-faint:    #8a7f6b;
  --rule:         rgba(29, 26, 20, 0.09);
  --rule-strong:  rgba(29, 26, 20, 0.18);
  --margin-line:  rgba(178, 60, 50, 0.55);
  --accent:       #b13a30;
  --accent-warm:  #c98a2b;   /* mustard - kept for playful secondary */
  --hand:         #2b3a64;
  --hand-soft:    #5b6a94;

  --serif:  "Source Serif 4", "EB Garamond", Georgia, serif;
  --hand-f: "Caveat", "Bradley Hand", cursive;
  --mono:   "JetBrains Mono", ui-monospace, Menlo, monospace;

  --rule-h: 34px;            /* baseline spacing */
  --max:    980px;
  --margin-w: 92px;          /* width of the left margin column */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- subtle paper grain (kept very faint or off) ---------- */
.grain { display: none; }

/* ---------- top nav (minimal, calm) ---------- */
.topnav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 72px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(29, 26, 20, 0.12);
}
.topnav-mark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.topnav-mark:hover { color: var(--accent); }
.topnav-links { display: flex; gap: 22px; }
.topnav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.topnav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.topnav-arr { color: var(--accent); margin-left: 2px; }
@media (max-width: 600px) {
  .topnav { padding: 14px 18px; font-size: 11.5px; }
  .topnav-links { gap: 14px; }
}

/* ---------- the page (no ruled lines, no notebook background) ---------- */
.notebook {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 72px 96px;
  /* lined background removed - clean cream paper only */
  background: transparent;
}

/* the red vertical margin line - kept as the single notebook tell */
.notebook::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(72px + var(--margin-w) - 14px);
  width: 1px;
  background: var(--margin-line);
  opacity: 0.6;
}

/* ---------- generic sections share a layout ---------- */
.cover, .week, .rules, .colophon {
  position: relative;
  display: grid;
  grid-template-columns: var(--margin-w) 1fr;
  column-gap: 28px;
  padding-top: 8px;
}

.cover     { padding-top: 24px; padding-bottom: 36px; }
.week      { padding-top: 80px; padding-bottom: 40px; }
.rules     { padding-top: 80px; padding-bottom: 40px; }
.colophon  { padding-top: 80px; padding-bottom: 8px; }

/* ---------- left margin column (date stamp / handwritten note) ---------- */
.margin-col {
  position: relative;
  text-align: right;
  padding-right: 10px;
}

/* the "stamp" - looks like a hand-inked rubber stamp */
.margin-stamp {
  display: inline-block;
  padding: 8px 9px 6px;
  border: 1.2px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  font-family: var(--mono);
  text-align: center;
  transform: rotate(-3.5deg);
  transform-origin: right top;
  margin-top: 6px;
  background: rgba(245, 240, 228, 0.4);
}
.stamp-day {
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 500;
  margin-bottom: 2px;
  opacity: 0.85;
}
.stamp-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 3px;
  color: var(--accent);
}
.stamp-year {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  opacity: 0.75;
}

.margin-note {
  margin-top: 22px;
  font-family: var(--hand-f);
  font-size: 18px;
  line-height: 1.18;
  color: var(--hand);
  transform: rotate(-1.5deg);
  transform-origin: right top;
  text-align: right;
}

/* ============ COVER ============ */

.cover-body { padding-top: 0; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.kicker-asterisk {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  vertical-align: -2px;
  margin-right: 4px;
}

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(64px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.title-period {
  color: var(--accent);
  font-style: normal;
}

.byline {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.byline-name {
  font-style: italic;
  color: var(--ink);
}
.byline-hand {
  margin-left: 6px;
  font-size: 22px;
  color: var(--hand);
  display: inline-block;
  transform: rotate(-1.5deg) translateY(2px);
}

.lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 32px;        /* keep on the rule */
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 640px;
}
.lede-open {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.lede-aside {
  font-family: var(--hand-f);
  color: var(--hand);
  font-size: 22px;
  line-height: 1.25;
  margin-top: 20px;
  transform: rotate(-1deg);
  transform-origin: left center;
  max-width: 420px;
}

/* week-at-a-glance stripe - short, ribbed, sits below the lede */
.weekstrip {
  margin-top: 44px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 720px;
}
.weekstrip-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 4px;
}
.weekstrip-day {
  font-style: italic;
}
.weekstrip-day b {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--serif);
  margin-right: 4px;
  letter-spacing: 0.04em;
}
.weekstrip-sep {
  color: var(--ink-faint);
  opacity: 0.6;
}

/* the "today" highlight - like someone circled it in pen */
.weekstrip-today {
  position: relative;
  padding: 2px 6px;
  display: inline-block;
}
.weekstrip-today::before {
  content: "";
  position: absolute;
  inset: -3px -8px -3px -8px;
  border: 1.5px solid var(--hand);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  opacity: 0.65;
  transform: rotate(-2deg);
  pointer-events: none;
}
.weekstrip-todayhand {
  font-family: var(--hand-f);
  font-size: 18px;
  color: var(--hand);
  margin-left: 4px;
  transform: rotate(-3deg) translateY(2px);
  display: inline-block;
}

/* ============ SECTION HEADS ============ */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0;
  position: relative;
  top: 0;
}
.section-num::after {
  content: " ·";
  color: var(--ink-faint);
  margin-left: 2px;
}
.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-hand {
  font-size: 22px;
  color: var(--hand);
  transform: rotate(-2deg);
  display: inline-block;
}
.section-intro {
  font-family: var(--serif);
  font-size: 18px;
  line-height: var(--rule-h);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 8px 0 28px;
}

/* ============ ENTRIES (5 PILLARS) ============ */

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  display: grid;
  grid-template-columns: 84px 1fr;
  column-gap: 24px;
  padding: 28px 0 32px;
  border-bottom: 1px dashed var(--rule-strong);
  position: relative;
}

/* a stray handwritten note in the margin - used sparingly */
.entry-marginalia {
  position: absolute;
  left: -118px;
  top: 38px;
  width: 100px;
  font-family: var(--hand-f);
  font-size: 19px;
  line-height: 1.18;
  color: var(--hand);
  text-align: right;
  transform: rotate(-3deg);
  transform-origin: right top;
}
.entry:last-child { border-bottom: none; }

/* day label - like a small date stamp on the entry */
.entry-day {
  text-align: right;
  padding-top: 4px;
  position: relative;
}
.day-stamp {
  display: inline-block;
  text-align: center;
  transform: rotate(-2.5deg);
  transform-origin: right top;
}
.day-abbrev {
  display: block;
  font-family: var(--hand-f);
  font-size: 36px;
  color: var(--accent);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.day-num {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.entry-body { min-width: 0; }

.entry-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.entry-tag {
  position: relative;
}
.entry-tag::before {
  content: "[[ ";
  color: var(--accent);
  opacity: 0.7;
}
.entry-tag::after {
  content: " ]]";
  color: var(--accent);
  opacity: 0.7;
}

.entry-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.entry-doodle {
  display: inline-flex;
  align-items: center;
  color: var(--hand);
  transform: rotate(-4deg);
  transform-origin: center;
}
.entry-doodle svg { display: block; }

/* per-day asterisk-ish accents (single pillar gets a different rotation) */
.entry--mon .entry-doodle { color: var(--accent); font-size: 22px; }
.entry--fri .entry-doodle { color: var(--accent); font-size: 22px; transform: rotate(8deg); }

.entry-desc {
  font-family: var(--serif);
  font-size: 19px;
  line-height: var(--rule-h);
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 600px;
}

.entry-foot {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-faint);
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}
.entry-foot .hand {
  font-family: var(--hand-f);
  font-size: 19px;
  color: var(--hand);
  transform: translateY(2px);
  display: inline-block;
}
.entry-last {
  font-style: italic;
  color: var(--ink-soft);
}

/* ============ HOUSE RULES ============ */

.rule-list {
  list-style: none;
  margin: 4px 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
  row-gap: 14px;
}

.rule {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 10px;
  align-items: baseline;
}
.rule-box {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  transform: translateY(2px);
}
.rule-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.rule-name {
  color: var(--ink);
  font-weight: 600;
}

.rules-scribble {
  margin-top: 24px;
  font-size: 22px;
  color: var(--hand);
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* ============ COLOPHON / FOLLOW ============ */

.follow-cta {
  margin: 18px 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 22px;
}
.follow-link {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.15s;
}
.follow-link:hover { color: var(--accent); }
.follow-arr {
  color: var(--accent);
  font-style: normal;
  margin-left: 4px;
  font-weight: 400;
}
.follow-aside {
  color: var(--hand);
  font-size: 19px;
  transform: rotate(-1deg);
  display: inline-block;
}

/* (legacy signup styles below kept for safety; not rendered) */
.signup {
  margin: 12px 0 8px;
  max-width: 640px;
}
.signup-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.signup-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.signup-input {
  flex: 1 1 260px;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  padding: 8px 4px;
  outline: none;
}
.signup-input::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}
.signup-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 12px 18px;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  cursor: pointer;
  letter-spacing: 0.005em;
  border-radius: 1px;
  transition: background 0.2s ease;
}
.signup-btn:hover { background: var(--accent); }

.signup-hand {
  margin-top: 10px;
  font-size: 19px;
  color: var(--hand);
  transform: rotate(-1deg);
  display: inline-block;
}

.hairline {
  border: none;
  border-top: 1px solid var(--rule-strong);
  margin: 36px 0 24px;
  max-width: 640px;
}

.colophon-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
  max-width: 640px;
  margin-bottom: 36px;
}
.meta-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: start;
}
.meta-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  margin: 0;
}
.meta-val {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

.signoff {
  margin-top: 12px;
}
.signoff-hand {
  font-family: var(--hand-f);
  font-size: 38px;
  color: var(--hand);
  line-height: 1;
  transform: rotate(-3deg);
  display: inline-block;
  margin-bottom: 16px;
}
.signoff-foot {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- shared "hand" class ---------- */
.hand {
  font-family: var(--hand-f);
  color: var(--hand);
}

/* ============ MOBILE ============ */

@media (max-width: 720px) {
  :root {
    --margin-w: 0px;
  }

  body { font-size: 19px; }

  .notebook {
    padding: 32px 22px 64px;
    background-position: 0 8px;
  }
  .notebook::before { display: none; }

  .cover, .week, .rules, .colophon {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-top: 0;
  }
  .week, .rules, .colophon { padding-top: 44px; }

  .margin-col {
    text-align: left;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-right: 0;
  }
  .margin-stamp {
    margin-top: 0;
    transform: rotate(-3deg);
    transform-origin: left center;
  }
  .margin-note {
    margin-top: 0;
    transform: rotate(-1deg);
    transform-origin: left center;
    text-align: left;
    font-size: 19px;
  }
  .weekstrip { font-size: 16px; }

  .title {
    font-size: clamp(56px, 14vw, 84px);
  }
  .lede { font-size: 19px; line-height: 30px; }
  .lede-aside { font-size: 20px; }

  .entry {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .entry-marginalia { display: none; }

  .entry-day {
    text-align: left;
    padding-top: 0;
    margin-bottom: 4px;
  }
  .day-stamp {
    transform: rotate(-3deg);
    transform-origin: left center;
  }
  .day-abbrev { display: inline-block; font-size: 28px; margin-right: 8px; }
  .day-num { display: inline-block; font-size: 14px; }

  .entry-title { font-size: 22px; }
  .entry-desc { font-size: 18px; }

  .rule-list {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .colophon-meta {
    grid-template-columns: 1fr;
  }
  .signup-row { flex-direction: column; }
  .signup-btn { width: 100%; }
}
/* Per-post page - leans on style.css from journal */

.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 96px;
  position: relative;
}

.back {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent, #b13a30);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 48px;
}
.back:hover { text-decoration: underline; }

.post-meta {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint, #8a7f6b);
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-meta .post-day {
  color: var(--accent);
  font-weight: 600;
}
.post-meta .post-pillar {
  color: var(--ink-soft, #514a3c);
}

.post-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}

.post-dek {
  font-family: var(--serif);
  font-style: normal;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 60ch;
}

.post-hero {
  margin: 0 0 48px;
}
.post-hero img {
  width: 100%;
  display: block;
  border-radius: 2px;
  border: 1px solid rgba(29, 26, 20, 0.08);
}
.post-hero figcaption {
  font-family: var(--hand-f, "Caveat", cursive);
  font-size: 20px;
  color: var(--hand, #2b3a64);
  text-align: center;
  margin-top: 10px;
}

.post-body {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.7;
  color: var(--ink);
}
.post-body p { margin: 0 0 1.2em; }
.post-body p:first-child::first-letter {
  font-style: italic;
  font-weight: 500;
  font-size: 3.6em;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.12em 0 0;
  color: var(--accent);
}
.post-body h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  margin: 2.4em 0 0.7em;
  color: var(--ink);
}
.post-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin: 2em 0 0.5em;
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(29, 26, 20, 0.05);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}
.post-body pre {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  background: rgba(29, 26, 20, 0.04);
  padding: 18px 22px;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1.6em 0;
  border-left: 3px solid var(--accent);
}
.post-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 1.8em 0;
  max-width: 56ch;
}
.post-body ul, .post-body ol {
  padding-left: 22px;
  margin: 1em 0 1.4em;
}
.post-body li { margin-bottom: 0.4em; }

/* Inline asides - fun elements */
.post-body .aside {
  font-family: var(--hand-f);
  font-size: 22px;
  color: var(--hand);
  display: block;
  text-align: right;
  margin: 0.4em 0 1.2em;
  transform: rotate(-1deg);
  max-width: 30ch;
  margin-left: auto;
}
.post-body .ledger {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  background: transparent;
  border: 1px dashed rgba(29, 26, 20, 0.25);
  padding: 18px 22px;
  margin: 1.8em 0;
  border-radius: 2px;
  color: var(--ink);
}
.post-body .ledger .ledger-tag {
  display: block;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 8px;
}
.post-body .ledger ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-body .ledger li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(29,26,20,0.15);
}
.post-body .ledger li:last-child { border-bottom: 0; padding-top: 6px; font-weight: 600; }
.post-body .cleo {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  background: rgba(29, 26, 20, 0.03);
  border-left: 3px solid #2b3a64;
  padding: 14px 18px;
  margin: 1.6em 0;
  color: var(--ink-soft);
}
.post-body .cleo .cleo-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2b3a64;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.post-foot {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(29, 26, 20, 0.15);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.post-foot p { margin: 0 0 4px; }
.post-foot-nav a {
  color: var(--accent);
  text-decoration: none;
}
.post-foot-nav a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .post { padding: 32px 18px 64px; }
  .post-title { font-size: clamp(28px, 8vw, 36px); }
  .post-body { font-size: 17px; line-height: 1.6; }
  .back { margin-bottom: 32px; }
}

/* ============ SERIES PAGES ============ */
.series {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
.series .back {
  display: inline-block;
  margin-bottom: 36px;
}
.series-head { margin-bottom: 48px; }
.series-eye {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 12px;
}
.series-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.series-period { color: var(--accent); font-style: normal; }
.series-blurb {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  font-style: italic;
  max-width: 56ch;
}
.series-context, .series-list {
  margin-top: 48px;
}
.series-h2 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin: 0 0 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.series-context p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1.2em;
  max-width: 60ch;
}
.series-empty {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-faint);
  font-size: 18px;
}

/* ============ ARCHIVE PAGE ============ */
.archive {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
.archive .back { display: inline-block; margin-bottom: 36px; }
.archive-head { margin-bottom: 48px; }
.archive-eye {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 12px;
}
.archive-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.archive-sub {
  font-family: var(--serif);
  color: var(--ink-soft);
  margin: 0;
  font-size: 18px;
}
.archive-week ol { list-style: none; padding: 0; margin: 0; }
.archive-week li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule-strong);
  align-items: baseline;
}
.archive-week li:last-child { border-bottom: 0; }
.aw-day {
  font-family: var(--hand-f);
  font-size: 24px;
  color: var(--accent);
  font-weight: 500;
  line-height: 1;
  transform: rotate(-2deg);
  display: inline-block;
}
.aw-text a {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.aw-text a:hover { color: var(--accent); border-color: var(--accent); }
.aw-pillar {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ============ SITE FOOTER ============ */
.site-foot {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 28px;
  border-top: 1px solid var(--rule);
}
.site-foot-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  flex-wrap: wrap;
}
.site-foot-sep { color: var(--ink-faint); opacity: 0.5; }

/* The notebook needs the topnav above it not have the red margin line */
.topnav { background: var(--paper); }

/* ============ ITER 1: link normalization + micro-interactions ============ */

/* entry titles: strip default link blue, become regular ink, red on hover */
.entry-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  padding-bottom: 2px;
}
.entry-title a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* "latest -" link: subtle but recognizable */
.entry-foot a.entry-last {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-faint);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.entry-foot a.entry-last:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  border-bottom-style: solid;
}

/* topnav refinement */
.topnav-links a { transition: color 0.15s ease, border-color 0.15s ease; }

/* margin stamps: gentle hover tilt */
.margin-stamp {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.margin-col:hover .margin-stamp {
  transform: rotate(-1.5deg) translateY(-2px);
}

/* day stamps on entries: gentle hover */
.day-stamp { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); display: inline-block; }
.entry:hover .day-stamp { transform: rotate(-2deg) translateY(-1px); }

/* section number subtle interaction */
.section-num {
  transition: color 0.2s ease;
}
.section-head:hover .section-num { color: var(--accent); }

/* archive list interactions */
.aw-day { transition: transform 0.2s ease; }
.archive-week li:hover .aw-day { transform: rotate(-4deg) scale(1.06); }

/* follow link */
.follow-link { transition: color 0.18s ease, border-color 0.18s ease; }

/* in-prose links: reading-friendly */
.entry-tag {
  transition: color 0.15s ease;
}
.entry:hover .entry-tag {
  color: var(--accent);
}

/* mobile: collapse margin column */
@media (max-width: 760px) {
  .cover, .week, .rules, .colophon {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .margin-col {
    text-align: left;
    padding: 0 0 12px 0;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
  }
  .margin-col .margin-stamp {
    transform: rotate(-2deg);
    margin-top: 0;
    transform-origin: left top;
  }
  .margin-col .margin-note {
    margin-top: 0;
    transform: rotate(-1deg);
    transform-origin: left top;
    text-align: left;
  }
  /* the red margin line — hide on mobile (was anchored to 92px-margin-w) */
  .notebook::before { display: none; }
  .notebook { padding: 24px 22px 64px; }
}

/* ============ ITER 2: hierarchy + playful surprises ============ */

/* series page issue list — clean numbered, no day labels */
.series-issues {
  list-style: none;
  margin: 0;
  padding: 0;
}
.series-issues li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.series-issues li:last-child { border-bottom: 0; }
.si-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 4px;
}
.si-text { display: block; }
.si-text a {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  display: inline;
  transition: color 0.18s, border-color 0.18s;
}
.si-text a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.si-dek {
  display: block;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 6px 0 4px;
  font-style: normal;
  max-width: 60ch;
}
.si-date {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Today/Up-next badge for first pillar (Monday) on homepage */
.entry--mon .entry-day .day-stamp::after {
  content: 'next';
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--paper-warm);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--accent);
  transform: rotate(-3deg);
  display: inline-block;
}

/* small dingbat divider between sections, visually delicate */
.section-head {
  position: relative;
}
.section-head::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
  margin-bottom: 14px;
}

/* entry-foot — give "latest -" link a subtle background to read as a card-tail */
.entry-foot {
  background: var(--paper-warm);
  border-radius: 3px;
  padding: 8px 12px;
  margin-top: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.entry-foot .hand { font-size: 18px; line-height: 1; }

/* per-pillar tiny color hints in left margin of entries — playful, faint */
.entry { position: relative; }
.entry::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 28px;
  width: 4px;
  height: 28px;
  border-radius: 2px;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s;
}
.entry--mon::before { background: var(--accent); }
.entry--tue::before { background: var(--hand); }
.entry--wed::before { background: var(--accent-warm); }
.entry--thu::before { background: var(--hand-soft); }
.entry--fri::before { background: var(--accent); }
.entry:hover::before { opacity: 0.85; transform: scaleY(1.15); }

/* doodles slightly bigger so they read */
.entry-doodle { transform: rotate(-4deg) scale(1.1); transform-origin: center; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.entry-title:hover .entry-doodle { transform: rotate(8deg) scale(1.25); }

/* fix mobile entry marginalia overflow */
@media (max-width: 760px) {
  .entry-marginalia { display: none; }
  .entry::before { left: -2px; }
  .entry-foot { width: 100%; }
}

/* small fade-in on first paint, very subtle */
@keyframes notebook-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.cover, .week, .rules, .colophon {
  animation: notebook-arrive 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.week { animation-delay: 0.1s; }
.rules { animation-delay: 0.2s; }
.colophon { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .cover, .week, .rules, .colophon { animation: none; }
}

/* mustard accent secondary — subtle warm hover for the section-num */
.section-head:hover .section-num {
  color: var(--accent-warm);
}

/* ============ ITER 3: hero refinement ============ */

/* Title — give it a hand-drawn underline that animates in */
.title {
  position: relative;
  display: inline-block;
}
.title-underline {
  display: block;
  width: 240px;
  height: 14px;
  margin: 6px 0 0 4px;
  color: var(--accent);
  opacity: 0;
  animation: title-underline-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}
@keyframes title-underline-draw {
  from { stroke-dasharray: 0 600; opacity: 0; }
  to   { stroke-dasharray: 600 0; opacity: 1; }
}
.title-underline path {
  stroke-dasharray: 600 0;
  stroke-dashoffset: 0;
  animation: title-underline-stroke 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}
@keyframes title-underline-stroke {
  from { stroke-dasharray: 0 600; }
  to   { stroke-dasharray: 600 0; }
}
@media (prefers-reduced-motion: reduce) {
  .title-underline { opacity: 1; animation: none; }
  .title-underline path { animation: none; stroke-dasharray: none; }
}

/* The pull-quote thesis — biggest moment on the page after the title */
.lede-pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 36px 0 28px;
  max-width: 16ch;
}
.lede-pull em {
  font-style: italic;
  color: var(--ink);
}
.lede-pull-2 {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  display: inline;
}
@media (max-width: 760px) {
  .lede-pull { font-size: clamp(24px, 7vw, 34px); margin: 28px 0 22px; }
}

/* Title size relax on mobile */
@media (max-width: 760px) {
  .title { font-size: clamp(56px, 13vw, 84px); }
  .byline { margin-bottom: 24px; }
  .lede { font-size: 19px; line-height: 1.55; }
}

/* Lede prose — slightly looser */
.lede {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 56ch;
}

/* ============ ITER 4: tag polish + per-day variety + room section ============ */

/* entry-tag: lighter, no [[ ]] rails */
.entry-meta { margin-bottom: 4px; }
.entry-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0;
}
.entry-tag::before, .entry-tag::after { display: none; }

/* per-day stamp rotation variety - feels stuck on at slightly different angles */
.entry--mon .day-stamp { transform: rotate(-2.2deg); transform-origin: left top; }
.entry--tue .day-stamp { transform: rotate(1.4deg); transform-origin: left top; }
.entry--wed .day-stamp { transform: rotate(-3deg); transform-origin: left top; }
.entry--thu .day-stamp { transform: rotate(2deg); transform-origin: left top; }
.entry--fri .day-stamp { transform: rotate(-1deg); transform-origin: left top; }

/* The room section — give it a hand-drawn invite-card feel */
.rules.room {
  position: relative;
}
.rules.room .rules-body {
  background: linear-gradient(to bottom right, rgba(178,60,50,0.04), rgba(43,58,100,0.03));
  border: 1px dashed rgba(178,60,50,0.35);
  border-radius: 3px;
  padding: 28px 32px 24px;
  position: relative;
}
.rules.room .rules-body::before {
  content: 'invite-only';
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  transform: rotate(2deg);
}

/* Make "next" badge less competing with main day */
.entry--mon .entry-day .day-stamp::after {
  margin-top: 8px;
  font-size: 8.5px;
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

/* Make the lede pull-quote even more anchored */
.lede-pull {
  position: relative;
}
.lede-pull::before {
  content: '"';
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-size: 5em;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.18;
  left: -0.55em;
  top: -0.05em;
  pointer-events: none;
}

/* gentle pulse on the next-tag — barely there */
@keyframes next-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.entry--mon .entry-day .day-stamp::after {
  animation: next-pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .entry--mon .entry-day .day-stamp::after { animation: none; }
}

/* ============ ITER 4b: dynamic today/next badge ============ */

/* override / replace the static .entry--mon badge */
.entry--mon .entry-day .day-stamp::after { content: none; animation: none; }

.day-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transform: rotate(-3deg);
  transform-origin: left top;
}
.day-badge--today {
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  animation: next-pulse 2.4s ease-in-out infinite;
}
.day-badge--next {
  background: var(--paper-warm);
  color: var(--accent);
  border: 1px dashed var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .day-badge--today { animation: none; }
}

/* boost the entry that's TODAY/NEXT slightly */
.entry--today, .entry--next {
  position: relative;
}
.entry--today .entry-title, .entry--next .entry-title {
  color: var(--ink);
}

/* ============ CRITIC FIXES ============ */

/* mobile truncation - posts, archive, series titles */
.post-title, .post-meta, .back,
.si-text a, .aw-text a,
.archive-week li {
  overflow-wrap: anywhere;
}
.post-meta { flex-wrap: wrap; row-gap: 6px; }

/* mobile inline code shouldn't push the line off-screen */
.post-body code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 600px) {
  .post-body code { font-size: 0.82em; }
  .post-body pre { font-size: 13px; }
}

/* hero unification: both lines in red italic; drop the second-color treatment */
.lede-pull-2 {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  display: block;
}

/* prev/next post navigation */
.post-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
}
.post-pager a {
  font-family: var(--serif);
  text-decoration: none;
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--paper-warm);
  transition: border-color 0.18s, background 0.18s;
}
.post-pager a:hover {
  border-color: var(--accent);
  background: var(--paper);
}
.post-pager .pp-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.post-pager .pp-title {
  display: block;
  font-style: italic;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}
.post-pager .pp-next { text-align: right; }
.post-pager .pp-empty {
  border: 1px dashed var(--rule-strong);
  background: transparent;
  color: var(--ink-faint);
  font-style: italic;
  text-align: center;
  padding: 14px 16px;
  font-size: 14px;
  border-radius: 3px;
}
@media (max-width: 600px) {
  .post-pager { grid-template-columns: 1fr; }
  .post-pager .pp-next { text-align: left; }
}

/* archive week grouping */
.archive-group-head {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0 8px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
}
.archive-group-head:first-child { margin-top: 0; padding-top: 0; }

/* cross-series nav at bottom of each series */
.series-cross {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
}
.series-cross .sc-label { color: var(--ink-faint); }
.series-cross a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}
.series-cross a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.series-cross a.current { color: var(--accent); border-bottom-color: var(--accent); }

/* footer day-row links */
.site-foot a.foot-day {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}
.site-foot a.foot-day:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* small credibility line under byline */
.byline-credit {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-faint);
  font-style: italic;
}

/* "issue N of indefinite run" small line in masthead */
.cadence-line {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-top: 12px;
}
.cadence-line .acc { color: var(--accent); font-weight: 600; }
