/*
Theme Name: Journal
Author: Journal
Version: 1.4.0
*/
:root {
  --bg: #f5f1ea;
  --surface: rgba(255, 252, 246, .82);
  --surface-strong: #fffdf8;
  --text: #2a2622;
  --muted: #746c63;
  --line: rgba(42, 38, 34, .10);
  --line-strong: rgba(42, 38, 34, .18);
  --accent: #7b6756;
  --accent-deep: #53463b;
  --shadow: 0 24px 60px rgba(44, 37, 31, .07);
  --shadow-hover: 0 30px 72px rgba(44, 37, 31, .11);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-serif: "Iowan Old Style", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.journal-no-smooth { scroll-behavior: auto; }
.journal-no-dropcap .article-content > p:first-child::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font: inherit;
}
html { overflow-wrap: break-word; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, .9), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(207, 191, 173, .22), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, transparent 54%, rgba(83, 70, 59, .06) 100%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(83, 70, 59, .10) .5px, transparent .5px);
  background-size: 8px 8px;
  opacity: .12;
  content: "";
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 3px solid rgba(83, 70, 59, .34);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent-deep);
  color: #fffdf8;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { color: #fffdf8; transform: translateY(0); }
.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 18px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 246, .76);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(44, 37, 31, .04);
  transition: transform .24s ease, opacity .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% - 18px));
}
.site-header:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.site-brand::before {
  width: 3px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}
.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.brand-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.site-nav a:hover { background: rgba(83, 70, 59, .07); }
.site-nav a[aria-current="page"] {
  background: var(--accent-deep);
  color: #fffdf8;
}
.home-layout, .archive-layout, .article-layout, .error-layout { padding-bottom: 56px; }
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 280px;
  gap: 22px;
  margin-bottom: 24px;
}
.hero-copy, .hero-note, .content-section, .article-shell, .comments-area, .error-card, .archive-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 52px;
  border-radius: var(--radius-xl);
}
.eyebrow, .section-heading span, .comments-head span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-copy h1, .section-heading h2, .article-header h1, .archive-header h1, .error-card h1 {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  color: var(--text);
  letter-spacing: -.05em;
}
.hero-copy h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1;
  max-width: 8em;
}
.hero-intro {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-actions a, .error-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 700;
}
.hero-actions a.is-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.hero-note {
  padding: 28px;
  border-radius: var(--radius-xl);
  align-self: stretch;
}
.hero-note span, .footer-title {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-note strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.2;
}
.hero-note p {
  margin: 18px 0 0;
  color: var(--muted);
}
.glance-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.glance-card {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, .6);
  box-shadow: 0 18px 44px rgba(44, 37, 31, .045);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.glance-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}
