/* DRIFT Partners — Notes (static essay pages) */

:root {
  --paper: #f4f1ea;
  --paper-deep: #ece8df;
  --ink: #14110d;
  --ink-soft: #2a2520;
  --ink-mute: #6b6358;
  --ink-quiet: #948b7e;
  --rule: #c9c2b3;
  --rule-soft: #ddd6c8;
  --accent: #7a2e1f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 21px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

.shell { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.column { max-width: 680px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.nav-logo { display: block; width: auto; height: 96px; transition: opacity 200ms ease; }
.nav-brand:hover .nav-logo { opacity: 0.75; }
.nav-links { display: flex; gap: 32px; align-items: baseline; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color 120ms ease; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { color: var(--ink) !important; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ---------- Essay ---------- */

.note { padding: 84px 0 64px; }

.note-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 26px;
}
.note-kicker a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }

h1.note-title {
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.1;
  font-size: clamp(32px, 5vw, 50px);
  max-width: 15em;
}

.note-standfirst {
  margin-top: 20px;
  font-size: 25px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 30em;
}

.note-rule { margin: 40px 0 36px; border: 0; border-top: 1px solid var(--rule); max-width: 680px; }

.note-body p { font-size: 22px; line-height: 1.62; margin-bottom: 1.15em; }
.note-body p:last-child { margin-bottom: 0; }

.note-foot {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  max-width: 680px;
  font-size: 18px; color: var(--ink-mute);
}
.note-foot .byline { color: var(--ink-soft); }
.note-foot .rights { margin-top: 8px; font-size: 18px; color: var(--ink-quiet); }

.note-nav {
  margin-top: 44px; max-width: 680px;
  display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase;
}
.note-nav a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; max-width: 20em; }
.note-nav a:hover { color: var(--accent); }

.note-cta {
  margin-top: 56px; max-width: 680px;
  padding-top: 26px; border-top: 1px solid var(--rule);
}
.note-cta a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}

/* ---------- Index ---------- */

.index-head { padding: 84px 0 0; }
.index-head h1 { font-weight: 300; letter-spacing: -0.018em; line-height: 1.1; font-size: clamp(34px, 5.5vw, 54px); }
.index-lede { margin-top: 20px; font-size: 24px; line-height: 1.5; color: var(--ink-soft); max-width: 34em; }

.index-list { padding: 40px 0 64px; max-width: 760px; }
.index-item { padding: 26px 0; border-top: 1px solid var(--rule-soft); }
.index-item:first-child { border-top: 1px solid var(--rule); }
.index-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-quiet);
}
.index-item h2 { margin-top: 8px; font-weight: 400; font-size: 30px; line-height: 1.22; letter-spacing: -0.012em; }
.index-item h2 a { text-decoration: none; }
.index-item p { margin-top: 8px; font-size: 21px; line-height: 1.5; color: var(--ink-mute); max-width: 38em; }

/* ---------- Footer ---------- */

footer.foot {
  padding: 40px 0;
  border-top: 1px solid var(--rule-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
footer.foot .shell { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (max-width: 720px) {
  html, body { font-size: 19px; }
  .shell { padding: 0 24px; }
  .nav-logo { height: 64px; }
  .nav-links { gap: 16px; row-gap: 6px; flex-wrap: wrap; justify-content: flex-end; font-size: 17px; }
  .nav-inner { align-items: flex-start; gap: 16px; }
  .note { padding: 56px 0 48px; }
  .index-head { padding: 56px 0 0; }
  .note-body p { font-size: 21px; }
  .note-standfirst { font-size: 22px; }
}

/* ---------- End mark, LinkedIn, print ---------- */

.end-mark {
  margin-top: 34px;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.li-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: inherit;
}
.li-link:hover { color: var(--accent); }
.li-mark {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex: none;
  position: relative;
  top: -1px;
}

@media print {
  .nav, .note-nav, .note-cta, footer.foot { display: none !important; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  .shell { padding: 0; max-width: none; }
  .note { padding: 0; }
  .note-body p, .note-standfirst { font-size: 11pt; line-height: 1.5; }
  h1.note-title { font-size: 22pt; }
  .note-foot { border-top: 1px solid #999; }
  .note-foot::after {
    content: "drift.partners/field-notes  |  \00A9  2006-2026 DRIFT Partners (Emic Lab S.C.). All rights reserved.";
    display: block;
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8pt;
    letter-spacing: 0.06em;
    color: #444;
  }
}

.note-foot .follow { margin-top: 12px; font-size: 18px; }
.note-foot .follow .li-link { color: var(--ink-soft); }
.note-foot .follow .li-link:hover { color: var(--accent); }
@media print { .note-foot .follow { display: none; } }

.note-foot .byline .li-inline { display: inline-flex; margin-left: 7px; color: var(--ink-mute); }
.note-foot .byline .li-inline .li-mark { width: 12px; height: 12px; top: 1px; }
@media print { .note-foot .byline .li-inline { display: none; } }

/* Round 8 (Ana, 2026-08-30): the label family up to 16px here too */
.nav-inner { font-size: 18px; }
.note-kicker { font-size: 19px; }
.index-date { font-size: 19px; }
.note-nav { font-size: 18px; }
.note-cta a { font-size: 19px; }
.note-foot { font-size: 19px; }
.note-foot .rights { font-size: 19px; }
.note-foot .byline { font-size: 20px; }
.index-item p { font-size: 22px; }
.index-lede { font-size: 25px; }
footer.foot { font-size: 18px; }
@media (max-width: 720px) { .nav-links { font-size: 17px; } }

/* Round 9b — line breaking */
p, li, .note-standfirst, .index-item p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

/* Round 10c — the LinkedIn mark scales with its text */
.li-mark { width: 1.05em; height: 1.05em; top: 0.1em; }
.note-foot .byline .li-inline .li-mark { width: 1.05em; height: 1.05em; }
