:root {
  color-scheme: light dark;
  --page: #f6f6f3;
  --surface: #e9e9e5;
  --surface-strong: #deded9;
  --ink: #171716;
  --muted: #646460;
  --quiet: #898985;
  --selection: #1f1f1d;
  --selection-ink: #f6f6f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0b0a;
    --surface: #151514;
    --surface-strong: #20201e;
    --ink: #f1f1ed;
    --muted: #adada7;
    --quiet: #7c7c77;
    --selection: #e8e8e2;
    --selection-ink: #111110;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

::selection {
  background: var(--selection);
  color: var(--selection-ink);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.container {
  margin: 0 auto;
  max-width: 1160px;
}

header {
  min-height: 72vh;
  padding: clamp(2rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.availability {
  margin: 0 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 7ch;
  font-size: clamp(3.8rem, 10vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.87;
}

.intro {
  max-width: 32ch;
  margin-top: 2rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  font-weight: 600;
}
.links a {
  text-decoration-color: var(--quiet);
}

.section {
  padding: clamp(3.5rem, 8vw, 7.5rem) clamp(1.5rem, 6vw, 5rem);
}

.about {
  background: var(--surface);
}
.about p {
  max-width: 66ch;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.projects {
  background: var(--page);
}
h2 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--page);
}
.project {
  padding: 1.5rem 1.4rem 1.8rem;
  background: var(--surface);
  min-height: 11rem;
}
.project h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.project p {
  max-width: 29ch;
  margin-top: 1rem;
  color: var(--muted);
}
.more-projects {
  margin-top: 1.5rem;
  color: var(--muted);
}

.experience {
  background: var(--surface-strong);
}
.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.experience-list li {
  display: grid;
  grid-template-columns: minmax(13rem, 0.85fr) minmax(0, 1.6fr);
  gap: 0.4rem 3rem;
  padding: 1.5rem 0;
}
.experience-list strong {
  font-size: 1.05rem;
}
.experience-list strong a {
  text-decoration-color: var(--quiet);
}
.exp-role,
.exp-time,
.exp-desc {
  grid-column: 2;
}
.exp-role {
  color: var(--muted);
}
.exp-time {
  color: var(--quiet);
  font-size: 0.9rem;
}
.exp-desc {
  max-width: 52ch;
  margin-top: 0.3rem;
}

@media (max-width: 640px) {
  header {
    min-height: 62vh;
  }
  .projects-list {
    grid-template-columns: 1fr;
  }
  .experience-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .exp-role,
  .exp-time,
  .exp-desc {
    grid-column: 1;
  }
  .exp-desc {
    margin-top: 0.45rem;
  }
}