.glance-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.glance-card strong,
.glance-card p {
  max-width: 18em;
  margin: 28px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.035em;
}
.glance-card.is-quote {
  background: var(--accent-deep);
  color: #fffdf8;
}
.glance-card.is-quote span { color: rgba(255, 253, 248, .66); }
.content-section, .article-shell, .comments-area, .error-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}
.home-layout .content-section {
  padding: 6px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 4px 4px 22px;
  border-bottom: 1px solid var(--line);
}
.section-heading > p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.section-heading h2, .archive-header h1 {
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.08;
}
.post-stream, .archive-stream {
  display: grid;
  gap: 0;
  margin-top: 10px;
}
.post-card {
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: padding .18s ease, background-color .18s ease;
}
.post-card:hover {
  padding-right: 14px;
  padding-left: 14px;
  background: rgba(255, 253, 248, .48);
}
.post-card-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}
.post-card-link time {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 7px;
}
.post-card-link h3,
.post-card-link p {
  grid-column: 2;
}
.archive-card a {
  display: block;
}
.post-card time, .archive-card time, .article-header time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.post-card h3, .archive-card h3 {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.08;
  letter-spacing: -.05em;
}
.post-card p, .archive-card p {
  margin: 14px 0 0;
  color: var(--muted);
}
.post-card footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-left: 116px;
  color: var(--muted);
  font-size: 13px;
}
.post-card footer a,
.article-meta a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.post-card footer a:hover,
.article-meta a:hover { text-decoration-color: currentColor; }
.archive-header {
  margin-bottom: 20px;
  padding: 0 4px;
}
.archive-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}
.archive-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 28px;
  align-items: end;
  padding: 30px 4px 24px;
  border-bottom: 1px solid var(--line-strong);
}
.archive-page-header .eyebrow { grid-column: 1 / -1; margin: 0 0 -14px; }
.archive-page-header h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.archive-page-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.archive-page-description p { margin: 0; }
.archive-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}
.archive-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 18px;
  background: rgba(255, 253, 248, .72);
}
.archive-summary strong {
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}
.archive-summary span { color: var(--muted); font-size: 12px; }
.archive-taxonomy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.archive-taxonomy-group {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, .48);
}
.archive-taxonomy-group h2 {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .14em;
}
.archive-taxonomy-links { display: flex; flex-wrap: wrap; gap: 7px; }
.archive-taxonomy-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .56);
  color: var(--muted);
  font-size: 12px;
}
.archive-taxonomy-links a:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--accent-deep);
}
.archive-taxonomy-links small { color: var(--accent); font-size: 10px; }
.archive-chronology {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.archive-year {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.archive-year:first-child { padding-top: 0; border-top: 0; }
.archive-year:last-child { padding-bottom: 0; }
.archive-year > header {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 3px;
}
.archive-year > header strong {
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}
.archive-year > header span { color: var(--muted); font-size: 11px; }
.archive-year-content { display: grid; gap: 22px; }
.archive-month h2 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .1em;
}
.archive-month ol { margin: 0; padding: 0; list-style: none; }
.archive-month li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.archive-month li:last-child { border-bottom: 0; }
.archive-month time,
.archive-month li > span { color: var(--muted); font-size: 11px; }
.archive-month a {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dynamic-page-header,
.dynamic-stream,
.dynamic-empty,
.dynamic-page-nav {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}
.dynamic-stream {
  position: relative;
  margin-top: 10px;
}
.dynamic-stream::before {
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 112px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}
.dynamic-item {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 32px;
  padding: 30px 0;
}
.dynamic-item + .dynamic-item { border-top: 1px solid var(--line); }
.dynamic-time {
  position: relative;
  align-self: start;
  padding: 4px 20px 4px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
  line-height: 1.55;
  text-align: right;
}
.dynamic-time span {
  position: absolute;
  top: 9px;
  right: -5px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform .18s ease, background-color .18s ease;
}
.dynamic-time:hover span {
  background: var(--accent-deep);
  transform: scale(1.18);
}
.dynamic-entry {
  min-width: 0;
  padding: 4px 0;
}
.dynamic-entry h2 {
  margin: 0 0 13px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.dynamic-entry h2 a:hover { color: var(--accent-deep); }
.dynamic-content {
  max-width: none;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}
.dynamic-content > p:first-child { margin-top: 0; }
.dynamic-content > p:first-child::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font: inherit;
}
.dynamic-content img {
  max-height: 680px;
  margin: 1.4em 0;
  object-fit: contain;
  object-position: left center;
}
.dynamic-content figure { margin: 1.4em 0; }
.dynamic-content .journal-gallery { margin-top: 1.4em; }
.dynamic-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.dynamic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.dynamic-tags a::before {
  margin-right: 2px;
  color: var(--accent);
  content: "#";
}
.dynamic-comments {
  flex: 0 0 auto;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.dynamic-comments:hover { text-decoration-color: currentColor; }
.dynamic-empty { margin-top: 28px; }
.dynamic-empty p { margin: 0; }
.dynamic-empty small {
  display: block;
  margin-top: 8px;
}
.dynamic-empty code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(83, 70, 59, .08);
}
.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color .18s ease, transform .18s ease;
}
.back-link::before { margin-right: 7px; content: "←"; }
.back-link:hover { transform: translateX(-3px); }
.article-header > .back-link { margin-bottom: 16px; }
.article-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.article-kicker time.has-label::before {
  margin-right: 12px;
  color: var(--line-strong);
  content: "/";
}
.article-header h1 {
  max-width: none;
  margin-top: 10px;
  font-size: clamp(27px, 3.5vw, 38px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
  text-wrap: pretty;
  word-break: auto-phrase;
}
.article-meta {
  display: flex;
  gap: 8px 0;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.article-meta > * {
  padding-right: 16px;
}
.article-meta > * + * {
  position: relative;
  padding-left: 16px;
}
.article-meta > * + *::before {
  position: absolute;
  left: -2px;
  color: var(--line-strong);
  content: "·";
}
.article-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 52px);
}
.article-header {
  position: relative;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.article-header .eyebrow {
  margin: 0;
}
.article-content {
  max-width: 720px;
  margin: 30px auto 0;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.9;
}
.article-content,
.comment-content { overflow-wrap: anywhere; }
.article-content > p:first-child::first-letter {
  float: left;
  margin: .12em .12em 0 0;
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 2.65em;
  line-height: .78;
}
.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content h2,
.article-content h3 {
  margin-top: 1.15em;
  margin-bottom: 0;
}
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-serif);
  letter-spacing: -.03em;
}
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 18px; }
.article-content h4 { font-size: 16px; }
.article-content blockquote {
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(123, 103, 86, .06);
  color: var(--muted);
}
.article-content .journal-note {
  margin: 1.6em 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(123, 103, 86, .055);
  color: var(--muted);
}
.article-content .journal-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-deep);
  font-size: 12px;
  letter-spacing: .1em;
}
.article-content .journal-note p { margin: 0; }
.article-content .journal-note.is-warning {
  border-color: rgba(155, 104, 57, .22);
  background: rgba(175, 124, 72, .07);
}
.article-content mark {
  padding: .08em .18em;
  border-radius: 3px;
  background: linear-gradient(transparent 28%, rgba(210, 185, 119, .42) 28%, rgba(210, 185, 119, .42) 88%, transparent 88%);
  color: inherit;
}
.article-content .journal-checklist {
  padding: 0;
  list-style: none;
}
.article-content .journal-checklist li {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.article-content .journal-checklist span {
  color: var(--accent);
  font-weight: 800;
}
.article-content .journal-pullquote {
  margin: 2em auto;
  padding: 4px clamp(18px, 4vw, 38px);
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.8vw, 25px);
  line-height: 1.65;
  text-align: center;
}
.article-content .journal-pullquote::before {
  display: block;
  margin-bottom: 7px;
  color: var(--line-strong);
  content: "“";
  font-size: 38px;
  line-height: 1;
}
.article-content .journal-details {
  margin-top: 1.5em;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .42);
}
.article-content .journal-details summary {
  padding: 12px 16px;
  color: var(--accent-deep);
  font-weight: 700;
  cursor: pointer;
}
.article-content .journal-details[open] summary { border-bottom: 1px solid var(--line); }
.article-content .journal-details > div { padding: 2px 16px 16px; }
.article-content .journal-dialogue {
  margin-top: 1.5em;
  padding: 12px 16px;
  border-left: 2px solid var(--line-strong);
}
.article-content .journal-dialogue p { margin: 8px 0 0; }
.article-content .journal-dialogue strong { color: var(--accent-deep); }
.article-content .journal-timeline {
  position: relative;
  margin-top: 1.6em;
  padding: 0 0 0 28px;
  list-style: none;
}
.article-content .journal-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}
.article-content .journal-timeline li {
  position: relative;
  padding: 0 0 20px;
}
.article-content .journal-timeline li::before {
  position: absolute;
  top: 7px;
  left: -27px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line-strong);
  content: "";
}
.article-content .journal-timeline time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.article-content .journal-timeline p { margin: 3px 0 0; }
.article-content .journal-poem {
  margin: 2em 0;
  padding: 24px clamp(20px, 5vw, 44px);
  background: linear-gradient(90deg, rgba(123, 103, 86, .05), transparent);
  font-family: var(--font-serif);
  line-height: 2.15;
  letter-spacing: .05em;
}
.article-content .journal-poem p { margin: 0; }
.article-content .journal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2em;
}
.article-content .journal-gallery figure { min-width: 0; margin: 0; }
.article-content .journal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.article-content .journal-gallery figcaption { margin-top: 8px; }
.article-content .journal-link-card {
  display: grid;
  gap: 5px;
  margin-top: 1.5em;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, .55);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.article-content .journal-link-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(44, 37, 31, .07);
  transform: translateY(-2px);
}
.article-content .journal-link-card strong { color: var(--accent-deep); }
.article-content .journal-link-card span { color: var(--muted); font-size: 13px; }
.article-content audio,
.article-content video {
  width: 100%;
  margin-top: 1.5em;
  border-radius: 12px;
}
.article-footer {
  max-width: 720px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-tags-label {
  flex: 0 0 auto;
  padding-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.article-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .45);
  color: var(--muted);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.article-tags a::before {
  margin-right: 3px;
  color: var(--accent);
  content: "#";
}
.article-tags a:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--accent-deep);
}
.article-content pre,
.article-content code {
  font-family: "SFMono-Regular", Consolas, monospace;
}
.article-content pre {
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f1ebe2;
  font-size: 14px;
  line-height: 1.7;
}
.article-content :not(pre) > code {
  padding: .12em .38em;
  border-radius: 6px;
  background: rgba(83, 70, 59, .08);
  font-size: .9em;
}
.article-content figure { margin: 2em 0; }
.article-content figure img { margin: 0 auto; }
.article-content figcaption {
  margin-top: .75em;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.article-content iframe,
.article-content video { max-width: 100%; }
.article-content img {
  display: block;
  margin: 2em auto;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(44, 37, 31, .10);
}
.article-content a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(83, 70, 59, .28);
  text-underline-offset: 4px;
}
.article-content hr {
  width: 64px;
  margin: 3em auto;
  border: 0;
  border-top: 1px solid var(--line-strong);
}
.article-content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin-top: 1.5em;
  border-collapse: collapse;
  font-size: 15px;
}
.article-content th,
.article-content td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.comments-area {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 22px;
}
.comments-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.comments-head h2 {
  margin: 5px 0 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.comments-head p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
}
.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.comment-list li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.comments-area > .comment-list > li:first-child { border-top: 0; }
.comment-list .comment-list {
  margin: 16px 0 0 18px;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--line);
}
.comment-list .comment-list li {
  padding-top: 16px;
  padding-bottom: 0;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}
