html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: #121210;
  color: #ece7de;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  padding: 2.5rem 1.5rem 4rem;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
}

::selection {
  background: #ece7de;
  color: #121210;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid #ece7de;
  outline-offset: 3px;
}

.container {
  max-width: 42rem;
  margin: 0 auto;
}

.siteHeader {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2c2b27;
}

.headerRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.15rem;
}

h1,
h2 {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2.6rem, 10vw, 5.1rem);
}

.intro {
  margin-top: 1.15rem;
  max-width: 36rem;
}

.subhead {
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

#themeToggle {
  font: inherit;
  font-size: 0.95rem;
  color: #ece7de;
  background: transparent;
  border: 1px solid #2c2b27;
  border-radius: 0;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

#themeToggle:hover {
  background: #ece7de;
  color: #121210;
}

.githubLink {
  display: flex;
  color: inherit;
  text-decoration: none;
}

.githubLink:hover {
  opacity: 0.55;
  text-decoration: none;
}

.projectList {
  list-style: none;
  margin-top: 0.25rem;
}

.project {
  padding: 1.5rem 0;
  border-bottom: 1px solid #2c2b27;
}

.project h2 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

h2 a {
  text-decoration: none;
}

h2 a:hover {
  text-decoration: underline;
}

.description {
  max-width: 38rem;
}

.description p + p {
  margin-top: 0.5rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin-top: 0.8rem;
}

.note {
  margin-top: 0.75rem;
  color: #9b968c;
}

.legacy {
  margin-top: 0.95rem;
}

.legacy p {
  color: #9b968c;
  margin-bottom: 0.2rem;
}

.legacy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  list-style: none;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] body {
  background: #f4f1ea;
  color: #1b1a17;
}

html[data-theme="light"] ::selection {
  background: #1b1a17;
  color: #f4f1ea;
}

html[data-theme="light"] button:focus-visible,
html[data-theme="light"] a:focus-visible {
  outline-color: #1b1a17;
}

html[data-theme="light"] .siteHeader,
html[data-theme="light"] .project {
  border-color: #d8d2c6;
}

html[data-theme="light"] #themeToggle {
  color: #1b1a17;
  border-color: #d8d2c6;
}

html[data-theme="light"] #themeToggle:hover {
  background: #1b1a17;
  color: #f4f1ea;
}

html[data-theme="light"] .note,
html[data-theme="light"] .legacy p {
  color: #5e5a52;
}

@media (max-width: 560px) {
  body {
    padding: 1.5rem 1.1rem 3rem;
  }

  .subhead {
    font-size: 1.15rem;
  }
}
