@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fcfbfa;
  --fg: #1c1b1a;
  --muted: #767168;
  --rule: #e2dfdb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0d;
    --fg: #eceae7;
    --muted: #85817b;
    --rule: #2b2a28;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.page {
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(5rem, 16vh, 10rem) 1.5rem 6rem;
}

/* Dateline clock */
.clock {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 450;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  gap: 0.75em;
  margin-bottom: 4rem;
  white-space: nowrap;
}

/* Name */
.name {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* Sections */
.block {
  margin-bottom: 2.5rem;
}

.label {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.past {
  list-style: none;
}

.past li + li {
  margin-top: 0.5rem;
}

/* Links */
.links {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  background-image:
    linear-gradient(var(--fg), var(--fg)),
    linear-gradient(var(--rule), var(--rule));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 calc(100% - 0.05em), 0 calc(100% - 0.05em);
  background-repeat: no-repeat;
  transition: background-size 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  padding-bottom: 0.1em;
}

a:hover {
  background-size: 100% 1px, 100% 1px;
}

a:focus-visible {
  outline: 1.5px solid var(--fg);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Entrance */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(80ms + var(--i) * 70ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
