:root {
  color-scheme: light;
  --bg: rgb(122, 184, 143);
  --text: rgb(33, 28, 10);
  --link: rgb(14, 47, 25);
  --link-hover: rgb(24, 74, 42);
  --focus-ring: rgb(20, 58, 35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(14, 47, 25, 0.2);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

h1 {
  font-size: 50px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 60px;
  margin: 0 0 20px;
  text-wrap: balance;
}

h2 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.8px;
  line-height: 40.5px;
  margin: 0 0 20px;
  text-wrap: balance;
}

p {
  font-size: 18px;
  line-height: 28.8px;
  margin: 0 0 1.25rem;
}

.lede {
  border-left: 3px solid var(--link);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
}

section {
  margin-bottom: 3.5rem;
}

.hero {
  margin-bottom: 4rem;
}

.portrait {
  width: 100%;
  aspect-ratio: 7 / 6;
  border-radius: 15px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  margin: 1.5rem 0 0.5rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

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

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.button-wrap {
  text-align: center;
  margin-top: 0.5rem;
}

.button {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  font-size: 18px;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  background: rgb(53, 46, 20);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

ul {
  padding-left: 1.25rem;
}

li {
  font-size: 18px;
  margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .button {
    transition: none;
  }
}
