/* =========================================================
   青茉卷 · 苔痕
   A quiet editorial theme for a personal blog.
   ========================================================= */

:root {
  --paper: #f3eee4;
  --paper-soft: #ece5d7;
  --paper-deep: #e2d8c6;
  --ink: #20251f;
  --ink-soft: #3e473e;
  --ink-muted: #70786c;
  --ink-faint: #989d91;
  --moss: #405b48;
  --moss-deep: #263a2d;
  --moss-soft: #dfe7dc;
  --tea: #91a27d;
  --clay: #ac5c43;
  --line: #d5cbbb;
  --line-strong: #b9ad9b;
  --white: #fbf8f1;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --container: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
  --paper: #151914;
  --paper-soft: #1c221b;
  --paper-deep: #242b23;
  --ink: #ebe6da;
  --ink-soft: #c8c3b6;
  --ink-muted: #93998e;
  --ink-faint: #6f766c;
  --moss: #9ab39e;
  --moss-deep: #0f1a13;
  --moss-soft: #263229;
  --tea: #a7b690;
  --clay: #d28770;
  --line: #343b32;
  --line-strong: #4b5448;
  --white: #f1ecdf;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(145, 162, 125, 0.16), transparent 38%),
    radial-gradient(ellipse at 94% 18%, rgba(172, 92, 67, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 44%);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(108, 139, 111, 0.13), transparent 38%),
    radial-gradient(ellipse at 94% 18%, rgba(172, 92, 67, 0.06), transparent 34%);
}

::selection {
  background: var(--moss);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

body.search-open,
body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  margin: 0;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--moss-deep);
  color: var(--white);
  font-size: 12px;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap,
.home-wrap,
.archive-page,
.about-page,
.single-article,
.related,
.comments-wrap,
.not-found,
.page-body {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

.single-article,
.related,
.comments-wrap {
  width: min(1120px, calc(100% - 80px));
}

/* =========================================================
   Type helpers
   ========================================================= */

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.4;
  color: var(--moss);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
  flex: 0 0 auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--moss);
  border-color: var(--moss);
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--moss-deep);
  color: var(--white);
  border: 1px solid var(--moss-deep);
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.button-link:hover {
  background: transparent;
  color: var(--moss-deep);
}

[data-theme="dark"] .button-link:hover {
  color: var(--moss);
  border-color: var(--moss);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  width: min(var(--container), calc(100% - 80px));
  height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand-seal,
.footer-seal,
.about-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--moss);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-text span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.custom-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: inline-block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .is-current > a {
  color: var(--moss);
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after,
.nav-list .is-current > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-button:hover {
  background: var(--paper-soft);
  color: var(--moss);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 17px;
  height: 17px;
}

[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  margin: 3px 0;
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2px) rotate(-45deg);
}

/* =========================================================
   Search overlay
   ========================================================= */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 24, 18, 0.54);
  backdrop-filter: blur(8px);
}

.search-overlay[hidden] {
  display: none;
}

.search-panel {
  position: relative;
  width: min(620px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 42px 44px 38px;
  box-shadow: 0 28px 80px rgba(14, 20, 14, 0.25);
}

.search-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  color: var(--ink-muted);
}

.search-panel h2 {
  margin: 10px 0 24px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
}

.search-panel .search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  gap: 12px;
}

.search-panel .search-field {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 0;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
}

.search-panel .search-field::placeholder {
  color: var(--ink-faint);
}

.search-panel .search-submit {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--moss);
}

.search-panel .search-submit svg {
  width: 22px;
  height: 22px;
}

.search-hint {
  margin-top: 15px;
  font-size: 11px;
  color: var(--ink-faint);
}

/* =========================================================
   Hero
   ========================================================= */

.home-wrap {
  padding-top: 60px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 40px;
  align-items: center;
  min-height: 560px;
  padding-bottom: 44px;
}

.hero-copy {
  padding: 28px 0 0;
}

.hero-kicker {
  margin-bottom: 26px;
}

.hero-title {
  max-width: 760px;
  font-family: var(--font-serif);
  font-size: clamp(46px, 5vw, 74px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 28px;
  background: var(--clay);
}

.hero-intro {
  max-width: 440px;
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-muted);
}

.hero-latest {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  grid-template-areas:
    "label title arrow"
    "label meta arrow";
  align-items: center;
  column-gap: 20px;
  row-gap: 2px;
  max-width: 590px;
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease);
}

