/* =========================================================================
   Zhenan Shao — site styles

   Structure (search for the all-caps banners to jump):
     TOKENS        design tokens (colors, spacing, typography)
     RESET         modern minimal reset
     BASE          element defaults
     LAYOUT        page grid + max-widths
     NAV           fixed top nav (left group + right CTA)
     BIO CARD      sticky left profile column
     SECTIONS      home page sections
     PUB LIST      publication rendering
     CV            CV rendering (awards + experiences)
     BLOG LIST     /blog/ list page
     POST          single blog post page
     NOTICES       {: .notice--info } etc. from kramdown IAL
     FOOTER        site-wide footer
     RESPONSIVE    mobile layout

   Quick-tune cheatsheet:
     – Bio avatar size:         .bio-card__avatar { max-width: N }        (see BIO CARD)
     – Page content width:      --max-page  and  --col-main               (see TOKENS)
     – Accent color:            --accent  and  --accent-soft              (see TOKENS)
     – Nav height/font:         --nav-pad-y, --fs-nav                     (see TOKENS)
     – Space under nav:         --nav-top-offset                          (see TOKENS)
     – Font family (whole site): --font-serif  (and --font-sans)          (see TOKENS)
   ========================================================================= */


/* ---------- TOKENS ---------- */
:root {
  --bg:            #fafaf7;
  --fg:            #111111;
  --fg-muted:      #4a4a4a;
  --fg-soft:       #4a4a4a;
  --rule:          #e4e1d8;
  --card-bg:       #ffffff;
  --code-bg:       #f2efe6;

  /* Accent = warm terracotta. Used for headings, links (on hover), tags, Blog CTA, rules. */
  --accent:        #9c4a2a;
  --accent-hover:  #7d3a20;
  --accent-soft:   #f3e8df;   /* pale wash for tag backgrounds, subtle highlights */
  --accent-ring:   rgba(156, 74, 42, 0.22);

  --link:          #111111;
  --link-hover:    var(--accent);

  --notice-info-bg:     #eef4fb;
  --notice-info-border: #3b6fb5;
  --notice-warn-bg:     #fbf5ea;
  --notice-warn-border: #b8863a;
  --notice-danger-bg:   #fbeeec;
  --notice-danger-border:#b34a3a;

  /* Inter is loaded as a web font in base.njk (Google Fonts) and used across
     the whole site. The system-ui chain after it kicks in if the web font
     hasn't loaded yet (e.g., offline first paint). To swap typefaces later,
     change --font-serif and --font-sans together — both currently point at
     the same stack since the design uses one face throughout. */
  --font-serif: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans:  Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  --fs-body:     1.0625rem;   /* 17px */
  --fs-small:    0.875rem;
  --fs-micro:    0.8125rem;
  --fs-nav:      1rem;        /* nav tab label size */
  --lh-body:     1.65;

  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;

  --max-page:    1200px;                /* overall page width */
  --col-bio:     minmax(240px, 280px);  /* left sticky column */
  --col-main:    minmax(0, 880px);      /* right content column — wider than pure ~68ch for readability */
  --gap-cols:    5rem;

  --nav-pad-y:   0.8rem;               /* tune to make the nav bar taller/shorter */
  --nav-pad-x:   2.25rem;

  /* ==== TUNE NAV-TO-CONTENT SPACING HERE ==== */
  /* Distance from the top of the page (under the fixed nav) to where content starts.
     Increase for more breathing room, decrease to tighten things up.
     Common values: 5.5rem (snug), 7rem (default), 9rem (spacious). */
  --nav-top-offset: 8rem;
  /* ========================================== */
}


/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
ol, ul { list-style: none; padding: 0; margin: 0; }


/* ---------- BASE ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 var(--s-4); }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
pre {
  background: var(--code-bg);
  padding: var(--s-4);
  overflow-x: auto;
  border-radius: 4px;
  font-size: var(--fs-small);
  line-height: 1.55;
  margin: var(--s-5) 0;
}
pre code { background: transparent; padding: 0; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--s-6) 0;
}

blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-3) var(--s-5);
  border-left: 3px solid var(--rule);
  color: var(--fg-soft);
}
blockquote > p:last-child { margin-bottom: 0; }

::selection { background: var(--accent-soft); }


/* ---------- LAYOUT ---------- */
.layout {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: var(--nav-top-offset) var(--s-7) var(--s-8);
  flex: 1 0 auto;
}

