:root {
  color-scheme: light;
  --background: #f5f5f2;
  --text: #1b1b19;
  --muted: #73736d;
  --quiet: #8a8983;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--background);
}

.landing {
  width: min(100% - 3rem, 64rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

h1,
p {
  margin: 0;
}

h1 {
  font-family:
    "Iowan Old Style",
    "Baskerville",
    "Times New Roman",
    ui-serif,
    serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.identity p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.contact {
  display: grid;
  gap: 0.5rem;
}

.contact span {
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
}

.contact a {
  font-size: 0.9rem;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  font-size: 0.85rem;
}

a {
  transition: opacity 140ms ease;
}

a:hover {
  opacity: 0.52;
}

a:focus-visible {
  border-radius: 0.1rem;
  outline: 1px solid currentColor;
  outline-offset: 0.35rem;
}

@media (max-width: 36rem) {
  .landing {
    width: min(100% - 2.25rem, 64rem);
    padding-block: 2.25rem;
  }

  footer {
    display: grid;
    gap: 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #171715;
    --text: #efefe9;
    --muted: #a5a59d;
    --quiet: #898981;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