.hero-latest:hover {
  border-color: var(--moss);
}

.hero-latest-label {
  grid-area: label;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--clay);
}

.hero-latest-title {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.hero-latest:hover .hero-latest-title {
  color: var(--moss);
}

.hero-latest-meta {
  grid-area: meta;
  display: flex;
  gap: 6px;
  font-size: 10px;
  color: var(--ink-faint);
}

.circle-arrow {
  grid-area: arrow;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 15px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-latest:hover .circle-arrow {
  transform: rotate(45deg);
  background: var(--moss);
  color: var(--white);
  border-color: var(--moss);
}

/* Hero art */

.hero-art {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  right: -6%;
  top: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, rgba(232, 224, 205, 0.95), rgba(201, 194, 172, 0.55) 42%, rgba(64, 91, 72, 0.2) 70%, transparent 72%);
  filter: blur(1px);
}

[data-theme="dark"] .hero-art::before {
  background:
    radial-gradient(circle at 38% 35%, rgba(71, 91, 69, 0.8), rgba(34, 48, 36, 0.55) 42%, rgba(16, 24, 17, 0.2) 70%, transparent 72%);
}

.art-orbit {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  opacity: 0.55;
}

.art-orbit-one {
  width: 74%;
  aspect-ratio: 1;
  right: 3%;
  top: 18%;
}

.art-orbit-two {
  width: 104%;
  aspect-ratio: 1;
  right: -19%;
  top: 2%;
  border-color: var(--line);
}

.art-sun {
  position: absolute;
  width: 31%;
  aspect-ratio: 1;
  right: 23%;
  top: 31%;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.82;
}

[data-theme="dark"] .art-sun {
  opacity: 0.58;
}

.art-glyph {
  position: absolute;
  right: 8%;
  top: 17%;
  font-family: var(--font-serif);
  font-size: clamp(180px, 21vw, 300px);
  line-height: 0.82;
  color: var(--moss-deep);
  opacity: 0.16;
  z-index: -1;
  user-select: none;
}

[data-theme="dark"] .art-glyph {
  color: var(--paper);
  opacity: 0.08;
}

[data-theme="dark"] .art-seal {
  background: var(--moss);
  color: var(--moss-deep);
}

.art-seal {
  position: absolute;
  right: 17%;
  top: 24%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--moss-deep);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 25px;
  z-index: 2;
}

.art-vertical {
  position: absolute;
  right: 7%;
  top: 47%;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

.art-issue {
  position: absolute;
  left: 2%;
  bottom: 8%;
  font-family: var(--font-serif);
  font-size: 74px;
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.16;
}

.art-caption {
  position: absolute;
  left: 4%;
  bottom: 2%;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.15em;
  line-height: 1.8;
  color: var(--ink-muted);
}

/* =========================================================
   Sections, cards
   ========================================================= */

.writing {
  padding: 62px 0 30px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.section-head h2 {
  margin-top: 11px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-side {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 4px;
  font-size: 11px;
  color: var(--ink-faint);
}

.section-side a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.section-side a:hover {
  color: var(--moss);
  border-color: var(--moss);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}

.post-card {
  border-top: 1px solid var(--line);
  min-width: 0;
}

.post-card:first-child,
.post-card:nth-child(2) {
  border-top-color: var(--line-strong);
}

.post-card-link {
  display: block;
  padding: 24px 0 32px;
}

.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-card-index {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--clay);
  letter-spacing: 0.1em;
}

.post-card-date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.post-card-cat {
  display: inline-block;
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--moss);
}

.post-card-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.15vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.post-card-link:hover .post-card-title {
  color: var(--moss);
}

.post-card-excerpt {
  margin-top: 11px;
  max-width: 94%;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-muted);
}

.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--ink-faint);
}

