/* Janice Pollock — Portfolio
   Off-white · warm charcoal · terracotta accent
   Inter Tight + IBM Plex Mono (self-hosted, latin subset)
   ──────────────────────────────────────────── */

/* ── Self-hosted fonts ──────────────────────────────────── */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-tight-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-tight-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-tight-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-tight-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-tight-600.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}

:root {
  --paper:   #f6f4ee;
  --paper-2: #ede9dd;
  --paper-3: #e3ddca;

  --ink:     #2a2622;
  --ink-80:  rgba(42,38,34,0.82);
  --ink-65:  rgba(42,38,34,0.65);
  --ink-45:  rgba(42,38,34,0.45);
  --ink-25:  rgba(42,38,34,0.22);
  --ink-12:  rgba(42,38,34,0.12);
  --ink-06:  rgba(42,38,34,0.06);

  /* Terracotta palette */
  --accent:      oklch(0.58 0.13 35);
  --accent-soft: oklch(0.78 0.07 35);
  --accent-deep: oklch(0.45 0.13 35);

  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --measure:      640px;
  --measure-wide: 920px;
  --pad-x: clamp(24px, 5vw, 80px);
}

/* ── Reset ──────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a { color: inherit; text-decoration: none; }

p {
  text-wrap: pretty;
  margin: 0 0 1em;
}
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────── */

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.measure      { max-width: var(--measure);      margin: 0 auto; }
.measure-wide { max-width: var(--measure-wide); margin: 0 auto; }

/* ── Nav ────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background: rgba(246,244,238,0.78);
  border-bottom: 1px solid var(--ink-12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  max-width: 1080px;
  margin: 0 auto;
}

.nav-mark {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.nav-mark .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 8px 2px 0;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-65);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}

.nav-links a:hover  { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); }

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
}

/* ── Eyebrow label ──────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent-deep);
}

/* ── Typography ─────────────────────────────────────────── */

.h-display {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.h-display em {
  font-style: normal;
  color: var(--accent-deep);
  white-space: nowrap;
}

/* Hero masthead: name as primary, tagline as supporting */

.hero-name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero-tagline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink-80);
  margin: 0;
  text-wrap: balance;
}

.hero-tagline em {
  font-style: normal;
  color: var(--accent-deep);
  white-space: nowrap;
}

.h-section {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-80);
  letter-spacing: -0.005em;
  text-wrap: pretty;
  margin: 0;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: clamp(64px, 9vh, 90px) 0 clamp(56px, 7vh, 80px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.28;
  filter: saturate(0.85) contrast(0.95);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(246,244,238,0) 12%, rgba(246,244,238,0) 75%, var(--paper) 100%),
    linear-gradient(90deg, rgba(246,244,238,0.55) 0%, rgba(246,244,238,0.15) 45%, rgba(246,244,238,0.05) 100%);
  z-index: 1;
}

.hero-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink-12);
  margin-bottom: 56px;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-65);
  align-items: center;
}

.hero-foot strong { color: var(--ink); font-weight: 500; }

.hero-foot .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--ink-25);
  border-radius: 100px;
  background: rgba(255,255,255,0.4);
}

.hero-foot .pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.58 0.13 35 / 0.18);
}

/* ── Section bands ──────────────────────────────────────── */

section.band {
  padding: clamp(56px, 7vh, 80px) 0;
  border-top: 1px solid var(--ink-12);
}

section.band.alt {
  background: var(--paper-2);
}

/* ── Lenses (how I think) ───────────────────────────────── */

.lenses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--ink-12);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}

.lens {
  padding: 36px 32px;
  border-right: 1px solid var(--ink-12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s ease;
}

.lens:last-child { border-right: none; }
.lens:hover { background: var(--paper-2); }

.lens-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
}

.lens-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0;
}

.lens-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-65);
  margin: 0;
}

/* ── Experience list ────────────────────────────────────── */

.xp-list { margin-top: 36px; }

.xp-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.6fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-12);
  transition: padding 0.18s ease, background 0.18s ease;
}

.xp-row:first-child { border-top: 1px solid var(--ink-12); }

.xp-row:hover {
  background: linear-gradient(90deg, var(--paper-2) 0%, transparent 100%);
  padding-left: 12px;
  padding-right: 12px;
}

.xp-co   { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.xp-role { font-size: 15px; color: var(--ink-65); }

.xp-years {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-45);
  text-align: right;
}

/* ── Engagements ────────────────────────────────────────── */

.engagements {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.engagement {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--ink-12);
}

.engagement:first-child { border-top: 1px solid var(--ink-12); }

