:root {
  color-scheme: dark;
  --ink: #f4f0e8;
  --muted: #a5a097;
  --line: rgba(244, 240, 232, 0.16);
  --accent: #ff6847;
  --background: #171717;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

body::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
  position: fixed;
}

.page-shell {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  min-height: 100svh;
  max-width: 1180px;
  padding: 32px 48px 28px;
  position: relative;
}

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  justify-content: space-between;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 500;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: var(--background);
  display: inline-flex;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  line-height: 1;
  padding-bottom: 3px;
  width: 28px;
}

.hero {
  margin: auto 0;
  padding: 12vh 0 10vh;
}

.eyebrow {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4.5rem, 12vw, 9.5rem);
  letter-spacing: -0.085em;
  line-height: 0.82;
  margin: 0;
  max-width: 900px;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.intro {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  margin: 38px 0 64px;
  max-width: 390px;
}

.links {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 780px;
}

.link-card {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 18px;
  grid-template-columns: 30px 1fr auto;
  padding: 20px 18px 20px 0;
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.link-card + .link-card {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.link-card:hover,
.link-card:focus-visible {
  color: var(--accent);
  padding-left: 6px;
}

.link-index {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
}

.link-name {
  font-size: 1.05rem;
  font-weight: 500;
}

.link-arrow {
  font-size: 1.2rem;
}

.site-footer {
  color: var(--muted);
}

.footer-note {
  color: var(--accent);
}

.dots {
  letter-spacing: 0.2em;
  margin-left: 2px;
}

@media (max-width: 700px) {
  .page-shell {
    padding: 24px 22px 20px;
  }

  .hero {
    padding: 12vh 0 8vh;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .intro {
    margin: 30px 0 48px;
  }

  .links {
    display: block;
  }

  .link-card,
  .link-card + .link-card {
    border-left: 0;
    padding-left: 0;
  }

  .link-card:hover,
  .link-card:focus-visible {
    padding-left: 6px;
  }

  .footer-note {
    display: none;
  }
}
