:root {
  --burgundy: #4a0e2e;
  --gold: #c9a96e;
  --ivory: #faf8f5;
  --charcoal: #2c2c2c;
  --muted: #756a6f;
  --surface: rgba(255, 255, 255, 0.68);
  --border: rgba(74, 14, 46, 0.16);
  --shadow: 0 24px 70px rgba(74, 14, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ivory);
}

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--charcoal);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(250, 248, 245, 0.94), rgba(250, 248, 245, 0.78)),
    repeating-linear-gradient(
      132deg,
      rgba(201, 169, 110, 0.1) 0,
      rgba(201, 169, 110, 0.1) 1px,
      transparent 1px,
      transparent 26px
    ),
    linear-gradient(145deg, rgba(74, 14, 46, 0.07), transparent 56%),
    var(--ivory);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 28px 20px 18px;
  display: grid;
  align-items: center;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 40px 0 28px;
}

.brand-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--burgundy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.15rem;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: 0;
}

.tagline {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--charcoal);
  font-size: 1.25rem;
  line-height: 1.1;
}

.hero-copy {
  max-width: 620px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-copy p + p {
  margin-top: 12px;
}

.hero-copy .opening-line {
  color: var(--charcoal);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.4;
}

.signup-form {
  max-width: 660px;
  margin-top: 34px;
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--burgundy);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.signup-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(74, 14, 46, 0.2);
  border-radius: 6px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.signup-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.18);
}

.signup-form input::placeholder {
  color: rgba(44, 44, 44, 0.48);
}

.signup-form button {
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--burgundy);
  border-radius: 6px;
  color: var(--ivory);
  font-weight: 700;
  background: var(--burgundy);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.signup-form button:hover:not(:disabled) {
  background: #371026;
  transform: translateY(-1px);
}

.signup-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-message.success {
  color: #315b3a;
}

.form-message.error {
  color: #8a1f2d;
}

.site-footer {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px 20px 26px;
  display: grid;
  gap: 6px;
  color: rgba(44, 44, 44, 0.66);
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 680px) {
  .page-shell {
    padding: 48px 40px 24px;
  }

  .hero {
    padding: 58px 0 42px;
  }

  h1 {
    font-size: 6.4rem;
  }

  .tagline {
    font-size: 1.7rem;
  }

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

  .signup-form button {
    min-width: 156px;
  }

  .site-footer {
    padding-right: 40px;
    padding-left: 40px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-right: 340px;
  }

  h1 {
    font-size: 8.3rem;
  }

  .tagline {
    font-size: 2.05rem;
  }

  .hero::after {
    content: "";
    position: absolute;
    right: 0;
    top: 84px;
    z-index: -1;
    width: 260px;
    height: 420px;
    border: 1px solid rgba(201, 169, 110, 0.54);
    border-radius: 130px 130px 8px 8px;
    background:
      linear-gradient(180deg, rgba(250, 248, 245, 0.34), rgba(74, 14, 46, 0.1)),
      repeating-linear-gradient(
        105deg,
        rgba(201, 169, 110, 0.22) 0,
        rgba(201, 169, 110, 0.22) 1px,
        transparent 1px,
        transparent 18px
      );
  }
}
