/* =========================================================
   Yurin_arcavita — personal blog
   Handwritten with HTML, CSS & JavaScript. No frameworks.
   ========================================================= */

/* ---------------------------------------------
   1. Design tokens
   --------------------------------------------- */
:root {
  --font-sans: "Avenir Next", Avenir, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Palatino, "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --paper: #f2eee5;
  --paper-deep: #e8e1d4;
  --surface: #faf7f0;
  --surface-soft: #ece7dc;
  --ink: #19201b;
  --ink-soft: #374039;
  --muted: #70766c;
  --faint: #959a90;
  --line: rgba(25, 32, 27, 0.13);
  --line-strong: rgba(25, 32, 27, 0.26);
  --accent: #c65a3a;
  --accent-deep: #a94327;
  --accent-soft: #eed6ca;
  --forest: #24483b;
  --forest-light: #315c4c;
  --forest-ink: #f3efe6;
  --cream: #f3efe6;
  --header-bg: rgba(242, 238, 229, 0.86);
  --footer-bg: #1a211c;
  --footer-ink: #f2eee5;
  --footer-muted: rgba(242, 238, 229, 0.56);
  --footer-line: rgba(242, 238, 229, 0.15);
  --code-bg: #131914;
  --code-head: #1b241e;
  --code-ink: #e8e1d6;
  --code-muted: #8c988d;
  --shadow-card: 0 24px 70px -34px rgba(29, 34, 28, 0.4);
  --shadow-lift: 0 32px 90px -36px rgba(29, 34, 28, 0.48);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1240px;
  --header-h: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101411;
  --paper-deep: #0b0f0c;
  --surface: #171d18;
  --surface-soft: #1c241e;
  --ink: #ece7dc;
  --ink-soft: #c8c3b7;
  --muted: #9ba196;
  --faint: #747c71;
  --line: rgba(236, 231, 220, 0.13);
  --line-strong: rgba(236, 231, 220, 0.28);
  --accent: #e07a58;
  --accent-deep: #f09070;
  --accent-soft: #3a2820;
  --forest: #1d3a2f;
  --forest-light: #2b5443;
  --forest-ink: #f0ece2;
  --header-bg: rgba(16, 20, 17, 0.86);
  --footer-bg: #0b0f0c;
  --footer-ink: #ece7dc;
  --footer-muted: rgba(236, 231, 220, 0.54);
  --footer-line: rgba(236, 231, 220, 0.15);
  --code-bg: #090d0a;
  --code-head: #111711;
  --shadow-card: 0 26px 70px -34px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 36px 90px -32px rgba(0, 0, 0, 0.95);
}

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

/* ---------------------------------------------
   2. Reset & base
   --------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #fff8f1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 0;
}

.no-js .page-loading {
  display: none;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

[data-theme="dark"] .page-grain {
  opacity: 0.055;
  mix-blend-mode: screen;
}

.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

main {
  padding-top: var(--header-h);
}

.view-root {
  min-height: 60vh;
}

/* ---------------------------------------------
   3. Type helpers
   --------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.eyebrow-index {
  color: var(--accent);
}

.mono {
  font-family: var(--font-mono);
}

.serif {
  font-family: var(--font-serif);
}

/* ---------------------------------------------
   4. Header
   --------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  border-bottom-color: var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.header-inner {
  width: min(var(--container), calc(100% - 80px));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  min-width: 0;
}

.brand-stamp {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--forest-ink);
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: transform 0.5s var(--ease), background 0.3s ease;
}

.brand-stamp span {
  color: var(--accent);
}

.brand:hover .brand-stamp {
  transform: rotate(-10deg) scale(1.04);
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.4vw, 46px);
  justify-self: center;
}

.desktop-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  line-height: 1;
  padding: 12px 0;
  transition: color 0.25s ease;
}

.desktop-nav a em {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.desktop-nav a:hover {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  width: 100%;
}

.desktop-nav a.is-active {
  color: var(--ink);
}

.desktop-nav a.is-active em {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.icon-button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.35s var(--ease);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: rotate(10deg);
}

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

.icon-moon {
  display: none;
}

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

[data-theme="dark"] .icon-moon {
  display: block;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 37px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.github-link span {
  color: var(--accent);
}

.github-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  position: relative;
}

.menu-toggle-line {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle-line:first-child {
  top: 17px;
}

.menu-toggle-line:last-child {
  top: 22px;
}

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

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

/* ---------------------------------------------
   5. Mobile menu
   --------------------------------------------- */
