:root {
  color-scheme: light;
  --ink: #342d2d;
  --ink-soft: #615858;
  --muted: #796f6c;
  --paper: #fffaf5;
  --paper-deep: #f8efe5;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --line: rgba(71, 53, 49, 0.14);
  --line-strong: rgba(71, 53, 49, 0.24);
  --pink: #f49ab3;
  --pink-strong: #df6c91;
  --aqua: #9fdde0;
  --aqua-strong: #4eaeb4;
  --amber: #efbd61;
  --violet: #b8a6e8;
  --purple: #8d7bd1;
  --caramel: #a86f42;
  --dark: #242125;
  --dark-soft: #312d32;
  --shadow-sm: 0 8px 30px rgba(82, 58, 49, 0.08);
  --shadow-md: 0 24px 70px rgba(82, 58, 49, 0.14);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --shell: min(1200px, calc(100vw - 64px));
  --header-height: 84px;
  --font-sans: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --font-rounded: ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", var(--font-sans);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5efec;
  --ink-soft: #d8cfcb;
  --muted: #aaa09d;
  --paper: #19181b;
  --paper-deep: #222024;
  --surface: #29262b;
  --surface-soft: rgba(41, 38, 43, 0.78);
  --line: rgba(255, 245, 240, 0.12);
  --line-strong: rgba(255, 245, 240, 0.22);
  --dark: #151417;
  --dark-soft: #201e22;
  --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.34);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f5efec;
    --ink-soft: #d8cfcb;
    --muted: #aaa09d;
    --paper: #19181b;
    --paper-deep: #222024;
    --surface: #29262b;
    --surface-soft: rgba(41, 38, 43, 0.78);
    --line: rgba(255, 245, 240, 0.12);
    --line-strong: rgba(255, 245, 240, 0.22);
    --dark: #151417;
    --dark-soft: #201e22;
    --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.34);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

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

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(244, 154, 179, 0.38);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:where(a, button, input):focus-visible {
  outline: 3px solid var(--pink-strong);
  outline-offset: 3px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-rounded);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

[hidden] {
  display: none !important;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: 96px;
}

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

.mobile-only {
  display: none;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  transform: translateY(-150%);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.reading-progress {
  position: fixed;
  z-index: 1000;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--amber), var(--aqua));
  box-shadow: 0 0 14px rgba(244, 154, 179, 0.55);
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.archive-page .site-header,
.post-page .site-header,
.text-page .site-header,
.not-found-page .site-header {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(20px) saturate(135%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 178px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(35, 22, 22, 0.22));
}

.brand span {
  padding: 3px 8px 4px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: currentColor;
  transform-origin: left;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

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

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 7%, transparent);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.menu-toggle,
.menu-close-icon {
  display: none;
}

.mobile-menu {
  height: calc(100svh - var(--header-height));
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.mobile-menu nav {
  display: grid;
  align-content: start;
  padding-top: 28px;
}

.mobile-menu a {
  display: flex;
  justify-content: space-between;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-rounded);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

/* Shared controls */
.button-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button svg,
.text-link svg {
  width: 17px;
  transition: transform 0.2s ease;
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.button:hover svg,
.text-link:hover svg {
  transform: translateX(4px);
}

.button-primary {
  background: var(--pink);
  color: #33272a;
  box-shadow: 0 12px 30px rgba(223, 108, 145, 0.24);
}

.button-primary:hover {
  background: #f7a9bf;
  box-shadow: 0 16px 34px rgba(223, 108, 145, 0.32);
}

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

.button-ghost {
  border-color: rgba(255, 255, 255, 0.44);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.button-ghost-dark {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow > span {
  width: 30px;
  height: 1px;
  background: currentColor;
}

.section-index {
  display: block;
  margin-bottom: 6px;
  color: var(--pink-strong);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-heading h2,
.home-intro h2,
.author-strip h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.2vw, 56px);
}

/* Home hero */
.home-hero {
  position: relative;
  min-height: 800px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 21, 24, 0.92) 0%, rgba(28, 25, 27, 0.72) 47%, rgba(26, 23, 25, 0.43) 100%),
    linear-gradient(0deg, rgba(20, 18, 21, 0.58), transparent 50%),
    url("/assets/hero.webp") center 38% / cover no-repeat;
  transform: scale(1.02);
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 540px;
  height: 540px;
  top: -230px;
  right: 14%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.025), 0 0 0 180px rgba(255, 255, 255, 0.018);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.72fr);
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
  padding-block: calc(var(--header-height) + 72px) 92px;
}

