/* Eleventh Hour — shared styles for every page */

:root {
  --background: #f8f5ee;
  --text: #211f1c;
  --hover: #6a655c;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-weight: 400;
}

h1,
h2,
p {
  font-weight: 400;
  margin: 0;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--hover);
}

a:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 0.25em;
}

/* ---------- Landing page ---------- */

.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.landing h1 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.25rem); /* ~28px on phones, 36px on desktop */
  line-height: 1.2;
  text-align: center;
}

/* ---------- About page ---------- */

.about {
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  font-size: 1.25rem; /* 20px */
  line-height: 1.7;
}

.about header {
  margin-bottom: 5rem;
}

.about header a {
  font-size: 1rem;
}

.about section {
  margin-bottom: 3.5rem;
}

.about h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 48rem) {
  .about {
    padding-top: 4rem;
  }

  .about header {
    margin-bottom: 7rem;
  }
}
