/* =========================================================
   RISE FROM ASHES — LUMINARK dev journal
   FINAL TONE — Dark Editorial Journal.
   Berserk volume with the color removed; magazine readability.

   Rules:
   - Monochrome dark base. Ember red appears in only 2~3 places.
   - Serif headings + serif body (manga ink weight).
   - Sans-serif for UI / meta / category labels only.
   - No rotation, no SFX, no offset shadows, no halftone.
   - Content is the weight; ornament is silence.
   ========================================================= */

:root {
  /* Surfaces — warm ink (Berserk volume tone) */
  --ink-top:    #060506;            /* topbar — near-absolute black */
  --ink:        #100e0b;            /* main body — slightly lifted warm ink */
  --panel:      #1a1612;            /* card surface */
  --panel-hi:   #221c17;            /* hover */
  --line:       #312c24;             /* warm ink dividers */
  --line-soft:  #221d18;

  /* Text — parchment, NOT cool white */
  --text:       #dcd4c4;             /* parchment paper */
  --text-2:     #a39c8a;
  --text-3:     #6e685c;
  --text-4:     #46423a;

  /* Accents — matte wine/blood (not bright orange-red) */
  --ember:      #a8381e;            /* deep matte red */
  --gold:       #8f6f3a;             /* aged parchment gold (rare) */

  /* Single serif family — weight + size do the heavy lifting */
  --serif:      "Noto Serif KR", "EB Garamond", Georgia, "Times New Roman", serif;

  /* UI / meta */
  --ui:         "Inter", "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --kr-ui:      "Pretendard", "Noto Sans KR", "Inter", system-ui, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter:     clamp(20px, 4vw, 56px);
  --col:        680px;
  --col-wide:   860px;

  --top-h:      72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.85;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { padding-top: var(--top-h); }

/* =================== TOP BAR =================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--top-h);
  padding: 18px var(--gutter);
  background: var(--ink-top);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}

.brand-row {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}
.brand:hover { background: rgba(220, 212, 196, 0.025); }

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.lang-toggle-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-transform: uppercase;
  user-select: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.lang-toggle-summary::-webkit-details-marker { display: none; }
.lang-toggle-summary::marker { content: ""; }
.lang-toggle-summary:hover {
  border-color: var(--text-3);
  background: rgba(220, 212, 196, 0.03);
}

.lang-toggle-caret {
  font-size: 9px;
  color: var(--text-3);
  transition: transform 180ms ease;
  line-height: 1;
}
.lang-toggle[open] .lang-toggle-caret {
  transform: rotate(180deg);
}

.lang-toggle-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 84px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: var(--ink-top);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.lang-toggle-item {
  display: block;
  padding: 7px 14px;
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 120ms ease, background 120ms ease;
}
.lang-toggle-item:hover {
  color: var(--text);
  background: rgba(220, 212, 196, 0.04);
}
.lang-toggle-item.is-current {
  color: var(--text);
  font-weight: 700;
  position: relative;
}
.lang-toggle-item.is-current::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--ember);
  border-radius: 50%;
}

.brand-mark {
  color: var(--ember);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  transform: none;
}
.brand-text {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 0.22em;
  font-size: 14.5px;
  color: var(--text);
  text-transform: uppercase;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--line);
}
.brand-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
}

.tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tab {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  background: transparent;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  position: relative;
  transition: color 160ms ease, background 160ms ease;
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
}
.tab:not(:last-child) {
  border-right: 1px solid var(--line);
}

/* Top ember marker — active state */
.tab::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60%;
  height: 2px;
  background: var(--ember);
  transition: transform 220ms ease;
}

/* Bottom hairline marker — hover hint */
.tab::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  bottom: -1px;
  height: 1px;
  background: var(--text-3);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.tab:hover {
  color: var(--text);
  background: rgba(220, 212, 196, 0.025);
}
.tab:hover::after { transform: scaleX(1); }
.tab:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.tab.is-active {
  color: var(--text);
  font-weight: 700;
  background: rgba(168, 56, 30, 0.04);
}
.tab.is-active::before { transform: translateX(-50%) scaleX(1); }
.tab.is-active::after { display: none; }

/* =================== STAGE / PANEL =================== */

.stage { position: relative; z-index: 1; padding: 0 var(--gutter); }

.panel {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 96px);
}
.panel[hidden] { display: none; }

/* =================== EYEBROW / CHAPTER MARKER =================== */

.intro-eyebrow,
.chapter-marker {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--text-3);
  margin: 0 0 32px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.intro-eyebrow::before,
.intro-eyebrow::after,
.chapter-marker::before,
.chapter-marker::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--text-3);
}
.intro-eyebrow::after,
.chapter-marker::after { display: none; }

