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

:root {
  --bg:        #f2efe8;
  --border:    #d8d4cb;
  --ink:       #18170f;
  --ink-2:     #3e3c36;
  --ink-3:     #58564f;
  --ink-4:     #7d7a72;
  --amber:     #a86e24;
  --amber-dim: #c8952e;
  --panel-bg:  #ede9e0;
  --panel-bg-2:#e6e1d6;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Type scale */
  --text-xs:   11px;
  --text-sm:   12px;
  --text-base: 17px;
  --text-lg:   19px;
  --text-xl:   28px;
  --text-code: 15px;

  /* Global zoom — adjust vh values with calc(100vh / var(--zoom)) */
  --zoom: 1.1;
}

html { scroll-behavior: smooth; zoom: var(--zoom); }

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.15s;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: var(--text-lg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url('../img/noise.svg');
  pointer-events: none;
  z-index: 9999;
}

/* ── Animations ──────────────────────────────── */
@keyframes up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.anim-up {
  opacity: 0;
  animation: up 0.5s var(--ease) forwards;
}

/* Scroll-triggered sections */
.section {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.section.in { opacity: 1; transform: none; }