.hero-copy h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.hero-copy h1 em {
  position: relative;
  color: #ffd7e2;
  font-style: normal;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--pink) 8% 92%, transparent);
}

.hero-copy > p {
  max-width: 570px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  font-family: var(--font-rounded);
  font-size: 22px;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-feature {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(24, 22, 24, 0.62);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px) saturate(120%);
}

.hero-feature-media {
  position: relative;
  display: block;
  aspect-ratio: 1.42;
  overflow: hidden;
}

.hero-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 18, 20, 0.28), transparent 45%);
}

.hero-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-feature:hover .hero-feature-media img {
  transform: scale(1.035);
}

.hero-feature-media > span {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  color: #342d2d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero-feature > div {
  padding: 28px 30px 30px;
}

.hero-feature h2 {
  margin-bottom: 14px;
  font-size: clamp(21px, 2.1vw, 28px);
}

.hero-feature h2 a {
  text-decoration: none;
}

.hero-feature p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.8;
}

.hero-feature .post-card-meta {
  color: rgba(255, 255, 255, 0.58);
}

.scroll-cue {
  position: absolute;
  right: 32px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.scroll-cue i {
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 1px;
  height: 18px;
  background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
}

/* Home intro */
.home-intro {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.home-intro::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -130px;
  bottom: -150px;
  border: 64px solid color-mix(in srgb, var(--aqua) 20%, transparent);
  border-radius: 50%;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.82fr 0.62fr;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.intro-copy > p {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
}

.topic-stack {
  display: grid;
  gap: 13px;
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.topic-stack span {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.topic-stack span:nth-child(2) {
  color: var(--pink-strong);
}

/* Filters and cards */
.latest-section,
.archive-section {
  background:
    radial-gradient(circle at 2% 4%, color-mix(in srgb, var(--pink) 12%, transparent), transparent 22%),
    var(--paper-deep);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.8fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.search-field {
  position: relative;
  display: block;
}

.search-field svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-field input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus {
  border-color: var(--pink-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 20%, transparent);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-chip {
  min-height: 42px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.filter-status {
  grid-column: 1 / -1;
  min-height: 1px;
  margin: -14px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

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

.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.post-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1.75;
  overflow: hidden;
  background: var(--paper-deep);
}

.post-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(38, 30, 31, 0.2), transparent 46%);
  pointer-events: none;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

.post-type {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #342d2d;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.post-card-body {
  display: flex;
  min-height: 282px;
  flex-direction: column;
  padding: 27px 29px 26px;
}

.post-card-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.post-card-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 11px 2px 0;
  border-radius: 50%;
  background: currentColor;
}

.post-card h3 {
  margin-bottom: 13px;
  font-size: clamp(19px, 2vw, 25px);
}

.post-card h3 a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s ease;
}

.post-card h3 a:hover {
  background-size: 100% 1px;
}

.post-card-body > p {
  display: -webkit-box;
  margin-bottom: 22px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

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

.tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.round-link {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.post-card:hover .round-link {
  transform: rotate(-10deg);
  background: var(--ink);
  color: var(--paper);
}

.accent-aqua .round-link { background: color-mix(in srgb, var(--aqua) 22%, transparent); }
.accent-pink .round-link { background: color-mix(in srgb, var(--pink) 22%, transparent); }
.accent-violet .round-link { background: color-mix(in srgb, var(--violet) 22%, transparent); }
.accent-amber .round-link { background: color-mix(in srgb, var(--amber) 22%, transparent); }
.accent-purple .round-link { background: color-mix(in srgb, var(--purple) 20%, transparent); }

.empty-state {
  padding: 80px 24px;
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-rounded);
  font-size: 32px;
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
}

/* Author section */
.author-strip {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.author-strip::after {
  content: "SITOCHA";
  position: absolute;
  right: -20px;
  bottom: -76px;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--font-rounded);
  font-size: clamp(130px, 20vw, 300px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.author-strip-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 90px;
}

.author-art {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.13), transparent 55%);
}

.author-art::before {
  content: "";
  position: absolute;
  width: min(88%, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.018), 0 0 0 90px rgba(255, 255, 255, 0.012);
}

.author-art img {
  width: 100%;
  height: 100%;
}

.portrait-frame {
  --portrait-size: 180px;
  position: relative;
  z-index: 1;
  width: var(--portrait-size);
  height: var(--portrait-size);
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border: 5px solid color-mix(in srgb, white 76%, transparent);
  border-radius: 50%;
  background: var(--paper-deep);
  box-shadow: var(--shadow-sm);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.portrait-frame-large {
  --portrait-size: clamp(220px, 32vw, 390px);
  border-width: 6px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

.portrait-frame-small {
  --portrait-size: 124px;
}

.author-strip .section-kicker {
  color: var(--pink);
}

.author-strip h2 {
  margin-bottom: 24px;
}

.author-strip-inner > div:last-child > p:not(.section-kicker) {
  max-width: 520px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.7);
}

.pudding {
  display: block;
  width: 58px;
  height: 44px;
  border-radius: 46% 46% 32% 32% / 30% 30% 18% 18%;
  background: linear-gradient(#a66337 0 20%, #f6d675 21% 100%);
  box-shadow: inset 0 -6px 10px rgba(184, 110, 40, 0.22), 0 12px 20px rgba(0, 0, 0, 0.18);
}

.author-art .pudding {
  position: absolute;
  z-index: 2;
}

.pudding-one { top: 18%; left: 4%; transform: rotate(-13deg) scale(0.8); }
.pudding-two { right: 8%; bottom: 14%; transform: rotate(12deg) scale(0.58); }

/* Archive and shared page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 74px) 0 76px;
  background:
    radial-gradient(circle at 78% 25%, color-mix(in srgb, var(--pink) 28%, transparent), transparent 24%),
    radial-gradient(circle at 92% 70%, color-mix(in srgb, var(--aqua) 28%, transparent), transparent 28%),
    var(--surface);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  top: 34px;
  right: 4%;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 70px color-mix(in srgb, var(--line) 40%, transparent), 0 0 0 140px color-mix(in srgb, var(--line) 20%, transparent);
}

.page-hero .shell {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5.8vw, 70px);
}

.page-hero .shell > p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.compact-hero {
  padding-bottom: 72px;
}

.archive-section {
  min-height: 680px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 48px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.breadcrumb a {
  flex: 0 0 auto;
  text-decoration: none;
}

.breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Article */
.post-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 44px) 0 80px;
  background:
    radial-gradient(circle at 82% 0, color-mix(in srgb, var(--accent, var(--pink)) 26%, transparent), transparent 31%),
    var(--surface);
}

.post-shell.accent-aqua { --accent: var(--aqua); }
.post-shell.accent-pink { --accent: var(--pink); }
.post-shell.accent-violet { --accent: var(--violet); }
.post-shell.accent-amber { --accent: var(--amber); }
.post-shell.accent-purple { --accent: var(--purple); }

.post-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  bottom: -220px;
  border: 75px solid color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 50%;
}

.post-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(56px, 8vw, 105px);
}

.post-hero-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 5.1vw, 64px);
  line-height: 1.35;
}

