/* Jaden Parisi personal site. Paper, ink, one highlighter. */
:root {
  --paper: #ecede7;
  --paper-2: #e2e3dc;
  --ink: #17181a;
  --ink-2: #44464a;
  --ink-3: #6b6d70;
  --rule: #c9cac2;
  --volt: #ffe100;
  --volt-ink: #17181a;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(18px, 1.1vw + 12px, 21px);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--volt); color: var(--volt-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* type */
.eyebrow, .mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .95;
  margin: 0;
}
h1 { font-size: clamp(56px, 9.4vw, 148px); }
h2 { font-size: clamp(40px, 5.6vw, 84px); }
h3 { font-size: clamp(24px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 62ch; }

/* highlighter: draws itself when in view */
mark {
  color: inherit;
  background: linear-gradient(transparent 12%, var(--volt) 12%, var(--volt) 88%, transparent 88%) no-repeat 0 0 / 0% 100%;
  padding: 0 .08em;
  margin: 0 -.08em;
  transition: background-size .9s var(--ease) .15s;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.inview mark, mark.inview { background-size: 100% 100%; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav .sig { display: block; width: 118px; }
.nav .sig img { width: 100%; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.nav ul a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav ul a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
  text-decoration: none;
  padding: 14px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  background: transparent;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.nav .btn { padding: 10px 14px; }

@media (max-width: 760px) {
  .nav ul li:not(:last-child) { display: none; }
}

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 120px); position: relative; }
.hero .eyebrow { margin-bottom: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .eyebrow span + span::before { content: "/"; margin-right: 14px; color: var(--rule); }
.hero h1 { max-width: 11ch; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(32px, 4vw, 56px);
}
.hero-grid > * { min-width: 0; }
.hero .lede { font-size: clamp(20px, 1.4vw + 10px, 25px); line-height: 1.45; color: var(--ink); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.portrait { position: relative; margin-top: clamp(-260px, -16vw, -40px); }
.portrait img.photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; filter: saturate(.95); }
.portrait .signed {
  position: absolute; right: 5%; bottom: calc(5% + 34px); width: 64%;
  clip-path: inset(0 100% 0 0);
  animation: sign 1.9s var(--ease) .5s forwards;
  filter: invert(1) brightness(1.05);
  opacity: .94;
  pointer-events: none;
}
.portrait figcaption { margin-top: 14px; display: flex; justify-content: space-between; }
@keyframes sign { to { clip-path: inset(0 0 0 0); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { margin-top: 8px; max-width: 460px; }
}

/* sections */
section { padding: clamp(72px, 9vw, 140px) 0; border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); align-items: baseline; }
.sec-head .num { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.sec-head p { margin-top: 20px; color: var(--ink-2); }
@media (max-width: 700px) { .sec-head { grid-template-columns: 1fr; gap: 12px; } }

/* now: rows, not cards */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1.1fr) minmax(0, 1.4fr) 170px;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background .3s var(--ease);
}
.row > * { min-width: 0; }
.row .when { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 6px; }
.row .role { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-top: 8px; display: block; }
.row p { margin: 0; color: var(--ink-2); }
.row .go { justify-self: end; font-family: var(--mono); font-size: 13px; text-decoration: none; white-space: nowrap; padding-top: 6px; border-bottom: 1px solid var(--ink); }
.row .go:hover { background: var(--volt); }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row .when { padding: 0; }
  .row .go { justify-self: start; }
}

/* receipts: a ledger */
.ledger { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.entry { padding: 36px 28px 32px 0; border-bottom: 1px solid var(--rule); }
.entry:nth-child(1) { grid-column: span 7; }
.entry:nth-child(2) { grid-column: span 5; }
.entry:nth-child(3) { grid-column: span 5; }
.entry:nth-child(4) { grid-column: span 7; }
.entry:nth-child(5) { grid-column: span 6; }
.entry:nth-child(6) { grid-column: span 6; }
.entry .fig {
  font-family: var(--display); font-weight: 700; letter-spacing: -.04em; line-height: .9;
  font-size: clamp(56px, 6.4vw, 104px);
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.entry .fig small { font-size: .42em; letter-spacing: -.02em; margin-left: .12em; }
.entry .what { margin: 16px 0 14px; max-width: 34ch; }
.entry .src { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
.entry .src::before { content: "Source: "; color: var(--ink-2); }
@media (max-width: 760px) { .entry { grid-column: 1 / -1 !important; } }

/* record: timeline */
.record { display: grid; grid-template-columns: minmax(0, 1fr); }
.rec {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.rec > * { min-width: 0; }
.rec:first-child { border-top: 1.5px solid var(--ink); }
.rec .when { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
.rec h3 { font-size: clamp(20px, 1.6vw, 24px); }
.rec .org { display: block; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-top: 8px; }
.rec p { margin: 0; color: var(--ink-2); font-size: .94em; }
.rec.edu { background: var(--paper-2); margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 860px) { .rec { grid-template-columns: 1fr; gap: 8px; } .rec .when { padding: 0; } }

/* behind the camera: full-bleed strip */
.camera { background: var(--ink); color: var(--paper); border-top: 0; overflow: hidden; }
.camera .eyebrow, .camera .sec-head .num, .camera .sec-head p { color: #b9bab3; }
.strip {
  display: flex; gap: 14px;
  padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.strip img { height: clamp(260px, 34vw, 460px); width: auto; border-radius: 2px; }
.strip figcaption { font-family: var(--mono); font-size: 12px; color: #9d9e97; margin-top: 10px; text-transform: uppercase; letter-spacing: .04em; }
.strip figure:nth-child(even) { margin-top: 48px; }
.camera .more { margin-top: 40px; }
.camera .btn { border-color: var(--paper); color: var(--paper); }
.camera .btn:hover { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }

/* kind words */
.quotes { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.quotes > * { min-width: 0; }
.lead-quote blockquote {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -.025em;
}
.lead-quote blockquote::before { content: "\201C"; display: block; font-size: 2.2em; line-height: .6; margin-bottom: .1em; color: var(--ink-3); }
.who { margin-top: 24px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.who b { color: var(--ink); font-weight: 600; }
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.qlist li:first-child { border-top: 1.5px solid var(--ink); }
.qlist q { quotes: "\201C" "\201D"; font-size: 1.02em; }
.qlist .who { margin-top: 10px; }
.qgroup { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 40px 0 0; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* contact */
.contact h2 { max-width: 12ch; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1.5px solid var(--ink); }
.path { padding: 32px 32px 36px 0; }
.path + .path { border-left: 1px solid var(--rule); padding-left: 32px; }
.path h3 { margin-bottom: 14px; }
.path p { color: var(--ink-2); }
.path .btn { margin-top: 10px; }
.socials { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.socials a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid var(--ink); }
.socials a:hover { background: var(--volt); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } .path + .path { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; } }

/* footer */
footer { border-top: 1px solid var(--rule); padding: 56px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
footer .sig-link { display: block; width: clamp(160px, 22vw, 260px); }
footer .sig-link img { width: 100%; opacity: .9; transition: opacity .3s; }
footer .sig-link:hover img { opacity: 1; }
footer .mono { font-size: 12px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.inview { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .portrait .signed { clip-path: none; }
  mark { background-size: 100% 100%; }
}
