:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --text: #efece6;
  --muted: #a8a39a;
  --border: #2e2d2b;
  --accent: #fb923c;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
}

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

html { -webkit-text-size-adjust: 100%; }

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

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 3.5rem 1rem 4rem;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.intro { text-align: center; }

.portrait {
  display: block;
  width: 220px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tagline {
  margin: .5rem 0 0;
  color: var(--muted);
}

h2 {
  margin: 3rem 0 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.card {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); }

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 650;
  font-size: 1.1rem;
}
.arrow { color: var(--accent); transition: transform .15s; }
.card:hover .arrow { transform: translateX(3px); }

.card-body {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .95rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}
.links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.links a:hover { border-color: var(--accent); color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .card, .arrow, .links a { transition: none; }
  .card:hover, .card:hover .arrow { transform: none; }
}

.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .75rem;
}

.tool {
  display: flex;
  flex-direction: column;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.tool-title {
  font-weight: 650;
  text-decoration: none;
}
.tool-title:hover { color: var(--accent); }

.tool-body {
  flex: 1;
  margin: .25rem 0 .6rem;
  color: var(--muted);
  font-size: .9rem;
}

.tool-src {
  font-size: .8rem;
  color: var(--muted);
  text-underline-offset: 3px;
}
.tool-src:hover { color: var(--accent); }

.nowrap { white-space: nowrap; }