.post-hero-copy > p {
  max-width: 690px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.post-meta {
  gap: 18px;
  margin-bottom: 20px;
}

.post-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-cover {
  position: relative;
  margin: 0;
  aspect-ratio: 1.18;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
  box-shadow: 20px 24px 0 color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-md);
  transform: rotate(1.2deg);
}

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

.cover-mark {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(31, 28, 30, 0.82);
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 760px);
  justify-content: center;
  gap: clamp(44px, 6vw, 72px);
  padding-block: 80px 100px;
}

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

.toc-card,
.share-card {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.toc-card > p,
.share-card > p {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.toc-card ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-card a {
  display: block;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.toc-card a:hover,
.toc-card a.is-active {
  border-left-color: var(--pink-strong);
  background: color-mix(in srgb, var(--pink) 9%, transparent);
  color: var(--ink);
}

.toc-level-3 a {
  padding-left: 18px;
  font-size: 12px;
}

.share-card {
  position: static;
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.share-card button,
.share-card a {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

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

.editor-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-bottom: 44px;
  padding: 21px 23px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.editor-note span {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #342d2d;
  font-size: 9px;
  font-weight: 800;
}

.editor-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.prose {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

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

.prose p {
  margin-bottom: 1.55em;
}

.prose .lead {
  color: var(--ink);
  font-family: var(--font-rounded);
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 700;
  line-height: 1.8;
}

.prose h2,
.prose h3,
.prose h4 {
  position: relative;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-height) + 30px);
}

.prose h2 {
  margin: 3.4em 0 1.25em;
  padding: 0 0 15px 19px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 3.4vw, 36px);
}

.prose h2::before {
  content: "";
  position: absolute;
  top: 0.18em;
  bottom: 0.5em;
  left: 0;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(var(--accent, var(--pink)), color-mix(in srgb, var(--accent, var(--pink)) 30%, transparent));
}

.prose h3 {
  margin: 2.6em 0 1em;
  font-size: clamp(20px, 2.7vw, 27px);
}

.prose h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border: 2px solid var(--accent, var(--pink));
  border-radius: 50%;
  transform: translateY(-2px);
}

.prose h4 {
  margin: 2.2em 0 0.8em;
  font-size: 19px;
}

.prose a {
  color: color-mix(in srgb, var(--pink-strong) 86%, var(--ink));
  font-weight: 600;
}

.prose .button-primary {
  color: #33272a;
}

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

.prose ul,
.prose ol {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 0.48em;
  margin: 1.3em 0 1.7em;
  padding-left: 1.5em;
}

.prose li {
  min-width: 0;
  max-width: 100%;
  padding-left: 0.35em;
}

.prose li::marker {
  color: var(--pink-strong);
  font-weight: 800;
}

.prose blockquote {
  margin: 2em 0;
  padding: 22px 24px 22px 28px;
  border: 0;
  border-left: 4px solid var(--accent, var(--pink));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--accent, var(--pink)) 8%, var(--surface));
  color: var(--ink-soft);
}

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

