:root {
  --paper: #eee9dc;
  --paper-light: #f8f5ec;
  --ink: #27271f;
  --muted: #5a584f;
  --green: #3e5743;
  --rust: #934328;
  --line: #bab4a5;
  font-family: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; border-radius: 1px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .65rem .85rem;
  color: var(--paper-light);
  background: var(--ink);
  font: 700 .8rem/1 Arial, sans-serif;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  font-family: Arial, sans-serif;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.brand img { width: 3rem; height: 3rem; border: 1px solid var(--ink); border-radius: 50%; object-fit: cover; }
nav { display: flex; gap: clamp(.9rem, 3vw, 1.6rem); }
nav a, .read-more, .archive-link a, .entry-navigation a {
  font: 700 .75rem/1.2 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
}
nav a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }

main { width: min(1180px, calc(100% - 2.5rem)); margin: auto; }
.hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 82vh; padding: clamp(3rem, 8vw, 7rem) 0; }
.portrait { margin: 0; transform: rotate(-1.2deg); }
.portrait img { display: block; width: 100%; height: auto; filter: saturate(.78) contrast(.96); border: 10px solid var(--paper-light); box-shadow: 0 12px 35px rgba(44, 40, 30, .2); }
.portrait figcaption { width: 90%; margin: .8rem auto 0; color: var(--muted); font-size: .82rem; font-style: italic; line-height: 1.45; }
.kicker, .date { color: var(--rust); font: 700 .7rem/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .14em; }
h1 { margin: 1.2rem 0 2rem; font-size: clamp(3.2rem, 6vw, 6rem); font-weight: 400; line-height: .92; letter-spacing: -.055em; }
.intro > p:last-child { max-width: 31rem; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }

.notes { border-top: 3px double var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding: 2.25rem 0 1rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; }
.entry-card { display: grid; grid-template-columns: minmax(145px, 200px) minmax(220px, 1fr) minmax(260px, 1fr); gap: clamp(1.2rem, 4vw, 4rem); padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.entry-card .date { margin: .35rem 0 0; }
.entry-card h2, .entry-card h3 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3.15rem); line-height: 1.02; font-weight: 400; letter-spacing: -.04em; }
.entry-card h2 a, .entry-card h3 a { color: var(--ink); text-decoration: none; }
.entry-card h2 a:hover, .entry-card h3 a:hover { color: var(--green); text-decoration: underline; }
.entry-card > p:nth-child(3) { margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.entry-card .read-more { grid-column: 3; justify-self: start; }
.archive-link { margin: 0; padding: 2.25rem 0 4.5rem; text-align: right; }

.page-header { max-width: 860px; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.page-header h1 { margin-bottom: 1.3rem; }
.page-header .standfirst { max-width: 42rem; color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.archive-list { border-top: 3px double var(--line); padding-bottom: 5rem; }
.archive-list .entry-card:last-child { border-bottom: 0; }

.entry { width: min(760px, 100%); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 0 5rem; }
.entry-header { padding-bottom: 2rem; border-bottom: 3px double var(--line); }
.entry-header h1 { margin-bottom: 1.4rem; font-size: clamp(3rem, 7.5vw, 6.2rem); }
.entry-deck { max-width: 42rem; margin: 0; color: var(--muted); font-size: clamp(1.12rem, 2.5vw, 1.35rem); line-height: 1.55; }
.entry-body { padding-top: 2rem; font-size: clamp(1.08rem, 2vw, 1.22rem); line-height: 1.8; }
.entry-body p { margin: 0 0 1.45em; }
.entry-body p:first-child::first-letter { float: left; margin: .08em .1em 0 0; color: var(--rust); font-size: 4.2em; line-height: .75; }
.entry-signoff { width: 10rem; margin: 3.5rem 0 0 auto; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-style: italic; text-align: right; }
.entry-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.entry-navigation a:last-child { text-align: right; }
.entry-navigation .empty { visibility: hidden; }

footer { padding: 1.5rem; border-top: 1px solid var(--line); color: #686459; text-align: center; font: .75rem Arial, sans-serif; }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .intro { grid-row: 1; }
  .portrait { grid-row: 2; }
  .entry-card { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .entry-card .date { grid-column: 1 / -1; }
  .entry-card > p:nth-child(3) { grid-column: 2; }
  .entry-card .read-more { grid-column: 2; }
}

@media (max-width: 540px) {
  .site-header { align-items: flex-start; }
  .brand span { max-width: 5rem; line-height: 1.05; }
  nav { padding-top: 1rem; }
  main { width: min(100% - 2rem, 1180px); }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .hero { padding-top: 4rem; }
  .section-heading { display: block; }
  .entry-card { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .entry-card .date, .entry-card > p:nth-child(3), .entry-card .read-more { grid-column: 1; }
  .archive-link { text-align: left; }
  .entry-navigation { grid-template-columns: 1fr; }
  .entry-navigation a:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