.post-card-arrow {
  font-size: 15px;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.post-card-link:hover .post-card-arrow {
  transform: translate(3px, -3px);
  color: var(--moss);
}

/* Home about band */

.home-about {
  margin-top: 66px;
  padding: 64px 56px;
  background: var(--moss-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.home-about::after {
  content: "茉";
  position: absolute;
  right: 4%;
  bottom: -28%;
  font-family: var(--font-serif);
  font-size: 310px;
  line-height: 1;
  color: rgba(243, 238, 228, 0.05);
  z-index: 0;
}

.home-about .kicker {
  color: var(--tea);
  position: relative;
  z-index: 1;
}

.home-about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: end;
  margin-top: 34px;
}

.home-about h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.home-about-copy {
  max-width: 370px;
  padding-bottom: 5px;
}

.home-about-copy p {
  font-size: 12.5px;
  line-height: 1.95;
  color: rgba(243, 238, 228, 0.62);
}

.home-about .text-link {
  margin-top: 22px;
  color: var(--paper);
  border-color: rgba(243, 238, 228, 0.35);
}

.home-about .text-link:hover {
  color: var(--tea);
  border-color: var(--tea);
}

/* =========================================================
   Page headers / archive
   ========================================================= */

.page-header {
  padding: 80px 0 46px;
  border-bottom: 1px solid var(--line);
}

.page-header .kicker {
  margin-bottom: 18px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.page-header-list {
  padding-top: 76px;
}

.search-count {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-faint);
}

.archive-description {
  max-width: 680px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

.archive-page {
  padding-bottom: 80px;
}

.archive-header {
  padding: 86px 0 46px;
  border-bottom: 1px solid var(--line-strong);
}

.archive-header h1 {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.archive-header h1 span {
  font-size: 0.34em;
  letter-spacing: 0;
  color: var(--ink-faint);
  vertical-align: middle;
  margin-left: 14px;
}

.archive-intro {
  max-width: 480px;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-muted);
}

.archive-years {
  padding-top: 40px;
}

.archive-year {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 40px;
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--line);
}

.archive-year-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.archive-year-head h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.archive-year-head span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
}

.archive-rows {
  display: flex;
  flex-direction: column;
}

.archive-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px 18px;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}

.archive-row:first-child {
  border-top: 0;
}

.archive-row time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
}

.archive-row-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
}

.archive-row-time {
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: right;
  color: var(--ink-faint);
}

.archive-row-arrow {
  font-size: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.archive-row:hover {
  color: var(--moss);
}

.archive-row:hover .archive-row-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   Single article
   ========================================================= */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--clay);
  transition: width 0.1s linear;
}

.single-article {
  padding-top: 72px;
}

.article-header {
  max-width: 960px;
  margin-inline: auto;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-strong);
}

.article-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.article-cat {
  color: var(--clay);
  letter-spacing: 0.08em;
}

.article-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.article-title {
  max-width: 920px;
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.6vw, 70px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.05em;
}

.article-dek {
  max-width: 720px;
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-muted);
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  font-size: 10px;
  color: var(--ink-faint);
}

.byline-avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 13px;
  flex: 0 0 auto;
}

.byline-sep {
  color: var(--line-strong);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 220px;
  justify-content: center;
  gap: 84px;
  padding: 54px 0 10px;
}

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

.entry-content {
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 2;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p {
  margin: 1.35em 0;
}

.entry-content a {
  color: var(--moss);
  border-bottom: 1px solid color-mix(in srgb, var(--moss) 40%, transparent);
  transition: border-color 0.2s var(--ease);
}

.entry-content a:hover {
  border-color: var(--moss);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.4;
  scroll-margin-top: 110px;
}

.entry-content h2 {
  margin: 2.1em 0 0.75em;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.entry-content h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 15px;
  background: var(--clay);
}

.entry-content h3 {
  margin: 1.8em 0 0.6em;
  font-size: 23px;
}

.entry-content h4 {
  margin: 1.6em 0 0.5em;
  font-size: 18px;
}

.entry-content ul,
.entry-content ol {
  margin: 1.2em 0 1.5em;
  padding-left: 1.45em;
}

.entry-content li {
  margin: 0.35em 0;
  padding-left: 0.2em;
}

.entry-content li::marker {
  color: var(--moss);
}

.entry-content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 25px 28px 25px 34px;
  background: var(--paper-soft);
  border-left: 2px solid var(--moss);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
}

.entry-content blockquote p {
  margin: 0.4em 0;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-style: normal;
  color: var(--ink-faint);
}

.entry-content img {
  margin: 2em auto;
  max-width: 100%;
}

.entry-content figure {
  margin: 2em 0;
}

.entry-content figcaption {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  text-align: center;
  color: var(--ink-faint);
}

.entry-content code {
  padding: 2px 5px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--clay);
}