.layout--two-col {
  display: grid;
  grid-template-columns: var(--col-bio) minmax(0, 1fr);
  gap: var(--gap-cols);
  align-items: start;
}

.layout--single {
  max-width: 900px;
}

.main { min-width: 0; }


/* ---------- NAV ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--nav-pad-y) var(--nav-pad-x);
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-nav__group {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.site-nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav__logo img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-family: var(--font-sans);
  font-size: var(--fs-nav);
}
.site-nav__list a {
  text-decoration: none;
  color: var(--fg-soft);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav__list a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

/* Blog CTA — bordered button to accentuate the blog link */
.site-nav__cta {
  display: inline-block;
  padding: 0.4rem 1rem !important;
  border: 1.5px solid var(--accent) !important;
  border-radius: 999px;
  color: var(--accent) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.site-nav__cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
  border-bottom-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-ring);
}


/* ---------- BIO CARD ---------- */
.bio-card {
  position: sticky;
  top: calc(var(--nav-top-offset) + var(--s-2));
  align-self: start;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--fg-soft);
}

/* ==== TUNE AVATAR SIZE HERE ==== */
/* Change `max-width` to make the picture bigger/smaller.
   Common values: 140px (small), 180px (medium), 220px (large). */
.bio-card__avatar {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 0 var(--s-5);
  display: block;
}
/* =============================== */

.bio-card__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 var(--s-1);
  letter-spacing: -0.01em;
}

.bio-card__pronouns {
  font-size: var(--fs-micro);
  color: var(--fg-muted);
  margin: 0 0 var(--s-3);
}

.bio-card__role {
  color: var(--fg-soft);
  margin: 0 0 var(--s-4);
}

.bio-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-2);
  color: var(--fg-muted);
}
.bio-card__meta a {
  color: var(--fg-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.bio-card__meta a:hover { color: var(--accent); border-color: currentColor; }

.bio-card__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--fg-muted);
}

.bio-card__socials {
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.bio-card__socials a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--fg-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  width: fit-content;
}
.bio-card__socials a:hover { color: var(--accent); }
.bio-card__socials a:hover .bio-card__icon { color: var(--accent); }


/* ---------- SECTIONS ---------- */
.section {
  scroll-margin-top: calc(var(--nav-top-offset) + 1rem);
  padding: var(--s-7) 0 var(--s-5);
  border-top: 1px solid var(--rule);
}
.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.section__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 var(--s-5);
  letter-spacing: 0;
  position: relative;
  padding-left: var(--s-4);
}
.section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  bottom: 0.25em;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section__body a { color: var(--link); }
.section__body a:hover { color: var(--accent); }


/* ---------- NEWS ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.news-list__item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--s-4);
  align-items: baseline;
}
.news-list__label {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}
.news-list__text { color: var(--fg); }


/* ---------- PUB LIST ---------- */
.pub-cat__title {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--s-6) 0 var(--s-4);
  font-weight: 700;
}
.pub-cat__title:first-child { margin-top: 0; }

.pub-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.pub-list__item {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.pub-list__title {
  margin: 0;
  font-weight: 500;
  color: var(--fg);
}
.pub-list__title a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.pub-list__title a:hover { border-color: currentColor; color: var(--accent); }

.pub-list__meta {
  margin: 0;
  color: var(--fg-soft);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.pub-list__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-2) 0 0;
}

/* Resource pills — one consistent color per resource type. Tweak any of the
   five .pub-link--* blocks below to recolor; the layout is the same for all. */
