:root {
  color-scheme: light dark;

  --bg: light-dark(#f7f7f7, #080808);
  --fg: light-dark(#080808, #ededed);
  --muted: light-dark(#6b6b6b, #9a9a9a);
  --line: light-dark(#e2e2e2, #232323);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) 1.25rem 5rem;
}

h1,
h2,
p,
ul {
  margin: 0;
}

h1 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: inherit;
  font-weight: 400;
  color: var(--muted);
}

p {
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: currentColor;
}

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

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

header {
  margin-bottom: 4rem;
}

section {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 40rem) {
  section {
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
  }
}

ul {
  padding: 0;
  list-style: none;
}

.list {
  display: grid;
  gap: 1.75rem;
}

.list > li {
  display: grid;
}

.line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.date,
.meta {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.list p {
  margin-top: 0.25rem;
}

.details {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

.details li {
  position: relative;
  padding-left: 1rem;
  text-wrap: pretty;
}

.details li::before {
  content: "–";
  position: absolute;
  left: 0;
}

.contact {
  margin-top: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  header,
  section {
    animation: enter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  section:nth-of-type(1) { animation-delay: 60ms; }
  section:nth-of-type(2) { animation-delay: 120ms; }
  section:nth-of-type(3) { animation-delay: 180ms; }
  section:nth-of-type(4) { animation-delay: 240ms; }
  section:nth-of-type(5) { animation-delay: 300ms; }
  section:nth-of-type(6) { animation-delay: 360ms; }

  @keyframes enter {
    from {
      opacity: 0;
      translate: 0 6px;
    }
  }
}
