/* Aventijn Advies — brand system
 * Editorial premium consultancy aesthetic
 * Subtle nautical/compass undercurrent
 */

:root {
  /* Surfaces */
  --paper: #F2EEE3;        /* warm cream — primary background */
  --paper-2: #EAE5D6;      /* deeper cream for callouts */
  --vellum: #FBF8F0;       /* lightest, almost-white */
  --ink: #1B1F1A;          /* near-black, warm green-tinted */
  --ink-2: #2E342A;        /* slightly lighter ink for body */
  --muted: #6E7066;        /* secondary text */
  --rule: rgba(27, 31, 26, 0.18);  /* hairline rules */
  --rule-soft: rgba(27, 31, 26, 0.10);

  /* Brand accent — Aventijn green, drawn from logo */
  --green: #86B22E;
  --green-deep: #5C7E1F;
  --green-bg: #EEF3DD;     /* whisper-soft green wash */

  /* Inverted / dark sections */
  --night: #1E2A1B;        /* deep forest-green for hero contrast */
  --night-2: #2A3724;
  --night-rule: rgba(255, 255, 255, 0.16);
  --night-muted: rgba(255, 255, 255, 0.62);

  /* Type */
  --serif: 'Newsreader', 'Spectral', Georgia, serif;
  --sans:  'IBM Plex Sans', 'Söhne', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Scale */
  --display: clamp(48px, 6vw, 92px);
  --h1: 44px;
  --h2: 30px;
  --h3: 22px;
  --body: 16px;
  --small: 13px;
  --label: 11px;

  /* Rhythm */
  --col-narrow: 640px;
  --col-wide: 880px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.6;
  font-feature-settings: "ss01", "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typographic primitives */
.serif { font-family: var(--serif); }
.sans  { font-family: var(--sans); }
.mono  { font-family: var(--mono); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--h1); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); line-height: 1.15; }
h3 { font-size: var(--h3); line-height: 1.25; }

p {
  margin: 0 0 1em 0;
  text-wrap: pretty;
  color: var(--ink-2);
}
p.lead {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}

em { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }

a { color: var(--green-deep); text-decoration: none; border-bottom: 1px solid currentColor; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin: 0 8px 1px 0;
  vertical-align: middle;
}

.coord {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* Section number plate — the small numbered marker */
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-num::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--green);
}

/* Pull-quote */
.pullquote {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-left: 2px solid var(--green);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  text-wrap: balance;
}

/* Page (A4-ish) — for printable layouts */
.page {
  width: 820px;
  min-height: 1160px;
  padding: 88px 88px 72px;
  background: var(--paper);
  box-sizing: border-box;
  position: relative;
}

.page + .page {
  border-top: 1px dashed var(--rule-soft);
}

.page-header {
  position: absolute;
  top: 40px;
  left: 88px;
  right: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-footer {
  position: absolute;
  bottom: 36px;
  left: 88px;
  right: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Aventijn wordmark */
.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}
.wordmark .acc { color: var(--green); }

/* Dark page variant */
.page.dark {
  background: var(--night);
  color: var(--vellum);
}
.page.dark h1, .page.dark h2, .page.dark h3 { color: var(--vellum); }
.page.dark p { color: var(--night-muted); }
.page.dark .eyebrow,
.page.dark .page-header,
.page.dark .page-footer,
.page.dark .coord { color: var(--night-muted); }
.page.dark .rule { background: var(--night-rule); }
.page.dark .pullquote { color: var(--vellum); border-color: var(--green); }
.page.dark .section-num { color: var(--green); }
.page.dark .section-num::before { background: var(--green); }
.page.dark .wordmark { color: var(--vellum); }
