/* AAG Advisors, Field Journal: field notes (index + one page per note).
   Base tokens, nav, buttons, plates and footer mirror the home page; the article styles are below. */
:root {
  --paper: #F6F7EE;
  --paper-2: #FBFBF6;
  --ink: #17201B;
  --ink-2: #59635C;
  --ink-3: #6A736A;
  --ever: #1C4A3B;
  --ever-deep: #0F2A21;
  --leaf: #7DA84A;
  --lichen: #BCD58C;
  --lichen-wash: #E4EDCF;
  --moss: #4A7430;
  --stone: #E7E9DC;
  --stone-2: #DDE1D0;
  --rule: #D6DACA;
  --sand: #E3D3B5;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ever); outline-offset: 3px; }
img { max-width: 100%; display: block; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: 1232px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.mono { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-variation-settings: "wdth" 100; font-weight: 400; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ever); letter-spacing: -.01em; font-size: 1.06em; }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; margin: 0; text-wrap: balance; }

/* top bar + nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 51; background: var(--lichen); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.bar { background: var(--lichen); color: var(--ink); font-size: 14.5px; text-align: center; padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bar a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bar .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; margin-right: 8px; color: var(--ever); }
.nav { background: rgba(246, 247, 238, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav .in { max-width: 1232px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 11px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .nav .in { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.brand { display: block; line-height: 0; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links > a:not(.btn) { text-decoration: none; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links > a:not(.btn):hover, .nav-links > a[aria-current] { color: var(--moss); }
@media (max-width: 900px) { .nav-links > a:not(.btn) { display: none; } }
.nav-sep { width: 1px; height: 14px; background: var(--rule); flex: none; }
.nav-links > a.nav-page { color: var(--moss); }
.nav-links > a.nav-page:hover, .nav-links > a.nav-page[aria-current] { color: var(--ever); }
.nav-links > a.nav-page[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 900px) { .nav-sep { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 16px 18px; border: 0; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.btn svg { width: 11px; height: 11px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-primary { background: var(--ever); color: var(--paper-2); }
.btn-primary:hover { background: var(--ever-deep); }
.btn-ghost { background: var(--stone); color: var(--ink); }
.btn-ghost:hover { background: var(--stone-2); }
.btn-sm { padding: 10px 12px; font-size: 9.5px; gap: 10px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--moss); }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--lichen); box-shadow: inset 0 0 0 1px rgba(74, 116, 48, .45); }
.eyebrow b { font-weight: 400; color: var(--ink-3); }

/* plates (painted by plates.js) */
.plate { position: relative; margin: 0; overflow: hidden; isolation: isolate; background: #C8D3BF; }
.plate > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plate > canvas.scene { z-index: -2; }
.plate > canvas.blades { z-index: -1; }
.plate .tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--paper-2); color: var(--ink); padding: 5px 7px; font-size: 8.5px; }
.plate-3x2 { aspect-ratio: 3 / 2; }
.plate-strip { aspect-ratio: 16 / 6; }
@media (max-width: 640px) { .plate-strip { aspect-ratio: 16 / 9; } }

/* ---------- one note ---------- */
.note-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px clamp(28px, 4.5vw, 64px); }
.note-head .back { grid-column: 1; align-self: start; text-decoration: none; color: var(--ink-3); padding-top: 8px; }
.note-head .back:hover { color: var(--moss); }
.note-head .titles { grid-column: 2; display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 860px; }
.note-head h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.04em; }
.note-head .dek { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 860px) { .note-head { grid-template-columns: minmax(0, 1fr); } .note-head .titles { grid-column: 1; } }

.note-grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 700px); gap: clamp(28px, 4.5vw, 64px); align-items: start; padding-top: 22px; border-top: 1px solid var(--ink); }
@media (max-width: 860px) { .note-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.rail { position: sticky; top: 132px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 860px) { .rail { position: static; } .rail .plate { display: none; } }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.facts li span:first-child { color: var(--ink-3); }
.facts li span:last-child { text-align: right; }
@media (max-width: 860px) { .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } }
.kind { display: inline-flex; align-self: flex-start; gap: 8px; align-items: center; padding: 5px 8px; font-size: 8.5px; background: var(--lichen-wash); color: var(--ever); }
.kind.paid { background: var(--sand); color: var(--ink); }

