/* ==========================================================================
   Wenxuan Xu's Notes — reading notes and marginalia
   Same palette as www.wenxuanxu.uk and library.wenxuanxu.uk, kept quieter.
   ========================================================================== */

:root {
  --font-latin: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-cjk: "Songti TC", "Songti SC", "Source Han Serif TC", "Noto Serif TC", "Noto Serif CJK TC", STSong, serif;
  --font-body: var(--font-latin);
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max: 1120px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-2: #101014;
  --bg-3: #16161d;
  --bg-elevated: #14141a;
  --text: #ece9e4;
  --text-strong: #ffffff;
  --muted: #a09caa;
  --faint: #6f6b79;
  --line: rgba(236, 233, 228, 0.11);
  --line-strong: rgba(236, 233, 228, 0.22);
  --accent: #9a6bff;
  --accent-2: #c3a8ff;
  --accent-soft: rgba(154, 107, 255, 0.12);
  --emphasis: #e9c46a;
  --emphasis-soft: rgba(233, 196, 106, 0.12);
  --on-accent: #0a0a0c;
  --grid: rgba(255, 255, 255, 0.035);
  --glow: rgba(121, 79, 214, 0.2);
  --backdrop: rgba(4, 4, 7, 0.72);
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5efe2;
  --bg-2: #efe7d6;
  --bg-3: #e8ddc8;
  --bg-elevated: #fbf7ee;
  --text: #191611;
  --text-strong: #000000;
  --muted: #5d5649;
  --faint: #8a8171;
  --line: rgba(25, 22, 17, 0.16);
  --line-strong: rgba(25, 22, 17, 0.3);
  --accent: #a87a13;
  --accent-2: #8a6208;
  --accent-soft: rgba(183, 139, 31, 0.14);
  --emphasis: #1d4ed8;
  --emphasis-soft: rgba(29, 78, 216, 0.1);
  --on-accent: #191307;
  --grid: rgba(25, 22, 17, 0.045);
  --glow: rgba(183, 139, 31, 0.16);
  --backdrop: rgba(32, 27, 18, 0.5);
  --shadow: 0 40px 120px rgba(60, 48, 25, 0.18);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

html[lang="zh-Hant"] body,
html[lang="zh-Hant"] input,
html[lang="zh-Hant"] button,
html[lang="zh-Hant"] select,
html[lang="zh-Hant"] textarea {
  font-family: var(--font-cjk);
  line-height: 1.85;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(820px 460px at 80% -8%, var(--glow), transparent 70%),
    radial-gradient(620px 380px at 2% 0%, var(--accent-soft), transparent 72%);
}

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--text-strong);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.8rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1.12;
  flex: 0 0 auto;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}
.brand-text { display: grid; }
.brand-name {
  font-family: var(--font-latin);
  font-size: 1.02rem;
  letter-spacing: 0.045em;
  color: var(--text-strong);
}
.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--text-strong); border-bottom-color: var(--accent); }

.header-controls { display: flex; align-items: center; gap: 0.4rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--line-strong); background: var(--bg-2); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

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

/* ---------- hero & plaque ---------- */

.hero {
  position: relative;
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3rem);
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: 6%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow:
    0 0 0 70px color-mix(in srgb, var(--accent) 3.2%, transparent),
    0 0 0 140px color-mix(in srgb, var(--accent) 2%, transparent);
  pointer-events: none;
  z-index: -1;
}

.plaque {
  position: relative;
  width: min(620px, 100%);
  padding: 2rem 2.2rem 1.75rem;
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-elevated) 96%, transparent), var(--bg-2));
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}
.plaque-corner {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1px solid var(--emphasis);
  opacity: 0.85;
}
.plaque-corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.plaque-corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.plaque-corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.plaque-corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.plaque-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--emphasis);
  box-shadow: 0 0 0 4px var(--emphasis-soft);
  margin-bottom: 0.55rem;
}
.plaque-line-one {
  font-family: var(--font-latin);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  letter-spacing: 0.055em;
  color: var(--text-strong);
  line-height: 1.2;
}
.plaque-line-two {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-intro {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}
.hero-intro a { color: var(--text-strong); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.hero-stats > div {
  display: grid;
  gap: 0.1rem;
  padding: 0.2rem clamp(1rem, 3vw, 1.9rem);
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats strong {
  font-family: var(--font-latin);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.1;
}
.hero-stats span {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- notebook ---------- */

.notebook {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1rem 0 clamp(2.5rem, 5vw, 4rem);
}

.view-tabs {
  display: inline-flex;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.view-tab {
  padding: 0.35rem 0.95rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 1px;
}
.view-tab:hover { color: var(--text-strong); }
.view-tab.is-active { color: var(--text-strong); background: var(--accent-soft); }

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin-bottom: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emphasis);
}
.section-heading h2 {
  margin: 0;
  font-family: var(--font-latin);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}
.section-hint { margin: 0; color: var(--faint); font-size: 0.78rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 260px;
  min-width: 200px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: var(--radius);
}
.search-field:focus-within { border-color: var(--accent); }
.search-field svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-linecap: round; }
.search-field input {
  width: 100%;
  padding: 0.48rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  outline: none;
}
.search-field input::placeholder { color: var(--faint); }

.select-field select {
  padding: 0.48rem 0.6rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  border-radius: var(--radius);
  max-width: 16rem;
}
.select-field select:focus { outline: 1px solid var(--accent); outline-offset: 1px; }

.result-count {
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.9rem;
}

.note-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 11rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.note-card:hover,
.note-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  background: var(--bg-2);
  transform: translateY(-2px);
  outline: none;
}
.note-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.note-category {
  display: inline-block;
  padding: 0.06rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}
.note-date { font-family: var(--font-mono); font-size: 0.64rem; color: var(--faint); }
.note-card h3 {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.38;
  color: var(--text-strong);
}
html[lang="zh-Hant"] .note-card h3 { font-family: var(--font-cjk); }
.note-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.3rem;
}
.note-card-meta .tag {
  display: inline-block;
  padding: 0.04rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.63rem;
  color: var(--faint);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- note reader ---------- */

.note-reader {
  max-width: 46rem;
  margin: 0 auto;
  padding-top: 0.6rem;
}
.back-link {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
}
.back-link:hover { color: var(--accent-2); }
.reader-title {
  margin: 0.2rem 0 0.5rem;
  font-family: var(--font-latin);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-strong);
}
html[lang="zh-Hant"] .reader-title { font-family: var(--font-cjk); }
.reader-meta { margin: 0 0 0.8rem; color: var(--faint); font-size: 0.78rem; }
.reader-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.4rem; }
.reader-tags .tag {
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.66rem;
  color: var(--faint);
}

