:root {
  --paper: #f5f2eb;
  --surface: #ebe6dc;
  --ink: #1e252b;
  --muted: #667079;
  --line: #cec8bd;
  --blue: #17324d;
  --red: #9a3e32;
  --yellow: #d2a53b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
}
img { display: block; width: 100%; height: auto; background: var(--surface); }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--red); }
.site-header, main, .site-footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 88px; border-bottom: 1px solid var(--line);
}
.site-title { font: 700 1.35rem/1 var(--sans); color: var(--blue); text-decoration: none; letter-spacing: -.03em; }
nav { display: flex; align-items: center; gap: 25px; font: .78rem/1 var(--sans); }
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current="page"], nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }
.home-intro { max-width: 680px; padding: 62px 0 48px; }
.kicker, .section-label {
  margin: 0 0 12px; color: var(--red); font: 700 .68rem/1.3 var(--sans);
  letter-spacing: .13em; text-transform: uppercase;
}
.home-intro h1, .page-header h1, .not-found h1 {
  margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400;
  letter-spacing: -.045em; line-height: 1.02;
}
.home-intro > p:last-child { max-width: 620px; margin: 16px 0 0; color: var(--muted); font-size: 1.08rem; }
.featured {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 50px; align-items: center;
  padding: 38px 0 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.featured-image img { aspect-ratio: 14/8; object-fit: cover; }
.featured h2 { margin: 0 0 15px; font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 400; line-height: 1.05; letter-spacing: -.04em; }
.featured h2 a, .card h3 a, .text-list h3 a, .note h3 a { text-decoration: none; }
.featured div > p:not(.section-label) { color: var(--muted); }
.read-link { font: 700 .77rem/1 var(--sans); color: var(--blue); text-decoration: none; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, .72fr); gap: 75px; padding: 0 0 95px; }
.post-list > h2, .blog-sidebar h2 {
  margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font: 700 .75rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.post-list-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.post-list-item.no-image { grid-template-columns: 1fr; }
.post-list-image img { aspect-ratio: 14/9; height: 100%; object-fit: cover; }
.post-list-item h3 { margin: 4px 0 8px; font-size: 1.65rem; font-weight: 400; line-height: 1.12; }
.post-list-item h3 a { text-decoration: none; }
.post-list-item div > p:not(.section-label) { margin: 0 0 15px; color: var(--muted); font-size: .93rem; }
.all-posts-link { display: inline-block; margin-top: 25px; font: 700 .78rem/1 var(--sans); color: var(--blue); text-decoration: none; }
.blog-sidebar { padding-top: 0; }
.blog-sidebar > section { margin-bottom: 42px; }
.blog-sidebar ul { margin: 12px 0 0; padding: 0; list-style: none; }
.blog-sidebar li { border-bottom: 1px solid var(--line); }
.blog-sidebar li a { display: block; padding: 10px 0; text-decoration: none; }
.sidebar-note { padding: 15px 0; border-bottom: 1px solid var(--line); }
.sidebar-note h3 { margin: 0; font-size: 1.02rem; font-weight: 400; line-height: 1.25; }
.sidebar-note h3 a { text-decoration: none; }
.sidebar-note p, .sidebar-about p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.blog-sidebar .read-link { display: inline-block; margin-top: 18px; }
.home-section { padding: 78px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.section-head h2 { margin: 0; font-size: 1.55rem; font-weight: 400; }
.section-head > a { font: .73rem/1 var(--sans); color: var(--muted); }
.card-grid, .list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.card-image { display: block; margin-bottom: 20px; overflow: hidden; }
.card-image img { aspect-ratio: 3/2; object-fit: cover; transition: transform .3s ease; }
.card-image:hover img { transform: scale(1.015); }
.card h3 { margin: 8px 0 10px; font-size: 1.45rem; font-weight: 400; line-height: 1.15; }
.card > p:last-child { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.split-section { display: grid; grid-template-columns: 1.6fr .8fr; gap: 80px; padding: 70px 0 95px; border-top: 1px solid var(--line); }
.text-list article { display: grid; grid-template-columns: 100px 1fr; gap: 8px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.text-list article > p { grid-row: 1 / span 2; margin: 5px 0 0; color: var(--red); font: 700 .65rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.text-list h3 { margin: 0; font-size: 1.45rem; font-weight: 400; }
.text-list span { color: var(--muted); font-size: .9rem; }
.notebook { align-self: start; padding: 28px; background: var(--surface); border-top: 4px solid var(--yellow); }
.note { padding: 17px 0; border-bottom: 1px solid var(--line); }
.note h3 { margin: 0; font-size: 1.12rem; font-weight: 400; }
.note p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.notebook .read-link { display: inline-block; margin-top: 22px; }
.page-header { max-width: 760px; padding: 88px 0 65px; }
.page-header h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
.page-intro { max-width: 650px; margin-top: 24px; color: var(--muted); font-size: 1.1rem; }
.list-grid { padding-bottom: 100px; grid-template-columns: repeat(3, 1fr); row-gap: 60px; }
.post { padding: 80px 0 100px; }
.post-header { max-width: 870px; margin: 0 auto 52px; text-align: center; }
.post-header h1 { margin: 16px 0 22px; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.standfirst { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.2rem; }
.post-cover { max-width: 1080px; margin: 0 auto 58px; }
.post-cover img { max-height: 720px; object-fit: cover; }
figcaption { margin-top: 9px; color: var(--muted); font: .73rem/1.5 var(--sans); }
.post-body { max-width: 690px; margin: 0 auto; font-size: 1.08rem; }
.post-body > p:first-child::first-letter { float: left; margin: .08em .09em 0 0; color: var(--blue); font-size: 4.2rem; line-height: .78; }
.post-body h2 { margin: 2.2em 0 .6em; font-size: 2rem; font-weight: 400; line-height: 1.1; }
.post-body blockquote { margin: 2.2em 0; padding: 5px 0 5px 25px; border-left: 3px solid var(--yellow); color: var(--muted); font-size: 1.2rem; }
.post-body hr { margin: 3em 0; border: 0; border-top: 1px solid var(--line); }
.post-body li { margin-bottom: .45em; }
.post-footer { max-width: 690px; margin: 70px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font: .75rem/1.4 var(--sans); }
.writing-group { padding: 10px 0 55px; }
.compact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; }
.compact-list a { display: flex; flex-direction: column; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.compact-list small { margin-top: 4px; color: var(--muted); font: .77rem/1.4 var(--sans); }
.simple-page { max-width: 900px; margin-inline: auto; }
.simple-page .post-header { text-align: left; margin-left: 0; }
.simple-page .post-header h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.not-found { padding: 120px 0 180px; }
.not-found p:not(.kicker) { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; padding: 28px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font: .72rem/1.4 var(--sans); }
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 22px; }

@media (max-width: 900px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 1160px); }
  .nav-toggle { display: block; border: 0; padding: 8px 0; background: transparent; color: var(--ink); font: .75rem var(--sans); }
  nav { display: none; position: absolute; z-index: 10; top: 72px; right: 16px; flex-direction: column; align-items: flex-start; gap: 0; width: 190px; padding: 12px 20px; background: var(--paper); border: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 11px 0; }
  .featured { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .list-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 50px; }
  .blog-layout { grid-template-columns: 1fr; gap: 55px; }
  .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
  .blog-sidebar > section { margin: 0; }
}
@media (max-width: 580px) {
  .home-intro { padding: 65px 0; }
  .featured { gap: 28px; }
  .home-section { padding: 60px 0; }
  .card-grid, .list-grid, .compact-list { grid-template-columns: 1fr; }
  .text-list article { grid-template-columns: 1fr; }
  .text-list article > p { grid-row: auto; }
  .post { padding-top: 55px; }
  .post-header { text-align: left; }
  .post-header h1 { font-size: 3.1rem; }
  .standfirst { font-size: 1.05rem; }
  .post-footer, .site-footer { flex-direction: column; gap: 12px; }
  .post-list-item { grid-template-columns: 1fr; gap: 18px; }
  .post-list-image img { aspect-ratio: 3/2; }
  .blog-sidebar { display: block; }
  .blog-sidebar > section { margin-bottom: 38px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171b1e; --surface: #22282c; --ink: #e9e5dc; --muted: #a9afb2;
    --line: #383f43; --blue: #a9c8e5; --red: #e18375; --yellow: #d2a53b;
  }
}
