:root {
  color-scheme: dark;
  --background: #151218;
  --surface: #1e1924;
  --border: #3e3448;
  --text: #e4deeb;
  --muted: #b5aabf;
  --accent: #cdb5e2;
  --label-font: ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 0.875rem/1.65 system-ui, sans-serif;
}

.page {
  width: min(64rem, calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: 1.25rem 3rem;
  text-align: center;
}

.topbar {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  font: 0.75rem/1.5 var(--label-font);
}

nav a {
  display: block;
  padding-block: 0.6rem;
  text-decoration: none;
}

nav a:hover { text-decoration: underline; }

a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

p { margin: 0; }

.intro {
  max-width: 64ch;
  margin: 1.75rem auto 2rem;
  text-wrap: balance;
}

section { scroll-margin-top: 1rem; }

h2 {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font: 600 0.8125rem/1.4 var(--label-font);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

.featured { grid-column: 1 / -1; }

figure { margin: 0; }

.shot {
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
}

.shot:hover { border-color: var(--accent); }

img { display: block; width: 100%; height: auto; }

figcaption {
  display: grid;
  gap: 0.125rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
}

figcaption strong { color: var(--text); }

details {
  margin-top: 1.1rem;
  border-top: 1px solid var(--border);
}

summary {
  width: fit-content;
  margin-inline: auto;
  padding-block: 0.7rem;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.75rem;
}

.archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.notes {
  display: grid;
  justify-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.notes section { width: min(100%, 66ch); }
.notes h3 {
  margin: 1.2rem 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.notes .feature-list { list-style: none; }
.notes p + p { margin-top: 0.65rem; }
.notes ul, .notes ol {
  margin-block: 0.7rem;
  padding-inline-start: 0;
  list-style-position: inside;
}
.notes li + li { margin-top: 0.3rem; }
.muted { color: var(--muted); }

@media (max-width: 42rem) {
  .gallery { grid-template-columns: 1fr; }
  .page { width: calc(100% - 2rem); }
}

.home {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 1.5rem;
}

.project-directory { width: min(100%, 20rem); }

.project-directory h1 {
  margin: 0 0 1rem;
  color: var(--muted);
  font: 600 0.75rem/1.4 var(--label-font);
  text-align: center;
}

.project-list { margin: 0; padding: 0; list-style: none; }
.project-list li + li { margin-top: 0.5rem; }

.project-list a {
  position: relative;
  display: block;
  padding: 0.7rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
}

.project-list a [aria-hidden="true"] {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 0.9rem;
  transform: translateY(-50%);
}

.project-list a:hover { border-color: var(--accent); }

.feature-overview .notes { margin-top:0; padding-top:0; border-top:0; }
.feature-overview .feature-list { display:grid; gap:1rem; margin:0; }
.feature-overview .feature-list li + li { margin-top:0; }
.feature-overview .feature-list strong {
  display:block;
  margin-bottom:0.15rem;
  color:var(--accent);
  font-size:0.8125rem;
}
.feature-overview .feature-list p { color:var(--muted); font-size:0.8125rem; }
.project-requirement { margin-top:2rem; font-size:0.75rem; }

