:root {
  color-scheme: light;
  --ink: #183346;
  --muted: #627b89;
  --blue: #2f89b7;
  --line: #cbdce3;
  --paper: #fffdfa;
  --ground: #e9f0f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ground); font: 16px/1.65 Georgia, 'Times New Roman', serif; }
a { color: #176c97; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: #0b4e72; }
img { max-width: 100%; height: auto; }
.page { max-width: 1140px; margin: 0 auto; min-height: 100vh; background: #f8fbfb; box-shadow: 0 0 0 1px #d7e4e9, 0 18px 60px #25485d1c; }
.site-header { padding: 24px 30px 0; background: #f8fbfb; }
.site-header img { display: block; width: 100%; max-width: 950px; margin: 0 auto; border-radius: 18px; }
.intro { display: flex; justify-content: space-between; gap: 48px; padding: 49px 60px 45px; border-bottom: 1px solid var(--line); }
.eyebrow, .aside-label { margin: 0 0 8px; font: 700 11px/1.4 Arial, sans-serif; text-transform: uppercase; letter-spacing: .16em; color: #467e98; }
.intro h1 { margin: 0 0 12px; font: 700 clamp(2.6rem, 6vw, 4.4rem)/1.04 Georgia, serif; letter-spacing: -.045em; }
.lede { max-width: 650px; margin: 0; color: #4a6776; font-size: 1.17rem; line-height: 1.65; }
.archive-stamp { align-self: center; display: flex; flex: 0 0 190px; flex-direction: column; align-items: center; padding: 26px 14px; border: 1px solid #9bbdce; border-radius: 50%; aspect-ratio: 1; transform: rotate(7deg); text-align: center; color: #2c7093; background: #e8f3f7; font-family: Arial, sans-serif; }
.archive-stamp strong { font-size: 2.55rem; line-height: 1.05; }
.archive-stamp span { max-width: 125px; font-size: .82rem; font-weight: 700; line-height: 1.3; }
.archive-stamp small { margin-top: 7px; max-width: 128px; font-size: .69rem; line-height: 1.3; }
.archive-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding: 42px 60px 80px; }
.sidebar { position: sticky; top: 20px; align-self: start; font-family: Arial, sans-serif; }
.sidebar label { display: block; margin-bottom: 9px; color: #36596d; font-size: .82rem; font-weight: 700; }
.sidebar input { width: 100%; border: 1px solid #a7c4d1; border-radius: 5px; background: white; padding: 11px 12px; color: var(--ink); font: 14px Arial, sans-serif; outline-color: var(--blue); }
.sidebar .aside-label { margin-top: 32px; }
.year-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.year-nav a { padding: 3px 8px; border: 1px solid #b8cfd9; border-radius: 3px; background: #eef7fa; font-size: .8rem; text-decoration: none; }
.key { display: flex; flex-direction: column; gap: 5px; margin-top: 29px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.sidebar-note { margin-top: 25px; color: #6b8491; font-size: .78rem; line-height: 1.55; }
.year-section { margin-bottom: 48px; scroll-margin-top: 24px; }
.year-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--blue); }
.year-heading h2 { margin: 0 0 3px; font: 700 2rem/1.2 Georgia, serif; letter-spacing: -.04em; }
.year-heading span { color: var(--muted); font: 12px Arial, sans-serif; }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li { display: grid; grid-template-columns: 93px minmax(0, 1fr) 20px; gap: 10px; align-items: baseline; padding: 11px 2px; border-bottom: 1px solid #dce7eb; }
.post-list li[hidden], .year-section[hidden] { display: none; }
.post-list time { color: #718895; font: 11px Arial, sans-serif; white-space: nowrap; }
.post-list a { font-size: 1.02rem; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.status { color: #82a4b6; font-size: .8rem; text-align: right; }
#no-results { color: var(--muted); }
.top-nav { display: flex; justify-content: space-between; gap: 20px; padding: 17px 60px; border-bottom: 1px solid var(--line); color: var(--muted); font: 12px Arial, sans-serif; }
.top-nav a { font-weight: 700; text-decoration: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 40px; padding: 45px 60px 35px; }
.paper { min-width: 0; }
.paper h1 { margin: 5px 0 35px; font: 700 clamp(2.3rem, 5vw, 3.5rem)/1.13 Georgia, serif; letter-spacing: -.035em; }
.article-body { overflow-wrap: anywhere; color: #243c49; font-size: 1.1rem; line-height: 1.72; }
.article-body p { margin: 0 0 1.25em; }
.article-body img { display: block; margin: 18px 0; max-width: 100%; height: auto; border: 1px solid #d3e0e5; background: #e8eef0; }
.article-body a:has(img) { display: inline-block; max-width: 100%; }
.article-body blockquote { margin: 1.4em 0; padding: .1em 0 .1em 1.3em; border-left: 3px solid #75aacc; color: #476474; }
.article-body pre { overflow-x: auto; padding: 15px; background: #eaf2f5; font-size: .85rem; }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.source-note { margin-top: 55px; padding: 19px 0; border-top: 1px solid var(--line); color: #6a808d; font: 12px/1.6 Arial, sans-serif; }
.article-aside { align-self: start; padding: 19px 0 0 18px; border-left: 1px solid var(--line); color: #6b8290; font: 12px/1.65 Arial, sans-serif; }
.article-aside p { margin-top: 0; }
.article-pagination { display: flex; justify-content: space-between; gap: 22px; margin: 0 60px 55px; padding-top: 25px; border-top: 1px solid var(--line); font: 12px/1.4 Arial, sans-serif; }
.article-pagination a { max-width: 34%; text-decoration: none; }
footer { padding: 22px 60px 30px; border-top: 1px solid var(--line); color: #768e9a; font: 12px/1.5 Arial, sans-serif; }

@media (max-width: 760px) {
  .site-header { padding: 12px 12px 0; }
  .site-header img { border-radius: 11px; }
  .intro { padding: 32px 24px; gap: 20px; }
  .archive-stamp { flex-basis: 128px; padding: 17px 8px; }
  .archive-stamp strong { font-size: 1.9rem; }
  .archive-stamp span { font-size: .65rem; }
  .archive-stamp small { font-size: .55rem; }
  .archive-layout { display: block; padding: 26px 24px 55px; }
  .sidebar { position: static; margin-bottom: 35px; }
  .sidebar-note { display: none; }
  .year-nav { max-width: 100%; }
  .key { margin-top: 15px; padding-top: 12px; }
  .top-nav { padding: 13px 24px; }
  .article-layout { display: block; padding: 30px 24px; }
  .article-aside { margin-top: 30px; }
  .article-pagination { margin: 0 24px 32px; }
  footer { padding: 18px 24px 25px; }
}
@media (max-width: 500px) {
  .intro { display: block; }
  .archive-stamp { display: none; }
  .post-list li { grid-template-columns: 75px minmax(0, 1fr) 14px; gap: 7px; }
  .post-list time { font-size: 10px; }
  .post-list a { font-size: .94rem; }
  .article-pagination a { max-width: 40%; }
}
