/* Field Notes: the feed, topic pages and note pages. The pages are generated by scripts/build_field_notes.py;
   this stylesheet is hand-written. Fonts, colours and type match the homepage. */
@font-face { font-family: "DM Serif Display"; src: url("/_gfonts/s/dmserifdisplay/v17/-nFnOHM81r4j6k0gjAW3mujVU2B2K_J709jy92k.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 400; }
@font-face { font-family: "DM Serif Display"; src: url("/_gfonts/s/dmserifdisplay/v17/-nFhOHM81r4j6k0gjAW3mujVU2B2G_Vx0vr352np3Q.woff2") format("woff2"); font-display: swap; font-style: italic; font-weight: 400; }
@font-face { font-family: "Inter"; src: url("/_framer/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 400; }
@font-face { font-family: "Inter"; src: url("/_framer/assets/UjlFhCnUjxhNfep4oYBPqnEssyo.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 500; }
@font-face { font-family: "Inter"; src: url("/_framer/assets/syRNPWzAMIrcJ3wIlPIP43KjQs.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 700; }

:root {
  --bg: #f4f0e8; --card: #fffdf7; --panel: #e6e2d9; --line: #ddd7cb;
  --text: #15130f; --muted: #625d52; --accent: #d9ff5a;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 var(--sans); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 680px; }

/* Header and footer */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.logo img { height: 40px; width: auto; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a, .eyebrow, .foot { font-size: 13px; font-weight: 500; line-height: 1.25; letter-spacing: 0.08em; text-transform: uppercase; }
.top nav a { color: #000; text-decoration: none; }
.top nav a:hover { opacity: .6; }
.top nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.top nav a.nav-cta { padding: 11px 18px; border-radius: 999px; background: var(--text); color: var(--bg); }
.top nav a.nav-cta:hover { opacity: .85; }
.foot { border-top: 1px solid var(--line); margin-top: 72px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 40px; }
.foot a { color: var(--muted); }

/* Intro */
.eyebrow { color: var(--muted); margin: 0 0 16px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.intro { padding: 40px 0 28px; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
.intro h1 { font-size: 64px; line-height: .95; letter-spacing: -0.04em; }
.lede { margin: 20px 0 0; font-size: 19px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; background: var(--card); }
.chips a:hover { border-color: var(--text); }
.chips a[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* A note, in the feed and on its own page */
.note { padding: 36px 0 32px; border-top: 1px solid var(--line); }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.byline img { width: 40px; height: 40px; border-radius: 50%; }
.byline span { display: flex; flex-direction: column; line-height: 1.3; }
.byline time { color: var(--muted); }
.byline .tag { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--panel); font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.byline .tag:hover { background: var(--accent); }
.note h2 { margin: 18px 0 10px; font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; }
.note h2 a { text-decoration: none; }
.note h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.body p { margin: 0 0 16px; }
.body ul, .body ol { margin: 0 0 16px; padding-left: 0; list-style: none; }
.body li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.body ul li::before { content: "→"; position: absolute; left: 0; font-weight: 700; }
.body ol { counter-reset: n; }
.body ol li::before { counter-increment: n; content: counter(n) "."; position: absolute; left: 0; font-weight: 700; }
.note-foot { margin: 6px 0 0; font-size: 14px; }
.note-foot a { color: var(--muted); }

/* Call to action between notes and under a note */
.cta { margin: 8px 0 36px; padding: 32px; border-radius: 24px; background: var(--text); color: var(--bg); }
.cta .eyebrow { color: var(--accent); margin-bottom: 10px; }
.cta-line { margin: 0 0 20px; font-family: var(--serif); font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.button { display: inline-flex; padding: 14px 22px; border-radius: 999px; font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: normal; text-decoration: none; }
.button.lime { background: var(--accent); color: var(--text); }
.button:hover { opacity: .9; }

/* Note page */
.crumbs { margin-top: 32px; }
.single { border-top: 0; padding-top: 0; }
.single h1 { margin: 0 0 24px; font-size: 54px; line-height: 1; letter-spacing: -0.035em; }
.summary { margin: 24px 0 28px; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; font-size: 17px; }
.author { display: flex; gap: 18px; align-items: flex-start; margin: 12px 0 32px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); font-size: 16px; }
.author img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.author p { margin: 0 0 8px; }
.author-links { font-size: 14px; color: var(--muted); }
.notes-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 40px; }
.notes-nav a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.notes-nav a span { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.notes-nav a:hover { border-color: var(--text); }
.notes-nav .next { grid-column: 2; text-align: right; }
.notes-nav .prev { grid-column: 1; grid-row: 1; }
.related h2 { font-size: 30px; margin-bottom: 12px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-top: 1px solid var(--line); }
.related a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; text-decoration: none; }
.related strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.related span { font-size: 15px; color: var(--muted); }
.related a:hover strong { text-decoration: underline; }
.back { margin-top: 32px; font-size: 15px; }
.pager { display: flex; justify-content: space-between; padding: 24px 0; font-weight: 700; }

@media (max-width: 640px) {
  .top .wrap { padding-top: 20px; padding-bottom: 20px; }
  .logo img { height: 28px; }
  .top nav { gap: 14px; }
  .top nav a[href="/#services"] { display: none; }
  .top nav a.nav-cta { padding: 9px 14px; }
  .intro h1 { font-size: 44px; }
  .note h2 { font-size: 28px; }
  .single h1 { font-size: 40px; }
  .cta { padding: 26px 22px; }
  .cta-line { font-size: 24px; }
  .notes-nav { grid-template-columns: 1fr; }
  .notes-nav .next, .notes-nav .prev { grid-column: 1; grid-row: auto; text-align: left; }
  .author { flex-direction: column; }
}
