/* Papa Owusu · pkobts.github.io
   Tokens follow DESIGN.md (Raycast-style dark system). */

:root {
  /* surface ladder */
  --canvas: #07080a;
  --surface: #0d0d0d;
  --surface-elevated: #101111;
  --surface-card: #121212;

  /* lines */
  --hairline: #242728;
  --hairline-soft: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --ink: #f4f4f6;
  --body: #cdcdcd;
  --mute: #9c9c9d;
  --ash: #6a6b6c;
  --stone: #434345;

  /* action */
  --primary: #ffffff;
  --primary-pressed: #e8e8e8;
  --on-primary: #000000;

  /* accents: illustrations only, never chrome */
  --accent-blue: #57c1ff;
  --accent-red: #ff6161;
  --accent-green: #59d499;
  --accent-yellow: #ffc533;

  --stripe-start: #ff5757;
  --stripe-end: #a1131a;

  --key-bg-start: #121212;
  --key-bg-end: #0d0d0d;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 16px;
  --r-full: 9999px;

  --section: 96px;
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "calt", "kern", "liga", "ss03";
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

p { margin: 0; }

a {
  color: #ffffff;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 8px 16px;
  color: #fff;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(7, 8, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wordmark:hover { text-decoration: none; }

.wordmark .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--stripe-start), var(--stripe-end));
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nav-links a { color: var(--body); }
.nav-links a:hover { color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background: var(--primary-pressed); }

.btn-tertiary {
  background: var(--surface-elevated);
  color: #fff;
  border-color: var(--hairline);
}
.btn-tertiary:hover { border-color: var(--hairline-strong); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 var(--section);
  border-bottom: 1px solid var(--hairline);
}

/* the one stripe band the system allows, once per page */
.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: 780px;
  height: 300px;
  transform: rotate(-14deg);
  transform-origin: top right;
  background:
    linear-gradient(90deg, transparent, var(--stripe-end) 30%, var(--stripe-start)) 0 0 / 100% 26px no-repeat,
    linear-gradient(90deg, transparent, rgba(161, 19, 26, 0.75) 40%, rgba(255, 87, 87, 0.85)) 0 44px / 100% 14px no-repeat,
    linear-gradient(90deg, transparent, rgba(161, 19, 26, 0.45) 50%, rgba(255, 87, 87, 0.55)) 0 70px / 100% 7px no-repeat;
  filter: blur(1px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--mute);
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: 4px 12px;
  margin-bottom: 24px;
}

h1 {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero .lede {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 24px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- palette mockup ---------- */

.palette {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.palette-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}

.lights {
  display: flex;
  gap: 6px;
}
.lights i {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--stone);
}
.lights i:first-child { background: #57343a; }
.lights i:nth-child(2) { background: #55492c; }
.lights i:last-child { background: #2f4a3b; }

.palette-query {
  font-size: 14px;
  color: var(--mute);
}
.palette-query .caret {
  color: var(--accent-blue);
}

.palette-rows {
  padding: 8px;
  margin: 0;
  list-style: none;
}

.palette-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--body);
}

.palette-rows li.active {
  background: var(--surface-card);
  color: #fff;
}

.tile {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 14px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}

.tile.yellow { color: var(--accent-yellow); }
.tile.green { color: var(--accent-green); }
.tile.blue { color: var(--accent-blue); }
.tile.red { color: var(--accent-red); }

.palette-rows .shortcut { margin-left: auto; }

.key {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  padding: 1px 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--body);
  background: linear-gradient(180deg, var(--key-bg-start), var(--key-bg-end));
  border: 1px solid var(--hairline);
  border-radius: var(--r-xs);
}

.palette-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ash);
}
.palette-foot .right { margin-left: auto; }

/* ---------- sections ---------- */

section { padding: var(--section) 0; }
section + section { border-top: 1px solid var(--hairline); }

.section-head { max-width: 62ch; }

.section-head h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.section-head p {
  margin-top: 16px;
  font-size: 18px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 12px;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: var(--r-full);
  border: 1px solid var(--hairline);
  display: block;
}

.avatar-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ash);
  max-width: 22ch;
}

