/* Shared base for archive / work-with-me / cv. Mirrors the tokens and patterns in index.html. */
:root {
  --paper:  #E6E6E3;
  --paper2: #D8D8D4;
  --ink:    #111111;
  --mute:   #77736C;
  --line:   rgba(17,17,17,.14);
  --red:    #2B1BFF;
  --lime:   #D4FF3F;
  --cond:  "Unbounded", "Arial Black", Arial, sans-serif;
  --body:  "Manrope", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono:  "Manrope", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Designed to read best at 90% browser zoom, so that is the default */
html { scroll-behavior: smooth; zoom: .9; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap {
  max-width: 1360px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.red { color: var(--red); }

.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 14px; gap: 16px; }
.brand { font-family: var(--cond); font-weight: 800; font-size: 14px; }
.brand span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-links a:not(.pill):hover, .nav .active { color: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ink); font-size: 13px; font-weight: 700; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.pill:hover { transform: rotate(-3deg) scale(1.04); }
.pill.ink { background: var(--ink); color: var(--paper); }
::selection { background: var(--lime); color: var(--ink); }

.meta-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-block: 48px 6px; }
.wordmark { overflow: hidden; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wordmark h1 { font-family: var(--cond); font-weight: 800; text-transform: uppercase; line-height: .88; letter-spacing: -.02em; }
.fit { display: inline-block; white-space: nowrap; font-size: 22vw; }
.fit.red { color: var(--red); }
.lede { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; max-width: 44ch; padding-block: 28px 8px; }
.lede em { color: var(--red); }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding-block: 64px 18px; border-bottom: 1px solid var(--line); gap: 12px; }
.sec-head h2 { font-family: var(--cond); font-weight: 800; font-size: clamp(28px, 4.2vw, 56px); text-transform: uppercase; line-height: .92; letter-spacing: -.02em; }

.cta { display: block; padding-block: 48px 24px; }
.cta .fit { color: var(--ink); transition: color .25s; }
.cta:hover .fit { color: var(--red); }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px calc(clamp(90px, 15vh, 160px) + 64px); border-top: 1px solid var(--line); font-size: 13px; }
.foot a:hover { color: var(--red); }
.foot .credit { flex: 1 0 100%; text-align: center; padding-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: none; color: var(--mute); }
.foot .credit a { text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.foot .credit a:hover { color: var(--red, var(--hot)); }

@media (max-width: 820px) { .nav-links { gap: 14px; } .nav-links a.hide-sm { display: none; } }

/* Progressive blur along the bottom edge of the viewport (all pages) */
.bblur { position: fixed; left: 0; right: 0; bottom: 0; height: clamp(90px, 15vh, 160px); pointer-events: none; z-index: 40; }
.bblur i { position: absolute; inset: 0; }
.bblur i:nth-child(1) { -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px); -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 20%, #000 40%, transparent 60%); mask: linear-gradient(to bottom, transparent 0%, #000 20%, #000 40%, transparent 60%); }
.bblur i:nth-child(2) { -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); -webkit-mask: linear-gradient(to bottom, transparent 15%, #000 35%, #000 55%, transparent 75%); mask: linear-gradient(to bottom, transparent 15%, #000 35%, #000 55%, transparent 75%); }
.bblur i:nth-child(3) { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask: linear-gradient(to bottom, transparent 30%, #000 50%, #000 70%, transparent 90%); mask: linear-gradient(to bottom, transparent 30%, #000 50%, #000 70%, transparent 90%); }
.bblur i:nth-child(4) { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-mask: linear-gradient(to bottom, transparent 45%, #000 65%, #000 85%, transparent 100%); mask: linear-gradient(to bottom, transparent 45%, #000 65%, #000 85%, transparent 100%); }
.bblur i:nth-child(5) { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask: linear-gradient(to bottom, transparent 62%, #000 85%); mask: linear-gradient(to bottom, transparent 62%, #000 85%); }
