:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #222a25;
  --muted: #49564d;
  --accent: #35634f;
  --hero: #e8eee6;
  --line: #d7ddd3;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.7 system-ui, sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(100% - 3rem, 65rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.header-inner {
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.1rem;
}

.site-header nav {
  gap: 0.4rem clamp(0.9rem, 3vw, 2rem);
}

.site-header a {
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.wordmark {
  color: var(--ink);
  font: bold 1.55rem/1 var(--serif);
  letter-spacing: -0.07em;
}

.wordmark span {
  color: var(--accent);
}

.hero {
  background: var(--hero);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.75rem, 9vw, 7rem);
}

.hero-copy {
  flex: 1 1 23rem;
  min-width: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.65rem, 8.5vw, 6.25rem);
  letter-spacing: -0.05em;
}

.role {
  margin: 1.45rem 0 0;
  color: var(--accent);
  font-weight: 650;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.intro {
  max-width: 49ch;
  margin: 0.95rem 0 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.profile-link {
  margin: 1.25rem 0 0;
}

.portrait {
  display: block;
  width: min(100%, 17rem);
  height: auto;
  border-radius: 0.5rem;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem clamp(2rem, 7vw, 6rem);
  padding-block: clamp(2.4rem, 6vw, 4.5rem);
  scroll-margin-top: 1rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  letter-spacing: -0.035em;
}

.section-body {
  max-width: 63ch;
}

.section-body p {
  margin: 0;
}

.section-body p + p {
  margin-top: 1rem;
}

.projects {
  display: grid;
  gap: 1rem;
}

.project {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.project h3 {
  font-size: 1.5rem;
}

.project p {
  margin: 0.5rem 0 0;
}

.project-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.project img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 43rem) {
  .section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 24rem) {
  .container {
    width: calc(100% - 2rem);
  }
}

.site-header .language-link {
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}