.about h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.prose { max-width: 64ch; margin-top: 24px; }
.prose p + p { margin-top: 20px; }
.prose strong { color: #fff; font-weight: 500; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--stone); }
.prose a:hover { text-decoration-color: #fff; }

.name-key {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px 24px;
}

.name-key dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.name-key dt { color: #fff; font-weight: 500; }
.name-key dd { margin: 0; color: var(--mute); }

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}

.card.elevated { background: var(--surface-elevated); }

.card h3 {
  font-size: 20px;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.card p { font-size: 14px; }
.card p + p { margin-top: 12px; }

.card .more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: var(--r-xs);
  background: rgba(87, 193, 255, 0.15);
  color: var(--accent-blue);
  margin-bottom: 12px;
}

/* ---------- link list ---------- */

.links {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.links li {
  border-bottom: 1px solid var(--hairline);
}

.links a {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 16px 8px;
  color: var(--body);
}

.links a:hover {
  background: var(--surface);
  text-decoration: none;
}

.links .title { color: #fff; font-weight: 500; font-size: 16px; }
.links .what { font-size: 14px; color: var(--mute); }
.links .arrow { color: var(--ash); font-size: 14px; }

/* ---------- projects page ---------- */

.page-head {
  padding: 64px 0 48px;
}

.back {
  display: inline-block;
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 24px;
}
.back::before { content: "← "; }
.back:hover { color: #fff; }

.page-head h1 { font-size: 56px; }

.page-head .lede {
  font-size: 18px;
  margin-top: 24px;
  max-width: 60ch;
}

.projects {
  padding-top: 0;
  border-top: 0;
}

.project {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
}

.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.month {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #fff;
}

.project-meta .badge { margin-bottom: 0; }

.project-body { max-width: 68ch; }

.project-body h2 {
  font-size: 24px;
  letter-spacing: 0.2px;
}

.project-body .tag {
  font-size: 18px;
  color: var(--charcoal, #d3d3d4);
  margin-top: 8px;
}

.project-body p + p { margin-top: 16px; }

.project-body .note {
  font-size: 13px;
  color: var(--ash);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.closing { border-top: 1px solid var(--hairline); }

/* home-page teaser row */

.teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}

.teaser .teaser-text {
  flex: 1 1 320px;
  font-size: 14px;
  color: var(--mute);
}

.teaser .teaser-text strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
}

/* ---------- connect ---------- */

.connect {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.connect a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}
.connect a:hover {
  background: var(--surface-elevated);
  border-color: var(--hairline-strong);
  text-decoration: none;
}
.connect .handle { display: block; font-size: 18px; color: #fff; font-weight: 500; }
.connect .desc { display: block; font-size: 14px; color: var(--mute); margin-top: 8px; }

/* email card: copies the address on click */

.copy-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}
.copy-card:hover {
  background: var(--surface-elevated);
  border-color: var(--hairline-strong);
}

.copy-card .handle {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.copy-state {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--mute);
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xs);
  padding: 2px 8px;
}

.copy-card.copied .copy-state {
  background: rgba(89, 212, 153, 0.15);
  border-color: transparent;
  color: var(--accent-green);
}

.copy-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
  color: var(--mute);
  font-size: 14px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.foot-links a { color: var(--mute); }
.foot-links a:hover { color: #fff; }

.foot-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ash);
  max-width: 60ch;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  h1 { font-size: 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; }
  .avatar { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
  :root { --section: 64px; }
  h1 { font-size: 44px; }
  .section-head h2 { font-size: 30px; }
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
  .hero::before {
    top: -40px;
    right: -40px;
    width: 340px;
    height: 160px;
    background-size: 100% 14px, 100% 8px, 100% 4px;
    background-position: 0 0, 0 24px, 0 38px;
  }
  .grid.three, .grid.two, .connect { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .project { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .project-meta { flex-direction: row; align-items: center; }
  .page-head h1 { font-size: 40px; }
  .links a { grid-template-columns: minmax(0, 1fr) auto; }
  .links .what { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  :root { --section: 48px; }
  h1 { font-size: 36px; }
  .hero { padding-top: 64px; }
  .hero .lede { font-size: 16px; }
  .wrap { padding: 0 20px; }
}
