:root {
  --background: #e8e5de;
  --text: #111;
  --muted: #444;
  --rule: #111;
  --quote-rule: #b8b2a5;
  --panel: #f4f1ea;
  --font-body: "Nunito Sans", Arial, sans-serif;
  --font-heading: "Literata", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px dashed #777;
  outline-offset: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-style: italic;
  line-height: 1.1;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 3rem;
}

p {
  margin: 0 0 1.2rem;
}

blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--quote-rule);
  color: var(--muted);
  font-style: italic;
}

blockquote p {
  margin-bottom: 0.55rem;
}

blockquote footer {
  font-size: 0.92rem;
  font-style: normal;
}

.container {
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  padding: 1.2rem 0;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  text-decoration: none;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.9rem;
}

.site-menu a {
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  height: 2px;
  margin: 0.32rem 0;
  background: var(--text);
}

.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.intro-section {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.intro-section + .feature-section {
  padding-top: 1rem;
}

.intro-section + .feature-section .feature {
  align-items: start;
}

.section-heading {
  max-width: 31rem;
  margin: 0 auto 2rem;
}

.intro-heading {
  max-width: 42rem;
}

.intro-heading h2 {
  white-space: nowrap;
}

.line {
  width: 3.5rem;
  height: 1px;
  margin-top: 1rem;
  background: var(--rule);
}

.intro-copy {
  max-width: 42rem;
  margin-inline: auto;
}

.feature {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 5rem);
}

.image-stack {
  position: relative;
}

.image-stack img {
  position: relative;
  border: 0;
}

.feature-text {
  max-width: 34rem;
}

.feature-text .line {
  margin-bottom: 1.5rem;
}

.back-to-top {
  display: inline-block;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--text);
  border-radius: 4px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: #333;
}

.contact-section {
  padding-top: clamp(3rem, 7vw, 4.5rem);
}

.contact-section h2 {
  margin-bottom: 0.8rem;
}

.site-footer {
  padding: 2.5rem 0 2rem;
  text-align: center;
  font-size: 0.92rem;
}

.site-footer .container {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  h1 {
    font-size: 3.75rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    z-index: 10;
    display: none;
    width: min(18rem, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid var(--rule);
    background: var(--background);
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.12);
  }

  .site-nav.is-open .site-menu {
    display: grid;
    gap: 0.85rem;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .feature-text {
    max-width: none;
  }

}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .intro-heading h2 {
    white-space: normal;
  }

  .container,
  .site-nav {
    width: min(100% - 1.5rem, 1040px);
  }

  .hero {
    text-align: left;
  }

}
