:root {
  --ivory: #F7F5EF;
  --green: #082C1E;
  --green-hover: #0F3D2A;
  --muted: #526158;
  --rule: #CDD5CA;
  --sage: #E8EDE4;
  --white: #FFFFFF;

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --gutter: 64px;
  --max: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--green);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

img,
svg {
  display: block;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding-block: 20px;
}

.logo {
  display: inline-block;
  flex-shrink: 0;
}

.logo img {
  width: 184px;
  height: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 6px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: 64px;
  min-height: 560px;
  padding-block: 72px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 43ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 4px;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--green-hover);
}

.email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  font-size: 16px;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.hero__art {
  justify-self: end;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 360 / 420;
  background: var(--sage);
}

.hero__art svg {
  width: 100%;
  height: 100%;
}

/* Footer */

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

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__legal {
  flex-basis: 100%;
  font-size: 13px;
}

/* Tablet */

@media (max-width: 1023px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    gap: 48px;
  }
}

@media (max-width: 799px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: 64px;
  }

  .hero__art {
    justify-self: stretch;
    max-width: none;
    aspect-ratio: auto;
    height: 280px;
  }
}

/* Mobile */

@media (max-width: 639px) {
  :root {
    --gutter: 24px;
  }

  .site-header__inner {
    min-height: 88px;
    padding-block: 16px;
  }

  .logo img {
    width: 152px;
  }

  .hero {
    gap: 48px;
    padding-block: 56px;
  }

  .hero__art {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