/* long-form text */
.prose { font-size: 18px; line-height: 1.65; min-width: 0; color: var(--ink); }
.prose > * + * { margin-top: 1.05em; }
.prose em, .prose i { font-family: inherit; font-size: inherit; color: inherit; letter-spacing: inherit; font-style: italic; }
.prose strong, .prose b { font-weight: 600; }
.prose h2 { font-size: clamp(25px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -.03em; margin-top: 1.9em; }
.prose h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; margin-top: 1.6em; }
.prose h4 { font: 400 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin: 1.8em 0 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--ever); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--moss); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 22px; }
.prose li + li { margin-top: .45em; }
.prose li p { margin: 0; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--lichen); box-shadow: inset 0 0 0 1px rgba(74, 116, 48, .35); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .5em; font: 400 9px/1 var(--mono); color: var(--leaf); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; height: auto; background: var(--paper-2); border: 1px solid var(--rule); }
.prose figcaption { padding-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 18px; border-left: 2px solid var(--leaf); color: var(--ink-2); }
.prose blockquote.pull { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.1vw, 27px); line-height: 1.3; letter-spacing: -.01em; color: var(--ever); }
.prose .callout { background: var(--stone); padding: 16px 18px; font-size: 16.5px; }
.prose .callout > * + * { margin-top: .8em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.prose sup { line-height: 0; }
.prose sup a { text-decoration: none; font: 400 10px var(--mono); padding: 0 2px; }
.prose .footnote { display: grid; grid-template-columns: 26px minmax(0, 1fr); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.prose .footnote .fn-num { font: 400 10px/2 var(--mono); text-decoration: none; }
.prose .related { font-size: 15.5px; background: var(--stone); padding: 12px 14px; }
.prose .related b { font: 400 8.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 8px; }

/* paid notes: summary + what is behind the paywall */
.summary-label { color: var(--moss); }
.in-full { background: var(--stone); padding: 18px 20px 20px; }
.in-full h2 { font: 400 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.in-full ul { font-size: 16.5px; }

/* the end-of-note card */
.source { margin-top: 2.4em; border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.source p { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.source p b { font-weight: 500; color: var(--ink); }
/* subscriber-article box: Lichen Wash, like the link blocks (brand decision D14, 14 Nov 2026; was Night) */
.source.paid { background: var(--lichen-wash); color: var(--ink); border-top: 1px solid var(--ink); padding: 22px 22px 24px; }
.source.paid .mono { color: var(--moss); }
.source.paid p { color: var(--ink-2); }
.source.paid p b { color: var(--ink); }
.source.paid .btn-ghost { background: var(--paper); color: var(--ink); }
.source.paid .btn-ghost:hover { background: var(--stone); }

/* ---------- lists of notes (index + "more notes") ---------- */
.section { padding-block: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 56px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); padding-top: 18px; border-top: 1px solid var(--ink); }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }
.section-head > div { display: flex; flex-direction: column; gap: 16px; }
.section-head h2 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.05; letter-spacing: -.038em; }
.section-head h1 { font-size: clamp(42px, 5.8vw, 76px); line-height: 1; letter-spacing: -.045em; }
.section-head p { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 52ch; }
.notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.notes a { display: grid; grid-template-columns: 104px 132px minmax(0, 1fr) 96px 20px; gap: 16px; align-items: baseline; padding-block: 17px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.notes .mono { color: var(--ink-3); font-size: 9px; }
.notes .t { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.25; letter-spacing: -.02em; }
.notes .t small { display: block; margin-top: 4px; font-size: 15px; letter-spacing: 0; line-height: 1.45; color: var(--ink-2); }
.notes .ty { justify-self: start; }
.notes .ty.free { color: var(--moss); }
.notes .ar { color: var(--ink-3); transition: transform .2s, color .2s; }
.notes a:hover .t { color: var(--ever); }
.notes a:hover .ar { color: var(--ever); transform: translate(3px, -3px); }
@media (max-width: 760px) {
  .notes a { grid-template-columns: auto auto minmax(0, 1fr) 20px; gap: 6px 14px; }
  .notes .t { grid-column: 1 / -1; grid-row: 2; }
  .notes .ty { grid-column: 3; grid-row: 1; justify-self: end; }
  .notes .ar { grid-column: 4; grid-row: 1; }
}
.year { display: flex; justify-content: space-between; padding: 30px 0 10px; color: var(--ink-3); }
.year b { font-weight: 400; color: var(--ever); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.filters button { all: unset; cursor: pointer; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; background: var(--stone); color: var(--ink-2); }
.filters button:hover { background: var(--stone-2); }
.filters button[aria-pressed="true"] { background: var(--ever); color: var(--paper-2); }
.filters button:focus-visible { outline: 2px solid var(--ever); outline-offset: 2px; }
.subscribe { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--stone); padding: 16px 18px; margin-top: 22px; color: var(--ink-2); }

/* contact + footer */
.cta { max-width: 740px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-block: clamp(72px, 10vw, 120px) clamp(36px, 5vw, 52px); }
.cta h2 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1; letter-spacing: -.04em; }
.cta p { color: var(--ink-2); font-size: 18px; line-height: 1.55; max-width: 46ch; }
.cta .btns { justify-content: center; }
footer { padding-block: 40px 88px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--moss); }
.foot-brand { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 26px; }
.foot-brand .brand img { height: 40px; }
.legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--ink-3); font-size: 8.5px; }
.legal a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--moss); }