.note-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.note-body h1,
.note-body h2,
.note-body h3,
.note-body h4 {
  font-family: var(--font-latin);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.35;
  margin: 1.6em 0 0.5em;
}
html[lang="zh-Hant"] .note-body h1,
html[lang="zh-Hant"] .note-body h2,
html[lang="zh-Hant"] .note-body h3,
html[lang="zh-Hant"] .note-body h4 { font-family: var(--font-cjk); }
.note-body h1 { font-size: 1.6rem; }
.note-body h2 { font-size: 1.35rem; }
.note-body h3 { font-size: 1.15rem; }
.note-body p { margin: 0 0 1em; }
.note-body ul,
.note-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.note-body li { margin-bottom: 0.35em; }
.note-body blockquote {
  margin: 1.2em 0;
  padding: 0.2em 0 0.2em 1em;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}
.note-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-3);
  padding: 0.05em 0.3em;
  border-radius: 2px;
}
.note-body pre {
  overflow: auto;
  padding: 0.9rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.6;
}
.note-body pre code { background: none; padding: 0; }
.note-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }
.note-body a { color: var(--accent-2); }

.reader-citations {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.reader-citations h3 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.reader-citations ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.reader-citations li { font-size: 0.86rem; color: var(--muted); }
.reader-citations a { color: var(--accent-2); text-decoration: none; }
.reader-citations a:hover { text-decoration: underline; }

/* ---------- comments ---------- */

.filter-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--line-strong);
  background: color-mix(in srgb, var(--accent-soft) 40%, transparent);
  font-size: 0.84rem;
  color: var(--muted);
}
.filter-banner strong { color: var(--text-strong); font-weight: 500; }
.filter-banner button {
  border: 0;
  background: none;
  color: var(--accent-2);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  text-decoration: underline;
}

.comments-list { display: grid; gap: 0.9rem; }

.comment-group {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}
.comment-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.comment-group-title {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.4;
}
html[lang="zh-Hant"] .comment-group-title { font-family: var(--font-cjk); }
.comment-group-sub { margin: 0.1rem 0 0; font-size: 0.74rem; color: var(--faint); }
.comment-group-head a {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-decoration: none;
  white-space: nowrap;
}
.comment-group-head a:hover { text-decoration: underline; }

.comment {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
}
.comment:first-of-type { border-top: 0; }
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.comment-author { color: var(--muted); }
.comment-body { font-size: 0.9rem; line-height: 1.75; color: var(--text); }
.comment-body p { margin: 0 0 0.6em; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-body a { color: var(--accent-2); }

.empty {
  margin: 2.2rem 0;
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
}

/* ---------- about & footer ---------- */

.about {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about-card {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  max-width: 46rem;
}
.about-card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-latin);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-strong);
}
.about-card p { color: var(--muted); font-size: 0.92rem; }
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.about-links a {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
}
.about-links a:hover { color: var(--accent-2); }

.site-footer {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 1.2rem 0 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- misc ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 90;
  transform: translateX(-50%);
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
}

.noscript {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 1rem auto;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .hero::before { display: none; }
}

@media (max-width: 620px) {
  .header-inner { width: calc(100% - 1.4rem); gap: 0.6rem; }
  .brand-name { font-size: 0.92rem; }
  .brand-domain { display: none; }
  .brand-icon { width: 34px; height: 34px; }
  .hero,
  .notebook,
  .about,
  .site-footer { width: calc(100% - 1.4rem); }
  .plaque { padding: 1.5rem 1.2rem 1.3rem; }
  .plaque-line-one { font-size: 1.42rem; }
  .hero-stats { width: 100%; }
  .hero-stats > div { flex: 1 1 50%; border-right: 0; padding: 0.45rem 0.4rem; }
  .hero-stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .notes-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; scroll-behavior: auto !important; }
}
