/* ==========================================================================
   爪印与处方笺 — Pawprints & Prescriptions
   A warm, editorial static blog for pet stories and veterinary notes.
   ========================================================================== */

:root {
  --paper: #f4efe5;
  --paper-soft: #faf6ee;
  --paper-deep: #e9e0d1;
  --ink: #24312b;
  --ink-soft: #445249;
  --muted: #5f6c63;
  --forest: #2f4a3e;
  --forest-deep: #22372e;
  --forest-light: #52695b;
  --terracotta: #c65d40;
  --terracotta-dark: #a4472e;
  --ochre: #d9a441;
  --sage: #a8b59b;
  --rose: #e7c4b2;
  --line: rgba(36, 49, 43, 0.14);
  --line-strong: rgba(36, 49, 43, 0.24);
  --cream: #f6eddf;
  --white: #fffdf8;

  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong",
    "SimSun", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px rgba(53, 42, 30, 0.08);
  --shadow-card: 0 14px 36px rgba(53, 42, 30, 0.07);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --page: min(1240px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(47, 74, 62, 0.06) 0.65px, transparent 0.65px);
  background-size: 7px 7px;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--paper-soft);
  background: var(--terracotta);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  color: var(--paper-soft);
  background: var(--forest);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

/* --------------------------------------------------------------------------
   Shared header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(244, 239, 229, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 239, 229, 0.95);
}

.header-inner {
  width: var(--page);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(34, 55, 46, 0.16);
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-7deg) scale(1.04);
}

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

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.045em;
}

.brand-sub {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 19px;
  color: var(--paper-soft);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-lines {
  position: relative;
  width: 17px;
  height: 11px;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-lines::before {
  top: 1px;
}

.nav-toggle-lines::after {
  top: 9px;
}

.nav-open .nav-toggle-lines::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-lines::after {
  top: 5px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Shared elements
   -------------------------------------------------------------------------- */

.section {
  width: var(--page);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--terracotta-dark);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

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

.section-head h2 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: clamp(29px, 3.2vw, 39px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.015em;
}

.section-head h2 em {
  color: var(--terracotta);
  font-style: normal;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.section-link span {
  transition: transform 0.25s var(--ease);
}

.section-link:hover {
  color: var(--terracotta-dark);
  border-color: var(--terracotta);
}

.section-link:hover span {
  transform: translateX(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: color 0.28s ease, background 0.28s ease, border-color 0.28s ease,
    transform 0.28s var(--ease), box-shadow 0.28s ease;
}

.btn-primary {
  color: var(--paper-soft);
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(34, 55, 46, 0.14);
}

.btn-primary:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(164, 71, 46, 0.18);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--paper-soft);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 11px;
  color: var(--forest-deep);
  background: rgba(168, 181, 155, 0.5);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.category::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.category--med {
  color: #7d321f;
  background: rgba(198, 93, 64, 0.16);
}

.category--aid {
  color: #6d4c0d;
  background: rgba(217, 164, 65, 0.22);
}

.category--pet {
  color: #344a2f;
  background: rgba(168, 181, 155, 0.42);
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(46px, 6.4vw, 86px) 0 clamp(56px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.87fr);
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--forest-light);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-eyebrow .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(198, 93, 64, 0.12);
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
  color: var(--terracotta);
  font-style: normal;
}

.hero h1 .highlight::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 1%;
  bottom: 0.02em;
  height: 0.16em;
  border-radius: 999px;
  background: rgba(198, 93, 64, 0.22);
  transform: rotate(-1.5deg);
}

.section-head h2,
.featured-content h3,
.post-card h3,
.about-copy h2,
.article-hero h1,
.article-body h3 {
  text-wrap: balance;
}

.hero-intro {
  max-width: 535px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.95;
}

.hero-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: clamp(26px, 3.8vw, 48px);
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stat strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero-stat strong span {
  margin-left: 2px;
  color: var(--terracotta);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.hero-stat small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-art {
  position: relative;
  isolation: isolate;
}

.hero-canvas {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 49, 43, 0.12);
  border-radius: 220px 220px 30px 30px;
  background: #e9ddc9;
  box-shadow: var(--shadow-soft);
}

.hero-canvas::after {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(246, 237, 223, 0.58);
  border-radius: 210px 210px 22px 22px;
}