.menu-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.menu-dialog::backdrop {
  background: rgba(11, 15, 12, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.menu-dialog[open] {
  animation: menu-in 0.4s var(--ease) both;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.menu-close {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-close span {
  position: absolute;
  top: 20px;
  left: 13px;
  width: 15px;
  height: 1px;
  background: var(--ink);
}

.menu-close span:first-child {
  transform: rotate(45deg);
}

.menu-close span:last-child {
  transform: rotate(-45deg);
}

.dialog-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.dialog-nav a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-nav-no {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.dialog-nav-label {
  font-size: clamp(2rem, 9vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.dialog-nav em {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
}

.dialog-nav a.is-active .dialog-nav-label {
  color: var(--accent);
}

.menu-dialog-foot {
  margin-top: auto;
  padding: 28px 24px 42px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-dialog-foot .eyebrow {
  margin-bottom: 4px;
}

.menu-dialog-foot a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.menu-dialog[open] {
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------
   6. Buttons & links
   --------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 560;
  line-height: 1;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.35s var(--ease);
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--accent);
  color: #fff8f1;
  transform: translateY(-2px);
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.arrow-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.arrow-link:hover svg {
  transform: translate(3px, -3px);
}

.arrow-link .arrow-line {
  width: 28px;
  height: 1px;
  background: var(--ink);
  transition: width 0.35s var(--ease), background 0.35s ease;
}

.arrow-link:hover .arrow-line {
  width: 40px;
  background: var(--accent);
}

.text-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: color 0.25s ease;
}

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

/* ---------------------------------------------
   7. Hero
   --------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(62px, 7.5vw, 112px) 0 clamp(58px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -16%;
  right: -12%;
  width: min(64vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 66%);
  opacity: 0.52;
  filter: blur(22px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -42%;
  width: min(55vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 72, 59, 0.12) 0%, transparent 67%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.7fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  animation: fade-up 0.8s 0.05s var(--ease) both;
}

.hero-eyebrow .pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.hero-eyebrow .pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.45;
  animation: soft-pulse 2.8s ease-out infinite;
}

@keyframes soft-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  70%,
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.hero-title {
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(4rem, 8.2vw, 7.95rem);
  font-weight: 610;
  letter-spacing: -0.075em;
  line-height: 0.82;
  animation: fade-up 0.9s 0.13s var(--ease) both;
}

.hero-hello {
  display: block;
  margin-bottom: 0.42em;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.38rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.1;
}

.hero-name {
  display: block;
}

.hero-name .underscore {
  color: var(--accent);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-name .hero-dot {
  color: var(--accent);
}

.hero-alias {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  animation: fade-up 0.8s 0.23s var(--ease) both;
}

.hero-alias strong {
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.hero-alias::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.hero-lede {
  max-width: 550px;
  margin-top: clamp(22px, 3vw, 30px);
  color: var(--muted);
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  line-height: 1.95;
  animation: fade-up 0.9s 0.3s var(--ease) both;
}

.hero-lede em {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 32px;
  animation: fade-up 0.9s 0.38s var(--ease) both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fade-up 0.9s 0.46s var(--ease) both;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest-light);
  box-shadow: 0 0 0 3px rgba(49, 92, 76, 0.1);
}

.hero-side {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  animation: fade-up 1s 0.28s var(--ease) both;
}

.profile-card {
  position: relative;
  z-index: 1;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 27px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transform: rotate(1.6deg);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.profile-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.profile-card-top,
.profile-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-card-top {
  padding: 4px 5px 11px;
}

.profile-card-top span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.profile-art {
  position: relative;
  aspect-ratio: 0.97;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 77% 18%, rgba(198, 90, 58, 0.95) 0 7%, transparent 7.3%),
    radial-gradient(circle at 30% 74%, rgba(243, 239, 230, 0.11) 0 34%, transparent 34.5%),
    var(--forest);
  isolation: isolate;
}

.profile-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 239, 230, 0.23) 0.7px, transparent 0.8px);
  background-size: 13px 13px;
  opacity: 0.32;
  mask-image: linear-gradient(140deg, #000, transparent 62%);
  -webkit-mask-image: linear-gradient(140deg, #000, transparent 62%);
}

.profile-art::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -26%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(243, 239, 230, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(243, 239, 230, 0.035),
    0 0 0 58px rgba(243, 239, 230, 0.026),
    0 0 0 88px rgba(243, 239, 230, 0.018);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(243, 239, 230, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  width: 74%;
  aspect-ratio: 1;
  top: -20%;
  right: -19%;
  border-color: rgba(243, 239, 230, 0.24);
}

.orbit-b {
  width: 118%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(243, 239, 230, 0.16);
  opacity: 0.8;
  animation: orbit-spin 44s linear infinite;
}

.orbit-c {
  width: 43%;
  aspect-ratio: 1;
  right: 14%;
  bottom: 12%;
  border-color: rgba(243, 239, 230, 0.18);
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-initial {
  position: relative;
  z-index: 2;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(5.8rem, 13vw, 9rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.8;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.profile-initial span {
  color: var(--accent);
}

.art-star {
  position: absolute;
  z-index: 3;
  top: 15%;
  left: 14%;
  color: var(--cream);
  font-size: 22px;
  opacity: 0.9;
  animation: star-turn 18s linear infinite;
}

@keyframes star-turn {
  to {
    transform: rotate(360deg);
  }
}

.art-label {
  position: absolute;
  z-index: 3;
  left: 18px;
  bottom: 16px;
  color: rgba(243, 239, 230, 0.58);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
}

.art-coordinates {
  position: absolute;
  z-index: 3;
  left: 18px;
  bottom: 31px;
  color: rgba(243, 239, 230, 0.42);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.profile-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 5px 14px;
}

.profile-name {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.profile-role {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.profile-stamp {
  flex: 0 0 auto;
  padding: 7px 9px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  transform: rotate(-4deg);
}

.profile-card-bottom {
  margin: 0 5px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.hero-sticker {
  position: absolute;
  z-index: 4;
  right: -23px;
  bottom: 17%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8f1;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
  box-shadow: 0 10px 28px -12px rgba(198, 90, 58, 0.7);
}

.hero-sticker::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(255, 248, 241, 0.45);
  border-radius: 50%;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------
   8. Ticker
   --------------------------------------------- */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-move 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.8vw, 56px);
  padding: 15px clamp(12px, 1.9vw, 28px);
}

.ticker-group span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.ticker-group em {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0;
  white-space: nowrap;
}

.ticker-group i {
  color: var(--accent);
  font-size: 9px;
  font-style: normal;
}

@keyframes ticker-move {
  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------
   9. Sections & home
   --------------------------------------------- */
.section {
  padding: clamp(68px, 9vw, 126px) 0;
}

.section--tight {
  padding-top: clamp(52px, 6vw, 82px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.section-title {
  margin-top: 14px;
  font-size: clamp(2.25rem, 4.3vw, 4rem);
  font-weight: 610;
  letter-spacing: -0.06em;
  line-height: 1;
  text-wrap: balance;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.section-title .title-dot {
  color: var(--accent);
}

.section-side {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 5px;
}

.section-count {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 462px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.featured-media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--forest);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.featured-article:hover .featured-media img {
  transform: scale(1.035);
}

.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 15, 0.2), transparent 52%);
  pointer-events: none;
}

.featured-index {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(243, 239, 230, 0.24);
  border-radius: 999px;
  background: rgba(16, 30, 23, 0.25);
  color: rgba(243, 239, 230, 0.9);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.featured-index .index-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.featured-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.6vw, 57px);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.meta-divider {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--faint);
}

.featured-title {
  margin: 18px 0 0;
  font-size: clamp(1.9rem, 3.15vw, 3.15rem);
  font-weight: 610;
  letter-spacing: -0.055em;
  line-height: 1.14;
  text-wrap: balance;
}

.featured-title a {
  transition: color 0.25s ease;
}

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

.featured-excerpt {
  margin-top: 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.featured-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.featured-cta .arrow-link {
  font-size: 11px;
}

.featured-date-big {
  color: var(--faint);
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
}

/* Latest cards */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-card-media {
  position: relative;
  aspect-ratio: 1.52;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-no {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(243, 239, 230, 0.3);
  border-radius: 50%;
  background: rgba(16, 30, 23, 0.25);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 8px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.post-card-arrow {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.post-card:hover .post-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

.post-card-body {
  padding: 17px 2px 0;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.post-card-title {
  margin-top: 10px;
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.35;
  text-wrap: balance;
  transition: color 0.25s ease;
}

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

.post-card-excerpt {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card .tag-row {
  margin-top: 14px;
}

/* Home about band */
.about-band {
  position: relative;
  overflow: hidden;
  padding: clamp(66px, 8vw, 104px) 0;
  background: var(--forest);
  color: var(--forest-ink);
}

.about-band::before {
  content: "";
  position: absolute;
  top: -36%;
  right: -12%;
  width: 56vw;
  aspect-ratio: 1;
  border: 1px solid rgba(243, 239, 230, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(243, 239, 230, 0.028),
    0 0 0 144px rgba(243, 239, 230, 0.018);
}

.about-band::after {
  content: "";
  position: absolute;
  left: -7%;
  bottom: -52%;
  width: 44vw;
  aspect-ratio: 1;
  border: 1px solid rgba(243, 239, 230, 0.1);
  border-radius: 50%;
}

.about-band .container {
  position: relative;
  z-index: 1;
}

.about-band-top {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: start;
}

.about-mark {
  color: var(--forest-ink);
  font-family: var(--font-serif);
  font-size: clamp(9rem, 19vw, 17rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 0.65;
}

.about-mark span {
  color: var(--accent);
}

.about-band .eyebrow {
  color: rgba(243, 239, 230, 0.52);
}

.about-band-copy h2 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1.18;
  text-wrap: balance;
}

.about-band-copy h2 em {
  color: #e6b7a4;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.about-band-copy p {
  max-width: 560px;
  margin-top: 24px;
  color: rgba(243, 239, 230, 0.62);
  font-size: 14px;
  line-height: 1.9;
}

.about-band .arrow-link {
  margin-top: 26px;
  color: var(--forest-ink);
}

.about-band .arrow-link .arrow-line {
  background: var(--forest-ink);
}

.about-band .arrow-link:hover .arrow-line {
  background: var(--accent);
}

.about-band-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(44px, 6vw, 76px);
  padding-top: 26px;
  border-top: 1px solid rgba(243, 239, 230, 0.16);
}

.fact dt {
  color: rgba(243, 239, 230, 0.4);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--forest-ink);
  font-size: 13px;
}

.fact .status-dot {
  background: #b5c8a7;
  box-shadow: 0 0 0 3px rgba(181, 200, 167, 0.12);
}

/* ---------------------------------------------
   10. Footer
   --------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 112px) 0 26px;
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -32%;
  right: -8%;
  width: 42vw;
  aspect-ratio: 1;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(243, 239, 230, 0.02);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: clamp(42px, 6vw, 72px);
  border-bottom: 1px solid var(--footer-line);
}

.footer-intro .eyebrow {
  color: var(--footer-muted);
}

.footer-intro h2 {
  margin-top: 24px;
  color: var(--footer-ink);
  font-size: clamp(2.7rem, 5.6vw, 5.3rem);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.footer-intro h2 em {
  color: #e9b69f;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.footer-contact {
  width: min(100%, 410px);
  flex: 0 0 auto;
}

.footer-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--footer-line);
  border-bottom: 1px solid var(--footer-line);
  color: var(--footer-ink);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.35vw, 14px);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.footer-email svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
}

.footer-email:hover {
  color: #e9b69f;
}

.footer-email:hover svg {
  transform: translateX(4px);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin-top: 20px;
}

.footer-socials a {
  color: var(--footer-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.footer-socials a:hover {
  color: var(--footer-ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 23px;
  color: var(--footer-muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.footer-slash {
  margin: 0 6px;
  opacity: 0.45;
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.footer-star {
  color: var(--accent);
  font-size: 11px;
}

/* ---------------------------------------------
   11. Page hero & archive
   --------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 104px) 0 clamp(38px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -72%;
  right: -9%;
  width: 48vw;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(25, 32, 27, 0.018),
    0 0 0 104px rgba(25, 32, 27, 0.012);
  pointer-events: none;
}

.page-hero-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.page-hero h1 {
  margin-top: 22px;
  font-size: clamp(3.6rem, 7.8vw, 7.2rem);
  font-weight: 610;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-wrap: balance;
}

.page-hero h1 .title-dot {
  color: var(--accent);
}

.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.page-count {
  margin-left: 12px;
  color: var(--faint);
  font-family: var(--font-serif);
  font-size: 0.32em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: top;
}

.page-hero-copy {
  max-width: 520px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.page-hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  padding-bottom: 7px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: right;
}

.page-hero-side strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.archive {
  padding: clamp(42px, 6vw, 68px) 0 clamp(80px, 10vw, 130px);
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 326px);
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-field:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(198, 90, 58, 0.08);
}

.search-field svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

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

.search-hint {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-filter {
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.tag-filter:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.tag-filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.archive-results {
  min-height: 240px;
}

.archive-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.archive-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 174px;
  align-items: center;
  gap: clamp(20px, 3.6vw, 50px);
  padding: clamp(23px, 3.3vw, 35px) 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.archive-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.archive-item:hover::before {
  width: 100%;
}

.archive-no {
  align-self: start;
  padding-top: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.archive-main {
  min-width: 0;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.archive-meta .tag {
  min-height: 21px;
  padding: 2px 8px;
  border: 0;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
}

.archive-title {
  margin-top: 10px;
  font-size: clamp(1.34rem, 2.2vw, 1.85rem);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.3;
  text-wrap: balance;
  transition: color 0.25s ease;
}

.archive-item:hover .archive-title {
  color: var(--accent);
}

.archive-excerpt {
  max-width: 690px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.archive-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1.52;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-soft);
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.archive-item:hover .archive-thumb img {
  transform: scale(1.045);
}

.archive-thumb::after {
  content: "↗";
  position: absolute;
  right: 9px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.archive-item:hover .archive-thumb::after {
  opacity: 1;
  transform: translateY(0);
}

.archive-empty {
  padding: 72px 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-mark {
  color: var(--faint);
  font-family: var(--font-serif);
  font-size: 60px;
  font-style: italic;
  line-height: 1;
}

.archive-empty h2 {
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 560;
  letter-spacing: -0.035em;
}

.archive-empty p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.archive-empty button {
  margin-top: 20px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------------------------------------
   12. Article
   --------------------------------------------- */
.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.article-page {
  padding-bottom: clamp(80px, 9vw, 120px);
}

.article-header {
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(48px, 6vw, 82px) 0 clamp(30px, 4vw, 42px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb .crumb-divider {
  color: var(--line-strong);
}

.breadcrumb-current {
  max-width: 360px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-tags {
  margin-top: clamp(28px, 4vw, 42px);
}

.article-title {
  max-width: 940px;
  margin-top: 17px;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 610;
  letter-spacing: -0.065em;
  line-height: 1.02;
  text-wrap: balance;
}

.article-deck {
  max-width: 700px;
  margin-top: 23px;
  color: var(--muted);
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.85;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.article-meta .meta-divider {
  margin: 0 1px;
}

.article-cover {
  position: relative;
  width: min(var(--container), calc(100% - 80px));
  margin: 0 auto;
  aspect-ratio: 2.42 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover-index {
  position: absolute;
  right: 20px;
  bottom: 17px;
  color: rgba(243, 239, 230, 0.8);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.article-wrap {
  width: min(calc(var(--container) - 10px), calc(100% - 80px));
  margin: 0 auto;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 220px;
  gap: clamp(48px, 8vw, 108px);
  justify-content: center;
  padding-top: clamp(45px, 6vw, 70px);
}

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

.article-aside {
  display: block;
}

.aside-sticky {
  position: sticky;
  top: calc(var(--header-h) + 26px);
}

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

.toc-title {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  margin-top: 15px;
}

.toc-link {
  display: block;
  width: 100%;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: left;
  transition: color 0.2s ease, transform 0.2s ease;
}

.toc-link:hover {
  color: var(--ink);
  transform: translateX(2px);
}

.toc-link.is-active {
  color: var(--accent);
}

.toc-link.toc-level-3 {
  padding-left: 13px;
  color: var(--faint);
  font-size: 10px;
}

.toc-link.toc-level-3.is-active {
  color: var(--accent);
}

.toc-divider {
  margin: 18px 0 15px;
  border: 0;
  border-top: 1px solid var(--line);
}

.toc-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.toc-contact a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

.toc-mobile {
  display: none;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  cursor: pointer;
  list-style: none;
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-mobile summary::after {
  content: "+";
  color: var(--accent);
  font-size: 14px;
}

.toc-mobile[open] summary::after {
  content: "−";
}

.toc-mobile .toc-list {
  padding: 0 17px 13px;
}

/* Prose */
.prose {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.18vw, 1.075rem);
  line-height: 1.95;
  overflow-wrap: break-word;
}

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

.prose > *:last-child {
  margin-bottom: 0;
}

.prose p {
  margin: 0 0 1.55em;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h2 {
  margin: 2.7em 0 0.8em;
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.prose h3 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(1.18rem, 1.7vw, 1.38rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.prose h4 {
  margin: 1.8em 0 0.6em;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.prose p + h2,
.prose p + h3 {
  margin-top: 2.2em;
}

.prose a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: color 0.25s ease, background-size 0.25s ease;
}

.prose a:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose em {
  font-family: var(--font-serif);
  font-size: 1.05em;
}

.prose del {
  color: var(--faint);
}

.prose mark {
  padding: 0.08em 0.24em;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1.55em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.5em;
  padding-left: 0.28em;
}

.prose li::marker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.prose li.task-item {
  list-style: none;
  position: relative;
  padding-left: 1.7em;
  margin-left: -1.4em;
}

.task-box {
  position: absolute;
  top: 0.48em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66em;
  line-height: 1;
}

.task-box.is-checked {
  border-color: var(--forest-light);
  background: var(--forest-light);
  color: var(--forest-ink);
}

.prose blockquote {
  position: relative;
  margin: 2.1em 0;
  padding: 23px 27px 23px 30px;
  border-left: 2px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.08em;
  line-height: 1.85;
}

.prose blockquote::before {
  content: "“";
  position: absolute;
  top: 2px;
  right: 15px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 3.4em;
  font-style: italic;
  line-height: 1;
  opacity: 0.14;
}

.prose blockquote p {
  margin-bottom: 0.75em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote strong {
  color: var(--ink);
}

.prose hr {
  width: 100%;
  height: 1px;
  margin: 3em 0;
  border: 0;
  background: var(--line);
}

.prose img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border-radius: 14px;
}

.prose figure {
  margin: 2em 0;
}

.prose figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}

.prose code {
  padding: 0.18em 0.42em;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 0.84em;
}

.prose .code-shell {
  margin: 2em 0;
  overflow: hidden;
  border: 1px solid rgba(236, 231, 220, 0.11);
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.7);
}

.prose .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(236, 231, 220, 0.09);
  background: var(--code-head);
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prose .code-copy {
  padding: 3px 8px;
  border: 1px solid rgba(236, 231, 220, 0.14);
  border-radius: 4px;
  background: transparent;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.prose .code-copy:hover {
  border-color: rgba(236, 231, 220, 0.32);
  color: var(--code-ink);
}

.prose .code-copy.is-copied {
  border-color: rgba(181, 200, 167, 0.45);
  color: #b5c8a7;
}

.prose .code-shell pre {
  max-width: 100%;
  margin: 0;
  padding: 19px 20px 21px;
  overflow-x: auto;
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  tab-size: 2;
}

.prose .code-shell pre code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.table-wrap {
  width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.prose table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.86em;
  line-height: 1.65;
}

.prose th,
.prose td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose .callout {
  margin: 2em 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.prose .callout-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.prose .callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94em;
  line-height: 1.8;
}

.prose .callout-note {
  border-left: 3px solid var(--accent);
}

/* Article footer */
.article-end {
  margin-top: clamp(52px, 6vw, 78px);
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.article-end-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.article-end-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.outline-button svg {
  width: 12px;
  height: 12px;
}

.outline-button:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.author-card {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 34px;
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.author-card > div {
  flex: 1;
  min-width: 0;
}

.author-card .arrow-link {
  flex: 0 0 auto;
}

.author-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 25px;
  font-style: italic;
}

.author-avatar span {
  color: var(--accent);
}

.author-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.author-bio {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.article-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(44px, 5vw, 64px);
}

.pagination-link {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pagination-link:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.pagination-link--next {
  text-align: right;
  align-items: flex-end;
}

.pagination-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.pagination-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

.pagination-link:hover .pagination-title {
  color: var(--accent);
}

.pagination-empty {
  border: 1px dashed var(--line);
  border-radius: 15px;
}

/* ---------------------------------------------
   13. About
   --------------------------------------------- */
.about-page {
  padding-bottom: clamp(80px, 10vw, 130px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(44px, 8vw, 120px);
  padding-top: clamp(46px, 6vw, 74px);
  align-items: start;
}

.about-identity {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.id-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--forest);
  color: var(--cream);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--ease);
}

.id-card:hover {
  transform: rotate(0);
}

.id-card-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 17px;
  color: rgba(243, 239, 230, 0.55);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
}

.id-card-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.15;
  overflow: hidden;
  border-top: 1px solid rgba(243, 239, 230, 0.12);
  border-bottom: 1px solid rgba(243, 239, 230, 0.12);
  background:
    radial-gradient(circle at 75% 20%, var(--accent) 0 11%, transparent 11.3%),
    var(--forest);
}

.id-card-art::before,
.id-card-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(243, 239, 230, 0.19);
  border-radius: 50%;
}

.id-card-art::before {
  width: 88%;
  aspect-ratio: 1;
}

.id-card-art::after {
  width: 63%;
  aspect-ratio: 1;
  border-style: dashed;
}

.id-initial {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(6rem, 14vw, 9.5rem);
  font-style: italic;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.id-initial span {
  color: var(--accent);
}

.id-art-label {
  position: absolute;
  left: 17px;
  bottom: 13px;
  color: rgba(243, 239, 230, 0.48);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.id-card-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
}

.id-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.id-alias {
  margin-top: 6px;
  color: rgba(243, 239, 230, 0.54);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.id-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 239, 230, 0.3);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
  transform: rotate(9deg);
}

.identity-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  padding: 0 3px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.identity-caption span:last-child {
  color: var(--accent);
}

.about-copy {
  max-width: 720px;
}

.about-kicker {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-style: italic;
  line-height: 1.6;
}

.about-copy > p {
  margin-top: 21px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.about-copy > p:first-of-type {
  margin-top: 0;
}

.about-copy .about-lead {
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.75;
  letter-spacing: -0.02em;
}

.about-copy .about-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.about-rule {
  height: 1px;
  margin: 38px 0;
  border: 0;
  background: var(--line);
}

.about-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.about-section-title .eyebrow-index {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.now-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.now-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  list-style: none;
}

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

.now-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 2.8;
}

.now-list strong {
  color: var(--ink-soft);
  font-weight: 550;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 41px;
  padding: 5px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.about-link svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.about-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(60px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-item {
  padding: 28px 28px 31px 0;
  border-right: 1px solid var(--line);
}

.value-item + .value-item {
  padding-left: 28px;
}

.value-item:last-child {
  border-right: 0;
}

.value-no {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.value-title {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-style: italic;
  letter-spacing: -0.02em;
}

.value-body {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* ---------------------------------------------
   14. Loading, error, toast
   --------------------------------------------- */
.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 62vh;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.loading-mark {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 50px;
  font-style: italic;
  line-height: 1;
  animation: loading-breathe 1.8s ease-in-out infinite;
}

.loading-mark span {
  color: var(--accent);
}

@keyframes loading-breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 68vh;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.error-code {
  display: flex;
  align-items: center;
  gap: 15px;
}

.error-code::after {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--line-strong);
}

.error-page h1 {
  margin-top: 24px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 610;
  letter-spacing: -0.07em;
  line-height: 0.98;
  text-wrap: balance;
}

.error-page h1 em {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.error-page p {
  max-width: 480px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.error-note {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.8;
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript-note {
  width: min(var(--container), calc(100% - 80px));
  margin: 40px auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------------------------------------------
   15. Reveal animation
   --------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

/* ---------------------------------------------
   16. Responsive
   --------------------------------------------- */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.72fr);
    gap: 48px;
  }

  .hero-title {
    font-size: clamp(4rem, 8vw, 6.6rem);
  }

  .hero-sticker {
    right: -12px;
    width: 72px;
    height: 72px;
    font-size: 7px;
  }

  .article-grid {
    grid-template-columns: minmax(0, 760px) 205px;
    gap: 55px;
  }

  .archive-item {
    grid-template-columns: 44px minmax(0, 1fr) 148px;
    gap: 28px;
  }
}

@media (max-width: 1020px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .github-link {
    display: inline-flex;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-title {
    font-size: clamp(4rem, 10.6vw, 7.2rem);
  }

  .hero-side {
    justify-self: start;
    width: min(100%, 470px);
    margin-left: 2px;
  }

  .profile-art {
    aspect-ratio: 1.28;
  }

  .hero-sticker {
    right: -15px;
    bottom: 14%;
    width: 82px;
    height: 82px;
    font-size: 8px;
  }

  .about-band-top {
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr);
  }

  .about-band-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .article-aside {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .article-wrap {
    width: min(800px, calc(100% - 80px));
  }

  .article-header {
    width: min(800px, calc(100% - 80px));
    margin-inline: auto;
  }

  .article-cover {
    width: min(800px, calc(100% - 80px));
    aspect-ratio: 2 / 1;
  }

  .about-layout {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 54px;
  }

  .id-card {
    transform: rotate(-0.8deg);
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 74px;
  }

  .container,
  .header-inner,
  .article-wrap,
  .article-header,
  .article-cover {
    width: calc(100% - 48px);
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-media {
    aspect-ratio: 1.7;
    min-height: 0;
  }

  .featured-body {
    padding: 30px;
  }

  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .about-band-top {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-mark {
    font-size: 9.5rem;
    line-height: 0.6;
  }

  .about-band-copy h2 {
    margin-top: 14px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
  }

  .footer-contact {
    width: 100%;
    max-width: none;
  }

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

  .page-hero-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .page-hero-copy {
    max-width: 620px;
  }

  .page-hero-side {
    align-items: flex-start;
    text-align: left;
    padding-bottom: 0;
  }

  .archive-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-item {
    grid-template-columns: 40px minmax(0, 1fr) 128px;
    gap: 22px;
  }

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

  .about-identity {
    position: relative;
    top: 0;
    width: min(100%, 430px);
  }

  .id-card {
    transform: rotate(-1deg);
  }

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

  .value-item {
    padding: 23px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-item + .value-item {
    padding-left: 0;
  }

  .value-item:last-child {
    border-bottom: 0;
  }

  .value-no {
    display: inline-block;
    margin-right: 10px;
  }

  .value-title {
    display: inline;
    margin-top: 0;
  }

  .value-body {
    margin-top: 8px;
  }

  .article-title {
    font-size: clamp(2.5rem, 8.4vw, 4.3rem);
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 68px;
  }

  .container,
  .header-inner,
  .article-wrap,
  .article-header,
  .article-cover {
    width: calc(100% - 36px);
  }

  .brand-stamp {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .brand-name {
    font-size: 13.5px;
  }

  .brand-sub {
    font-size: 6.5px;
    letter-spacing: 0.1em;
  }

  .header-actions {
    gap: 7px;
  }

  .github-link {
    display: none;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
  }

  .menu-toggle {
    width: 37px;
    height: 37px;
  }

  .menu-toggle-line {
    left: 11px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 52px;
  }

  .hero-title {
    margin-top: 20px;
    font-size: clamp(3.7rem, 16.6vw, 6rem);
    line-height: 0.84;
  }

  .hero-hello {
    font-size: 15px;
    margin-bottom: 0.55em;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-actions {
    margin-top: 27px;
  }

  .button {
    min-height: 45px;
    padding: 0 18px;
    font-size: 12px;
  }

  .hero-meta {
    gap: 8px 16px;
    margin-top: 28px;
    font-size: 7.5px;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero-side {
    width: 100%;
  }

  .profile-card {
    transform: rotate(1deg);
    border-radius: 22px;
  }

  .profile-art {
    aspect-ratio: 1.12;
  }

  .profile-initial {
    font-size: 7.2rem;
  }

  .hero-sticker {
    right: -4px;
    bottom: 16%;
    width: 68px;
    height: 68px;
    font-size: 6.5px;
    letter-spacing: 0.08em;
  }

  .profile-stamp {
    font-size: 7px;
  }

  .section {
    padding: 62px 0;
  }

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

  .section-title {
    font-size: 2.4rem;
  }

  .section-side {
    width: 100%;
    justify-content: space-between;
    padding-bottom: 0;
  }

  .featured-media {
    aspect-ratio: 1.35;
  }

  .featured-body {
    padding: 24px 22px 27px;
  }

  .featured-title {
    margin-top: 15px;
    font-size: 1.8rem;
  }

  .featured-excerpt {
    font-size: 13px;
  }

  .featured-cta {
    margin-top: 24px;
  }

  .latest-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .post-card-media {
    aspect-ratio: 1.55;
  }

  .about-band {
    padding: 58px 0;
  }

  .about-mark {
    font-size: 8rem;
  }

  .about-band-copy h2 {
    font-size: 2.2rem;
  }

  .about-band-facts {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 36px;
  }

  .fact {
    display: flex;
    align-items: baseline;
    gap: 16px;
  }

  .fact dd {
    margin-top: 0;
  }

  .footer-intro h2 {
    font-size: 2.8rem;
  }

  .footer-email {
    font-size: 11px;
  }

  .footer-note {
    white-space: normal;
  }

  .page-hero {
    padding-top: 44px;
  }

  .page-hero h1 {
    margin-top: 18px;
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .page-hero-copy {
    font-size: 13px;
  }

  .archive {
    padding-top: 34px;
  }

  .search-field {
    width: 100%;
  }

  .tag-filters {
    gap: 6px;
  }

  .tag-filter {
    min-height: 27px;
    padding: 3px 10px;
    font-size: 8px;
  }

  .archive-item {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 14px;
    padding: 23px 0;
  }

  .archive-thumb {
    display: none;
  }

  .archive-title {
    font-size: 1.24rem;
  }

  .archive-excerpt {
    font-size: 11.5px;
    line-height: 1.7;
  }

  .archive-meta .tag {
    display: none;
  }

  .archive-summary {
    padding-top: 15px;
  }

  .article-header {
    padding-top: 37px;
  }

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

  .article-title {
    margin-top: 13px;
    font-size: clamp(2.35rem, 11.5vw, 3.6rem);
    line-height: 1.05;
  }

  .article-deck {
    margin-top: 18px;
    font-size: 13.5px;
    line-height: 1.8;
  }

  .article-meta {
    gap: 8px 11px;
    margin-top: 22px;
    font-size: 8px;
  }

  .article-cover {
    aspect-ratio: 1.48;
    border-radius: 17px;
  }

  .article-cover-index {
    right: 14px;
    bottom: 12px;
    font-size: 8px;
  }

  .article-grid {
    padding-top: 36px;
  }

  .toc-mobile {
    margin-bottom: 27px;
  }

  .prose {
    font-size: 15.5px;
    line-height: 1.9;
  }

  .prose h2 {
    margin-top: 2.3em;
    font-size: 1.55rem;
  }

  .prose h3 {
    font-size: 1.2rem;
  }

  .prose blockquote {
    padding: 18px 19px 18px 22px;
    font-size: 1rem;
  }

  .prose .code-shell {
    margin: 1.7em -5px;
    border-radius: 12px;
  }

  .prose .code-shell pre {
    padding: 16px;
    font-size: 11.5px;
  }

  .prose .code-head {
    padding: 9px 13px;
    font-size: 8px;
  }

  .article-end-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .author-card {
    align-items: flex-start;
    padding: 16px;
  }

  .article-pagination {
    grid-template-columns: 1fr;
  }

  .pagination-link--next {
    text-align: left;
    align-items: flex-start;
  }

  .pagination-empty {
    display: none;
  }

  .about-layout {
    padding-top: 35px;
    gap: 42px;
  }

  .id-card-info {
    padding: 15px;
  }

  .id-name {
    font-size: 20px;
  }

  .id-initial {
    font-size: 7.6rem;
  }

  .identity-caption {
    font-size: 7px;
  }

  .about-copy .about-lead {
    font-size: 1.1rem;
  }

  .about-copy > p {
    font-size: 13.5px;
  }

  .now-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .now-label {
    line-height: 1.6;
  }

  .values {
    margin-top: 50px;
  }

  .error-page h1 {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
  }

  .error-page p {
    font-size: 12.5px;
  }

  .toast {
    bottom: 18px;
    max-width: calc(100% - 36px);
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .brand-sub {
    display: none;
  }

  .section-title {
    font-size: 2.15rem;
  }

  .about-mark {
    font-size: 7rem;
  }

  .footer-intro h2 {
    font-size: 2.45rem;
  }

  .footer-email {
    font-size: 10px;
  }
}

/* ---------------------------------------------
   17. Motion, print & accessibility
   --------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .ticker-track {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-aside,
  .toc-mobile,
  .reading-progress,
  .page-grain,
  .article-pagination,
  .article-actions {
    display: none !important;
  }

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

  .article-grid {
    display: block;
    padding-top: 24px;
  }

  .article-header {
    padding-top: 20px;
  }

  .article-cover {
    display: none;
  }

  .prose {
    max-width: none;
    color: #222;
  }
}
