/* One font, two weights, three sizes. Square edges everywhere. */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #dddddd;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #eeeeee;
    --muted: #999999;
    --line: #333333;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

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

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

h1, h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: 2rem; line-height: 1.15; }
h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

p { margin: 0 0 1rem; }

/* Layout: two columns on wide screens, stacked on narrow ones. Fills the viewport. */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.intro,
.projects {
  padding: 4rem 3rem;
}

.intro {
  border-right: 1px solid var(--line);
}

@media (min-width: 900px) {
  .intro {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .intro nav { margin-top: auto; }
}

@media (max-width: 899px) {
  .page { grid-template-columns: 1fr; }
  .intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .intro, .projects { padding: 2.5rem 1.5rem; }
  h1 { font-size: 1.6rem; }
}

/* Intro */
.role { color: var(--muted); margin: 0.5rem 0 2rem; }
.interests { color: var(--muted); margin-top: 1.5rem; }

.links {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

/* Projects */
.projects h2 { margin-bottom: 1.5rem; }

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.project-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.project-list .name { font-weight: 600; }
.project-list .desc { margin: 0.25rem 0 0; }
.project-list .meta {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.project-list .status { color: var(--muted); }

.more {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