.pub-link {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pub-link:hover { filter: brightness(0.97); }

.pub-link--paper  { color: #245a78; background: #e6f0f5; border-color: rgba(36, 90, 120, 0.22); }
.pub-link--code   { color: #2c6b3b; background: #e8f2eb; border-color: rgba(44, 107, 59, 0.22); }
.pub-link--poster { color: #6b3e8a; background: #f0e8f5; border-color: rgba(107, 62, 138, 0.22); }
.pub-link--slides { color: #8a5a25; background: #f6efe2; border-color: rgba(138, 90, 37, 0.22); }
.pub-link--talk   { color: #9c3e4a; background: #f5e6ea; border-color: rgba(156, 62, 74, 0.22); }

.pub-link--paper:hover  { color: #245a78; }
.pub-link--code:hover   { color: #2c6b3b; }
.pub-link--poster:hover { color: #6b3e8a; }
.pub-link--slides:hover { color: #8a5a25; }
.pub-link--talk:hover   { color: #9c3e4a; }


/* ---------- ABOUT (intro + download + divider + education/interests grid) ---------- */
.about__divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--s-6) 0 var(--s-6);
}

.about__grid {
  display: grid;
  /* Education is wider than Interests. Tweak the ratio (e.g., 3fr 2fr,
     5fr 3fr, 1.5fr 1fr) to change the relative widths. */
  grid-template-columns: 2fr 1fr;
  gap: var(--s-7);
  align-items: start;
}

/* ==== TUNE EDUCATION DEGREE FONT SIZE HERE ==== */
/* `cv-list__line` is the bold degree name. `cv-list__meta` is the institution + years line.
   Common values: 0.95rem (subtle), 1rem (default), 1.0625rem (matches body), 1.15rem (large). */
.education .cv-list__line { font-size: 0.95rem; }
.education .cv-list__meta { font-size: 0.85rem; }
/* =============================================== */

/* Interests list: same visual weight as Education, simple accent bullets. */
.interests-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.interests-list li {
  color: var(--fg);
  font-size: var(--fs-small);
  line-height: 1.5;
  padding-left: var(--s-4);
  position: relative;
}
.interests-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}


/* ---------- CV (awards + experiences) ---------- */
.cv__download { margin: 0 0 var(--s-6); }
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--accent);
  background: var(--card-bg);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  font-weight: 500;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.cv__section-title {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--s-6) 0 var(--s-4);
  font-weight: 700;
}
.cv__section-title:first-of-type { margin-top: 0; }

.cv-list { display: flex; flex-direction: column; gap: var(--s-4); }
.cv-list--flat { gap: var(--s-2); }
/* Tighter variant used by Education — degree and institute lines hug each other. */
.cv-list--compact { gap: var(--s-3); }
.cv-list--compact .cv-list__item { gap: 0; }
.cv-list--compact .cv-list__line { line-height: 1.3; }
.cv-list--compact .cv-list__meta { line-height: 1.3; }

.cv-list__item { display: flex; flex-direction: column; gap: var(--s-1); }
.cv-list__line { margin: 0; color: var(--fg); }
.cv-list__meta {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--fs-small);
}
.cv-list__bullets {
  margin: var(--s-2) 0 0;
  padding-left: var(--s-4);
  list-style: disc;
  color: var(--fg-soft);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.cv-list__bullets li { margin-bottom: var(--s-1); }
.cv-list--flat li {
  color: var(--fg-soft);
  font-size: var(--fs-small);
  padding-left: var(--s-4);
  position: relative;
}
.cv-list--flat li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Awards — rendered at body font size (same visual weight as News text). */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.awards-list li {
  color: var(--fg);
  font-size: var(--fs-body);
  line-height: 1.55;
  padding-left: var(--s-5);
  position: relative;
}
.awards-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.9em;
}


/* ---------- PAGE HEADER (blog list) ---------- */
.page-header {
  margin: 0 0 var(--s-7);
}
.page-header__title {
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0 0 var(--s-2);
  letter-spacing: -0.01em;
}
.page-header__subtitle {
  color: var(--fg-muted);
  font-size: var(--fs-body);
  margin: 0;
}


/* ---------- BLOG LIST ---------- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
}
.post-list__item {
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.post-list__item:last-child { border-bottom: none; }

.post-list__meta {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  color: var(--fg-muted);
  margin: 0 0 var(--s-2);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.post-list__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}
.post-list__title a {
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid transparent;
}
.post-list__title a:hover { color: var(--accent); border-color: currentColor; }

.post-list__excerpt {
  color: var(--fg-soft);
  margin: 0 0 var(--s-4);
  font-size: 1rem;
  line-height: 1.6;
}

.post-list__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
}
.post-list__tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--accent-ring);
}


/* ---------- POST ---------- */
.post {
  padding-top: var(--s-4);
}
.post__back {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  color: var(--accent);
  text-decoration: none;
}
.post__back:hover { color: var(--accent-hover); }

.post__title {
  font-size: 2.1rem;
  font-weight: 600;
  margin: var(--s-4) 0 var(--s-3);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.post__meta {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  color: var(--fg-muted);
  margin: 0 0 var(--s-4);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.post__tags { font-style: italic; }

.post__body {
  font-size: 1.0625rem;
  line-height: 1.75;
}
.post__body > *:first-child { margin-top: 0; }
.post__body a { color: var(--accent); }
.post__body a:hover { color: var(--accent-hover); }
.post__body h1,
.post__body h2,
.post__body h3,
.post__body h4 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
}
.post__body img {
  margin: var(--s-5) auto;
  border-radius: 4px;
}


/* ---------- NOTICES (kramdown IAL) ---------- */
blockquote.notice,
blockquote.notice--info,
blockquote.notice--primary,
blockquote.notice--warning,
blockquote.notice--danger,
blockquote.notice--success {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--notice-info-border);
  background: var(--notice-info-bg);
  color: var(--fg);
  border-radius: 0 4px 4px 0;
  font-size: 0.98em;
}
blockquote.notice--warning {
  border-left-color: var(--notice-warn-border);
  background: var(--notice-warn-bg);
}
blockquote.notice--danger {
  border-left-color: var(--notice-danger-border);
  background: var(--notice-danger-bg);
}
blockquote.notice--info p:last-child,
blockquote.notice--warning p:last-child,
blockquote.notice--danger p:last-child,
blockquote.notice--success p:last-child,
blockquote.notice--primary p:last-child,
blockquote.notice p:last-child { margin-bottom: 0; }


/* ---------- FOOTER ---------- */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--rule);
  padding: var(--s-5) var(--s-7);
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  color: var(--fg-muted);
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.site-footer a:hover { color: var(--accent); border-color: currentColor; }


/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  :root {
    --gap-cols: 3rem;
    --col-bio: minmax(220px, 250px);
  }
  .layout { padding-left: var(--s-6); padding-right: var(--s-6); }
}

@media (max-width: 900px) {
  :root {
    --fs-body: 1rem;
    --fs-nav:  0.95rem;
    --nav-pad-y: 0.9rem;
    --nav-pad-x: 1.25rem;
    --nav-top-offset: 4.5rem;
  }

  .layout { padding: calc(var(--nav-top-offset) + 1rem) var(--s-5) var(--s-7); }
  .layout--two-col {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .bio-card {
    position: static;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: var(--s-4);
    align-items: center;
    padding-bottom: var(--s-5);
    border-bottom: 1px solid var(--rule);
  }
  .bio-card__avatar {
    width: 96px;
    max-width: 96px;
    margin: 0;
  }
  .bio-card__name { font-size: 1.25rem; }
  .bio-card__meta { grid-column: 1 / -1; }
  .bio-card__socials {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-4);
  }

  .site-nav__group { gap: var(--s-4); }
  .site-nav__list { gap: var(--s-4); }

  .news-list__item {
    grid-template-columns: 1fr;
    gap: var(--s-1);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .post-list__title { font-size: 1.25rem; }
  .post__title { font-size: 1.6rem; }
}

@media (max-width: 640px) {
  :root {
    --fs-nav:  0.875rem;
    --nav-pad-x: 0.9rem;
  }
  .site-nav__group { gap: var(--s-3); }
  .site-nav__list { gap: var(--s-3); }
  .site-nav__logo img { width: 28px; height: 28px; }
  .site-nav__cta { padding: 0.3rem 0.75rem !important; }
}
