.notes-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 26px 0 96px;
}

.notes-hero {
  padding: 18px 0 30px;
}

.notes-hero h1,
.article-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: none;
}

.notes-list {
  display: grid;
  gap: 28px;
}

.topic-section {
  display: grid;
  gap: 14px;
}

.topic-header h2 {
  margin: 8px 0 0;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.topic-list {
  display: grid;
  gap: 14px;
}

.notes-item,
.note-card {
  display: block;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(79, 52, 32, 0.08);
  transition: transform 220ms ease, border-color 220ms ease;
}

.notes-item:hover,
.note-card:hover {
  transform: translateY(-3px);
  border-color: rgba(170, 95, 60, 0.28);
}

.notes-item h2,
.notes-item h3,
.note-card h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.note-meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(31, 27, 22, 0.58);
}

.notes-item p,
.note-card p,
.article-body p,
.article-body li,
.article-body blockquote {
  line-height: 1.85;
  color: rgba(31, 27, 22, 0.74);
}

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

.article-wrap {
  padding: 18px 0 96px;
  max-width: 820px;
  position: relative;
}

.article-page .article-wrap::before {
  content: "Chris Notes · Chris Notes · Chris Notes · Chris Notes";
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: 0.18em;
  color: rgba(47, 44, 40, 0.055);
  transform: rotate(-24deg);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.article-page .article-wrap > * {
  position: relative;
  z-index: 1;
}

.article-page .article-header,
.article-page .article-body,
.article-page .back-link {
  -webkit-user-select: none;
  user-select: none;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: rgba(31, 27, 22, 0.72);
}

.article-header {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(31, 27, 22, 0.12);
  margin-bottom: 28px;
}

.article-topic {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: rgba(31, 27, 22, 0.58);
}

.article-body h1,
.article-body h2,
.article-body h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
  margin: 42px 0 18px;
  max-width: none;
  letter-spacing: -0.02em;
}

.article-body h1 {
  font-size: 2.8rem;
}

.article-body h2 {
  font-size: 2.55rem;
}

.article-body h3 {
  font-size: 1.9rem;
}

.article-header .intro {
  max-width: 42rem;
}

.article-body p,
.article-body li,
.article-body blockquote {
  font-size: 1.08rem;
}

.article-body p {
  margin: 0 0 1.2rem;
}

.article-body li {
  margin-bottom: 0.55rem;
}

.article-body ul,
.article-body ol {
  padding-left: 26px;
  margin: 0 0 1.4rem;
}

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.94em;
  background: rgba(31, 27, 22, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.article-body pre {
  padding: 18px;
  overflow: auto;
  background: rgba(31, 27, 22, 0.92);
  color: #f7f2eb;
  border-radius: 18px;
}

.article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.article-body blockquote {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 3px solid rgba(170, 95, 60, 0.5);
}

.article-body .katex-display {
  margin: 2.1rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.3rem 0;
}

.article-body .katex {
  font-size: 1.22em;
}

.article-page .article-body img,
.article-page .article-body svg {
  pointer-events: none;
}

@media (max-width: 720px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .notes-item,
  .note-card {
    padding: 18px;
  }
}
