/* gprs.dev — styles built from handoff/brand/tokens.json and handoff/design/Site.dc.html */

:root {
  --ink: #0E0F12;
  --paper: #F4F3EF;
  --white: #FFFFFF;
  --signal-green: #1F9D55;   /* mark dot, .dev, large accents, one highlight button. Never small text on Paper. */
  --green-700: #157A42;      /* links + small accent text on light */
  --green-800: #0E5C31;      /* link hover */
  --green-300: #4FD38A;      /* accent text on Ink */
  --candle-red: #C2372E;
  --graphite: #3A3B40;       /* body text */
  --slate: #6B6C72;          /* secondary text */
  --line: #D9D7D0;
  --line-dark: #26272C;
  --stone: #E8E6E0;
  --muted-on-ink: #A9AAB0;
  --body-on-ink: #C4C3BE;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-button: 10px;
  --r-card: 14px;
  --r-panel: 20px;
  --r-chip: 999px;

  --gutter: 24px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

/* Section anchors clear the sticky header */
[id] { scroll-margin-top: 88px; }

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

a { color: var(--green-700); }
a:hover { color: var(--green-800); }

:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 4px;
}
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--green-300); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  border-radius: var(--r-button); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow--dark { color: var(--green-300); }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mono-meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: var(--slate);
}

.text-link { font-size: 15px; font-weight: 500; line-height: 22px; text-underline-offset: 3px; }
.text-link:not(:hover) { text-decoration-thickness: 1px; }

.is-placeholder { cursor: help; }
span.text-link.is-placeholder { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--r-button);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--graphite); color: var(--paper); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--signal-green); color: var(--ink); font-size: 16px; }
.btn--accent:hover { background: var(--green-300); color: var(--ink); }
.btn--ghost-dark { color: var(--paper); border-color: var(--graphite); font-weight: 500; }
.btn--ghost-dark:hover { border-color: var(--paper); color: var(--paper); }
span.btn--ghost-dark.is-placeholder { color: var(--muted-on-ink); border-style: dashed; }
.btn--lg { padding: 14px 22px; }
.btn--nav { font-weight: 500; }
.btn--block { width: 100%; padding: 16px 22px; overflow-wrap: anywhere; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 243, 239, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lockup:hover { color: var(--ink); }
.wordmark { font-family: var(--font-display); font-size: 23px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.wordmark__dev { color: var(--signal-green); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.site-nav__link { color: var(--graphite); text-decoration: none; padding: 10px 0; }
.site-nav__link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-top: 88px; padding-bottom: 72px;
}
.hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__intro { font-size: 19px; line-height: 30px; color: var(--graphite); max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 20px; color: var(--slate);
}
.hero__art { flex: 1 1 300px; display: flex; justify-content: center; }
.hero__card {
  width: 320px; aspect-ratio: 1; max-width: 100%;
  border-radius: 32px; background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.hero__card .mark { width: 66%; height: auto; }

/* ---------- Sectors ---------- */
.sectors { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sectors__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 48px;
  padding-top: 36px; padding-bottom: 36px;
}
.sector { display: flex; flex-direction: column; gap: 6px; }
.sector__text { font-size: 16px; line-height: 25px; color: var(--graphite); }

/* ---------- Sections ---------- */
.section { display: flex; flex-direction: column; gap: 36px; padding-top: 72px; padding-bottom: 72px; }
.section--work { padding-top: 96px; padding-bottom: 40px; }
.section--interests { padding-top: 40px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.section-title { display: flex; flex-direction: column; gap: 10px; }
.section-head__aside { font-size: 15px; line-height: 24px; color: var(--slate); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-panel); }
.panel { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel__title { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 18px; color: var(--slate); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 6px 12px; border-radius: var(--r-chip); border: 1px solid var(--line);
  font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink); background: var(--white);
}
.chip--small { padding: 4px 10px; font-size: 12px; line-height: 16px; }
.chip--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.work-card { display: flex; flex-direction: column; overflow: hidden; }
.work-card__media {
  height: 220px; width: 100%; object-fit: cover;
  display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 20px;
}
.work-card__media--dark { background: var(--ink); color: var(--muted-on-ink); }
.work-card__media--light { background: var(--stone); color: var(--graphite); }
.work-card__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work-card__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.work-card--feature .work-card__title { font-size: 26px; line-height: 32px; }
.work-card__text { font-size: 15px; line-height: 24px; color: var(--graphite); }
.work-card--feature .work-card__text { font-size: 16px; line-height: 25px; }
.work-card .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- CV ---------- */
.cv { display: flex; flex-wrap: wrap; gap: 40px; }
.timeline { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.timeline__item { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline__dates {
  width: 170px; padding-top: 3px;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 20px; color: var(--slate);
}
.timeline__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.timeline__role { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; }
.timeline__text { font-size: 15px; line-height: 24px; color: var(--graphite); }

.cv__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.chips--list li { display: contents; }
.languages { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 8px; font-size: 15px; line-height: 22px; color: var(--graphite); }
.languages li { display: flex; flex-direction: column; }
.languages__level, .education__detail { font-size: 13px; line-height: 20px; color: var(--slate); }
.education { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 24px; color: var(--graphite); }
.education li { display: flex; flex-direction: column; }

/* ---------- Interests ---------- */
.interest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.interest { gap: 10px; }
.interest__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 26px; }
.interest__text { font-size: 15px; line-height: 23px; color: var(--graphite); }

/* ---------- Contact + footer ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px;
  padding-top: 88px; padding-bottom: 88px;
}
.contact__copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em;
}
.contact__text { font-size: 18px; line-height: 28px; color: var(--body-on-ink); max-width: 520px; }
.contact__actions { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact__links { display: flex; gap: 12px; }
.contact__links > * { flex: 1; }

.site-footer { background: var(--ink); color: var(--muted-on-ink); border-top: 1px solid var(--line-dark); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 24px; padding-bottom: 24px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 18px;
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  /* The nav wraps to two rows on phones, so don't pin it: it would eat a fifth of the screen. */
  .site-header { position: static; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  [id] { scroll-margin-top: 0; }
  .site-header__inner { padding-top: 14px; padding-bottom: 14px; gap: 10px; }
  .site-nav { gap: 4px 20px; }
  .hero { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero__card { width: 240px; border-radius: 24px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section--work { padding-top: 64px; padding-bottom: 32px; }
  .section--interests { padding-top: 32px; padding-bottom: 72px; }
  .work-card__body { padding: 22px; }
  .work-card__media { height: 180px; }
  .contact__inner { padding-top: 64px; padding-bottom: 64px; }
}

/* ---------- Work screenshots ---------- */
.work-card__img { padding: 0; object-position: top left; border-bottom: 1px solid var(--line); }

/* ---------- Spotify tracks (interests) ---------- */
.tracks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.track {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none;
  background: var(--paper);
}
.track:hover { border-color: var(--ink); }
.track__play {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 11px; padding-left: 2px;
}
.track__meta { display: flex; flex-direction: column; min-width: 0; }
.track__title { font-weight: 600; font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__artist { font-size: 13px; line-height: 18px; color: var(--slate); }
.track__embed { display: block; width: 100%; height: 80px; border: 0; border-radius: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
