:root {
  --evergreen: #071F17;
  --evergreen-mid: #0D3326;
  --evergreen-soft: #144836;
  --cranberry: #8C2323;
  --gold: #C6A24D;
  --gold-bright: #E7C873;
  --gold-deep: #8A6518;
  --cream: #FAF5EA;
  --paper: #FFFDF8;
  --ink: #1D2823;
  --muted: #52635B;
  --line: #E4DAC4;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--evergreen);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(231, 200, 115, 0.2), transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(140, 35, 35, 0.24), transparent 60%),
    linear-gradient(180deg, #0A2B20 0%, var(--evergreen) 55%, #051610 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 10;
  background: var(--paper);
  color: var(--evergreen);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
}

.mast {
  border-bottom: 1px solid rgba(231, 200, 115, 0.22);
  background: rgba(5, 22, 16, 0.65);
  backdrop-filter: blur(8px);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.15;
}
.brand img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(231, 200, 115, 0.65);
  flex: none;
}
.brand small {
  display: block;
  margin-top: 0.15rem;
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.home-link {
  color: #E7E1D2;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(231, 200, 115, 0.28);
  white-space: nowrap;
}
.home-link:hover {
  background: rgba(231, 200, 115, 0.14);
  color: var(--paper);
}

.shell {
  width: min(560px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.6rem, 4.5vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  flex: 1;
}

.hero-card {
  text-align: center;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(231, 200, 115, 0.2), rgba(140, 35, 35, 0.18));
  box-shadow: 0 0 0 1px rgba(231, 200, 115, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(140, 35, 35, 0.45);
  border: 1px solid rgba(231, 200, 115, 0.35);
  color: #FCE8B2;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.hero-card h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 7vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.lede {
  margin: 0.8rem auto 0;
  max-width: 40ch;
  color: #D7E2DC;
  font-size: 1rem;
  line-height: 1.55;
}
.venue {
  margin: 0.7rem 0 0;
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 500;
}

.reg-card {
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid rgba(231, 200, 115, 0.45);
  border-top: 4px solid var(--gold);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}
.reg-card h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 3.8vw, 1.85rem);
  color: var(--evergreen);
  line-height: 1.15;
}
.intro {
  margin: 0.45rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.field {
  margin-bottom: 1.15rem;
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--evergreen);
  margin-bottom: 0.4rem;
}
.field input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid #C9C1B0;
  background: #FFFFFF;
  color: var(--ink);
  font: 500 1.05rem/1.35 "Inter", sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--evergreen-soft);
  box-shadow: 0 0 0 3px rgba(20, 72, 54, 0.16);
}
.field input::placeholder {
  color: #8E9791;
  font-weight: 400;
}

.status {
  margin: 0.2rem 0 0.9rem;
  min-height: 1.3em;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--evergreen-soft);
}
.status.error {
  color: #9A2626;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border: 1px solid #0B2E22;
  border-radius: 10px;
  background: linear-gradient(180deg, #134433 0%, #0B2E22 100%);
  color: var(--paper);
  font: 600 1rem "Inter", sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(7, 31, 23, 0.22);
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.submit-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #18533F 0%, #0E3A2B 100%);
  box-shadow: 0 8px 22px rgba(7, 31, 23, 0.3);
}
.submit-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.privacy {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.confirmation {
  text-align: center;
  padding-block: 0.5rem;
}
.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 0.9rem;
  background: #EAF4EE;
  color: var(--evergreen-soft);
  border: 2px solid rgba(20, 72, 54, 0.22);
}
.confirmation h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  color: var(--evergreen);
}
.confirmation p {
  margin: 0.65rem auto 1.5rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}
.secondary-link {
  color: var(--evergreen);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.verse {
  margin: 1.75rem 0 0;
  padding: 0 0.5rem;
  text-align: center;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #D7E2DC;
}
.verse cite {
  display: block;
  margin-top: 0.35rem;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.page-footer {
  border-top: 1px solid rgba(231, 200, 115, 0.18);
  color: #A9BEB3;
  font-size: 0.84rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.15rem;
  flex-wrap: wrap;
}
.page-footer a {
  color: var(--gold-bright);
  text-decoration-color: rgba(231, 200, 115, 0.45);
  text-underline-offset: 4px;
}

@media (max-width: 480px) {
  .brand { font-size: 1.05rem; gap: 0.55rem; }
  .brand img { width: 40px; height: 40px; }
  .brand small { font-size: 0.58rem; }
  .home-link { font-size: 0.78rem; padding: 0.38rem 0.65rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
