/* Field notes (blog). Same token names as the main pages, so theme.css darkens it too. */
:root {
  --paper: #ffffff; --mist: #f5f5f5; --ink: #1a152e; --stone: #6f6a75; --line: #dbdbdb; --hairline: #dbdbdb;
  --blue: #8f6222; --amber: #ffab4a; --r: 8px; --max: 1100px;
  --display: "Roboto Slab", Roboto, Georgia, "Times New Roman", serif;
  --body: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.shell { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
nav { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.wordmark { font: 700 1.05rem/1.1 var(--display); color: var(--ink); text-decoration: none; }
.wordmark small { display: block; margin-top: 3px; font: 700 .58rem/1 var(--body); letter-spacing: .14em; color: var(--blue); }
.links { display: flex; gap: 22px; margin-left: auto; font-size: .9rem; }
.links a { color: var(--ink); text-decoration: none; padding-block: 10px; }
.links a[aria-current] { color: var(--blue); }

.eyebrow { margin: 0 0 10px; font: 700 .72rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.eyebrow a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; }
.lede { font-size: 1.15rem; color: var(--stone); max-width: 62ch; }

/* index */
.blog-head { padding: 56px 0 24px; }
.blog-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 0 0 12px; max-width: 18ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 80px; }
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; background: var(--paper); transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-3px); border-color: var(--blue); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-body time { font-size: .75rem; color: var(--stone); }
.card-body h2 { font-size: 1.25rem; margin: 6px 0 8px; }
.card-body p { margin: 0; font-size: .92rem; color: var(--stone); }

/* post */
.post { max-width: 760px; padding: 48px 0 80px; }
.post h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 14px; }
.post-hero { margin: 32px 0 36px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .4em; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { font-size: .9rem; color: var(--stone); border-top: 1px solid var(--line); padding-top: 1.2em; margin-top: 2em; }
.sources { margin-top: 40px; padding: 22px 24px; background: var(--mist); border-radius: var(--r); font-size: .86rem; line-height: 1.6; }
.sources h2 { font-size: 1.2rem; margin: 0 0 10px; }
.sources ol { margin: 0; padding-left: 1.2em; }
.sources li { margin-bottom: .6em; overflow-wrap: anywhere; }
.back { margin-top: 32px; }

footer { background: var(--ink); color: #ffffff; padding: 40px 0 28px; text-align: center; }
footer .wordmark { color: #ffffff; }
.made-by { margin: 14px 0 0; font-size: .8rem; opacity: .85; }
.made-by a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; row-gap: 0; padding-block: 8px; }
  .links { order: 3; width: 100%; margin: 0; overflow-x: auto; white-space: nowrap; }
  .post { padding-top: 28px; }
}
