:root {
  --bg: #f4ede3;
  --paper: rgba(255, 251, 245, 0.84);
  --paper-strong: #fffaf3;
  --ink: #2c1c19;
  --muted: #755b56;
  --accent: #9e3d34;
  --accent-soft: #d98a73;
  --line: rgba(44, 28, 25, 0.1);
  --shadow: 0 24px 80px rgba(88, 42, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 221, 199, 0.9), transparent 30%),
    radial-gradient(circle at right center, rgba(196, 128, 105, 0.25), transparent 28%),
    linear-gradient(135deg, #f8f1e6 0%, #f1e5d6 45%, #ead7c9 100%);
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

.backdrop-left {
  top: -8rem;
  left: -10rem;
  background: rgba(193, 95, 84, 0.35);
}

.backdrop-right {
  bottom: -10rem;
  right: -8rem;
  background: rgba(239, 194, 145, 0.45);
}

.shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 4rem clamp(1.4rem, 4vw, 4rem);
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 1.25rem;
}

.eyebrow,
.section-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 11vw, 7rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.lead,
p,
li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.lead {
  max-width: 46rem;
  font-size: 1.1rem;
}

.primary-button,
.secondary-button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease;
}

.primary-button {
  background: var(--ink);
  color: #fffaf4;
}

.secondary-button {
  background: rgba(158, 61, 52, 0.1);
  color: var(--accent);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.grid-section,
.promise-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.grid-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-section .card,
.promise,
.highlight,
.quiet,
.letter {
  padding: 2rem;
}

.letter {
  margin-top: 1.2rem;
}

.letter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.letter-body {
  position: relative;
  display: grid;
  gap: 0.3rem;
  overflow: hidden;
  transition: max-height 320ms ease;
}

.letter-body.is-condensed {
  max-height: 18rem;
}

.letter-body:not(.is-condensed) {
  max-height: 80rem;
}

.letter-body.is-condensed::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6rem;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0), var(--paper-strong));
}

.signature {
  margin-top: 0.75rem;
  color: var(--ink);
  font-weight: 700;
}

.promise-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.promise ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.highlight {
  background:
    linear-gradient(145deg, rgba(158, 61, 52, 0.94), rgba(109, 45, 38, 0.92)),
    var(--paper);
}

.highlight .section-tag,
.highlight h2,
.highlight p {
  color: #fff7f2;
}

.quiet {
  margin-top: 1.2rem;
}

.response {
  margin-top: 1.2rem;
  padding: 2rem;
}

.response-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(44, 28, 25, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.95);
  padding: 1rem 1.05rem;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 10rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(158, 61, 52, 0.5);
  box-shadow: 0 0 0 4px rgba(158, 61, 52, 0.08);
}

.form-status {
  min-height: 1.8rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.is-success {
  color: #285b46;
}

.form-status.is-error {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .grid-section,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .letter-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
