:root {
  --ground: #FBF8F1;
  --ink: #33261A;
  --muted: #6B5843;
  --gold: #85621A;
  --line: #8F7448;
  --shine: #D4AE55;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
  color-scheme: light;
}

a { color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: rgba(214, 170, 80, 0.35); }
::placeholder { color: #857158; opacity: 1; }

.gilt { height: 3px; background-image: linear-gradient(90deg, #C69E43, #F3DC95 50%, #C69E43); }

.topbar { display: flex; justify-content: flex-end; align-items: center; padding: 28px 44px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; color: var(--gold); text-decoration: none; }

.masthead { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 24px 0; text-align: center; }
.wordmark {
  margin: 0;
  font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  font-weight: 500; font-size: 32px; line-height: 1.2;
  letter-spacing: 0.24em; padding-left: 0.24em;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(214, 170, 80, 0.45);
}
.wordmark a { color: inherit; text-decoration: none; }
.descriptor { margin: 0; font-size: 20px; font-style: italic; color: var(--muted); }

.hero { width: 100%; max-width: 880px; margin: 28px auto 0; padding: 0 16px; }
.hero.small { max-width: 420px; }
.hero img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  filter: drop-shadow(0 0 26px rgba(214, 170, 80, 0.55)) drop-shadow(0 0 90px rgba(232, 196, 110, 0.4));
  animation: dawn 2.6s ease-out both;
}
@keyframes dawn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero img { animation: none; } }

.section { max-width: 660px; margin: 0 auto; padding: 0 24px; }
.opening { margin-top: 56px; text-align: center; }
.display { margin: 0 0 32px; font-size: 40px; font-style: italic; line-height: 1.22; text-wrap: balance; }
.prose { display: flex; flex-direction: column; gap: 26px; font-size: 21px; line-height: 1.7; }
.prose p { margin: 0; }
.closing { margin: 40px 0 0; font-size: 26px; font-style: italic; line-height: 1.4; text-wrap: balance; }
.journey { margin: 40px 0 0; text-align: center; }
.journey a { display: inline-flex; align-items: center; min-height: 44px; font-size: 25px; font-style: italic; text-underline-offset: 7px; }

.divider { display: flex; flex-direction: column; align-items: center; margin: 88px auto; }
.divider span { display: block; width: 1px; height: 48px; }
.divider span:first-child { background-image: linear-gradient(180deg, rgba(212, 174, 85, 0), var(--shine)); }
.divider span:last-child { background-image: linear-gradient(180deg, var(--shine), rgba(212, 174, 85, 0)); }
.divider i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--shine); box-shadow: 0 0 14px 4px rgba(214, 170, 80, 0.55); }

h2 { margin: 0 0 28px; font-size: 40px; font-weight: 400; line-height: 1.2; text-align: center; color: var(--gold); }
.body { margin: 0; font-size: 21px; line-height: 1.7; }
.intro { margin: 0 0 52px; font-size: 21px; font-style: italic; line-height: 1.7; text-align: center; color: var(--muted); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.wide { grid-column: 1 / -1; }
label, legend { font-size: 17px; color: var(--muted); }

input[type="text"], input[type="email"], input[type="date"], input[type="time"], select {
  display: block; width: 100%; min-height: 44px;
  font: inherit; font-size: 20px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 0 10px;
  -webkit-appearance: none; appearance: none;
}
select {
  background-color: var(--ground);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2385621A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
  padding-right: 28px; cursor: pointer;
}

.note { margin: -8px 0 0; font-size: 18px; font-style: italic; line-height: 1.6; color: var(--muted); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 40px; }
.choice { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 20px; color: var(--ink); cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: #A27A2A; }

.question { display: flex; flex-direction: column; gap: 10px; margin-top: 56px; }
.question label { font-size: 24px; line-height: 1.35; color: var(--ink); }
.question p { margin: 0 0 8px; font-size: 18px; font-style: italic; line-height: 1.6; color: var(--muted); }
textarea {
  display: block; width: 100%;
  font: inherit; font-size: 20px; line-height: 1.6; color: var(--ink);
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); border-radius: 2px;
  padding: 16px 18px; resize: vertical;
}

.farewell { margin: 48px 0 0; font-size: 21px; font-style: italic; line-height: 1.6; text-align: center; }
.nowrap { white-space: nowrap; }

.actions { display: flex; justify-content: center; margin-top: 56px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px;
  font: inherit; font-size: 20px; font-weight: 500; letter-spacing: 0.02em; color: #2B1F10; text-decoration: none;
  background-image: linear-gradient(180deg, #F3DC95 0%, #DDB860 46%, #C69E43 54%, #E6C878 100%);
  border: 1px solid #B48A34; border-radius: 999px; padding: 18px 44px;
  box-shadow: 0 8px 24px rgba(184, 137, 46, 0.28), inset 0 1px 0 rgba(255, 251, 238, 0.85);
  cursor: pointer;
}
.button:hover { color: #2B1F10; filter: brightness(1.04); }

.footer { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 120px; padding: 0 24px 64px; text-align: center; }
.footer p { margin: 0; }
.footer .domain { font-size: 18px; color: var(--gold); }
.footer .rights { font-size: 16px; color: var(--muted); }
.footer .notice { max-width: 34em; font-size: 15px; line-height: 1.6; color: var(--muted); }

.thanks { margin-top: 48px; text-align: center; }
.blessing {
  margin: 0 0 20px;
  font-family: 'Pinyon Script', 'Snell Roundhand', cursive;
  font-weight: 400; font-size: 64px; line-height: 1.2;
  color: #9A7426;
  text-shadow: 0 0 22px rgba(214, 170, 80, 0.45);
}
.thanks .actions { margin-top: 40px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 720px) {
  .topbar { padding: 16px 20px; }
  .wordmark { font-size: 20px; letter-spacing: 0.16em; padding-left: 0.16em; }
  .descriptor { font-size: 17px; }
  .display { font-size: 28px; }
  .blessing { font-size: 48px; }
  .prose, .body, .intro { font-size: 19px; }
  h2 { font-size: 30px; }
  .divider { margin: 56px auto; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
