html {
  --color-accent: oklch(68.584% 0.12759 267.908);
  accent-color: var(--color-accent);
  color-scheme: light dark;
}

body {
  /* Set line height to 1.5 times the font size
	   and use the OS’s UI font as the website font
	 */
  font: 100%/1.5 system-ui;
  max-width: 100ch;
  margin-inline: auto;
  padding: 5rem;
}

ul {
  display: contents;
}

li {
  display: contents;
}

nav {
  display: flex;
  margin-bottom: 4rem;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: oklch(50% 10% 200 / 40%);
}

nav a {
  flex: 1;
  text-decoration: none;
  color: inherit;
  text-align: center;
  padding: 0.5rem;
}

nav a.current {
  border-bottom: 0.2em solid oklch(50% 10% 200 / 40%);
  padding-bottom: 0.3rem;
}

a:hover {
  border-bottom: 0.2em solid var(--color-accent);
  background-color: color-mix(in oklch, var(--color-accent), canvas 85%);
  padding-bottom: 0.3rem;
}

form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1em;
}

label {
  display: block;
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
}

input {
  font: inherit;
}

textarea {
  font: inherit;
}

button.submit {
  font: inherit;
  display: block;
  width: 100%;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
}

article {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 0.5em;
  padding: 0.5em;
}

h2 {
  margin: 0;
}

h1 {
  font-size: 300%;
}

label.color-scheme {
  position: absolute;
  display: flex;
  gap: 0.5rem;
  top: 1rem;
  right: 1rem;
  font-size: 80%;
  font-family: inherit;
}

select {
  font: inherit;
}