.prose code:not(pre code) {
  padding: 0.18em 0.4em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-deep);
  color: color-mix(in srgb, var(--pink-strong) 80%, var(--ink));
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.code-block {
  position: relative;
  margin: 2em 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: #1d1b20;
  box-shadow: var(--shadow-sm);
}

.code-block pre {
  margin: 0;
  padding: 52px 22px 22px;
  overflow-x: auto;
  color: #e9e2e6;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  tab-size: 2;
}

.code-block .copy-code {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.token.comment { color: #85808a; }
.token.keyword,
.token.boolean { color: #ff95b6; }
.token.string,
.token.attr-value { color: #b9df9b; }
.token.function,
.token.class-name { color: #90d7e3; }
.token.number,
.token.constant { color: #e6bd72; }
.token.operator,
.token.punctuation { color: #bbb4bd; }

.article-media {
  margin: 2.4em 0;
}

.article-media img {
  width: auto;
  max-height: 740px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.article-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.video,
.tweet-embed {
  margin-block: 2.2em;
}

.video iframe,
.prose iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius-sm);
  background: #111;
  box-shadow: var(--shadow-sm);
}

.table-wrap {
  margin: 2.2em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13px;
}

.prose td,
.prose th {
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose tr:first-child {
  background: color-mix(in srgb, var(--accent, var(--pink)) 12%, var(--surface));
  color: var(--ink);
  font-weight: 800;
}

.prose hr {
  width: 72px;
  height: 6px;
  margin: 4em auto;
  border: 0;
  background: radial-gradient(circle, var(--pink) 0 2px, transparent 3px) 0 0 / 18px 6px repeat-x;
}

.author-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 80px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.author-card-logo {
  display: grid;
  min-height: 128px;
  place-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 22%, var(--paper)), color-mix(in srgb, var(--aqua) 24%, var(--paper)));
}

.author-card-logo img {
  width: 100%;
  height: 100%;
}

.author-card > div:last-child > p:first-child {
  margin-bottom: 3px;
  color: var(--pink-strong);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.author-card h2 {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  font-size: 24px;
}

.author-card h2::before {
  display: none;
}

.author-card > div:last-child > p:not(:first-child) {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.post-navigation a {
  display: grid;
  gap: 6px;
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-navigation a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.post-navigation a:last-of-type {
  text-align: right;
}

.post-navigation span {
  color: var(--muted);
  font-size: 9px;
}

.post-navigation strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-rounded);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-section {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

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

.related-grid .post-card-body {
  min-height: 260px;
  padding: 22px;
}

.related-grid .post-card h3 {
  font-size: 19px;
}

/* Static text pages */
.text-page-hero time {
  display: block;
  margin-top: 30px;
  color: var(--muted);
  font-size: 10px;
}

.text-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 220px;
  justify-content: center;
  gap: 64px;
  padding-block: 80px 104px;
}

.text-page.prose section + section {
  margin-top: 62px;
}

.text-page.prose h2 {
  margin-top: 0;
}

.text-page-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
  display: grid;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.text-page-aside p {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
}

.text-page-aside a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.text-page-aside a:last-child {
  border: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.value-card > span,
.contact-label {
  color: var(--pink-strong);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
}

.value-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.value-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.profile-panel,
.contact-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 10%, var(--surface)), color-mix(in srgb, var(--aqua) 10%, var(--surface)));
}

.profile-panel .portrait-frame {
  justify-self: center;
}

.profile-panel h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.profile-panel p {
  margin-bottom: 12px;
  font-size: 15px;
}

.profile-panel .button-row {
  gap: 18px;
}

.contact-card {
  grid-template-columns: 1fr auto;
}

.contact-card h2 {
  margin: 6px 0 8px;
  padding: 0;
  border: 0;
}

.contact-card h2::before {
  display: none;
}

.contact-card p {
  margin: 0;
  font-size: 14px;
}

.check-list {
  list-style: none;
  padding: 0 !important;
}

.check-list li {
  position: relative;
  padding: 10px 12px 10px 42px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 12px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--aqua) 35%, transparent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.policy-date {
  color: var(--muted);
  font-size: 12px;
}

/* 404 */
.not-found {
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: calc(var(--header-height) + 80px) 24px 100px;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--pink) 20%, transparent), transparent 27%);
  text-align: center;
}

.not-found-art {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-rounded);
  font-size: clamp(72px, 13vw, 138px);
  font-weight: 900;
  line-height: 1;
}

.not-found-art .pudding {
  width: 100px;
  height: 80px;
}

.not-found h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 55px);
}

