/* jasonbobe.com — personal site. Simple, fast, light and dark. */

:root {
  --bg: #fbfbf9;
  --text: #14181d;
  --muted: #566070;
  --line: #e3e6e4;
  --accent: #1f9d63;
  --tile: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1210;
    --text: #eef1ef;
    --muted: #9aa6a0;
    --line: #232b27;
    --accent: #3fcf8e;
    --tile: #ffffff; /* logos sit on white so they stay legible */
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* ---------- intro ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 13rem;
  gap: 2rem;
  align-items: center;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }

.intro p { color: var(--muted); font-size: 1.15rem; line-height: 1.55; }

@media (max-width: 640px) {
  .intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .portrait { order: -1; width: 9rem; }
}

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

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.8rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

h2::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

ul.links { list-style: none; padding: 0; margin: 0; }
ul.links li { margin: 0.35rem 0; }

/* ---------- project tiles ---------- */

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.projects li {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 0.9rem 0.7rem;
  text-align: center;
}

.projects img {
  display: block;
  width: 100%;
  height: 6.5rem;
  object-fit: contain;
  margin-bottom: 0.55rem;
}

.projects span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #566070;
}

@media (max-width: 520px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
}

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

footer { border-top: 1px solid var(--line); margin-top: 3rem; }
