:root {
  --bg: #070708;
  --ink: #f4efe6;
  --muted: #9c917f;
  --gold: #b08f42;
  --gold-dim: #8c7340;
  --line: rgba(198, 161, 91, 0.35);
  --field: #101012;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.door {
  width: min(440px, calc(100% - 40px));
  margin: auto;
  padding: 64px 0 48px;
  text-align: center;
}

.mark-btn {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.55s ease;
}

.mark-btn:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 8px;
}

.door.is-open .mark-btn {
  transform: scale(1.45);
  margin-bottom: 8px;
}

.mark {
  width: 132px;
  height: 132px;
  animation: widdershins 90s linear infinite;
  transform-origin: 50% 50%;
  pointer-events: none;
  transition: filter 0.45s ease;
}

.door.is-open .mark {
  animation: none;
  filter: drop-shadow(0 0 18px rgba(176, 143, 66, 0.35));
}

@keyframes widdershins {
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mark { animation: none; }
  .mark-btn { transition: none; }
}

.door-face {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.door.is-open .door-face {
  display: none;
}

.lodge-story {
  margin-top: 8px;
  text-align: center;
  animation: story-in 0.45s ease;
}

@keyframes story-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lodge-story { animation: none; }
}

.story-title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 5.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.story-body {
  margin: 22px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

.story-body p {
  margin: 0 0 14px;
}

.story-body p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  text-align: center;
}

.eyebrow {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.lede {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.count {
  margin: 28px 0 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.count .num {
  font-size: 30px;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  vertical-align: -2px;
  margin-right: 2px;
}

.society {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.join, .sent {
  margin-top: 36px;
  text-align: left;
  position: relative;
  z-index: 1;
}

label {
  display: block;
  margin-bottom: 14px;
  position: relative;
}

label span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--field);
  color: var(--ink);
  font: 400 16px/1 var(--sans);
  outline: none;
}

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

input::placeholder { color: #5e564a; }

.places {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #1c1c1f;
  border: 1px solid var(--gold);
  text-align: left;
  max-height: 240px;
  overflow: auto;
}

.places li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 15px;
}

.places li[aria-selected="true"],
.places li:hover {
  background: rgba(198, 161, 91, 0.12);
  color: var(--gold);
}

button#submit, .back, .cta {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
  color: #1a1408;
  font: 500 14px/48px var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

button#submit {
  margin-top: 20px;
}

button#submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.cta {
  margin-top: 28px;
}

.back {
  margin-top: 28px;
  text-align: center;
}

.back.is-secondary {
  margin-top: 16px;
  height: auto;
  background: transparent;
  color: var(--muted);
  font: 400 13px/1.4 var(--sans);
  letter-spacing: 0.06em;
  text-transform: none;
}

.back.is-secondary:hover {
  color: var(--gold);
}

.expect {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.lede strong,
.expect strong {
  color: var(--ink);
  font-weight: 500;
}

.expect p {
  margin: 0 0 12px;
}

.expect p:last-child {
  margin-bottom: 0;
}

.expect .expect-call {
  margin-top: 20px;
  margin-bottom: 6px;
}

.follow {
  margin: 22px 0 0;
  color: #efe4cc;
  font-size: 14px;
  line-height: 1.5;
}

.follow p {
  margin: 0;
}

.follow a {
  color: #f4efe6;
  text-decoration: none;
}

.follow a:hover {
  color: #fff;
}

.place {
  margin: 18px 0 0;
  color: var(--gold-dim);
  font-size: 13px;
  line-height: 1.5;
}

.porch {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font: 400 14px/1.45 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.porch:hover {
  color: var(--gold);
}

.back.is-tertiary {
  margin-top: 20px;
  height: auto;
  background: transparent;
  color: #5e564a;
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.04em;
  text-transform: none;
}

.back.is-tertiary:hover {
  color: var(--muted);
}

.fine, .sent p, footer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fine { margin: 14px 0 0; text-align: center; }

.sent { text-align: center; }
.sent-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
}

.seat-confirm,
.sent .seat-confirm {
  margin: 28px auto 0;
  max-width: 16em;
  font-family: var(--serif);
  font-size: clamp(24px, 4.6vw, 30px);
  line-height: 1.35;
  color: var(--ink);
}

.seat-page .back.is-secondary {
  margin-top: 36px;
}

.note {
  margin: 16px 0 0;
  color: #d2b48a;
  font-size: 13px;
  text-align: center;
}

footer {
  padding: 0 20px 28px;
  text-align: center;
  letter-spacing: 0.04em;
}

footer a {
  color: var(--gold-dim);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

.foot-sep {
  margin: 0 0.55em;
  opacity: 0.55;
}

.privacy {
  text-align: left;
}

.privacy .eyebrow,
.privacy h1,
.privacy .lede {
  text-align: center;
}

.privacy-body {
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.privacy-body p {
  margin: 0 0 14px;
}

.privacy-body ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.privacy-body li {
  margin-bottom: 8px;
}

.privacy-body a {
  color: var(--gold);
}

/* "See the map" link (Field Report style) — index footer + confirm follow block */
.map-link {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.follow .map-link { margin: 14px 0 0; }

.map-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.map-link a:hover,
.map-link a:focus-visible { color: var(--ink); }

.map-link .rule {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--gold-dim);
  opacity: 0.7;
}

/* Register seat on the confirm page */
.seat-block { margin: 22px auto 30px; padding: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seat-block[hidden] { display: none; }
.seat-kind { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.seat-num { margin: 0 0 14px; font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: #e9cd8e; }
.seat-link { display: inline-block; padding: 12px 22px; background: var(--gold); color: #1a1408; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.seat-link:hover { background: #c9a45a; }

/* Register system notice: deliberately plain, like a stuck-in system banner */
.sys-notice {
  position: relative;
  z-index: 5;
  max-width: 600px;
  margin: 14px auto 0;
  padding: 0;
  background: #000;
  border: 2px solid var(--gold);
  color: #ECEAE2;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  border-radius: 0;
}
.sys-wrap[hidden] { display: none; }
.sys-wrap { position: relative; z-index: 5; }
.sys-status {
  max-width: 600px;
  margin: 6px auto 0;
  padding: 0 2px;
  color: var(--gold);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: pre;
}
@media (max-width: 600px) { .sys-status { margin: 6px 12px 0; } }
.sys-notice p { margin: 0; padding: 0 14px; }
.sys-notice p:first-child {
  background: var(--gold);
  color: #000;
  font-weight: 800;
  padding: 6px 14px;
  margin-bottom: 8px;
}
.sys-notice p:last-child { padding-bottom: 10px; }
@media (max-width: 600px) { .sys-notice { margin: 10px 12px 0; font-size: 17px; } }
