:root {
  color-scheme: light;
  --background: #f3f5f2;
  --foreground: #172019;
  --muted: #5c675f;
  --accent: #276247;
  --accent-hover: #173f2d;
  --line: #cbd2cc;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--background);
  color: var(--foreground);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.sale {
  width: min(100% - 48px, 1120px);
  margin: auto;
  padding: 96px 0;
  animation: appear 500ms ease-out both;
}

.status {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.contact {
  display: inline-flex;
  min-height: 48px;
  margin-top: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.contact:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.contact:focus-visible {
  outline: 3px solid #9bc7ad;
  outline-offset: 4px;
}

footer {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .sale {
    width: min(100% - 32px, 1120px);
    padding: 64px 0;
  }

  h1 {
    font-size: 2rem;
  }

  .contact {
    width: 100%;
    margin-top: 40px;
  }

  footer {
    width: min(100% - 32px, 1120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sale {
    animation: none;
  }

  .contact {
    transition: none;
  }
}
