@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/raleway-latin-300.woff2") format("woff2");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/raleway-latin-400.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #ede8e0;
  --muted: #a8a198;
  --quiet: #878078;
  --line: rgb(255 255 255 / 0.14);
  --line-strong: rgb(255 255 255 / 0.4);
  --font: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  background: #000;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
}

.logo {
  display: block;
  width: min(84vw, 58svh);
  height: auto;
}

.wordmark {
  margin: clamp(1.5rem, 4vh, 2.75rem) 0 0;
  padding-left: 0.34em;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.34em;
  text-shadow: 0 0 22px rgb(255 236 210 / 0.28);
}

.button {
  display: inline-block;
  margin-top: clamp(2rem, 5vh, 3.25rem);
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}

.button:hover {
  border-color: rgb(255 255 255 / 0.75);
  background: rgb(255 255 255 / 0.05);
}

.button span {
  display: inline-block;
  margin-left: 0.25em;
  letter-spacing: 0;
  transition: transform 200ms ease;
}

.button:hover span {
  transform: translateX(3px);
}

.scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 0;
  padding: 0.75rem;
  color: var(--muted);
  transition: color 200ms ease;
}

.scroll:hover {
  color: var(--ink);
}

.scroll svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.projects {
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) 1.5rem 0;
  scroll-margin-top: 1rem;
}

.projects h2 {
  margin: 0 0 2.5rem;
  padding-left: 0.4em;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-align: center;
}

.projects ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}

.projects li {
  display: flex;
}

.projects li a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}

.projects li a:hover {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.025);
}

.projects h3 {
  margin: 0;
  padding-left: 0.2em;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.2em;
}

.projects p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-wrap: balance;
}

.projects .where {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--quiet);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

footer {
  padding: 4rem 1.5rem 3rem;
  color: var(--quiet);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-align: center;
}

footer a {
  color: var(--muted);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
}

footer a:hover {
  color: var(--ink);
}

.not-found .logo {
  width: min(64vw, 36svh);
}

.not-found .wordmark {
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
}

.not-found p {
  margin: 1rem 0 0;
  color: var(--muted);
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
