:root {
  color-scheme: dark;
  --night: #070B14;
  --night-deep: #04060C;
  --ink: #12161F;
  --ice: #E6EDF5;
  --frost: #B4C3D6;
  --frost-deep: #6A829C;
  --mist: #8B9BB0;
  --ember: #FD8E1B;
  --flame-core: #FFB84D;
  --hearth: #C46A28;
  --well: #2A1A10;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night-deep);
  border-top: 4px solid var(--ember);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3rem;
  max-width: 42.5rem;
  background: var(--night);
  color: var(--ice);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--night);
  color: var(--ice);
  border: 1px solid var(--frost-deep);
  border-radius: 0.4rem;
  transform: translateY(-200%);
  z-index: 1;
}

.skip:focus {
  transform: translateY(0);
}

h1,
h2,
.project-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ice);
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 7vw, 3rem);
  text-wrap: balance;
}

h1::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.9rem;
  background: var(--ember);
  border-radius: 2px;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

p {
  margin: 0;
}

h1 + p,
p + p {
  margin-top: 1rem;
}

header nav {
  margin-top: 1.25rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ice);
}

nav a:hover {
  color: var(--ember);
}

main {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--frost-deep);
}

section {
  scroll-margin-top: 1.25rem;
}

section + section {
  margin-top: 2.5rem;
}

#summary > p:first-of-type {
  max-width: 65ch;
}

a {
  color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

main p a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

a:hover {
  color: var(--flame-core);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
.skip:focus {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  a:focus-visible,
  button:focus-visible,
  .skip:focus {
    outline: 3px solid CanvasText;
  }
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--hearth);
  border-radius: 999px;
  color: var(--frost);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--ember);
  border-radius: 999px;
  background: var(--ember);
  color: var(--night);
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

.button svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  display: block;
}

a.button:hover {
  background: var(--flame-core);
  border-color: var(--flame-core);
  color: var(--night);
  text-decoration: none;
}

a.button:focus-visible {
  outline: 3px solid var(--flame-core);
  outline-offset: 3px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  margin: 0;
  padding: 0.4rem 0.75rem;
  background: var(--ink);
  border: 1px solid var(--frost-deep);
  border-radius: 999px;
  line-height: 1.35;
  color: var(--ice);
}

.project-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--well);
  border-radius: 0.75rem;
  background-color: var(--ink);
  background-image: linear-gradient(165deg, var(--ink), var(--well));
  box-shadow: 0 0 0 1px var(--hearth);
  color: var(--ice);
  text-decoration: none;
}

.project-hero {
  display: block;
  flex: none;
  width: 7rem;
  height: 7rem;
}

.project-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-copy {
  min-width: 0;
  padding-right: 1.25rem;
}

.project-external {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ember);
}

.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

@media (max-width: 30rem) {
  .project-hero {
    width: 4.5rem;
    height: 4.5rem;
  }
}

.project-card p {
  margin-top: 0.4rem;
  color: var(--frost);
}

a.project-card:hover {
  border-color: var(--hearth);
  box-shadow: 0 0 0 1px var(--ember);
  color: var(--ice);
  text-decoration: none;
}

a.project-card:hover .project-external {
  color: var(--flame-core);
}

footer {
  margin-top: 2.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--frost-deep);
  color: var(--frost);
}

footer p {
  margin: 0;
}
