/* Shared by every page. Change the colors, fonts, and spacing here. */
:root {
  --paper: #f6f3eb;
  --card: #fffdf8;
  --ink: #25362f;
  --muted: #616e65;
  --green: #294e43;
  --rust: #965137;
  --line: #d4d9cc;
  --width: 1080px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--green); text-underline-offset: 4px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
h1 { margin: 0; font-size: clamp(2.6rem, 5.5vw, 4.6rem); letter-spacing: -.045em; }
h2 { margin: 0 0 16px; font-size: 2rem; letter-spacing: -.025em; }
h3 { margin: 0 0 12px; font-size: 1.5rem; }
p { margin: 0 0 20px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 32px 0; }
figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; }
.wrap { width: min(var(--width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--card); }
.skip-link:focus { top: 12px; z-index: 1; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.wordmark { font: 1.3rem Georgia, serif; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-nav a { font-size: .9rem; text-decoration: none; }
.site-nav a[aria-current] { color: var(--rust); text-decoration: underline; }
.page-header { padding: 58px 0 38px; }
.page-header .meta { margin: 18px 0 0; }
.prose { max-width: 740px; font-size: 1.06rem; overflow-wrap: anywhere; }
.prose h2 { margin-top: 36px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 24px 0; padding-left: 24px; border-left: 3px solid var(--green); }
.meta { color: var(--muted); font-size: .85rem; }
.section-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.section-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 24px; border-right: 1px solid var(--line); text-decoration: none; font: 1.75rem Georgia, serif; }
.section-links a:last-child { border-right: 0; }
.section-links a:hover { background: var(--card); }
.section-links .arrow { color: var(--rust); font: 1.15rem system-ui, sans-serif; }
.idea { max-width: 740px; margin-top: 40px; }
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.entry-list li:first-child { border-top: 1px solid var(--line); }
.entry-list a { font: 1.6rem/1.3 Georgia, serif; text-decoration: none; overflow-wrap: anywhere; }
.entry-list a:hover { text-decoration: underline; }
.entry-list time { flex-shrink: 0; color: var(--muted); font-size: .85rem; }
.back-link { display: inline-block; margin-top: 26px; font-size: .85rem; }
.back-link + article .page-header { padding-top: 28px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.gallery figure { margin: 0; }
.site-footer { margin-top: 72px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer p { margin: 0; }

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .page-header { padding: 40px 0 30px; }
  .section-links { grid-template-columns: 1fr; }
  .section-links a { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .section-links a:last-child { border-bottom: 0; }
  .entry-list li { flex-direction: column; gap: 6px; }
  .gallery { grid-template-columns: 1fr; }
  .site-footer { margin-top: 56px; }
}
