/* briankyed.com — one page, one stylesheet. Change values in :root only. */

:root {
  --bg: #d9d9d9;
  --ink: #111111;
  --font: Georgia, "Times New Roman", Times, serif;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

main {
  text-align: center;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2.5vw + 1.4rem, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.5rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

nav a {
  display: inline-block;
  padding: 0.65rem 0.25rem; /* keeps tap targets at least 44px tall */
  font-size: clamp(1.0625rem, 0.5vw + 0.9rem, 1.25rem);
}

p {
  margin: 0;
  font-size: 1.125rem;
}

p a {
  display: inline-block;
  padding: 0.65rem 0.25rem; /* same tap target as nav a (used on 404.html) */
}

/* Stack the links on narrow screens instead of wrapping unevenly. */
@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
}