/* =================== INTRO (home) =================== */

.intro {
  max-width: var(--col);
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 6vw, 56px);
}

.intro-block { margin: 0; }
.intro-block + .intro-divider { margin: 72px 0 72px; }
.intro-block + .intro-block { margin-top: 48px; }

/* Small inline label above each block — "Studio", "Now in development" */
.intro-studio-label {
  font-family: var(--ui);
  font-weight: 500;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* LUMINARK — small publisher-mark heading */
.intro-studio-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.22em;
  color: var(--text);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.intro-studio-tag {
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
  letter-spacing: -0.005em;
  max-width: 560px;
}

/* RISE FROM ASHES — main display title */
.intro-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 16px;
  text-transform: uppercase;
}
.intro-title-game {
  font-size: clamp(36px, 5.8vw, 60px);
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin: 0 0 22px;
}
.intro-title-game .ember-letter { color: var(--ember); }

.intro-lead {
  font-family: var(--serif);
  font-size: clamp(15.5px, 1.7vw, 17.5px);
  line-height: 1.85;
  color: var(--text-2);
  margin: 0;
  letter-spacing: -0.005em;
  max-width: 600px;
}
.intro-lead-game {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.7;
  color: var(--text);
  max-width: none;
}
.intro-lead-game p {
  margin: 0 0 14px;
}
.intro-lead-game p:last-child {
  margin-bottom: 0;
}
.intro-lead-game strong {
  font-weight: 800;
  color: var(--text);
}

.intro-en {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--text-3);
  margin: 0 0 32px;
  letter-spacing: 0.02em;
  font-style: italic;
}
.intro-en .title-en {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.08em;
  font-style: normal;
  font-size: 1.04em;
}
.intro-en .ember-letter { color: var(--ember); }
.intro-en .title-tag { color: var(--text-3); }

.intro-divider {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--line);
  margin: 0 0 28px;
}

.intro-body p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.intro-body strong { font-weight: 700; color: var(--text); }
.intro-body em {
  font-style: italic;
  font-weight: 500;
  color: var(--text);
}

.intro-meta {
  font-family: var(--ui);
  font-size: clamp(14px, 1.45vw, 15.5px);
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.05em;
  margin: 32px 0 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.intro-meta .dot { color: var(--text-4); }

/* Hero illustration block — full-bleed inside intro column */
.intro-hero {
  margin: 32px 0 0;
  padding: 0;
  position: relative;
}
.intro-hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

/* =================== RECENT NOTES (home) =================== */

.recent {
  max-width: var(--col);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) 0 clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.recent-head {
  margin: 0 0 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.recent-head h2 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--text-3);
  margin: 0;
  text-transform: uppercase;
}
.recent-head p {
  font-family: var(--ui);
  font-style: italic;
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-card {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-card-link,
.post-card > a {
  position: relative;
  display: block;
  padding: 24px 0 26px 22px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line-soft);
  transition: padding 200ms ease, background 200ms ease;
}
.post-card-link::before,
.post-card > a::before {
  content: "";
  position: absolute;
  left: 0; top: 28px; bottom: 28px;
  width: 3px;
  background: var(--text-3);
  transition: background 200ms ease, top 200ms ease, bottom 200ms ease;
}
.post-card:last-child > a,
.post-card:last-child .post-card-link { border-bottom: none; }

.post-card-link:hover,
.post-card > a:hover {
  padding-left: 28px;
  background: var(--panel);
}
.post-card-link:hover::before,
.post-card > a:hover::before {
  background: var(--ember);
  top: 16px; bottom: 16px;
}
.post-card-link:hover .read-arrow,
.post-card > a:hover .read-arrow {
  color: var(--text);
  transform: translateX(4px);
}

/* removed comic panel trim */
.panel-trim { display: none; }

.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.post-cat {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-cat::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--ember);
  border-radius: 50%;
}
.post-date {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.post-date::before {
  content: "·";
  margin-right: 8px;
  color: var(--text-4);
}

.post-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2.3vw, 24px);
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.post-excerpt {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.read-arrow {
  display: inline-block;
  color: var(--text-3);
  font-family: var(--ui);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: transform 180ms ease, color 180ms ease;
}

.recent-foot {
  font-family: var(--ui);
  font-style: italic;
  font-size: 13px;
  color: var(--text-3);
  margin: 36px 0 0;
  text-align: center;
}
.recent-foot a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 180ms ease, color 180ms ease;
  margin: 0 4px;
}
.recent-foot a:hover {
  color: var(--text);
  border-bottom-color: var(--text-3);
}

/* =================== ARCHIVE (tab pages) =================== */

