/* Arndly — Global Styles · Forest + Brass (heritage) */
:root {
  /* Surfaces */
  --bg: oklch(0.28 0.05 155);            /* deep forest-green wall */
  --bg-deep: oklch(0.22 0.05 155);       /* deeper green for closing CTA */
  --bg-alt: oklch(0.94 0.018 85);        /* warm cream "lime-washed plaster" */
  --bg-alt-2: oklch(0.90 0.022 85);      /* aged cream */

  /* Type on green ground */
  --ink: oklch(0.96 0.018 85);
  --ink-2: oklch(0.82 0.025 85);
  --ink-3: oklch(0.66 0.022 85);

  /* Type on cream ground */
  --ink-cream: oklch(0.22 0.045 155);
  --ink-cream-2: oklch(0.38 0.04 150);
  --ink-cream-3: oklch(0.52 0.03 145);

  /* Rules */
  --rule: oklch(0.40 0.05 155);
  --rule-strong: oklch(0.50 0.05 155);
  --rule-cream: oklch(0.78 0.02 90);
  --rule-cream-strong: oklch(0.65 0.025 90);

  /* Brand colors */
  --accent: oklch(0.78 0.14 78);         /* brass / aged gold */
  --accent-deep: oklch(0.58 0.12 75);
  --accent-ink: oklch(0.40 0.10 70);
  --secondary: oklch(0.62 0.15 40);      /* terracotta rust */

  --max: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.display {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ───── Cream panel scope — inverts ink/rule when inside ───── */
.on-cream {
  background: var(--bg-alt);
  color: var(--ink-cream);
  --ink: var(--ink-cream);
  --ink-2: var(--ink-cream-2);
  --ink-3: var(--ink-cream-3);
  --rule: var(--rule-cream);
  --rule-strong: var(--rule-cream-strong);
}
.on-cream .mono { color: var(--ink-cream-3); }
.on-cream a:hover { color: var(--accent-deep); }

/* ───── Header ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ink);
}
.brand .logo-img {
  height: 28px;
  width: auto;
  display: block;
}
nav.primary { display: flex; gap: 32px; justify-self: center; }
nav.primary a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .15s;
}
nav.primary a.active { color: var(--ink); }
nav.primary a.active::before {
  content: '';
  position: absolute; left: -14px; top: 50%;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: oklch(0.20 0.04 155);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 2px;
  transition: all .15s;
}
.header-cta:hover { background: transparent; color: var(--accent); }
.header-cta .arrow { font-family: 'JetBrains Mono', monospace; }

/* ───── Footer ───── */
.site-footer {
  margin-top: 120px;
  border-top: 1px solid var(--rule);
  padding: 64px 0 32px;
  background: var(--bg-deep);
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.site-footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.site-footer .tagline {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  letter-spacing: -0.02em;
  max-width: 320px;
  line-height: 1.3;
  color: var(--ink);
}
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  border-radius: 2px;
  transition: all .15s;
  color: var(--ink-2);
}
.socials a:hover { background: var(--accent); color: oklch(0.20 0.04 155); border-color: var(--accent); }
.socials svg { width: 14px; height: 14px; }
.footer-meta {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ───── Common ───── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hairline { border: none; border-top: 1px solid var(--rule); margin: 0; }

.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.section-head .label,
.approach-layout .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 6px; }
.section-head h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin: 0;
  white-space: nowrap;
}

/* approach section */
.approach-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.approach-h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 56px 0;
  max-width: none;
  white-space: nowrap;
}
.approach-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.approach-body p {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* placeholder visuals */
.placeholder {
  background:
    repeating-linear-gradient(135deg,
      transparent 0 11px,
      color-mix(in oklch, var(--ink) 14%, transparent) 11px 12px);
  border: 1px solid var(--rule-strong);
  position: relative;
  display: grid; place-items: center;
  border-radius: 2px;
}
.placeholder .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink-2);
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}
.on-cream .placeholder {
  background:
    repeating-linear-gradient(135deg,
      transparent 0 11px,
      color-mix(in oklch, var(--ink-cream) 12%, transparent) 11px 12px);
}
.on-cream .placeholder .tag {
  background: var(--bg-alt);
  color: var(--ink-cream-2);
}

button, .btn { font-family: inherit; cursor: pointer; }

/* Primary on green: brass fill */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: oklch(0.20 0.04 155);
  border: 1px solid var(--accent);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  transition: all .15s;
}
.btn-primary:hover { background: transparent; color: var(--accent); }

/* Secondary on green: ghost */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  transition: all .15s;
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

/* On cream variants */
.on-cream .btn-primary {
  background: var(--ink-cream);
  color: var(--bg-alt);
  border-color: var(--ink-cream);
}
.on-cream .btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--bg-alt); }
.on-cream .btn-secondary {
  color: var(--ink-cream);
  border-color: var(--ink-cream);
}
.on-cream .btn-secondary:hover { background: var(--ink-cream); color: var(--bg-alt); }