.not-found > p:not(.section-kicker) {
  margin-bottom: 30px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 84px 0 26px;
  background: var(--dark-soft);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.65fr);
  gap: 54px;
}

.footer-brand img {
  width: 230px;
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.9;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 10px;
}

.footer-grid h2 {
  margin-bottom: 10px;
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 66px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.footer-orb-one {
  width: 380px;
  height: 380px;
  top: -220px;
  right: 11%;
  box-shadow: 0 0 0 68px rgba(255, 255, 255, 0.015), 0 0 0 136px rgba(255, 255, 255, 0.01);
}

.footer-orb-two {
  width: 120px;
  height: 120px;
  bottom: -70px;
  left: 7%;
  background: rgba(244, 154, 179, 0.06);
}

/* Motion */
.reveal {
  animation: revealUp 0.75s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.delay-one {
  animation-delay: 0.14s;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
  0% { transform: translateY(-22px); }
  55%, 100% { transform: translateY(48px); }
}

/* Responsive */
@media (max-width: 1050px) {
  :root {
    --shell: min(100% - 40px, 920px);
  }

  .hero-content {
    grid-template-columns: 1.1fr 0.8fr;
    gap: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(45px, 7vw, 68px);
  }

  .intro-grid {
    grid-template-columns: 1fr 0.95fr;
  }

  .topic-stack {
    display: none;
  }

  .post-hero-grid {
    grid-template-columns: 1.1fr 0.8fr;
    gap: 50px;
  }

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

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid .post-card:last-child {
    display: none;
  }

  .text-page-layout {
    grid-template-columns: minmax(0, 700px) 190px;
    gap: 44px;
  }

  .footer-grid {
    grid-template-columns: 1.25fr repeat(3, 0.7fr);
    gap: 30px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 72px;
  }

  .desktop-nav,
  .theme-toggle {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .menu-toggle[aria-expanded="true"] > svg:first-child {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-close-icon {
    display: block;
  }

  .brand img {
    width: 150px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-backdrop {
    background:
      linear-gradient(90deg, rgba(22, 21, 24, 0.92), rgba(28, 25, 27, 0.7)),
      url("/assets/hero.webp") 64% center / cover no-repeat;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-block: calc(var(--header-height) + 80px) 110px;
  }

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

  .hero-feature {
    width: min(100%, 590px);
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding-block: 86px;
  }

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

  .related-grid .post-card:last-child {
    display: block;
  }

  .post-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  }

  .post-card-media {
    height: 100%;
    aspect-ratio: auto;
  }

  .post-card-body {
    min-height: 300px;
  }

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

  .author-art {
    min-height: 290px;
  }

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

  .post-cover {
    width: min(100%, 620px);
    aspect-ratio: 1.55;
  }

  .article-grid,
  .text-page-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    order: 0;
  }

  .toc-card {
    position: static;
  }

  .share-card {
    display: none;
  }

  .text-page-aside {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.3fr repeat(2, 0.8fr);
  }

  .footer-grid > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100vw - 30px);
    --radius-md: 20px;
    --radius-lg: 28px;
  }

  body {
    font-size: 16px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .brand img {
    width: 132px;
  }

  .brand span {
    font-size: 9px;
  }

  .icon-button {
    width: 39px;
    height: 39px;
  }

  .home-hero::before {
    width: 320px;
    height: 320px;
    right: -140px;
  }

  .hero-content {
    gap: 46px;
    padding-block: calc(var(--header-height) + 54px) 72px;
  }

  .hero-copy h1 {
    margin-bottom: 23px;
    font-size: clamp(39px, 13vw, 58px);
  }

  .hero-copy > p {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .hero-stats {
    gap: 22px;
    margin-top: 36px;
  }

  .hero-stats strong {
    font-size: 18px;
  }

  .hero-feature > div {
    padding: 22px;
  }

  .hero-feature h2 {
    font-size: 21px;
  }

  .section {
    padding-block: 70px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .home-intro h2,
  .author-strip h2 {
    font-size: 34px;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .filter-tags {
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-right: -15px;
    padding-right: 15px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-tags::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .filter-status {
    margin: 0;
    text-align: left;
  }

  .post-card {
    display: block;
  }

  .post-card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1.65;
  }

  .post-card-body {
    min-height: 0;
    padding: 23px 21px 22px;
  }

  .post-card h3 {
    font-size: 21px;
  }

  .section-more {
    margin-top: 28px;
  }

  .section-more .button {
    width: 100%;
  }

  .author-art {
    min-height: 220px;
  }

  .author-strip-inner {
    gap: 24px;
  }

  .page-hero,
  .post-hero {
    padding-top: calc(var(--header-height) + 54px);
  }

  .page-hero {
    padding-bottom: 58px;
  }

  .page-hero::after {
    width: 220px;
    height: 220px;
    right: -90px;
  }

  .page-hero h1 {
    font-size: 39px;
  }

  .breadcrumb {
    margin-bottom: 34px;
  }

  .archive-section {
    padding-top: 54px;
  }

  .post-hero {
    padding-bottom: 68px;
  }

  .post-hero-grid {
    gap: 38px;
  }

  .post-hero-copy h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .post-cover {
    aspect-ratio: 1.25;
    box-shadow: 10px 12px 0 color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-md);
  }

  .article-grid {
    gap: 38px;
    padding-block: 58px 76px;
  }

  .toc-card {
    padding: 18px;
  }

  .editor-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .editor-note span {
    justify-self: start;
  }

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

  .prose h2 {
    margin-top: 2.8em;
    font-size: 27px;
  }

  .prose h3 {
    font-size: 21px;
  }

  .code-block {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    border-radius: 12px;
  }

  .code-block pre {
    max-width: 100%;
    padding: 50px 17px 18px;
    font-size: 11px;
  }

  .article-media img {
    border-radius: 10px;
  }

  .author-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .author-card-logo {
    min-height: 104px;
  }

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

  .post-navigation a:last-of-type {
    text-align: left;
  }

  .text-page-layout {
    padding-block: 58px 80px;
  }

  .text-page.prose section + section {
    margin-top: 56px;
  }

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

  .profile-panel,
  .contact-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .profile-panel .portrait-frame {
    --portrait-size: min(70vw, 220px);
  }

  .contact-card .button {
    width: 100%;
  }

  .not-found {
    min-height: 650px;
  }

  .not-found-art .pudding {
    width: 72px;
    height: 58px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 26px;
  }

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

  .footer-grid > div:last-child {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-aside,
  .related-section,
  .post-navigation,
  .reading-progress {
    display: none !important;
  }

  body,
  .post-hero,
  .post-shell {
    background: #fff !important;
    color: #111 !important;
  }

  .post-hero {
    padding: 32px 0;
  }

  .post-hero-grid,
  .article-grid {
    display: block;
  }

  .post-cover {
    max-width: 420px;
    margin-top: 30px;
    box-shadow: none;
  }

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