/* Nicholas Packwood — personal landing page
   System serif stack (Georgia first). No webfonts, no trackers. */

:root {
  --bg: #f7f4ef;
  --ink: #1a1814;
  --rule: #1a1814;
  --page: 38rem;
  --serif: Georgia, "Palatino Linotype", Palatino, "Times New Roman", Times,
    "Liberation Serif", "Nimbus Roman", serif;
}

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

html {
  font-size: 125%; /* 20px when the browser default is 16px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.4rem 0.8rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--page);
  margin: 0 auto;
  padding: 3.5rem 1.75rem 2.5rem;
}

.masthead {
  margin-bottom: 2.25rem;
}

.masthead h1 {
  margin: 0 0 0.4rem;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.4;
}

.bio {
  margin: 0 0 2.5rem;
}

.links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links a {
  font-size: 1.05rem;
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin: 0;
}

.site-footer small {
  font-size: 1rem;
}

@media (max-width: 40rem) {
  html {
    font-size: 125%;
  }

  .page {
    padding: 2.5rem 1.25rem 2rem;
    justify-content: flex-start;
  }

  .masthead h1 {
    font-size: 2.1rem;
  }
}

@media (min-width: 60rem) {
  .masthead h1 {
    font-size: 3rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .skip-link {
    display: none;
  }

  .page {
    min-height: 0;
    padding: 0;
  }

  a {
    text-decoration: none;
  }
}
