:root {
  color-scheme: light;
  --bg: #f7f2ea;
  --bg-deeper: #efe7db;
  --ink: #1f1b16;
  --muted: #6b5f53;
  --accent: #c56a42;
  --accent-dark: #a5522f;
  --card: #fffdf9;
  --border: #e5dacb;
  --shadow: 0 24px 60px rgba(48, 34, 20, 0.12);
  --radius: 22px;
  --max: 1200px;
  --display: "Iowan Old Style", "Palatino", "Book Antiqua", "Georgia", serif;
  --body: "Avenir Next", "Segoe UI", "Trebuchet MS", "Helvetica Neue",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: radial-gradient(
      120% 120% at 10% 0%,
      #fff7ea 0%,
      var(--bg) 45%,
      var(--bg-deeper) 100%
    )
    fixed;
  min-height: 100vh;
}

.page {
  position: relative;
  overflow: hidden;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(197, 106, 66, 0.18) 0%,
    rgba(197, 106, 66, 0.02) 60%,
    rgba(197, 106, 66, 0) 70%
  );
  z-index: 0;
  filter: blur(1px);
}

.page::before {
  top: -220px;
  right: -160px;
}

.page::after {
  bottom: -260px;
  left: -220px;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 12px 36px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

header strong {
  font-family: var(--display);
  letter-spacing: 0.16em;
  color: var(--ink);
}

main {
  margin-top: 32px;
  display: grid;
  gap: 32px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1.02;
  margin: 0 0 24px;
  max-width: 12ch;
}

.hero p {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 12px;
}

.card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

label {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: var(--body);
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus {
  outline: none;
  border-color: rgba(197, 106, 66, 0.55);
  box-shadow: 0 0 0 4px rgba(197, 106, 66, 0.15);
}

button {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(197, 106, 66, 0.25);
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.form-status {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

.note {
  font-size: 13px;
  color: var(--muted);
}

footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.is-loaded .fade-up {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 22, 16, 0.55);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 24px;
  max-width: 420px;
  width: min(92vw, 420px);
  box-shadow: 0 28px 60px rgba(22, 16, 10, 0.3);
  z-index: 1;
  display: grid;
  gap: 12px;
  text-align: left;
}

.modal__panel h2 {
  margin: 0;
  font-size: 22px;
}

.modal__panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  box-shadow: none;
}

@media (max-width: 860px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  main {
    margin-top: 24px;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  form {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
