/* Paracortex: the same visual family as the project sites.
   Paper and ink, one serif for reading, one sans for labels,
   contour lines as the shared motif. */

@font-face { font-family: 'Source Serif'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-opsz-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Source Serif'; font-style: italic; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-opsz-italic.woff2) format('woff2-variations'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); }

:root {
  --paper: #f7f4ee; --paper-2: #efebe2; --ink: #1e1c19; --ink-2: #4d4840; --ink-3: #807a6f; --rule: #dcd5c7;
  --line: #3f5f6a; --accent: #a2462b; --tb: .12; --tk: .5;
  --serif: 'Source Serif', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #161512; --paper-2: #1e1d19; --ink: #e8e3d8; --ink-2: #bdb6a8; --ink-3: #8a8478; --rule: #34322c; --line: #8fb3bd; --accent: #e0896a; --tb: .18; --tk: .6; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.cover { position: relative; min-height: min(92vh, 50rem); display: grid; align-items: end; overflow: hidden; }
.terrain-wrap { position: absolute; inset: 0; }
.terrain { width: 100%; height: 100%; display: block; }
.terrain path { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-opacity: calc(var(--tb) + var(--lvl) * var(--tk)); }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--paper) 12%, color-mix(in srgb, var(--paper) 35%, transparent) 55%, transparent); pointer-events: none; }
.cover-text { position: relative; z-index: 1; max-width: 60rem; width: 100%; margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 10vh, 6rem); }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 1.4rem; }
h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: 1; letter-spacing: -.03em; font-weight: 600; margin: 0; max-width: 14ch; text-wrap: balance; }
.lede { font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: var(--ink-2); max-width: 34rem; margin: 1.6rem 0 0; line-height: 1.45; }

.projects { max-width: 60rem; margin: 2rem auto 5rem; padding: 0 var(--gutter); }
.projects h2 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1.2rem; }
.project-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .project-list { grid-template-columns: 1.6fr 1fr; } }
.project { display: flex; flex-direction: column; gap: .4rem; padding: 1.8rem; border-radius: 18px; background: var(--paper-2); text-decoration: none; border: 1px solid transparent; transition: border-color .2s, transform .2s; height: 100%; }
a.project:hover { border-color: var(--rule); transform: translateY(-2px); }
.project-kind { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hue, var(--ink-3)); font-weight: 600; }
.project-title { font-size: 1.75rem; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin-top: .2rem; }
.project-sub { font-style: italic; color: var(--ink-2); }
.project-text { color: var(--ink-2); font-size: 1rem; line-height: 1.55; margin-top: .4rem; }
.project-go { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 1rem; }
.project-soon { background: none; border: 1px dashed var(--rule); }
.project-soon .project-title { font-size: 1.3rem; color: var(--ink-2); }

.foot { border-top: 1px solid var(--rule); padding: 2rem var(--gutter) 3rem; text-align: center; font-family: var(--sans); font-size: .8rem; color: var(--ink-3); }
.foot a { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