.archive-panel { max-width: var(--col); margin: 0 auto; }

.archive-head { margin-bottom: 48px; }
.archive-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 0 0 18px;
}
.archive-sub {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.75;
  max-width: 560px;
  letter-spacing: -0.005em;
}

/* Collapsible year + month tree */

.archive-year { margin-bottom: 40px; }
.archive-month { margin: 14px 0 20px; }

.archive-year > summary,
.archive-month > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.archive-year > summary::-webkit-details-marker,
.archive-month > summary::-webkit-details-marker {
  display: none;
}

.archive-year-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  transition: border-color 160ms ease;
}
.archive-year[open] > .archive-year-head { margin-bottom: 8px; }
.archive-year-head:hover { border-bottom-color: var(--text-3); }

.archive-year-label {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.archive-year-line { flex: 1; height: 0; }
.archive-year-count {
  font-family: var(--ui);
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-3);
}

.archive-month-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  margin-left: 16px;
}
.archive-month-head:hover .toggle-mark {
  color: var(--text);
  border-color: var(--text-3);
}
.archive-month-label {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-2);
  letter-spacing: -0.005em;
}
.archive-month-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line-soft), transparent);
}
.archive-month-count {
  font-family: var(--ui);
  font-style: italic;
  font-size: 11.5px;
  color: var(--text-3);
}

.archive-month[open] > .archive-list {
  animation: archiveOpen 280ms ease both;
}
@keyframes archiveOpen {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

.archive-month > .archive-list {
  margin-left: 32px;
  margin-top: 4px;
  border-left: 1px solid var(--line-soft);
  padding-left: 18px;
}

/* Toggle mark: + / − */
.toggle-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.toggle-mark::before { content: "+"; }
details[open] > summary .toggle-mark::before { content: "−"; }
.archive-year-head:hover .toggle-mark {
  color: var(--text);
  border-color: var(--text-3);
}

.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-row { border-bottom: 1px solid var(--line-soft); }
.archive-row:last-child { border-bottom: none; }

.archive-link {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease, padding 160ms ease;
}
.archive-link:hover {
  background: var(--panel);
  padding-left: 14px;
  padding-right: 14px;
}
.archive-link:hover .archive-arrow {
  color: var(--text);
  transform: translateX(4px);
}
.archive-link:hover .archive-month {
  color: var(--text);
}

.archive-month {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text-3);
  text-align: center;
  transition: color 160ms ease;
}

.archive-body { min-width: 0; }
.archive-row-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17.5px;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.4;
  letter-spacing: -0.008em;
}
.archive-row-meta {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.6;
}
.archive-row-date {
  color: var(--text-3);
  font-style: italic;
  font-size: 12.5px;
  white-space: nowrap;
}
.archive-row-meta .dot { color: var(--text-4); }
.archive-row-excerpt {
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-family: var(--serif);
}

.archive-arrow {
  font-family: var(--ui);
  font-size: 16px;
  color: var(--text-3);
  transition: transform 180ms ease, color 180ms ease;
}

.archive-empty {
  font-family: var(--ui);
  font-style: italic;
  font-size: 14px;
  color: var(--text-3);
  text-align: center;
  padding: 80px 0;
  margin: 0;
}

/* =================== POST PAGE =================== */

.post-panel { max-width: var(--col); margin: 0 auto; }

.post-head { margin-bottom: 40px; }
.post-page-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 0 0 20px;
}
.post-page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-family: var(--ui);
  font-size: 13px;
}
.post-page-cat {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-page-cat::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--ember);
  border-radius: 50%;
}
.post-page-sep { color: var(--text-4); }
.post-page-date {
  font-family: var(--ui);
  font-style: italic;
  color: var(--text-3);
  font-size: 13px;
}

.post-body {
  font-family: var(--serif);
  color: var(--text);
  font-size: 17.5px;
  line-height: 1.95;
  letter-spacing: -0.005em;
}
.post-body h1 { display: none; }
.post-body h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(22px, 2.8vw, 28px);
  color: var(--text);
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.post-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin: 32px 0 12px;
  letter-spacing: -0.005em;
}
.post-body h4 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  margin: 24px 0 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-body p { margin: 0 0 20px; color: var(--text); }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body em { color: var(--text); font-style: italic; font-weight: 500; }
.post-body a {
  color: var(--text);
  border-bottom: 1px solid var(--text-3);
  text-decoration: none;
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}
.post-body a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}
.post-body ul { margin: 0 0 20px; padding-left: 22px; }
.post-body li { margin: 4px 0; color: var(--text); }
.post-body li::marker { color: var(--text-3); }
.post-body blockquote {
  margin: 24px 0;
  padding: 8px 0 8px 22px;
  border-left: 2px solid var(--text-3);
  color: var(--text-2);
  font-style: italic;
}
.post-body code {
  font-family: var(--mono);
  background: var(--panel);
  color: var(--text);
  padding: 2px 6px;
  font-size: 0.88em;
  border-radius: 3px;
}
.post-body pre {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 13.5px;
  line-height: 1.7;
  border-radius: 2px;
}
.post-body pre code { background: transparent; color: var(--text); padding: 0; font-size: inherit; }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

