:root {
  --bg:     #000;
  --text:   #f0efec;
  --muted:  #8b8880;
  --dim:    #5c5a55;
  --rule:   #1e1e1e;
  --accent: #7ee7a0;

  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }

strong { font-weight: 500; color: #fff; }

/* ── nav ───────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 2.1rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.6rem 2rem 0;
  font-size: 1.05rem;
}

.tabs a { color: var(--dim); transition: color .15s; }
.tabs a:hover { color: var(--muted); }
.tabs a.on { color: var(--text); }

/* ── page grid ─────────────────────────────────────────── */

.page {
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  gap: 4rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 7rem 2rem 8rem;
}

.page[hidden] { display: none; }

h1 {
  margin: 0 0 1.9rem;
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.col-main > p {
  margin: 0 0 1.5rem;
  color: #ddd9d2;
}

/* inline links inside prose need to be visible without shouting */
.col-main > p a,
.where a {
  color: var(--text);
  border-bottom: 1px solid #3a3a3a;
  transition: border-color .15s;
}
.col-main > p a:hover,
.where a:hover { border-bottom-color: var(--accent); }

/* ── list blocks (experience, projects, posts) ─────────── */

.block { margin-top: 5rem; }

h2 {
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.block.bare { margin-top: 4rem; }

.row {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}

.block.bare .row { border-bottom: none; padding: 1.1rem 0; }
.block:not(.bare) .row:last-child { border-bottom: none; }

.when {
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.9;
  color: var(--dim);
}

.what {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}

.where {
  display: block;
  margin-top: .1rem;
  color: var(--muted);
  font-size: 1rem;
}

.post .what { transition: color .15s; }
.post .what:hover { color: #fff; }

/* ── footer links ──────────────────────────────────────── */

.social {
  display: flex;
  gap: 2rem;
  margin-top: 5.5rem;
  color: var(--muted);
}
.social a { transition: color .15s; }

/* ── sidebar card ──────────────────────────────────────── */

.col-side { padding-top: .5rem; }

.card {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.4rem;
}

.avatar {
  width: 3.3rem;
  height: 3.3rem;
  flex: none;
  border-radius: 50%;
  border: 1px solid #2a2a2a;
  background: #141414 url(avatar.jpg) center/cover no-repeat;
}

.handle-name { font-weight: 500; }
.handle-at   { color: var(--muted); font-size: .95rem; }

.tags { margin: 0 0 1.4rem; color: var(--muted); }

.shot {
  display: block;
  width: 100%;
  max-width: 30rem;
  border: 1px solid #232323;
  border-radius: 10px;
}

.col-side p a { color: var(--muted); transition: color .15s; }

/* ── mobile ────────────────────────────────────────────── */

@media (max-width: 1000px) {
  body { font-size: 16px; }

  .tabs { padding: 1.8rem 1.4rem 0; gap: 1.6rem; }

  .page {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.4rem 5rem;
  }

  /* profile card above the bio on small screens */
  .col-side { order: -1; padding-top: 0; }

  h1 { font-size: 2rem; }

  .row { grid-template-columns: 1fr; gap: .3rem; }
  .when { line-height: 1.5; }

  .social { gap: 1.5rem; margin-top: 3.5rem; }
}
