:root {
  --body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --heading: Georgia, "Times New Roman", serif;
  --bg: #faf7ef;
  --footer: #f0e9da;
  --surface: #fefbf4;
  --surface-hover: #f5ebdd;
  --ink: #26221e;
  --prose: #3e3730;
  --quiet: #5e554b;
  --edge: #dfd5c5;
  --strong-edge: #a98974;
  --accent: #913e28;
  --link: #843a27;
  --link-hover: #582719;
  --hero-accent: #8b3b26;
  --primary: #8f3d28;
  --primary-hover: #702b1a;
  --primary-text: #fffaf2;
  --focus: #994b34;
  --focus-wash: #994b3420;
  --selection: #eac3ab;
  --selection-text: #3a1d13;
  --tag-text: #68422f;
  --tag-bg: #f3e6da;
  --tag-border: #eeded0;
  --filter-active: #f1dfd0;
  --search-radius: 5px;
  --button-radius: 3px;
  --card-radius: 5px;
  --pill-radius: 4px;
}

.masthead { border-top: 4px solid #8f3d28; }
.header-inner { min-height: 70px; }
.wordmark { font-family: var(--heading); font-size: 1.2rem; letter-spacing: -.028em; }
.brand-mark { border-radius: 5px; background: #923f2a; }
.brand-mark i { width: 14px; height: 2px; margin-top: -10px; position: relative; border-radius: 3px; background: #fff5e4; justify-self: center; transform: translateX(-1px); }
.brand-mark i::before, .brand-mark i::after { content: ''; position: absolute; left: 0; width: 11px; height: 2px; top: 5px; border-radius: 3px; background: #fff5e4; }
.brand-mark i::after { width: 8px; top: 10px; }
.hero { padding-bottom: 3.15rem; }
.hero-grid { grid-template-columns: 1.13fr .92fr; }
.hero-copy .eyebrow span { width: 24px; height: 1px; background: #ad6248; }
.hero-copy h1 { font-weight: 500; font-size: clamp(2.7rem, 5.4vw, 4.75rem); letter-spacing: -.062em; }
.hero-copy h1 span { font-style: italic; }
.hero-media { border: 1px solid #dac8b0; border-radius: 5px; }
.hero-media img { aspect-ratio: 1.39; }
.search-examples a { border-color: #e7d7c6; background: #f4ede0; }
.home-overview { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.1rem); padding-block: 1.8rem 4rem; border-top: 1px solid var(--edge); }
.home-overview h2 { font-weight: 600; }
.home-aside { display: grid; gap: 1.65rem; align-content: start; }
.feature-guide { background: #eee1d0; border: 1px solid #e2cbb8; border-radius: 5px; padding: 1.45rem 1.55rem; }
.feature-guide h2 { font-size: clamp(1.55rem, 3.1vw, 2.15rem); max-width: 15ch; margin: .5rem 0 .6rem; }
.feature-guide p:not(.eyebrow) { color: var(--quiet); margin-bottom: .9rem; }
.aside-links h2 { font-size: 1.45rem; margin-bottom: .25rem; }
.entry-rows { border-top: 1px solid var(--edge); }
.entry-rows .entry-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, auto); grid-template-rows: auto auto; gap: .2rem .9rem; padding: .84rem .3rem .9rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; }
.entry-rows .entry-link:hover { background: #f1e7d8; }
.entry-rows .entry-meta { grid-column: 2; grid-row: 1; margin: 0; justify-content: end; }
.entry-rows .entry-meta .arrow { margin-left: .45rem; }
.entry-rows h3 { grid-column: 1; grid-row: 1; margin: 0; font-weight: 600; font-size: 1.23rem; }
.entry-rows p { grid-column: 1 / -1; grid-row: 2; max-width: 68ch; font-size: .9rem; }
.directory-rows { max-width: 58rem; }
.article-head { background: #f4ecdf; }
.article-head h1, .page-head h1 { font-weight: 500; }
.article-layout { grid-template-columns: minmax(0, 1fr) minmax(225px, 310px); }
.article-sidebar { grid-column: 2; grid-row: 1; }
.article-layout > .article-prose { grid-column: 1; grid-row: 1; }
.article-prose sup a { font-family: var(--body); }
.article-prose .article-section p { line-height: 1.66; }
.quick-facts { background: #f4ebde; }
.quick-facts dt { text-transform: none; font-weight: 650; }
.type-coenzyme, .type-nucleoside { --tag-text: #4a573a; --tag-bg: #eaecdf; --tag-border: #dce1ce; }
.type-small-molecule { --tag-text: #514e69; --tag-bg: #ede9f1; --tag-border: #e0dbe9; }

@media (max-width: 850px) {
  .home-overview { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .hero { padding-bottom: 1.75rem; }
  .hero-copy h1 { font-size: clamp(2.45rem, 9.35vw, 3.45rem); }
  .hero-media img { aspect-ratio: 2 / 1; }
  .home-overview { grid-template-columns: 1fr; gap: 1.65rem; padding-bottom: 2.8rem; }
  .header-inner { min-height: 0; }
}
@media (max-width: 380px) {
  .entry-rows .entry-link { grid-template-columns: minmax(0, 1fr) auto; }
  .entry-rows .entry-meta .arrow { display: none; }
}
