*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory: #F7F1E7;
  --paper: #FFFDF7;
  --ink: #1D2731;
  --ink-soft: #4E5963;
  --muted: #7A736B;
  --gold: #A9843A;
  --line: rgba(29, 39, 49, 0.14);
  --shadow: 0 26px 70px rgba(30, 24, 16, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-text: 'EB Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 168, 76, 0.10), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(50, 70, 88, 0.06), transparent 35%),
    var(--ivory);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 28px 54px;
}

.hero-image-wrap {
  position: relative;
  min-height: 620px;
  border-radius: 36px;
  overflow: hidden;
  background: #101923;
  box-shadow: var(--shadow);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(9, 15, 22, 0.08) 62%, rgba(9, 15, 22, 0.28) 100%),
    linear-gradient(to right, rgba(247, 241, 231, 0.04), rgba(247, 241, 231, 0.00));
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.96) contrast(0.98) brightness(0.96);
}

.hero-content {
  max-width: 620px;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(62px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero h1 span {
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

.hero-at {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.9;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.hero-line {
  max-width: 480px;
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink-soft);
  font-style: italic;
}

.primary-btn {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.25s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: #2D3944;
}

.wishes-section {
  padding: 82px 28px 90px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 740px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.section-header p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

.form-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.wish-form {
  background: rgba(247, 241, 231, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 20px 60px rgba(30, 24, 16, 0.08);
}

.hidden-field { display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 26px;
}

.form-group.full { margin-bottom: 0; }

label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
}

input, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(29, 39, 49, 0.28);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.65;
  padding: 12px 2px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

input::placeholder, textarea::placeholder {
  color: rgba(29, 39, 49, 0.42);
  font-style: italic;
}

input:focus {
  border-bottom-color: var(--gold);
}

textarea {
  min-height: 170px;
  resize: vertical;
  border: 1px solid rgba(29, 39, 49, 0.20);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 253, 247, 0.7);
}

textarea:focus {
  border-color: var(--gold);
}

.submit-btn {
  margin-top: 30px;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.18s ease;
}

.submit-btn:hover {
  background: #2D3944;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.tribute {
  padding: 88px 28px 96px;
}

.tribute-inner {
  max-width: 820px;
  margin: 0 auto;
}

.quote-card {
  position: relative;
  padding: clamp(42px, 7vw, 76px) clamp(28px, 7vw, 76px);
  background: linear-gradient(135deg, rgba(255,253,247,0.72), rgba(247,241,231,0.58));
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(30, 24, 16, 0.08);
}

blockquote {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(25px, 3.2vw, 40px);
  line-height: 1.45;
  font-style: italic;
  font-weight: 300;
  text-align: center;
  color: var(--ink-soft);
}

blockquote::before,
blockquote::after {
  position: absolute;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.55;
  font-size: clamp(64px, 8vw, 100px);
  line-height: 1;
}

blockquote::before {
  content: "“";
  top: -58px;
  left: -28px;
}

blockquote::after {
  content: "”";
  right: -28px;
  bottom: -74px;
}

.site-footer {
  padding: 42px 28px 52px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 17px;
}

.site-footer em {
  color: var(--gold);
  font-style: normal;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.45s ease;
  pointer-events: none;
  box-shadow: 0 18px 50px rgba(29,39,49,0.18);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon { color: var(--gold); }

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 26px 20px 54px;
  }

  .hero-image-wrap {
    min-height: 470px;
    border-radius: 28px;
  }

  .hero-image {
    min-height: 470px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-line {
    margin-left: auto;
    margin-right: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wishes-section {
    padding: 68px 20px 76px;
  }

  .tribute {
    padding: 72px 20px 82px;
  }

  blockquote::before {
    left: -6px;
  }

  blockquote::after {
    right: -6px;
  }
}

@media (max-width: 520px) {
  body { font-size: 17px; }

  .hero h1 {
    font-size: clamp(50px, 17vw, 78px);
  }

  .hero-at {
    font-size: clamp(48px, 18vw, 78px);
  }

  .hero-image-wrap,
  .hero-image {
    min-height: 420px;
  }

  .primary-btn {
    width: 100%;
  }

  .section-header h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .quote-card {
    border-radius: 24px;
  }
}
