/* Shared styles for on-site note/article pages — brand-matched to the main site */

:root {
  --bg: #f7f1e6;
  --bg-2: #fdfaf3;
  --ink: #1a1a1a;
  --ink-dim: #3b4566;
  --ink-mute: #7a8197;
  --accent: #1e3fa8;
  --line: #e3dccb;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- top nav ---- */
.note-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 92%, #fff);
}
.note-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-display);
}
.note-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #f6efe1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.note-back {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.note-back:hover { text-decoration: underline; }

/* ---- article ---- */
.note-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.note-tag {
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 500;
}

.note-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.note-lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 36px;
}

.note-wrap h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
}

.note-wrap h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.note-wrap p { margin-bottom: 16px; }
.note-wrap ul, .note-wrap ol { margin: 0 0 16px 22px; }
.note-wrap li { margin-bottom: 8px; }
.note-wrap a { color: var(--accent); }

.note-cta {
  margin: 40px 0 28px;
  padding: 20px 22px;
  background: color-mix(in oklab, var(--accent) 5%, var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
  border-radius: 10px;
}
.note-cta p { margin: 0; }

.note-origin {
  font-size: 13.5px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ---- footer ---- */
.note-footer {
  text-align: center;
  padding: 26px 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-mute);
}
.note-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
