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

/* ------------------ Color + Typography ------------------ */
:root {
  --bg: #F3ECE2;
  /* light creme */
  --text: #333;
  /* dark grey */
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);

  /* Prefer any installed Nerd Font, fall back to clean monos & system font */
  font-family:
    "FiraCode Nerd Font",
    "JetBrainsMono Nerd Font",
    "Hack Nerd Font",
    "Iosevka Nerd Font",
    "SF Mono",
    Menlo,
    Consolas,
    "Liberation Mono",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ------------------ Layout ------------------ */
main {
  max-width: 680px;
  width: 100%;
  padding: 4rem 1.5rem;
  text-align: left;
}

/* Headline & copy */
h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 4rem;
}

/* Vertical navigation */
nav {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

nav a {
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: opacity .2s ease;
}

nav a:hover {
  opacity: .6;
}

/* Small-screen tweaks */
@media (max-width: 420px) {
  h1 {
    font-size: 2.4rem;
  }

  p {
    font-size: 1rem;
  }

  nav a {
    font-size: 1.1rem;
  }
}