/* Van Peptides, base layer */
@import url("../assets/fonts/fonts.css");

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
 margin: 0;
 background: var(--cream);
 color: var(--charcoal);
 font-family: var(--font-sans);
 font-size: var(--text-base);
 line-height: 1.65;
 font-weight: 400;
 -webkit-font-smoothing: antialiased;
 text-rendering: optimizeLegibility;
}

body.gate-open { overflow: hidden; }

h1, h2, h3, h4 {
 font-family: var(--font-serif);
 color: var(--ink);
 font-weight: 400;
 letter-spacing: var(--track-display);
 line-height: 1.1;
 margin: 0 0 var(--s-4);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--olive); text-decoration-color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
 outline: 2px solid var(--olive);
 outline-offset: 3px;
 border-radius: var(--r-sm);
}

img, svg { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15em; }
li { margin-bottom: var(--s-2); }

table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
th, td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule); }
th {
 font-family: var(--font-sans);
 font-size: var(--text-xs);
 text-transform: uppercase;
 letter-spacing: var(--track-label);
 color: var(--olive);
 font-weight: 500;
}

code.mono { font-family: var(--font-mono); font-size: 0.92em; }

fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; }

.sr-only {
 position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
 overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
 position: absolute; left: var(--s-4); top: -60px; z-index: 100;
 background: var(--cream); color: var(--ink); padding: var(--s-3) var(--s-4);
 border: 1px solid var(--olive); border-radius: var(--r-sm);
 transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--max-prose); }
.prose h2 { margin-top: var(--s-8); font-size: var(--text-2xl); }
.prose h3 { margin-top: var(--s-6); font-size: var(--text-lg); }
.prose p.prose li { color: var(--charcoal); }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.stack > * + * { margin-top: var(--s-4); }

.eyebrow {
 font-size: var(--text-xs);
 text-transform: uppercase;
 letter-spacing: var(--track-eyebrow);
 color: var(--olive);
 font-weight: 500;
 margin: 0 0 var(--s-4);
}

.lede { font-size: var(--text-lg); line-height: 1.6; color: var(--charcoal); }

/* ---- motion ---- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
 opacity: 1; transform: none;
 transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .reveal { transform: none !important; }
 .reveal.is-in { transition: opacity var(--dur-base) linear; }
 *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: var(--dur-fast) !important; }
}
