@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Noto+Sans+KR:wght@400;500;700&display=swap");

:root {
  color-scheme: light;
  --bg: #e9f2f7;
  --grid: rgba(18, 94, 123, 0.12);
  --grid-strong: rgba(15, 106, 142, 0.12);
  --body-sheen: linear-gradient(140deg, rgba(7, 85, 113, 0.09) 0%, rgba(7, 85, 113, 0) 35%);
  --body-glow-top: radial-gradient(circle at 82% 12%, rgba(234, 138, 47, 0.14) 0 90px, transparent 140px);
  --body-glow-bottom: radial-gradient(circle at 10% 88%, rgba(15, 134, 177, 0.12) 0 110px, transparent 160px);
  --body-radial-warm: radial-gradient(circle at 100% 0%, rgba(255, 206, 152, 0.3) 0%, rgba(255, 206, 152, 0) 42%);
  --body-radial-cool: radial-gradient(circle at 0% 0%, rgba(128, 223, 255, 0.22) 0%, rgba(128, 223, 255, 0) 37%);
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.92);
  --line: #c9dae4;
  --line-strong: #b7d7e7;
  --line-soft: #d8e7ef;
  --ink: #13202d;
  --ink-strong: #173342;
  --muted: #4b6070;
  --accent: #0f86b1;
  --accent-strong: #075571;
  --accent-hover: #03384b;
  --warn: #ea8a2f;
  --header-bg: rgba(255, 255, 255, 0.84);
  --page-content-bg:
    repeating-linear-gradient(
      0deg,
      rgba(10, 92, 125, 0.28) 0 1px,
      transparent 1px 44px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(10, 92, 125, 0.28) 0 1px,
      transparent 1px 44px
    ),
    linear-gradient(180deg, rgba(230, 243, 250, 0.98) 0%, rgba(230, 243, 250, 0.9) 100%);
  --page-content-border: #d4e5ef;
  --page-content-frame: rgba(8, 76, 103, 0.22);
  --hero-bg: linear-gradient(130deg, #ffffff 0%, #ecf8ff 58%, #fff4e8 100%);
  --hero-status: #6d7d89;
  --hero-shadow: 0 14px 26px rgba(15, 70, 100, 0.12);
  --button-bg: #dff3ff;
  --button-bg-hover: #c8ebff;
  --button-border: #9fcae0;
  --button-ink: #064f69;
  --card-shadow: 0 8px 18px rgba(17, 65, 89, 0.08);
  --card-shadow-hover: 0 12px 24px rgba(17, 65, 89, 0.14);
  --post-shadow: 0 10px 22px rgba(17, 65, 89, 0.08);
  --meta-head-bg: linear-gradient(90deg, #e4f5ff 0%, #fff0df 100%);
  --rank-bg: linear-gradient(90deg, #e9f7ff 0%, #fff4e6 100%);
  --rank-border: #b7d7e7;
  --rank-image-bg: #f3fbff;
  --rank-image-border: #a7cadc;
  --rank-label: #5d7080;
  --exp-bg: #dfeff7;
  --exp-border: #b9d6e5;
  --exp-fill: linear-gradient(90deg, #0f86b1 0%, #58b8d9 50%, #f2c27a 100%);
  --meta-dash: #bdd6e5;
  --history-bg: linear-gradient(180deg, rgba(244, 251, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
  --history-item-bg: rgba(255, 255, 255, 0.92);
  --post-bg: rgba(255, 255, 255, 0.92);
  --content-bg: #ffffff;
  --content-border: #e1edf3;
  --content-link: #0a6280;
  --content-link-hover: #084a62;
  --content-link-visited: #6f4ca5;
  --code-bg: #f4fbff;
  --code-surface: linear-gradient(180deg, rgba(236, 247, 255, 0.99) 0%, rgba(218, 235, 245, 0.99) 100%);
  --code-border: #d7e7ef;
  --code-ink: #1c2f3b;
  --code-muted: #5b7080;
  --code-shadow: 0 18px 30px rgba(15, 70, 100, 0.14);
  --code-frame-line: rgba(15, 134, 177, 0.72);
  --code-frame-border: #8ebcd2;
  --code-frame-rim: rgba(255, 255, 255, 0.84);
  --code-chrome-bg: linear-gradient(180deg, rgba(214, 236, 247, 0.98) 0%, rgba(201, 227, 240, 0.98) 100%);
  --code-chrome-dot-muted: #87a6b7;
  --inline-code-bg: rgba(15, 134, 177, 0.08);
  --inline-code-border: #c7dde8;
  --inline-code-ink: #0b5d79;
  --code-keyword: #0d6f93;
  --code-string: #a65b16;
  --code-number: #7d54b5;
  --code-type: #296eb4;
  --code-function: #135f7a;
  --code-variable: #315063;
  --code-constant: #b55a22;
  --code-class: #17759a;
  --code-tag: #b54f70;
  --code-operator: #617a8a;
  --code-error-bg: rgba(194, 72, 72, 0.12);
  --code-error-border: rgba(194, 72, 72, 0.4);
  --code-error-ink: #8f2424;
  --blockquote-bg: rgba(231, 245, 252, 0.85);
  --table-head-bg: rgba(225, 239, 247, 0.92);
  --table-row-alt-bg: rgba(240, 248, 253, 0.8);
  --mark-bg: #fff1a8;
  --mark-ink: #3b2f00;
  --selection-bg: rgba(15, 134, 177, 0.2);
  --theme-button-bg: rgba(223, 243, 255, 0.88);
  --theme-button-bg-hover: rgba(200, 235, 255, 0.96);
  --theme-button-border: #9fcae0;
  --theme-button-ink: #064f69;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08131b;
  --grid: rgba(104, 189, 224, 0.08);
  --grid-strong: rgba(73, 151, 182, 0.1);
  --body-sheen: linear-gradient(140deg, rgba(75, 188, 235, 0.08) 0%, rgba(75, 188, 235, 0) 35%);
  --body-glow-top: radial-gradient(circle at 82% 12%, rgba(255, 180, 82, 0.16) 0 90px, transparent 150px);
  --body-glow-bottom: radial-gradient(circle at 10% 88%, rgba(64, 199, 255, 0.13) 0 120px, transparent 170px);
  --body-radial-warm: radial-gradient(circle at 100% 0%, rgba(180, 111, 36, 0.22) 0%, rgba(180, 111, 36, 0) 42%);
  --body-radial-cool: radial-gradient(circle at 0% 0%, rgba(40, 126, 158, 0.22) 0%, rgba(40, 126, 158, 0) 37%);
  --surface: #0f1c26;
  --surface-soft: rgba(16, 30, 40, 0.92);
  --line: #254152;
  --line-strong: #2d5a70;
  --line-soft: #1c3340;
  --ink: #e6f2f8;
  --ink-strong: #f0f7fb;
  --muted: #97adbb;
  --accent: #59c8ef;
  --accent-strong: #8adfff;
  --accent-hover: #c2f2ff;
  --warn: #ffba66;
  --header-bg: rgba(8, 16, 24, 0.82);
  --page-content-bg:
    repeating-linear-gradient(
      0deg,
      rgba(55, 118, 145, 0.18) 0 1px,
      transparent 1px 44px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(55, 118, 145, 0.18) 0 1px,
      transparent 1px 44px
    ),
    linear-gradient(180deg, rgba(9, 20, 29, 0.98) 0%, rgba(9, 20, 29, 0.92) 100%);
  --page-content-border: #1f3644;
  --page-content-frame: rgba(110, 196, 232, 0.18);
  --hero-bg: linear-gradient(130deg, rgba(18, 35, 47, 0.98) 0%, rgba(15, 48, 63, 0.94) 55%, rgba(51, 37, 17, 0.92) 100%);
  --hero-status: #8fa4b1;
  --hero-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
  --button-bg: #103346;
  --button-bg-hover: #18455c;
  --button-border: #2b6b88;
  --button-ink: #dff8ff;
  --card-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  --card-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.42);
  --post-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  --meta-head-bg: linear-gradient(90deg, rgba(16, 58, 76, 0.95) 0%, rgba(64, 43, 20, 0.92) 100%);
  --rank-bg: linear-gradient(90deg, rgba(12, 47, 64, 0.95) 0%, rgba(58, 37, 18, 0.92) 100%);
  --rank-border: #2a627b;
  --rank-image-bg: #112531;
  --rank-image-border: #386176;
  --rank-label: #a4bcc9;
  --exp-bg: #102633;
  --exp-border: #275065;
  --exp-fill: linear-gradient(90deg, #1eb6e8 0%, #7be0ff 55%, #ffbe69 100%);
  --meta-dash: #2a5164;
  --history-bg: linear-gradient(180deg, rgba(12, 23, 32, 0.94) 0%, rgba(8, 16, 24, 0.96) 100%);
  --history-item-bg: rgba(16, 30, 40, 0.92);
  --post-bg: rgba(11, 21, 29, 0.92);
  --content-bg: #0d1a24;
  --content-border: #203847;
  --content-link: #98e8ff;
  --content-link-hover: #d2f7ff;
  --content-link-visited: #d4bbff;
  --code-bg: #0a151d;
  --code-surface: linear-gradient(180deg, rgba(20, 46, 61, 0.98) 0%, rgba(15, 35, 47, 0.98) 100%);
  --code-border: #214054;
  --code-ink: #e5f3fb;
  --code-muted: #86a4b5;
  --code-shadow: 0 20px 38px rgba(0, 0, 0, 0.42);
  --code-frame-line: rgba(89, 200, 239, 0.68);
  --code-frame-border: #5b8ca2;
  --code-frame-rim: rgba(255, 255, 255, 0.09);
  --code-chrome-bg: linear-gradient(180deg, rgba(27, 63, 79, 0.98) 0%, rgba(22, 53, 68, 0.98) 100%);
  --code-chrome-dot-muted: #7fa0b1;
  --inline-code-bg: rgba(89, 200, 239, 0.12);
  --inline-code-border: #2a5063;
  --inline-code-ink: #d8f6ff;
  --code-keyword: #8fe3ff;
  --code-string: #ffc37f;
  --code-number: #d8abff;
  --code-type: #7ecaff;
  --code-function: #7be9db;
  --code-variable: #d7e6ef;
  --code-constant: #ff9d73;
  --code-class: #84deff;
  --code-tag: #ff93b5;
  --code-operator: #9ec0cf;
  --code-error-bg: rgba(255, 104, 104, 0.18);
  --code-error-border: rgba(255, 135, 135, 0.45);
  --code-error-ink: #ffd9d9;
  --blockquote-bg: rgba(17, 38, 50, 0.92);
  --table-head-bg: rgba(19, 42, 55, 0.96);
  --table-row-alt-bg: rgba(14, 31, 42, 0.82);
  --mark-bg: #6c5200;
  --mark-ink: #fff5cb;
  --selection-bg: rgba(89, 200, 239, 0.26);
  --theme-button-bg: rgba(18, 51, 69, 0.88);
  --theme-button-bg-hover: rgba(26, 68, 91, 0.96);
  --theme-button-border: #2d6d89;
  --theme-button-ink: #e7f8ff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --bg: #08131b;
    --grid: rgba(104, 189, 224, 0.08);
    --grid-strong: rgba(73, 151, 182, 0.1);
    --body-sheen: linear-gradient(140deg, rgba(75, 188, 235, 0.08) 0%, rgba(75, 188, 235, 0) 35%);
    --body-glow-top: radial-gradient(circle at 82% 12%, rgba(255, 180, 82, 0.16) 0 90px, transparent 150px);
    --body-glow-bottom: radial-gradient(circle at 10% 88%, rgba(64, 199, 255, 0.13) 0 120px, transparent 170px);
    --body-radial-warm: radial-gradient(circle at 100% 0%, rgba(180, 111, 36, 0.22) 0%, rgba(180, 111, 36, 0) 42%);
    --body-radial-cool: radial-gradient(circle at 0% 0%, rgba(40, 126, 158, 0.22) 0%, rgba(40, 126, 158, 0) 37%);
    --surface: #0f1c26;
    --surface-soft: rgba(16, 30, 40, 0.92);
    --line: #254152;
    --line-strong: #2d5a70;
    --line-soft: #1c3340;
    --ink: #e6f2f8;
    --ink-strong: #f0f7fb;
    --muted: #97adbb;
    --accent: #59c8ef;
    --accent-strong: #8adfff;
    --accent-hover: #c2f2ff;
    --warn: #ffba66;
    --header-bg: rgba(8, 16, 24, 0.82);
    --page-content-bg:
      repeating-linear-gradient(
        0deg,
        rgba(55, 118, 145, 0.18) 0 1px,
        transparent 1px 44px
      ),
      repeating-linear-gradient(
        90deg,
        rgba(55, 118, 145, 0.18) 0 1px,
        transparent 1px 44px
      ),
      linear-gradient(180deg, rgba(9, 20, 29, 0.98) 0%, rgba(9, 20, 29, 0.92) 100%);
    --page-content-border: #1f3644;
    --page-content-frame: rgba(110, 196, 232, 0.18);
    --hero-bg: linear-gradient(130deg, rgba(18, 35, 47, 0.98) 0%, rgba(15, 48, 63, 0.94) 55%, rgba(51, 37, 17, 0.92) 100%);
    --hero-status: #8fa4b1;
    --hero-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
    --button-bg: #103346;
    --button-bg-hover: #18455c;
    --button-border: #2b6b88;
    --button-ink: #dff8ff;
    --card-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
    --card-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.42);
    --post-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    --meta-head-bg: linear-gradient(90deg, rgba(16, 58, 76, 0.95) 0%, rgba(64, 43, 20, 0.92) 100%);
    --rank-bg: linear-gradient(90deg, rgba(12, 47, 64, 0.95) 0%, rgba(58, 37, 18, 0.92) 100%);
    --rank-border: #2a627b;
    --rank-image-bg: #112531;
    --rank-image-border: #386176;
    --rank-label: #a4bcc9;
    --exp-bg: #102633;
    --exp-border: #275065;
    --exp-fill: linear-gradient(90deg, #1eb6e8 0%, #7be0ff 55%, #ffbe69 100%);
    --meta-dash: #2a5164;
    --history-bg: linear-gradient(180deg, rgba(12, 23, 32, 0.94) 0%, rgba(8, 16, 24, 0.96) 100%);
    --history-item-bg: rgba(16, 30, 40, 0.92);
    --post-bg: rgba(11, 21, 29, 0.92);
    --content-bg: #0d1a24;
    --content-border: #203847;
    --content-link: #98e8ff;
    --content-link-hover: #d2f7ff;
    --content-link-visited: #d4bbff;
    --code-bg: #0a151d;
    --code-surface: linear-gradient(180deg, rgba(20, 46, 61, 0.98) 0%, rgba(15, 35, 47, 0.98) 100%);
    --code-border: #214054;
    --code-ink: #e5f3fb;
    --code-muted: #86a4b5;
    --code-shadow: 0 20px 38px rgba(0, 0, 0, 0.42);
    --code-frame-line: rgba(89, 200, 239, 0.68);
    --code-frame-border: #5b8ca2;
    --code-frame-rim: rgba(255, 255, 255, 0.09);
    --code-chrome-bg: linear-gradient(180deg, rgba(27, 63, 79, 0.98) 0%, rgba(22, 53, 68, 0.98) 100%);
    --code-chrome-dot-muted: #7fa0b1;
    --inline-code-bg: rgba(89, 200, 239, 0.12);
    --inline-code-border: #2a5063;
    --inline-code-ink: #d8f6ff;
    --code-keyword: #8fe3ff;
    --code-string: #ffc37f;
    --code-number: #d8abff;
    --code-type: #7ecaff;
    --code-function: #7be9db;
    --code-variable: #d7e6ef;
    --code-constant: #ff9d73;
    --code-class: #84deff;
    --code-tag: #ff93b5;
    --code-operator: #9ec0cf;
    --code-error-bg: rgba(255, 104, 104, 0.18);
    --code-error-border: rgba(255, 135, 135, 0.45);
    --code-error-ink: #ffd9d9;
    --blockquote-bg: rgba(17, 38, 50, 0.92);
    --table-head-bg: rgba(19, 42, 55, 0.96);
    --table-row-alt-bg: rgba(14, 31, 42, 0.82);
    --mark-bg: #6c5200;
    --mark-ink: #fff5cb;
    --selection-bg: rgba(89, 200, 239, 0.26);
    --theme-button-bg: rgba(18, 51, 69, 0.88);
    --theme-button-bg-hover: rgba(26, 68, 91, 0.96);
    --theme-button-border: #2d6d89;
    --theme-button-ink: #e7f8ff;
  }
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--ink);
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--body-radial-warm),
    var(--body-radial-cool),
    var(--bg);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
}

::selection {
  background: var(--selection-bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    repeating-linear-gradient(
      0deg,
      var(--grid-strong) 0 1px,
      transparent 1px 64px
    ),
    repeating-linear-gradient(
      90deg,
      var(--grid-strong) 0 1px,
      transparent 1px 64px
    );
}

body::after {
  background: var(--body-sheen), var(--body-glow-top), var(--body-glow-bottom);
}

.site-header,
.site-footer,
.page-content,
.hero,
.category-grid,
.post,
.page {
  position: relative;
  z-index: 1;
}

.page-content {
  background: var(--page-content-bg);
  border-top: 1px solid var(--page-content-border);
  border-bottom: 1px solid var(--page-content-border);
}

.page-content::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid var(--page-content-frame);
  border-radius: 8px;
}

.wrapper {
  max-width: 1120px;
}

.site-title,
h1,
h2,
h3 {
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  letter-spacing: 0.015em;
}

.site-header,
.site-footer {
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-color: var(--line);
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.site-title,
.site-title:visited {
  color: var(--ink-strong);
}

.site-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.site-action-link,
.site-action-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  border: 1px solid var(--theme-button-border);
  background: var(--theme-button-bg);
  color: var(--theme-button-ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.site-action-link:hover,
.site-action-link:focus-visible {
  background: var(--theme-button-bg-hover);
  color: var(--theme-button-ink);
  transform: translateY(-1px);
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--theme-button-border);
  background: var(--theme-button-bg);
  color: var(--theme-button-ink);
  border-radius: 999px;
  padding: 0.36rem 0.42rem 0.36rem 0.72rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.theme-toggle-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.theme-toggle-value {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--theme-button-border);
  background: rgba(255, 255, 255, 0.18);
  color: var(--theme-button-ink);
  min-width: 4.8rem;
  justify-content: center;
}

.theme-toggle-value::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-toggle[data-theme-state="system"] .theme-toggle-value::before {
  background: linear-gradient(135deg, var(--accent) 0 50%, var(--warn) 50% 100%);
}

.theme-toggle[data-theme-state="dark"] .theme-toggle-value::before {
  background: #5fa8ff;
}

.theme-toggle[data-theme-state="light"] .theme-toggle-value::before {
  background: #ffbb52;
}

.theme-toggle:hover {
  background: var(--theme-button-bg-hover);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a {
  color: var(--accent-strong);
}

a:hover {
  color: var(--accent-hover);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.1rem 1.5rem;
  box-shadow: var(--hero-shadow);
  margin-bottom: 1.4rem;
}

.hero::after {
  content: "RUNTIME STATUS: ACTIVE";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--hero-status);
}

.hero-kicker {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0.4rem 0 0.6rem 0;
  font-size: 2.2rem;
  line-height: 1.1;
}

.hero-desc {
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-link {
  display: inline-block;
  padding: 0.56rem 0.88rem;
  border-radius: 10px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-ink);
  font-weight: 700;
  text-decoration: none;
}

.hero-link:hover {
  text-decoration: none;
  background: var(--button-bg-hover);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--card-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow-hover);
}

.category-card h2 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.12rem;
}

.category-card h2::before {
  content: ">";
  color: var(--warn);
  margin-right: 0.35rem;
}

.category-card p {
  margin: 0 0 0.7rem 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.category-card ul {
  margin: 0;
  padding-left: 1rem;
}

.category-card li {
  margin: 0.24rem 0;
}

.page-meta-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 1rem 0;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.page-meta-head {
  background: var(--meta-head-bg);
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.52rem 0.8rem;
}

.author-rank {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--rank-border);
  border-radius: 12px;
  background: var(--rank-bg);
}

.rank-image {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
}

.monster-image {
  border-radius: 10px;
  border: 1px solid var(--rank-image-border);
  background: var(--rank-image-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.rank-copy {
  display: flex;
  flex-direction: column;
}

.rank-label {
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--rank-label);
  font-weight: 700;
}

#meta-level {
  font-size: 1.02rem;
  color: var(--ink-strong);
}

#meta-post-count {
  margin-top: 0.1rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
}

