:root {
  --bg0: #0d0b09;
  --bg1: #14100d;
  --ink: #efe8da;
  --ink-dim: rgba(239, 232, 218, 0.78);
  --muted: rgba(239, 232, 218, 0.58);
  --gold: #c7a874;
  --gold-dim: rgba(199, 168, 116, 0.45);
  --paper: rgba(28, 22, 18, 0.78);
  --paper-2: rgba(18, 14, 11, 0.7);
  --shadow: rgba(0, 0, 0, 0.55);
  --ring: rgba(239, 232, 218, 0.12);
  --ring-2: rgba(199, 168, 116, 0.12);
  --radius: 18px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 550px at 18% 12%, rgba(199, 168, 116, 0.14), transparent 60%),
    radial-gradient(900px 550px at 88% 88%, rgba(239, 232, 218, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 56px 18px;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 10px);
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

.card {
  width: min(860px, 100%);
  background:
    radial-gradient(600px 340px at 70% 20%, rgba(199, 168, 116, 0.10), transparent 55%),
    radial-gradient(700px 420px at 20% 120%, rgba(239, 232, 218, 0.05), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 1px solid rgba(239, 232, 218, 0.14);
  border-radius: var(--radius);
  box-shadow:
    0 18px 60px var(--shadow),
    inset 0 1px 0 rgba(239, 232, 218, 0.06);
  padding: 34px 28px 26px;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(199, 168, 116, 0.22);
  pointer-events: none;
}

.header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.sigil {
  width: 76px;
  height: 76px;
  position: relative;
  flex: none;
}

.sigil__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(239, 232, 218, 0.16), transparent 55%),
    radial-gradient(circle at 65% 70%, rgba(199, 168, 116, 0.18), transparent 55%);
  border: 1px solid rgba(199, 168, 116, 0.45);
  box-shadow:
    inset 0 0 0 10px rgba(0, 0, 0, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.45);
}

.sigil__seal {
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(120, 31, 31, 0.85), rgba(70, 17, 17, 0.85));
  border: 1px solid rgba(239, 232, 218, 0.18);
  font-family: "Crimson Pro", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(239, 232, 218, 0.92);
}

.header__text {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Crimson Pro", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.0rem, 2.8vw, 2.65rem);
  line-height: 1.05;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--ink-dim);
  font-size: 1.02rem;
  max-width: 56ch;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: rgba(199, 168, 116, 0.85);
}

.divider span:nth-child(1),
.divider span:nth-child(3) {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 168, 116, 0.45), transparent);
}

.divider span:nth-child(2) {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(199, 168, 116, 0.65);
  box-shadow: 0 0 0 4px rgba(199, 168, 116, 0.10);
}

.details {
  display: grid;
  gap: 14px;
}

.detail {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(239, 232, 218, 0.10);
  background: rgba(0, 0, 0, 0.14);
}

.detail__label {
  color: var(--muted);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
}

.detail__value {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.35;
}

.address {
  font-family: "Crimson Pro", ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.address__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lineup {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
}

.lineup li {
  color: var(--ink-dim);
}

.note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: 1px solid rgba(199, 168, 116, 0.42);
  background: linear-gradient(180deg, rgba(199, 168, 116, 0.18), rgba(199, 168, 116, 0.10));
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(199, 168, 116, 0.62);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid rgba(199, 168, 116, 0.65);
  outline-offset: 2px;
}

.btn--ghost {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(239, 232, 218, 0.18);
}

.btn--quiet {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(239, 232, 218, 0.16);
}

.footer {
  margin-top: 22px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hint {
  border-radius: 14px;
  border: 1px solid rgba(239, 232, 218, 0.10);
  background: rgba(0, 0, 0, 0.12);
  padding: 12px 12px;
}

.hint__title {
  font-family: "Crimson Pro", ui-serif, Georgia, "Times New Roman", serif;
  color: rgba(199, 168, 116, 0.95);
  letter-spacing: 0.02em;
}

.hint__text {
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: 0.94rem;
  line-height: 1.35;
}

.toast {
  margin-top: 12px;
  min-height: 20px;
  color: rgba(239, 232, 218, 0.86);
  font-size: 0.92rem;
}

.corner-flourish {
  position: absolute;
  right: max(16px, 2vw);
  bottom: max(10px, 2vw);
  opacity: 0.22;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.flourish {
  width: min(210px, 32vw);
  height: auto;
  color: rgba(199, 168, 116, 0.95);
}

@media (max-width: 720px) {
  .card {
    padding: 26px 16px 18px;
  }

  .header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .sigil {
    width: 64px;
    height: 64px;
  }

  .detail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

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