.post-body .post-figure { margin: 28px 0; text-align: center; }
.post-body .post-figure img {
  max-width: 100%; height: auto;
  border: 1px solid var(--line);
  display: block;
}
.post-body .post-figure figcaption {
  font-family: var(--ui);
  font-style: italic;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
}
.post-body .embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 28px 0;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
}
.post-body .embed iframe,
.post-body .embed video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.post-nav {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.post-back {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  text-decoration: none;
  transition: color 160ms ease;
}
.post-back:hover { color: var(--text); }

/* =================== INK PAD (home interactive — live pen hatching) =================== */

.inkpad {
  max-width: var(--col-wide);
  margin: clamp(64px, 9vw, 96px) auto 0;
  padding: clamp(48px, 7vw, 64px) 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.inkpad-head { margin-bottom: 36px; }
.inkpad-eyebrow {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 600;
}
.inkpad-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.inkpad-keywords {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(15px, 1.7vw, 17.5px);
  letter-spacing: 0.02em;
  color: var(--text-2);
  margin: 0 0 8px;
  line-height: 1.6;
}
.inkpad-action {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--text-3);
  margin: 0;
  letter-spacing: -0.005em;
}

.inkpad-stage {
  position: relative;
  margin-top: 28px;
  height: clamp(320px, 46vw, 420px);
  /* Manga page — white paper with an inset ink panel */
  background-color: #ffffff;
  box-shadow: 0 2px 6px -3px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}
/* Inset panel border — bold ink line + hand-hatched edge vignette */
.inkpad-stage::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 3.5px solid #0a0805;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(10, 8, 5, 0.4) 0px,
    rgba(10, 8, 5, 0.4) 1px,
    transparent 1px,
    transparent 4px
  );
  background-clip: padding-box;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'><defs><filter id='b'><feGaussianBlur stdDeviation='3'/></filter><mask id='m' maskUnits='userSpaceOnUse'><rect width='200' height='100' fill='white'/><rect x='3' y='8' width='194' height='84' rx='14' ry='14' fill='black' filter='url(%23b)'/></mask></defs><rect width='200' height='100' fill='white' mask='url(%23m)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'><defs><filter id='b'><feGaussianBlur stdDeviation='3'/></filter><mask id='m' maskUnits='userSpaceOnUse'><rect width='200' height='100' fill='white'/><rect x='3' y='8' width='194' height='84' rx='14' ry='14' fill='black' filter='url(%23b)'/></mask></defs><rect width='200' height='100' fill='white' mask='url(%23m)'/></svg>");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(10, 8, 5, 0.18);
  pointer-events: none;
  z-index: 3;
}
/* Print noise overlay — SVG fractal noise multiplied onto the page */
.inkpad-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.42 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.26;
  z-index: 1;
}
.inkpad-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.inkpad-hint {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.36em;
  color: rgba(13, 10, 7, 0.5);
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 600ms ease;
  font-weight: 600;
  z-index: 3;
}
.inkpad-hint.is-fading { opacity: 0; }

.inkpad-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 4px;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--text-3);
}
.inkpad-count {
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  font-style: italic;
}
.inkpad-clear {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 180ms ease;
}
.inkpad-clear:hover {
  color: var(--text);
  border-color: var(--text-3);
  background: var(--panel);
}

/* =================== FOOT =================== */

.footbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px var(--gutter) 56px;
  margin-top: 32px;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  border-top: 1px solid var(--line);
}
.foot-mark { color: var(--ember); font-size: 8px; }

/* =================== RESPONSIVE =================== */

@media (max-width: 720px) {
  :root { --top-h: auto; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px var(--gutter); }
  .tabs { width: 100%; gap: 0; }
  .tab { padding: 10px 0; font-size: 11.5px; letter-spacing: 0.18em; flex: 1; text-align: center; }
  .tab::after { left: 8px; right: 8px; }
  .brand-sub { display: none; }
  .recent-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .archive-link { grid-template-columns: 40px 1fr; gap: 14px; }
  .archive-arrow { display: none; }
  .archive-month { font-size: 16px; }
  .archive-row-meta { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card-link, .read-arrow, .archive-link { transition: none; }
}