.exp-wrap {
  margin-top: 0.35rem;
}

.exp-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--exp-bg);
  border: 1px solid var(--exp-border);
  overflow: hidden;
}

.exp-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--exp-fill);
  transition: width 280ms ease;
}

#meta-exp-text {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.page-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  padding: 0.8rem;
}

.meta-item {
  border: 1px dashed var(--meta-dash);
  border-radius: 10px;
  padding: 0.6rem;
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.meta-item strong {
  color: var(--ink-strong);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.page-history-panel {
  border-top: 1px solid var(--line-soft);
  padding: 0.8rem;
  background: var(--history-bg);
}

.page-history-head {
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.page-history-list {
  display: grid;
  gap: 0.55rem;
}

.page-history-item {
  border: 1px dashed var(--meta-dash);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: var(--history-item-bg);
}

.page-history-link {
  display: block;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.page-history-link:hover {
  text-decoration: underline;
}

.page-history-meta {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-history-more {
  display: inline-flex;
  margin-top: 0.7rem;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  text-decoration: none;
}

.page-history-more:hover {
  text-decoration: underline;
}

.post,
.page {
  background: var(--post-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  box-shadow: var(--post-shadow);
  max-width: 980px;
  margin: 0 auto;
}

.post-content {
  background: var(--content-bg);
  border: 1px solid var(--content-border);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  line-height: 1.78;
  font-size: 1.03rem;
  color: var(--ink);
}

.post-content a,
.page-content a,
.site-footer a,
.post-meta a {
  color: var(--content-link);
}

.post-content a:visited,
.page-content a:visited,
.site-footer a:visited,
.post-meta a:visited {
  color: var(--content-link-visited);
}

.post-content a:hover,
.page-content a:hover,
.site-footer a:hover,
.post-meta a:hover,
.post-content a:focus-visible,
.page-content a:focus-visible,
.site-footer a:focus-visible,
.post-meta a:focus-visible {
  color: var(--content-link-hover);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-title,
.page-heading {
  color: var(--ink-strong);
}

.post-meta,
.site-footer,
.site-footer p,
.site-footer li,
.footer-col-wrapper {
  color: var(--muted);
}

.post-content pre,
.highlight {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  color: var(--code-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: auto;
  padding: 0.85rem;
  border-radius: 10px;
}

.post-content div.highlighter-rouge {
  position: relative;
  margin: 1.15rem 0 1.4rem;
  border: 1px solid var(--code-frame-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--code-chrome-bg) 0 2.25rem, transparent 2.25rem),
    var(--code-surface);
  box-shadow:
    var(--code-shadow),
    inset 5px 0 0 0 var(--code-frame-line),
    inset 0 1px 0 0 var(--code-frame-rim);
  overflow: hidden;
  padding-top: 2.25rem;
}

.post-content div.highlighter-rouge::before {
  content: "";
  position: absolute;
  top: 0.78rem;
  left: 1rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--warn);
  box-shadow:
    1.05rem 0 0 0 var(--code-frame-line),
    2.1rem 0 0 0 var(--code-chrome-dot-muted);
  pointer-events: none;
}

.post-content div.highlighter-rouge::after {
  content: "";
  position: absolute;
  top: 2.25rem;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.post-content div.highlighter-rouge .highlight,
.post-content div.highlighter-rouge pre.highlight,
.post-content div.highlighter-rouge pre {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  border-radius: 0;
}

.post-content div.highlighter-rouge .highlight {
  padding: 0;
}

.post-content div.highlighter-rouge pre.highlight,
.post-content div.highlighter-rouge pre {
  padding: 1rem 1.15rem 1rem 1.5rem;
}

.highlighter-rouge {
  color: var(--code-ink);
}

.post-content pre code,
.highlight pre,
.highlight code,
.highlighter-rouge .highlight,
.rouge-table,
.rouge-table td,
.rouge-table pre {
  background: transparent;
  color: var(--code-ink);
  border: 0;
}

.rouge-table .rouge-gutter,
.rouge-table .gutter,
.rouge-table .lineno {
  color: var(--code-muted);
  border-right: 1px solid var(--code-border);
}

.rouge-table .rouge-code,
.rouge-table .code {
  padding-left: 0.8rem;
}

.post-content code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--code-ink);
}

.post-content :not(pre) > code {
  background: var(--inline-code-bg);
  border: 1px solid var(--inline-code-border);
  color: var(--inline-code-ink);
  border-radius: 6px;
  padding: 0.12rem 0.38rem;
}

.highlight .w,
.highlight .n,
.highlight .p,
.highlight .x,
.highlight .nx,
.highlight .bp {
  color: var(--code-ink);
}

.highlight .c,
.highlight .cm,
.highlight .c1,
.highlight .cs,
.highlight .cp,
.highlight .go,
.highlight .gp,
.highlight .w {
  color: var(--code-muted);
}

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .ow {
  color: var(--code-keyword);
}

.highlight .s,
.highlight .sa,
.highlight .sb,
.highlight .sc,
.highlight .dl,
.highlight .sd,
.highlight .s1,
.highlight .s2,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .ss,
.highlight .se {
  color: var(--code-string);
}

.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: var(--code-number);
}

.highlight .kt {
  color: var(--code-type);
}

.highlight .nc,
.highlight .nn,
.highlight .ne {
  color: var(--code-class);
}

.highlight .nt {
  color: var(--code-tag);
}

.highlight .na,
.highlight .nf,
.highlight .fm {
  color: var(--code-function);
}

.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi {
  color: var(--code-variable);
}

.highlight .nb,
.highlight .no,
.highlight .nl {
  color: var(--code-constant);
}

.highlight .o,
.highlight .gd,
.highlight .gi,
.highlight .gh,
.highlight .gu {
  color: var(--code-operator);
}

.highlight .err {
  background: var(--code-error-bg);
  color: var(--code-error-ink);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--code-error-border);
  padding: 0 0.14em;
}

.post-content blockquote {
  background: var(--blockquote-bg);
  border-left-color: var(--accent);
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-radius: 0 10px 10px 0;
}

.post-content hr {
  border-color: var(--line-soft);
}

.post-content table {
  border-color: var(--line);
  background: transparent;
}

.post-content th,
.post-content td {
  border-color: var(--line);
}

.post-content th {
  background: var(--table-head-bg);
}

.post-content th,
.post-content td {
  color: var(--ink);
}

.post-content tbody tr:nth-child(even) {
  background: var(--table-row-alt-bg);
}

.post-content mark {
  background: var(--mark-bg);
  color: var(--mark-ink);
  padding: 0.08rem 0.22rem;
  border-radius: 4px;
}

.post-content .MathJax {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.post-content .mjx-container {
  color: var(--ink) !important;
}

.page-comments {
  margin-top: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.page-comments-head {
  padding: 0.78rem 1rem;
  background: var(--meta-head-bg);
  border-bottom: 1px solid var(--line-strong);
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.page-comments-note {
  margin: 0;
  padding: 0.9rem 1rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-recommend {
  margin: 0.8rem 1rem 0;
  padding: 0.78rem 0.9rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--history-bg);
}

.page-recommend-head {
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.page-recommend-meta,
.page-recommend-note,
.page-recommend-actions {
  margin: 0;
  margin-top: 0.42rem;
}

.page-recommend-meta {
  color: var(--ink);
}

.page-recommend-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-recommend-link,
.page-recommend-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-ink);
  text-decoration: none;
  font-weight: 700;
}

.page-recommend-link:hover,
.page-recommend-link:focus-visible {
  background: var(--button-bg-hover);
  color: var(--button-ink);
}

.page-comments-actions {
  margin: 0;
  padding: 0.7rem 1rem 0;
}

.page-comments-compose-link,
.page-comments-compose-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-ink);
  text-decoration: none;
  font-weight: 700;
}

.page-comments-compose-link:hover,
.page-comments-compose-link:focus-visible {
  background: var(--button-bg-hover);
  color: var(--button-ink);
}

.page-comments-shell {
  padding: 1rem;
}

.page-comments-shell iframe {
  width: 100%;
}

.writer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.1rem;
  padding: 1.45rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--hero-bg);
  box-shadow: var(--hero-shadow);
}

.writer-intro-copy h2 {
  margin: 0 0 0.55rem;
  color: var(--ink-strong);
}

.writer-intro-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.writer-kicker {
  margin: 0 0 0.38rem;
  color: var(--hero-status);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.writer-intro-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.writer-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.writer-shell {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.writer-sidebar,
.writer-main {
  display: grid;
  gap: 1rem;
}

.writer-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.writer-panel-head {
  padding: 0.84rem 1rem;
  background: var(--meta-head-bg);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-strong);
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writer-panel-body,
.writer-form,
.writer-status,
.writer-toolbar,
.writer-editor-note,
.writer-preview-shell,
.writer-publish-grid {
  padding-left: 1rem;
  padding-right: 1rem;
}

.writer-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 1rem 1rem 0;
}

.writer-mode-button {
  appearance: none;
  border: 1px solid var(--button-border);
  border-radius: 12px;
  background: var(--content-bg);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.writer-mode-button:hover,
.writer-mode-button:focus-visible {
  transform: translateY(-1px);
}

.writer-mode-button.is-active {
  background: var(--button-bg);
  border-color: var(--accent);
  color: var(--button-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.writer-form {
  display: grid;
  gap: 0.95rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.writer-field {
  display: grid;
  gap: 0.42rem;
}

.writer-field span,
.writer-preview-label {
  color: var(--ink-strong);
  font-size: 0.93rem;
  font-weight: 700;
}

.writer-field small,
.writer-helper-copy,
.writer-editor-note,
.writer-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.writer-helper-copy,
.writer-editor-note {
  margin: 0;
  line-height: 1.6;
}

.writer-template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem 1rem 0.7rem;
}

.writer-template-button,
.writer-button {
  appearance: none;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-ink);
  font: inherit;
  font-weight: 700;
  padding: 0.52rem 0.95rem;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.writer-template-button:hover,
.writer-template-button:focus-visible,
.writer-button:hover,
.writer-button:focus-visible {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.writer-button-accent {
  border-color: var(--accent);
}

.writer-field input,
.writer-field select,
.writer-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--content-bg);
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  padding: 0.78rem 0.88rem;
}

.writer-field textarea {
  resize: vertical;
}

.writer-doc-list,
.writer-draft-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.writer-record {
  display: grid;
  gap: 0.2rem;
}

.writer-record-main,
.writer-doc-record {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--content-bg);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.writer-record-main:hover,
.writer-record-main:focus-visible,
.writer-doc-record:hover,
.writer-doc-record:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--card-shadow);
}

.writer-record strong,
.writer-record-main strong,
.writer-doc-record strong {
  display: block;
  color: var(--ink-strong);
}

.writer-record span,
.writer-record-main span,
.writer-doc-record span,
.writer-record small,
.writer-record-main small,
.writer-doc-record small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.writer-record-delete {
  justify-self: end;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.writer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1rem;
  padding-bottom: 0.65rem;
}

.writer-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
}

.writer-toolbar-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.writer-toolbar-divider {
  width: 1px;
  height: 1rem;
  background: var(--line);
}

.writer-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.writer-status {
  margin: 0;
  padding-top: 0;
  padding-bottom: 1rem;
  color: var(--muted);
}

.writer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.writer-field-editor {
  padding: 1rem 1rem 0;
}

.writer-field-editor textarea {
  min-height: 34rem;
  font-family: Consolas, "Courier New", monospace;
}

.writer-editor-note {
  margin: 0;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.writer-preview-shell {
  display: grid;
  gap: 0.9rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.writer-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.writer-preview-meta strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.writer-rendered {
  border: 1px solid var(--content-border);
  border-radius: 16px;
  background: var(--content-bg);
  padding: 1rem;
  min-height: 34rem;
  color: var(--ink);
}

.writer-rendered-head {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.writer-rendered-head h1 {
  margin: 0 0 0.35rem;
  color: var(--ink-strong);
}

.writer-rendered-summary {
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.writer-rendered-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.writer-rendered-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.writer-rendered-body {
  line-height: 1.75;
}

.writer-rendered-body h1,
.writer-rendered-body h2,
.writer-rendered-body h3,
.writer-rendered-body h4 {
  color: var(--ink-strong);
}

.writer-rendered-body a {
  color: var(--content-link);
}

.writer-rendered-body a:hover,
.writer-rendered-body a:focus-visible {
  color: var(--content-link-hover);
}

.writer-rendered-body code {
  background: var(--inline-code-bg);
  border: 1px solid var(--inline-code-border);
  color: var(--inline-code-ink);
  border-radius: 6px;
  padding: 0.12rem 0.34rem;
}

.writer-rendered-code {
  margin: 1rem 0;
  border: 1px solid var(--code-frame-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--code-chrome-bg) 0 2.25rem, transparent 2.25rem),
    var(--code-surface);
  box-shadow:
    var(--code-shadow),
    inset 5px 0 0 0 var(--code-frame-line),
    inset 0 1px 0 0 var(--code-frame-rim);
  overflow: hidden;
  padding: 3.1rem 1rem 1rem 1.35rem;
  color: var(--code-ink);
}

.writer-rendered-code code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.writer-rendered-body blockquote {
  margin: 1rem 0;
  background: var(--blockquote-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 0.8rem 1rem;
  color: var(--muted);
}

.writer-rendered-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 12px;
}

.writer-rendered-body th,
.writer-rendered-body td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  text-align: left;
}

.writer-rendered-body th {
  background: var(--table-head-bg);
}

.writer-rendered-body tbody tr:nth-child(even) {
  background: var(--table-row-alt-bg);
}

.writer-publish-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.writer-publish-copy p {
  margin-top: 0;
  color: var(--muted);
}

.writer-publish-list {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.writer-publish-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 700px) {
  .site-header .wrapper {
    min-height: 72px;
  }

  .theme-toggle {
    padding: 0.34rem 0.38rem 0.34rem 0.62rem;
    font-size: 0.82rem;
  }

  .site-controls {
    gap: 0.35rem;
  }

  .site-action-link {
    padding: 0.36rem 0.7rem;
    font-size: 0.82rem;
  }

  .theme-toggle-value {
    min-width: 4.4rem;
    padding: 0.28rem 0.58rem;
  }

  .hero {
    padding: 1.55rem 1rem;
  }

  .hero::after {
    position: static;
    display: block;
    margin-top: 0.4rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .page-meta-grid {
    grid-template-columns: 1fr;
  }

  .page-comments-shell {
    padding: 0.9rem 0.6rem;
  }

  .page-comments-actions {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .author-rank {
    margin: 0.65rem;
  }

  .post,
  .page {
    padding: 0.8rem 0.6rem;
    max-width: 100%;
  }

  .writer-intro {
    grid-template-columns: 1fr;
    padding: 1.15rem 1rem;
  }

  .writer-intro-status {
    justify-content: flex-start;
  }

  .writer-shell,
  .writer-workspace,
  .writer-publish-grid,
  .writer-preview-meta {
    grid-template-columns: 1fr;
  }

  .writer-mode-switch,
  .writer-panel-body,
  .writer-form,
  .writer-status,
  .writer-toolbar,
  .writer-editor-note,
  .writer-preview-shell,
  .writer-publish-grid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .writer-toolbar {
    padding-top: 0.8rem;
  }

  .writer-toolbar-actions,
  .writer-publish-actions {
    width: 100%;
  }

  .writer-button,
  .writer-template-button {
    width: 100%;
    justify-content: center;
  }

  .writer-field-editor textarea,
  .writer-rendered {
    min-height: 22rem;
  }

  .post-content {
    padding: 0.8rem;
    font-size: 1rem;
  }
}