.comment-author img {
  width: var(--comment-avatar-size, 36px);
  height: var(--comment-avatar-size, 36px);
  display: block;
  border-radius: 50%;
  background: var(--line);
}
.comment-author cite { font-style: normal; }
.comment-meta {
  margin: 2px 0 0 calc(var(--comment-avatar-size, 36px) + 11px);
  color: var(--muted);
  font-size: 12px;
}
.comment-content {
  margin: 10px 0 0 calc(var(--comment-avatar-size, 36px) + 11px);
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}
.comment-content p { margin: .5em 0 0; }
.comment-reply {
  margin: 8px 0 0 calc(var(--comment-avatar-size, 36px) + 11px);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.comment-awaiting-moderation {
  display: block;
  margin-top: 4px;
  color: #8a5c37;
}
.comment-page-nav .page-navigator { margin-top: 20px; }
.comment-form-wrap {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .46);
}
.comment-form-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}
.cancel-comment-reply:not(:empty) { margin-bottom: 10px; }
.comment-form-wrap p { margin: 12px 0 0; }
.comment-form-wrap label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.comment-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.comment-form-wrap input,
.comment-form-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 253, 248, .88);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.comment-form-wrap textarea { min-height: 132px; resize: vertical; }
.comment-form-wrap input:focus,
.comment-form-wrap textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(123, 103, 86, .12);
}
.comment-form-wrap button,
.comment-form-wrap .submit {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fffdf8;
  font-weight: 700;
}
.comment-form-wrap button:hover,
.comment-form-wrap .submit:hover { background: #40362e; }
.cancel-comment-reply:empty { display: none; }
.cancel-comment-reply,
.comment-login,
.comments-closed { color: var(--muted); font-size: 14px; }
.comment-submit-row { display: flex; justify-content: flex-end; }
.page-nav {
  margin-top: 28px;
  padding: 0 4px;
}
.page-navigator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-navigator li {
  margin: 0;
}
.page-navigator a,
.page-navigator span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, .5);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.page-navigator a:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--accent-deep);
}
.page-navigator .current a,
.page-navigator .current span {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #fffdf8;
}
.page-navigator .prev a,
.page-navigator .next a {
  padding-right: 14px;
  padding-left: 14px;
}
.empty-card {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}
.error-card {
  max-width: 720px;
  margin: 56px auto 0;
  text-align: center;
}
.error-card p {
  color: var(--muted);
}
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  padding: 18px 4px 36px;
  border-top: 1px solid var(--line);
}
.site-footer.has-two-columns { grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); }
.footer-copy {
  color: var(--muted);
  font-size: 14px;
}
.footer-title, .footer-copy { margin: 0; }
.footer-copy { margin-top: 6px; }
.footer-aside {
  display: grid;
  justify-items: end;
  color: var(--muted);
  text-align: right;
  margin-left: auto;
}
.footer-aside::before {
  width: 54px;
  height: 1px;
  margin-bottom: 11px;
  background: var(--line-strong);
  content: "";
}
.footer-aside span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-aside p {
  margin: 7px 0 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.75;
}
.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 20;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 12px 30px rgba(44, 37, 31, .2);
  color: #fffdf8;
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.94);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: #40362e;
  transform: translateY(-2px) scale(1);
}
@media (max-width: 900px) {
  .archive-page-header { grid-template-columns: 1fr; gap: 12px; }
  .archive-page-header .eyebrow { margin-bottom: 0; }
  .archive-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-section,
  .glance-grid {
    grid-template-columns: 1fr;
  }
  .glance-card { min-height: 132px; }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .comment-fields { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 720px) {
  .site-header {
    top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 14px;
    padding: 7px 8px;
    border-radius: 16px;
  }
  .site-brand {
    flex: 1 1 auto;
    width: auto;
    min-width: 54px;
    padding: 0 5px;
  }
  .site-nav {
    width: auto;
    min-width: 0;
    max-width: 68%;
    flex: 0 1 auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 5px 9px;
    font-size: 12px;
  }
  .brand-copy strong { font-size: 14px; }
  .site-brand::before { height: 16px; }
}
@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
  }
  .hero-copy,
  .content-section,
  .article-shell,
  .comments-area,
  .error-card,
  .hero-note,
  .archive-card {
    padding: 20px;
    border-radius: 22px;
  }
  .hero-copy h1 {
    letter-spacing: -.04em;
  }
  .article-header h1 {
    margin-top: 9px;
    font-size: clamp(26px, 7.5vw, 32px);
    line-height: 1.3;
  }
  .article-meta {
    margin-top: 20px;
  }
  .archive-taxonomy { grid-template-columns: 1fr; }
  .archive-chronology { padding: 20px; border-radius: 22px; }
  .archive-year { grid-template-columns: 1fr; gap: 14px; }
  .archive-year > header {
    position: static;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .archive-month li { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .archive-month li > span { display: none; }
  .archive-month a { font-size: 15px; }
  .dynamic-page-header { padding-right: 2px; padding-left: 2px; }
  .dynamic-stream { margin-top: 6px; }
  .dynamic-stream::before {
    top: 31px;
    bottom: 31px;
    left: 5px;
  }
  .dynamic-item {
    display: block;
    padding: 25px 0 25px 24px;
  }
  .dynamic-time {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 0;
    font-size: 10.5px;
    text-align: left;
  }
  .dynamic-time span {
    top: 4px;
    right: auto;
    left: -24px;
  }
  .dynamic-entry { padding: 0; }
  .dynamic-entry h2 { margin-bottom: 10px; font-size: 19px; }
  .dynamic-content { font-size: 14.5px; line-height: 1.82; }
  .dynamic-content img { margin: 1.2em 0; border-radius: 13px; }
  .dynamic-entry-footer { align-items: flex-start; }
  .article-content .journal-gallery { grid-template-columns: 1fr; }
  .article-content .journal-pullquote { font-size: 18px; }
  .post-card {
    padding: 22px 4px;
  }
  .post-card:hover {
    padding-right: 4px;
    padding-left: 4px;
  }
  .post-card-link {
    display: block;
  }
  .post-card-link time {
    display: block;
    padding-top: 0;
  }
  .post-card footer {
    padding-left: 0;
  }
  .page-nav {
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .page-navigator {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: flex-start;
  }
  .site-footer.has-two-columns { grid-template-columns: 1fr; }
  .footer-aside {
    width: 100%;
    justify-items: start;
    text-align: left;
    margin-left: 0;
  }
  .comment-list .comment-list {
    margin-left: 10px;
    padding-left: 12px;
  }
  .comment-list .comment-list .comment-list { margin-left: 0; }
  .comment-content,
  .comment-reply { margin-left: 0; }
  .comment-meta { margin-left: calc(var(--comment-avatar-size, 36px) + 11px); }
  .comments-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .comments-head p { margin: 0; }
  .comment-form-wrap {
    padding: 16px;
    border-radius: 14px;
  }
  .page-navigator a,
  .page-navigator span { min-width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .article-meta { display: grid; }
  .article-meta > *,
  .article-meta > * + * {
    padding: 0;
  }
  .article-meta > * + *::before { display: none; }
}
@media (hover: none) {
  .post-card:hover {
    padding-right: 4px;
    padding-left: 4px;
    background: transparent;
  }
  .glance-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media print {
  body { background: #fff; color: #000; }
  body::before,
  .site-header,
  .site-footer,
  .comments-area,
  .back-link { display: none !important; }
  .page-shell { width: 100%; }
  .article-layout { padding: 0; }
  .article-shell {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .article-content { max-width: none; font-size: 11pt; }
  .article-content a { color: #000; text-decoration-color: #000; }
  .article-content pre { white-space: pre-wrap; }
}
