:root {
  --burgundy: #4A0E2E;
  --gold: #C9A96E;
  --ivory: #FAF8F5;
  --charcoal: #2C2C2C;
  --rose-gold: #B76E79;
  --border: rgba(183, 110, 121, 0.38);
  --shadow: rgba(44, 44, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::selection {
  background: var(--gold);
  color: var(--burgundy);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 86svh;
  align-items: end;
  padding: 24px 20px 42px;
  background-color: var(--ivory);
  background-image: url("./assets/hero-still-life.jpg");
  background-position: 52% 50%;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 248, 245, 0.68);
  content: "";
}

.hero__content {
  width: min(100%, 680px);
}

.brand {
  margin-bottom: 52px;
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--gold);
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--burgundy);
  font-size: 3.05rem;
  line-height: 1;
}

.hero__copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--charcoal);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.hero__note {
  color: rgba(44, 44, 44, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(201, 169, 110, 0.68);
  outline-offset: 3px;
}

.button--primary {
  background: var(--burgundy);
  color: var(--ivory);
}

.button--primary:hover {
  background: var(--rose-gold);
}

.button--gold {
  width: 100%;
  background: var(--gold);
  color: var(--burgundy);
}

.button--gold:hover {
  background: var(--rose-gold);
  color: var(--ivory);
}

.features {
  padding: 58px 20px 64px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 28px;
}

.section-heading h2,
.subscribe h2 {
  margin-bottom: 0;
  color: var(--burgundy);
  font-size: 2.25rem;
  line-height: 1;
}

.feature-grid {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  gap: 16px;
}

.feature-card {
  min-height: 236px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  background: var(--ivory);
  box-shadow: 0 18px 44px var(--shadow);
}

.feature-card__number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--burgundy);
  font-size: 1.72rem;
  line-height: 1;
}

.feature-card p {
  margin-bottom: 0;
  color: rgba(44, 44, 44, 0.8);
}

.subscribe {
  padding: 58px 20px;
  background: var(--burgundy);
  color: var(--ivory);
}

.subscribe__inner {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  gap: 28px;
}

.subscribe h2 {
  color: var(--ivory);
}

.subscribe__copy p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(250, 248, 245, 0.82);
}

.signup-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.signup-form label {
  font-weight: 700;
}

.form-row {
  display: grid;
  gap: 12px;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(250, 248, 245, 0.32);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(250, 248, 245, 0.96);
  color: var(--charcoal);
  font: inherit;
}

input::placeholder {
  color: rgba(44, 44, 44, 0.52);
}

.form-note {
  margin-bottom: 0;
  color: rgba(250, 248, 245, 0.72);
  font-size: 0.88rem;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 26px 20px;
  background: var(--charcoal);
  color: rgba(250, 248, 245, 0.78);
  font-size: 0.88rem;
}

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

@media (min-width: 740px) {
  .hero {
    min-height: 84svh;
    padding: 36px 42px 58px;
    background-position: center;
  }

  .hero::before {
    background: rgba(250, 248, 245, 0.5);
  }

  .brand {
    margin-bottom: 88px;
    font-size: 1.5rem;
  }

  .hero h1 {
    max-width: 900px;
    font-size: 4.4rem;
  }

  .hero__copy {
    font-size: 1.08rem;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
  }

  .features {
    padding: 78px 42px 88px;
  }

  .section-heading {
    margin-bottom: 36px;
    text-align: center;
  }

  .section-heading h2,
  .subscribe h2 {
    font-size: 3.35rem;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .subscribe {
    padding: 80px 42px;
  }

  .subscribe__inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    align-items: center;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .button--gold {
    width: auto;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
    justify-content: space-between;
    padding: 30px 42px;
  }

  .site-footer p:last-child {
    text-align: right;
  }
}

@media (min-width: 1120px) {
  .hero {
    padding-left: calc((100vw - 1120px) / 2);
    padding-right: calc((100vw - 1120px) / 2);
  }
}

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

  *,
  *::before,
  *::after {
    transition: none;
  }
}