.hero-canvas img {
  width: 100%;
  aspect-ratio: 900 / 720;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.hero-art:hover .hero-canvas img {
  transform: scale(1.025);
}

.art-stamp {
  position: absolute;
  top: 34px;
  left: -30px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  color: var(--cream);
  background: var(--terracotta);
  border: 1px solid rgba(246, 237, 223, 0.35);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(164, 71, 46, 0.2);
  text-align: center;
  transform: rotate(-11deg);
}

.art-stamp .stamp-top {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.art-stamp b {
  display: block;
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.1em;
}

.floating-note {
  position: absolute;
  z-index: 3;
  padding: 13px 17px;
  background: rgba(250, 246, 238, 0.94);
  border: 1px solid rgba(36, 49, 43, 0.11);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(53, 42, 30, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.floating-note small {
  display: block;
  margin-bottom: 3px;
  color: var(--terracotta-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.floating-note span {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.note-top {
  top: 25%;
  right: -32px;
  transform: rotate(3.5deg);
}

.note-bottom {
  left: -40px;
  bottom: 38px;
  transform: rotate(-2.5deg);
}

.note-bottom::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -26px;
  width: 26px;
  height: 1px;
  border-top: 1px dashed var(--line-strong);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Featured story
   -------------------------------------------------------------------------- */

.featured-section {
  padding: 16px 0 clamp(72px, 9vw, 112px);
}

.featured-card {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper-soft);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(53, 42, 30, 0.12);
}

.featured-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper-deep);
}

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

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

.featured-media .category {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  background: rgba(250, 246, 238, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.featured-number {
  position: absolute;
  right: 25px;
  bottom: 6px;
  z-index: 1;
  color: rgba(250, 246, 238, 0.78);
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 18px rgba(34, 55, 46, 0.14);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4.2vw, 54px);
}

.featured-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--terracotta-dark);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.featured-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
}

.featured-content h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.featured-card:hover .featured-content h3 {
  color: var(--terracotta-dark);
}

.featured-excerpt {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
}

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

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.featured-meta span + span::before {
  content: "·";
  margin-right: 14px;
  color: var(--line-strong);
}

.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--cream);
  background: var(--forest);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.read-more svg {
  width: 17px;
  height: 17px;
}

.featured-card:hover .read-more {
  background: var(--terracotta);
  transform: rotate(-35deg);
}

/* --------------------------------------------------------------------------
   Notes index
   -------------------------------------------------------------------------- */

.notes-section {
  padding: 0 0 clamp(84px, 10vw, 124px);
}

.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

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

.filter-btn {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

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

.filter-btn[aria-pressed="true"] {
  color: var(--paper-soft);
  background: var(--forest);
  border-color: var(--forest);
}

.filter-count {
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.post-card {
  position: relative;
  min-width: 0;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 0 rgba(36, 49, 43, 0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease,
    border-color 0.35s ease, opacity 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 49, 43, 0.22);
  box-shadow: var(--shadow-card);
}

.post-card.is-hidden {
  display: none;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 12px 24px;
}

.post-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  border-radius: 16px;
  background: var(--paper-deep);
}

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

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

.post-media .category {
  position: absolute;
  top: 13px;
  left: 13px;
  background: rgba(250, 246, 238, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.post-index {
  position: absolute;
  top: 14px;
  right: 15px;
  color: rgba(250, 246, 238, 0.88);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 8px rgba(34, 55, 46, 0.2);
}

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 10px 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.post-card h3 {
  margin: 13px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.post-card:hover h3 {
  color: var(--terracotta-dark);
}

.post-excerpt {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.post-foot .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.post-card:hover .post-foot .arrow {
  color: var(--cream);
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Quote band
   -------------------------------------------------------------------------- */

.quote-band {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: var(--forest-deep);
}

.quote-band::before {
  content: "“";
  position: absolute;
  top: -58px;
  left: 4%;
  color: rgba(246, 237, 223, 0.06);
  font-family: var(--serif);
  font-size: 340px;
  line-height: 1;
}

.quote-band::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -190px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(246, 237, 223, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(246, 237, 223, 0.025),
    0 0 0 90px rgba(246, 237, 223, 0.02);
}

.quote-inner {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 116px) 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.quote-mark {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px;
}

.quote-mark .paw {
  width: 38px;
  height: 38px;
  opacity: 0.8;
}

.quote-mark .line {
  width: 74px;
  height: 1px;
  background: rgba(246, 237, 223, 0.28);
}

.quote-mark span {
  color: rgba(246, 237, 223, 0.45);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-transform: uppercase;
}

.quote-band blockquote {
  max-width: 970px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(29px, 3.8vw, 48px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.015em;
}

.quote-band blockquote em {
  color: var(--ochre);
  font-style: normal;
}

.quote-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  color: rgba(246, 237, 223, 0.58);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.quote-sign::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(246, 237, 223, 0.3);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-section {
  padding: clamp(82px, 10vw, 124px) 0;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(48px, 8vw, 104px);
  align-items: center;
}

.about-seal-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
}

.about-seal-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border: 1px dashed rgba(36, 49, 43, 0.2);
  border-radius: 50%;
  animation: seal-spin 48s linear infinite;
}

.about-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: min(290px, 74vw);
  aspect-ratio: 1;
  color: var(--cream);
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 30px 60px rgba(34, 55, 46, 0.18);
}

.about-seal::before,
.about-seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.about-seal::before {
  inset: 18px;
  border: 1px solid rgba(246, 237, 223, 0.22);
}

.about-seal::after {
  inset: 34px;
  border: 1px dashed rgba(246, 237, 223, 0.12);
}

.seal-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.seal-content .seal-word {
  display: block;
  font-family: var(--serif);
  font-size: 82px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.seal-content .seal-name {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  opacity: 0.72;
  text-transform: uppercase;
}

.seal-content .seal-paw {
  width: 26px;
  height: 26px;
  margin: 14px auto 0;
  opacity: 0.8;
}

.seal-tag {
  position: absolute;
  right: -22px;
  bottom: 28px;
  z-index: 2;
  padding: 10px 16px;
  color: var(--forest-deep);
  background: var(--ochre);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(53, 42, 30, 0.12);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.about-copy h2 {
  max-width: 680px;
  margin: 12px 0 22px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 45px);
  font-weight: 700;
  line-height: 1.45;
}

.about-copy h2 em {
  color: var(--terracotta);
  font-style: normal;
}

.about-copy p {
  max-width: 660px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.about-fact {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.about-fact::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  color: var(--cream);
  background: var(--forest-deep);
}

.footer-main {
  width: var(--page);
  margin: 0 auto;
  padding: 64px 0 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  border-bottom: 1px solid rgba(246, 237, 223, 0.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 430px;
}

.footer-brand .brand {
  color: var(--cream);
}

.footer-brand .brand-mark {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.footer-brand p {
  margin: 0;
  color: rgba(246, 237, 223, 0.6);
  font-size: 13px;
  line-height: 1.9;
}

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

.footer-col h3 {
  margin: 0 0 14px;
  color: rgba(246, 237, 223, 0.55);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  color: rgba(246, 237, 223, 0.78);
  font-size: 13px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--ochre);
  transform: translateX(3px);
}

.footer-bottom {
  width: var(--page);
  margin: 0 auto;
  padding: 22px 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  color: rgba(246, 237, 223, 0.55);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.footer-bottom p {
  margin: 0;
}

.footer-note {
  color: rgba(246, 237, 223, 0.62);
}

.footer-icp a {
  color: rgba(246, 237, 223, 0.72);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-icp a:hover {
  color: var(--ochre);
  border-bottom-color: rgba(217, 164, 65, 0.45);
}

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.article-hero {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 33px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

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

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

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

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.article-kicker .meta-date {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

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

.article-hero h1 {
  max-width: 960px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(37px, 5.1vw, 61px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.012em;
}

.article-deck {
  max-width: 760px;
  margin: 23px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.byline-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--cream);
  background: var(--forest);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
}

.byline-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.byline-text strong {
  color: var(--ink);
  font-weight: 600;
}

.byline-text span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-cover {
  width: min(1180px, calc(100% - 48px));
  margin: 38px auto 0;
}

.article-cover-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  border-radius: var(--radius-xl);
  background: var(--paper-deep);
  box-shadow: var(--shadow-soft);
}

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

.article-cover figcaption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.article-cover figcaption::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--line-strong);
}

.article-layout {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) 0 clamp(70px, 9vw, 106px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(48px, 6.5vw, 88px);
  align-items: start;
}

.article-content {
  min-width: 0;
  max-width: 780px;
}

.article-body {
  counter-reset: section;
  color: #334139;
  font-size: 16.5px;
  line-height: 2.02;
}

.article-body > p:first-child {
  font-size: 18px;
  color: var(--ink-soft);
}

.article-body p {
  margin: 0 0 1.35em;
}

.article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.article-body em {
  color: var(--terracotta-dark);
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(217, 164, 65, 0.22) 62%);
}

.article-body a {
  color: var(--terracotta-dark);
  border-bottom: 1px solid rgba(164, 71, 46, 0.3);
  transition: border-color 0.2s ease;
}

.article-body a:hover {
  border-color: var(--terracotta-dark);
}

.article-body h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 2.35em 0 0.7em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.article-body h2::before {
  counter-increment: section;
  content: "0" counter(section);
  flex-shrink: 0;
  padding-top: 2px;
  color: var(--terracotta);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.article-body h2:first-of-type {
  margin-top: 1.75em;
}

.article-body h3 {
  margin: 1.9em 0 0.65em;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.65em;
  padding-left: 0.2em;
}

.article-body li::marker {
  color: var(--terracotta);
  font-size: 0.9em;
}

.article-body ul li::marker {
  content: "◆";
  font-size: 0.55em;
}

.article-body ol li::marker {
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 600;
}

.article-body blockquote {
  position: relative;
  margin: 2.1em 0;
  padding: 6px 0 6px 30px;
  border-left: 2px solid var(--terracotta);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.8;
}

.article-body blockquote p {
  margin: 0;
}

.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.article-body .lede {
  color: var(--ink-soft);
  font-size: 18px;
}

.article-body .lede::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 3.55em;
  font-weight: 700;
  line-height: 0.82;
}

.callout {
  position: relative;
  margin: 2em 0;
  padding: 22px 24px 20px;
  background: rgba(217, 164, 65, 0.1);
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-left: 3px solid var(--ochre);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #6d4c0d;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.callout-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
}

.callout p + p {
  margin-top: 0.7em;
}

.callout ul {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
}

.callout li {
  margin-bottom: 0.3em;
}

.callout--tip {
  background: rgba(168, 181, 155, 0.14);
  border-color: rgba(95, 117, 88, 0.3);
  border-left-color: var(--forest-light);
}

.callout--tip .callout-label {
  color: var(--forest);
}

.callout--warn {
  background: rgba(198, 93, 64, 0.08);
  border-color: rgba(198, 93, 64, 0.28);
  border-left-color: var(--terracotta);
}

.callout--warn .callout-label {
  color: var(--terracotta-dark);
}

.callout--note {
  background: rgba(47, 74, 62, 0.05);
  border-color: rgba(47, 74, 62, 0.18);
  border-left-color: var(--forest);
}

.callout--note .callout-label {
  color: var(--forest);
}

.table-wrap {
  margin: 1.9em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
  -webkit-overflow-scrolling: touch;
}

.article-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}

.article-body th {
  padding: 13px 16px;
  color: var(--cream);
  background: var(--forest);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.article-body td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.article-body tbody tr:nth-child(even) td {
  background: rgba(233, 224, 209, 0.28);
}

.article-body td strong {
  color: var(--ink);
}

.checklist {
  margin: 1.7em 0;
  padding: 6px 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 29px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--forest-light);
  border-radius: 4px;
  background: transparent;
}

.checklist li::after {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--terracotta);
  border-bottom: 1.5px solid var(--terracotta);
  transform: rotate(-45deg);
}

.red-flags {
  margin: 1.8em 0;
  padding: 24px;
  background: var(--forest-deep);
  border-radius: var(--radius-md);
  color: rgba(246, 237, 223, 0.82);
}

.red-flags h3 {
  margin: 0 0 12px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
}

.red-flags ul {
  margin: 0;
  padding-left: 1.2em;
  color: rgba(246, 237, 223, 0.78);
}

.red-flags li {
  margin-bottom: 0.4em;
  font-size: 14px;
  line-height: 1.8;
}

.red-flags li::marker {
  color: var(--ochre);
}

.red-flags p {
  color: rgba(246, 237, 223, 0.6);
  font-size: 12px;
  line-height: 1.8;
}

.steps {
  margin: 1.8em 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 14px;
  padding: 16px 18px 16px 58px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  counter-increment: step;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--cream);
  background: var(--terracotta);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.article-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 46px 0 36px;
  color: var(--line-strong);
}

.article-end::before,
.article-end::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.article-end svg {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}

.medical-note {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  margin: 34px 0 0;
  padding: 20px;
  background: rgba(233, 224, 209, 0.42);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

.medical-note svg {
  width: 25px;
  height: 25px;
  margin-top: 2px;
  color: var(--forest);
}

.medical-note h3 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.medical-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.article-author {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 38px;
  padding: 28px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--cream);
  background: var(--forest);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 30px;
  box-shadow: inset 0 0 0 5px rgba(246, 237, 223, 0.12);
}

.article-author .author-label {
  margin: 0 0 3px;
  color: var(--terracotta-dark);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-author h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 19px;
}

.article-author p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

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

.post-nav-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  padding: 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: background 0.25s ease, border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.post-nav-link:hover {
  background: var(--paper-soft);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

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

.post-nav-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-nav-link strong {
  max-width: 280px;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

/* Sidebar */

.article-sidebar {
  position: sticky;
  top: 106px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.toc {
  padding: 23px 22px 20px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.toc-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc-head span {
  color: var(--terracotta);
  font-family: var(--mono);
  font-size: 8.5px;
}

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

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 9px;
  padding: 7px 0 7px 10px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.toc a::before {
  content: "0" counter(toc);
  flex-shrink: 0;
  color: rgba(117, 128, 120, 0.6);
  font-family: var(--mono);
  font-size: 8px;
  padding-top: 2px;
}

.toc a:hover,
.toc a.is-active {
  color: var(--terracotta-dark);
  border-left-color: var(--terracotta);
  background: rgba(198, 93, 64, 0.045);
}

.toc a.is-active::before {
  color: var(--terracotta);
}

.sidebar-note {
  padding: 22px;
  color: rgba(246, 237, 223, 0.78);
  background: var(--forest-deep);
  border-radius: var(--radius-md);
}

.sidebar-note svg {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  color: var(--ochre);
}

.sidebar-note h2 {
  margin: 0 0 7px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
}

.sidebar-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.85;
  color: rgba(246, 237, 223, 0.68);
}

.sidebar-related {
  padding-top: 2px;
}

.sidebar-related h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-post {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mini-post:last-child {
  border-bottom: 0;
}

.mini-post img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 9px;
  transition: transform 0.3s var(--ease);
}

.mini-post:hover img {
  transform: scale(1.05);
}

.mini-post h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
  transition: color 0.2s ease;
}

.mini-post:hover h3 {
  color: var(--terracotta-dark);
}

.mini-post span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1320px) {
  .note-top {
    right: -10px;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.8fr);
    gap: 42px;
  }

  .note-top {
    right: -10px;
  }

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

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 46px;
  }
}

@media (max-width: 980px) {
  .site-nav {
    gap: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

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

  .hero h1 {
    max-width: 640px;
  }

  .hero-art {
    width: min(620px, 100%);
    margin: 6px auto 0;
  }

  .hero-canvas {
    border-radius: 200px 200px 28px 28px;
  }

  .hero-canvas::after {
    border-radius: 190px 190px 20px 20px;
  }

  .note-top {
    right: -16px;
  }

  .note-bottom {
    left: -16px;
  }

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

  .featured-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .featured-number {
    font-size: 72px;
  }

  .quote-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .quote-mark {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
  }

  .quote-mark .line {
    width: 42px;
  }

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

  .about-seal-wrap {
    min-height: 340px;
  }

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

  .article-content {
    max-width: 760px;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    padding-top: 10px;
  }

  .toc {
    grid-row: span 2;
  }

  .sidebar-related {
    padding: 0;
  }

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

@media (max-width: 760px) {
  :root {
    --page: min(100% - 36px, 1240px);
  }

  html {
    scroll-padding-top: 88px;
  }

  .header-inner {
    min-height: 70px;
  }

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

  .brand-sub {
    font-size: 7.5px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 22px;
    background: rgba(244, 239, 229, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px rgba(53, 42, 30, 0.08);
  }

  .js.nav-open .site-nav {
    display: flex;
  }

  .site-nav .nav-link {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav .nav-link::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin-top: 14px;
    min-height: 46px;
  }

  .js .nav-open .site-nav {
    animation: nav-drop 0.25s var(--ease);
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 58px;
    gap: 38px;
  }

  .hero h1 {
    line-height: 1.24;
  }

  .hero-intro {
    margin-top: 22px;
    font-size: 15px;
  }

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

  .hero-actions .btn {
    min-height: 46px;
    padding: 0 21px;
    font-size: 13px;
  }

  .hero-stats {
    margin-top: 34px;
    gap: 24px;
  }

  .hero-stat strong {
    font-size: 22px;
  }

  .art-stamp {
    top: 20px;
    left: -8px;
    width: 78px;
    height: 78px;
  }

  .art-stamp b {
    font-size: 18px;
  }

  .floating-note {
    padding: 10px 13px;
  }

  .floating-note span {
    font-size: 12px;
  }

  .note-top {
    top: 18%;
    right: -6px;
  }

  .note-bottom {
    left: -6px;
    bottom: 22px;
  }

  .note-bottom::before {
    display: none;
  }

  .hero-canvas {
    border-radius: 150px 150px 24px 24px;
  }

  .hero-canvas::after {
    inset: 9px;
    border-radius: 142px 142px 17px 17px;
  }

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

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

  .section-link {
    padding-bottom: 3px;
    font-size: 12px;
  }

  .featured-section {
    padding-bottom: 68px;
  }

  .featured-card {
    border-radius: var(--radius-lg);
  }

  .featured-media {
    aspect-ratio: 8 / 5;
  }

  .featured-content {
    padding: 26px 24px 30px;
  }

  .featured-content h3 {
    font-size: 25px;
    line-height: 1.5;
  }

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

  .featured-footer {
    margin-top: 24px;
    padding-top: 16px;
  }

  .featured-number {
    font-size: 58px;
  }

  .filters-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    min-height: 34px;
    padding: 0 13px;
    font-size: 12px;
  }

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

  .post-card-link {
    padding: 10px 10px 21px;
  }

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

  .post-body {
    padding: 18px 8px 0;
  }

  .quote-inner {
    padding: 66px 0;
    gap: 22px;
  }

  .quote-band blockquote {
    font-size: 27px;
    line-height: 1.65;
  }

  .quote-mark .paw {
    width: 30px;
    height: 30px;
  }

  .quote-mark .line {
    flex: 1;
  }

  .quote-mark span {
    display: none;
  }

  .about-section {
    padding: 70px 0 78px;
    gap: 38px;
  }

  .about-seal-wrap {
    min-height: 300px;
  }

  .about-seal {
    width: 240px;
  }

  .seal-content .seal-word {
    font-size: 68px;
  }

  .seal-tag {
    right: 0;
    bottom: 10px;
    font-size: 8px;
  }

  .about-copy h2 {
    font-size: 29px;
  }

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

  .footer-main {
    padding: 48px 0 36px;
  }

  .footer-nav {
    gap: 22px;
  }

  .footer-bottom {
    padding-bottom: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .article-hero {
    width: calc(100% - 36px);
    padding-top: 36px;
  }

  .breadcrumb {
    margin-bottom: 24px;
  }

  .article-hero h1 {
    font-size: clamp(33px, 8.6vw, 44px);
    line-height: 1.4;
  }

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

  .article-byline {
    margin-top: 22px;
  }

  .article-cover {
    width: calc(100% - 36px);
    margin-top: 28px;
  }

  .article-cover-frame {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
  }

  .article-cover figcaption {
    justify-content: flex-start;
    font-size: 9px;
  }

  .article-layout {
    width: calc(100% - 36px);
    padding: 38px 0 64px;
    gap: 44px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.98;
  }

  .article-body > p:first-child {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 24px;
    gap: 9px;
    margin-top: 2em;
  }

  .article-body h3 {
    font-size: 17.5px;
  }

  .article-body blockquote {
    padding-left: 20px;
    font-size: 19px;
  }

  .article-body .lede {
    font-size: 17px;
  }

  .callout {
    padding: 18px 18px 16px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .toc {
    grid-row: auto;
    order: -1;
  }

  .article-author {
    grid-template-columns: 54px 1fr;
    gap: 15px;
    padding: 22px;
  }

  .author-avatar {
    width: 54px;
    height: 54px;
    font-size: 23px;
  }

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

  .post-nav-link {
    min-height: 100px;
  }

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

  .medical-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-sub {
    display: none;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 12px;
  }

  .hero-stat small {
    font-size: 10px;
  }

  .floating-note small {
    display: none;
  }

  .featured-meta span:last-child {
    display: none;
  }

  .seal-tag {
    right: -6px;
  }
}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 35px;
  }
}

@media (max-width: 340px) {
  .hero h1 {
    font-size: 31px;
  }
}

@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;
  }
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media print {
  .site-header,
  .article-sidebar,
  .reading-progress,
  .post-nav,
  .site-footer,
  .article-cover figcaption {
    display: none !important;
  }

  body {
    background: #fff;
  }

  body::before {
    display: none;
  }

  .article-hero,
  .article-cover,
  .article-layout {
    width: 100%;
  }

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

  .article-body {
    max-width: none;
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }
}