.engagement-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  padding-top: 6px;
}

.engagement-co {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 8px;
}

.engagement-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.engagement-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-80);
  max-width: 580px;
  margin: 0;
}

.engagement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-65);
}

.engagement-meta span strong { color: var(--ink); font-weight: 500; }

/* ── Project archive ────────────────────────────────────── */

.archive-years {
  margin-top: 56px;
}

.archive-year {
  padding: 36px 0;
  border-top: 1px solid var(--ink-12);
}

.archive-year:last-child {
  border-bottom: 1px solid var(--ink-12);
}

.archive-year-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--accent-deep);
  margin-bottom: 28px;
}

.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.archive-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-title {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.archive-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.archive-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-65);
  margin: 0;
  max-width: 46ch;
}

/* ── Credentials grid ───────────────────────────────────── */

.creds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
}

.cred {
  background: var(--paper);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 78px;
  justify-content: center;
}

.cred-name {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.cred-org {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* ── Bio ────────────────────────────────────────────────── */

.bio-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--ink-12);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-prose {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-80);
  letter-spacing: -0.005em;
}

.bio-prose p { margin: 0 0 1.1em; }
.bio-prose p:first-of-type { font-size: 19px; color: var(--ink); }
.bio-prose strong { color: var(--ink); font-weight: 500; }

/* ── Volunteer callout ──────────────────────────────────── */

.callout {
  margin-top: 56px;
  padding: 36px 36px 36px 40px;
  background: var(--paper);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.callout-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.callout-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 0 0 12px;
}

.callout-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-65);
  margin: 0;
  max-width: 540px;
}

/* ── Contact ────────────────────────────────────────────── */

.contact {
  padding: clamp(80px, 11vh, 130px) 0;
  border-top: 1px solid var(--ink-12);
  background: var(--paper-2);
}

.contact-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 24px;
}

.contact-title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0 0 28px;
  text-wrap: balance;
}

.contact-sub {
  font-size: 17px;
  color: var(--ink-65);
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 520px;
}

.linkedin-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px 16px 18px;
  background: var(--paper);
  border: 1px solid var(--ink-25);
  border-radius: 100px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  font-size: 15px;
  letter-spacing: -0.005em;
}

.linkedin-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px -8px var(--ink-25);
}

.linkedin-card .li-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-deep);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.linkedin-card .li-handle {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-65);
  letter-spacing: 0.04em;
  display: block;
  margin-top: 2px;
}

.linkedin-card .li-name { font-weight: 500; }

.linkedin-card .arrow {
  font-size: 16px;
  color: var(--accent-deep);
  transition: transform 0.2s ease;
}

.linkedin-card:hover .arrow { transform: translateX(3px); }

/* ── Not-found page ─────────────────────────────────────── */

.not-found {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vh, 160px) 0;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.not-found::before {
  content: '404';
  position: absolute;
  top: 50%;
  right: -2vw;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(180px, 32vw, 460px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink-06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.not-found .shell {
  position: relative;
  z-index: 1;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 48px;
  align-items: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--paper-2);
  border: 1px solid var(--ink-25);
  border-radius: 100px;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.back-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 6px 20px -8px var(--ink-25);
}

.back-link .back-arrow {
  font-size: 16px;
  color: var(--accent-deep);
  transition: transform 0.2s ease;
}
.back-link:hover .back-arrow { transform: translateX(-2px); }

.back-link--alt .back-arrow { color: var(--ink-65); }
.back-link--alt:hover .back-arrow { transform: translateX(2px); color: var(--accent-deep); }

@media (max-width: 760px) {
  .not-found-links { flex-direction: column; align-items: flex-start; gap: 12px; }
  .not-found::before { font-size: clamp(140px, 50vw, 280px); right: -10vw; opacity: 0.7; }
}

/* ── Footer ─────────────────────────────────────────────── */

footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--ink-12);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

footer a:hover { color: var(--accent-deep); }

/* ── Reveal animation ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html    { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 760px) {
  .lenses { grid-template-columns: 1fr; }
  .lens { border-right: none; border-bottom: 1px solid var(--ink-12); }
  .lens:last-child { border-bottom: none; }

  .xp-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .xp-years { text-align: left; }

  .engagement { grid-template-columns: 1fr; gap: 14px; }

  .archive-grid { grid-template-columns: 1fr; gap: 24px; }
  .archive-year { padding: 28px 0; }

  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 240px; }

  .nav-links { gap: 18px; font-size: 10px; }
  .hero-foot { gap: 18px; }

  .hero-meta-row { flex-direction: column; gap: 6px; }
}
