/* Field Notes on Light — a small personal archive */
:root {
  color-scheme: light;
  --paper: #eef1f5;
  --paper-deep: #e2e7ee;
  --ink: #1f3346;
  --muted: #5f6b78;
  --line: #cfd6df;
  --green: #4f6b87;
  --green-dark: #2f4a63;
  --clay: #9c6b4f;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--clay); }
a:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .6rem .9rem; background: var(--ink); color: white; z-index: 5; }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, main, .footer-inner { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand strong { font: 600 1.25rem var(--serif); letter-spacing: -.02em; }
.brand span { color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .35rem; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
.main-nav a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--ink); }
main { padding: 4.5rem 0 6rem; }
.kicker { margin: 0 0 .8rem; color: var(--clay); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
h1 { max-width: 800px; margin: 0; font-size: clamp(2.8rem, 7vw, 5.7rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 4vw, 2.65rem); }
h3 { margin: 0 0 .55rem; font-size: 1.55rem; }
.lead { max-width: 660px; margin: 1.35rem 0 0; color: var(--muted); font: 1.15rem/1.65 var(--serif); }
.hero { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero-copy { padding: 1rem 0; }
.hero-cta { margin-top: 1.8rem; }
.hero-art { margin: 0; padding: 1.15rem; background: var(--paper-deep); border: 1px solid var(--line); }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-note { margin: 1rem 0 0; color: var(--muted); font-size: .76rem; letter-spacing: .04em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin: 5.5rem 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.section-heading p { margin: 0; color: var(--muted); font-size: .87rem; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.note-card { min-height: 220px; padding: 1.65rem 1.75rem 1.8rem; background: var(--paper); display: flex; flex-direction: column; align-items: flex-start; }
.note-card .number { margin: 0 0 1.1rem; color: var(--clay); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.note-card h3 a { color: var(--ink); text-decoration: none; }
.note-card h3 a:hover { color: var(--clay); }
.note-card p:last-child { margin: auto 0 0; padding-top: 1rem; color: var(--muted); font-size: .9rem; }
.text-link { font-size: .85rem; font-weight: 650; }
.page-top { max-width: 780px; margin-bottom: 2.5rem; }
.page-top h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); }
.article-dek { max-width: 700px; margin: 1.3rem 0 0; color: var(--muted); font: 1.2rem/1.65 var(--serif); }
.article-meta { margin: 1.1rem 0 0; color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.article-art { margin: 0 0 3rem; padding: 1rem 1.3rem; background: var(--paper-deep); border: 1px solid var(--line); }
.article-art svg { display: block; width: 100%; height: auto; }
.article-body { max-width: 700px; margin: 0 auto; }
.article-body p { margin: 0 0 1.35rem; font-size: 1.02rem; line-height: 1.9; }
.article-body p:first-child::first-letter { float: left; padding: .08em .12em 0 0; color: var(--green); font: 3.5rem/.8 var(--serif); }
.article-nav { display: flex; justify-content: space-between; gap: 1.5rem; max-width: 700px; margin: 3.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-nav a { max-width: 48%; text-decoration: none; }
.article-nav span { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.article-nav strong { font: 1.1rem var(--serif); }
.article-nav .next { text-align: right; margin-left: auto; }
.about-copy { max-width: 660px; }
.about-copy p { color: var(--muted); font: 1.22rem/1.8 var(--serif); }
.about-mark { max-width: 500px; margin: 3rem 0 0; padding: 1rem; background: var(--paper-deep); border: 1px solid var(--line); }
.about-mark svg { display: block; width: 100%; height: auto; }
.not-found { min-height: 48vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { font-size: clamp(4rem, 12vw, 8rem); }
.not-found p { max-width: 480px; color: var(--muted); font: 1.2rem/1.7 var(--serif); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: .78rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--muted); }
@media (max-width: 760px) {
  .header-inner, main, .footer-inner { width: min(100% - 36px, 620px); }
  .header-inner { min-height: 78px; align-items: flex-start; flex-direction: column; justify-content: center; gap: .75rem; padding: 1rem 0; }
  .main-nav { gap: 1.25rem; }
  main { padding: 3.25rem 0 4.5rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 560px; }
  .section-heading { margin-top: 4rem; align-items: flex-start; flex-direction: column; gap: .35rem; }
  .note-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 185px; }
  .article-art { padding: .55rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: .35rem; padding: 1.4rem 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