.entry-content pre {
  margin: 1.8em 0;
  padding: 20px 22px;
  overflow-x: auto;
  background: var(--moss-deep);
  color: #e9e3d5;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  border-radius: 2px;
}

.entry-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.entry-content hr {
  width: 60px;
  margin: 2.4em auto;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.entry-content table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 12px;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content th {
  background: var(--paper-soft);
  font-weight: 600;
}

.entry-content .alignwide {
  width: min(960px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.single-article:not(.page-article) .entry-content > p:first-of-type::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  font-family: var(--font-serif);
  font-size: 66px;
  line-height: 0.74;
  color: var(--moss);
}

.page-links {
  margin-top: 2em;
  font-family: var(--font-sans);
  font-size: 12px;
}

.article-tags {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.tag-label {
  margin-right: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.article-tags a {
  padding: 3px 9px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.article-tags a:hover {
  border-color: var(--moss);
  color: var(--moss);
}

.article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 10px;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}

.copy-link:hover {
  color: var(--moss);
}

.copy-link svg {
  width: 14px;
  height: 14px;
}

.back-archive {
  font-size: 10px;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}

.back-archive:hover {
  color: var(--moss);
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.post-nav > div {
  padding-top: 18px;
  min-width: 0;
}

.post-nav-next {
  text-align: right;
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.post-nav span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.post-nav strong {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.post-nav a:hover strong {
  color: var(--moss);
}

/* Aside */

.article-aside {
  position: relative;
}

.article-aside > div {
  position: sticky;
  top: 118px;
}

.article-aside > div + div {
  margin-top: 38px;
}

.aside-label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}

.toc {
  border-left: 1px solid var(--line);
}

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

.toc li {
  position: relative;
  padding: 4px 0 4px 14px;
  font-size: 10.5px;
  line-height: 1.5;
}

.toc li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: transparent;
  transition: background 0.2s var(--ease);
}

.toc li.is-active::before {
  background: var(--clay);
}

.toc a {
  color: var(--ink-faint);
  transition: color 0.2s var(--ease);
}

.toc a:hover,
.toc li.is-active a {
  color: var(--moss);
}

.toc .toc-level-3 {
  padding-left: 26px;
  font-size: 10px;
}

.aside-author {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.aside-author-name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.aside-author-name strong {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
}

.aside-author p:not(.aside-label) {
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.aside-author a {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  color: var(--moss);
}

/* Related */

.related {
  padding: 72px 0 20px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.section-head-small {
  margin-bottom: 26px;
}

.section-head-small h2 {
  font-size: 30px;
}

.post-grid-related .post-card:nth-child(2) {
  border-top-color: var(--line);
}

/* Comments */

.comments-wrap {
  padding: 50px 0 0;
}

.comments-area {
  max-width: 760px;
  margin-inline: auto;
  padding-top: 44px;
  border-top: 1px solid var(--line-strong);
}

.comments-head h2 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
}

.comments-head h2 span {
  font-size: 0.5em;
  color: var(--ink-faint);
}

.comment-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.comment-list .comment-body {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.comment-list .children {
  list-style: none;
  margin: 0;
  padding-left: 32px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.comment-author .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  filter: grayscale(0.3);
}

.comment-author .fn {
  font-style: normal;
  font-weight: 600;
}

.comment-metadata {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink-faint);
}

.comment-metadata a {
  color: inherit;
}

.comment-content {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.comment-content p {
  margin: 0.7em 0;
}

.reply {
  margin-top: 8px;
  font-size: 10px;
}

.reply a {
  color: var(--ink-faint);
}

.comment-form {
  margin-top: 28px;
}

.comment-reply-title {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.comment-notes {
  margin-bottom: 18px;
  font-size: 10.5px;
  color: var(--ink-faint);
}

.comment-form p {
  margin-bottom: 14px;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  color: var(--ink-muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--moss);
}

.comment-form textarea {
  min-height: 130px;
  resize: vertical;
}

.comment-form .submit {
  border: 1px solid var(--moss-deep);
  cursor: pointer;
}

.comment-form .submit:hover {
  background: transparent;
  color: var(--moss-deep);
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--ink-faint);
}

.comment-form .comment-form-cookies-consent label {
  margin: 0;
}

.no-comments {
  margin-top: 18px;
  font-size: 11px;
  color: var(--ink-faint);
}

/* =========================================================
   About
   ========================================================= */

.about-page {
  padding: 80px 0 50px;
}

.about-header {
  max-width: 900px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-strong);
}

.about-header h1 {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.about-lead {
  max-width: 580px;
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) 280px;
  justify-content: space-between;
  gap: 70px;
  padding-top: 44px;
}

.about-body {
  font-size: 16.5px;
}

.about-aside {
  padding-top: 4px;
}

.about-card {
  padding: 26px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.about-seal {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  font-size: 25px;
}

.about-card h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.about-card p {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.about-card a {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  color: var(--moss);
}

.about-colophon {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.about-colophon dl {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.about-colophon dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
}

.about-colophon dt {
  color: var(--ink-faint);
}

.about-colophon dd {
  margin: 0;
  color: var(--ink-soft);
}

/* =========================================================
   Search / 404
   ========================================================= */

.search-header .search-form {
  max-width: 520px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
}

.search-header .search-field {
  flex: 1;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
}

.search-header .search-submit {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--moss);
}

.search-header .search-submit svg {
  width: 18px;
  height: 18px;
}

.no-results {
  padding: 60px 0 80px;
  max-width: 560px;
}

.no-results h2 {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
}

.no-results p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.no-results .text-link {
  margin-top: 22px;
}

.not-found {
  min-height: 65vh;
  padding: 100px 0 80px;
  position: relative;
}

.not-found-number {
  position: absolute;
  right: 0;
  top: 40px;
  font-family: var(--font-serif);
  font-size: clamp(180px, 30vw, 420px);
  line-height: 1;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
}

.not-found h1 {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.not-found p:not(.kicker) {
  max-width: 420px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-muted);
}

.not-found-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

/* =========================================================
   Pagination
   ========================================================= */

.pagination {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  color: var(--ink-muted);
}

.pagination a:hover {
  border-color: var(--line-strong);
  color: var(--moss);
}

.pagination .current {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--white);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: 100px;
  padding: 58px 0 0;
  background: var(--moss-deep);
  color: var(--white);
}

.footer-inner {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-mark {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-seal {
  background: var(--white);
  color: var(--moss-deep);
  flex: 0 0 auto;
}

.footer-mark strong {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.footer-mark p {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.9;
  color: rgba(243, 238, 228, 0.55);
}

.footer-label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--tea);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-links a {
  font-size: 11px;
  color: rgba(243, 238, 228, 0.7);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-meta p {
  font-size: 10px;
  line-height: 1.9;
  color: rgba(243, 238, 228, 0.5);
}

.footer-bottom {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(243, 238, 228, 0.14);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  color: rgba(243, 238, 228, 0.4);
}

.footer-bottom a {
  color: rgba(243, 238, 228, 0.6);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(20, 28, 20, 0.1);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.back-to-top:hover {
  background: var(--moss);
  color: var(--white);
}

/* =========================================================
   Reveal
   ========================================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 20px;
  }

  .hero-art {
    min-height: 460px;
  }

  .single-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 0;
  }

  .article-aside {
    display: none;
  }
}

@media (max-width: 980px) {
  .wrap,
  .home-wrap,
  .archive-page,
  .about-page,
  .single-article,
  .related,
  .comments-wrap,
  .not-found,
  .page-body,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    width: min(var(--container), calc(100% - 48px));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 20px;
  }

  .hero-copy {
    padding-top: 16px;
  }

  .hero-art {
    min-height: 320px;
    max-width: 600px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-art::before {
    width: 62%;
    right: 12%;
    top: 4%;
  }

  .art-orbit-one {
    width: 54%;
    right: 18%;
    top: 10%;
  }

  .art-orbit-two {
    width: 76%;
    right: -8%;
    top: -2%;
  }

  .art-sun {
    width: 22%;
    right: 31%;
    top: 28%;
  }

  .art-glyph {
    right: 17%;
    top: 6%;
    font-size: 170px;
  }

  .art-seal {
    right: 26%;
    top: 16%;
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .art-vertical {
    right: 13%;
    top: 42%;
  }

  .art-issue {
    left: 12%;
    bottom: 8%;
    font-size: 54px;
  }

  .art-caption {
    left: 13%;
    bottom: 1%;
  }

  .post-grid {
    column-gap: 36px;
  }

  .home-about {
    padding: 48px 34px;
  }

  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .archive-year {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .about-colophon {
    margin-top: 0;
    padding-top: 26px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-mark {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
  }

  .primary-nav {
    position: fixed;
    inset: 82px 0 auto;
    z-index: 55;
    display: none;
    padding: 20px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20, 28, 20, 0.08);
  }

  .js .primary-nav {
    display: none;
  }

  .js .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-family: var(--font-serif);
    font-size: 20px;
  }

  .nav-list a::after {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    height: 72px;
  }

  .primary-nav {
    top: 72px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-seal {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .primary-nav {
    top: 118px;
  }

  .article-title {
    font-size: clamp(33px, 7vw, 54px);
  }

  .article-header {
    padding-bottom: 30px;
  }

  .single-article {
    padding-top: 48px;
  }

  .single-layout {
    padding-top: 36px;
  }

  .archive-year {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 28px;
  }

  .archive-year-head {
    align-items: center;
  }

  .archive-year-head h2 {
    font-size: 30px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card:nth-child(2) {
    border-top-color: var(--line);
  }

  .section-side {
    gap: 14px;
  }

  .section-side span {
    display: none;
  }

  .home-about {
    margin-top: 44px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-mark {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .wrap,
  .home-wrap,
  .archive-page,
  .about-page,
  .single-article,
  .related,
  .comments-wrap,
  .not-found,
  .page-body,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 40px);
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions .search-toggle,
  .header-actions .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 6px;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 38px);
    letter-spacing: -0.06em;
  }

  .hero-intro {
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-latest {
    grid-template-columns: 64px minmax(0, 1fr) 32px;
    column-gap: 12px;
    margin-top: 30px;
  }

  .hero-latest-title {
    font-size: 14px;
    white-space: normal;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .hero-latest-meta {
    font-size: 9px;
  }

  .circle-arrow {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .hero-art {
    min-height: 250px;
  }

  .art-glyph {
    font-size: 130px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: 34px;
  }

  .section-side {
    align-self: stretch;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .writing {
    padding-top: 38px;
  }

  .post-card-link {
    padding: 20px 0 26px;
  }

  .post-card-title {
    font-size: 22px;
  }

  .post-card-excerpt {
    max-width: 100%;
  }

  .home-about {
    padding: 36px 24px 42px;
  }

  .home-about h2 {
    font-size: 32px;
  }

  .archive-header {
    padding: 54px 0 30px;
  }

  .archive-header h1 {
    font-size: 50px;
  }

  .archive-header h1 span {
    display: block;
    margin: 10px 0 0;
    font-size: 0.38em;
  }

  .archive-row {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 10px;
  }

  .archive-row-time {
    display: none;
  }

  .archive-row-title {
    font-size: 15px;
  }

  .page-header {
    padding: 52px 0 28px;
  }

  .page-header h1 {
    font-size: 40px;
  }

  .article-topline {
    gap: 8px;
  }

  .article-title {
    margin-top: 16px;
    font-size: 34px;
    line-height: 1.35;
  }

  .article-dek {
    font-size: 15px;
  }

  .entry-content {
    font-size: 16.5px;
    line-height: 1.95;
  }

  .entry-content h2 {
    font-size: 25px;
  }

  .entry-content h3 {
    font-size: 20px;
  }

  .entry-content .alignwide,
  .entry-content .alignfull {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .single-article:not(.page-article) .entry-content > p:first-of-type::first-letter {
    font-size: 52px;
  }

  .post-nav {
    gap: 18px;
  }

  .post-nav strong {
    white-space: normal;
  }

  .article-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .article-tags {
    margin-top: 30px;
  }

  .related {
    padding-top: 44px;
  }

  .comments-wrap {
    padding-top: 30px;
  }

  .about-page {
    padding-top: 54px;
  }

  .about-header h1 {
    font-size: 50px;
  }

  .about-aside {
    grid-template-columns: 1fr;
  }

  .search-panel {
    padding: 34px 22px 28px;
  }

  .search-panel h2 {
    font-size: 26px;
  }

  .not-found {
    padding-top: 70px;
  }

  .not-found-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-aside,
  .reading-progress,
  .article-actions,
  .post-nav,
  .comments-wrap,
  .related,
  .back-to-top,
  .search-overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .single-article,
  .article-header,
  .single-layout {
    width: 100%;
    padding: 0;
    display: block;
  }

  .entry-content {
    color: #000;
  }
}
