:root {
  --bg: #12110f;
  --panel: #191714;
  --ink: #eee6d6;
  --muted: #b1a99a;
  --faint: #8a8172;
  --gold: #c4ae88;
  --gold-dim: #78664b;
  --line: #373129;
  --red: #982e27;
  --red-light: #be4c40;
  --display: "Cinzel", Georgia, serif;
  --body: "DM Sans", system-ui, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
::selection { background: var(--red); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c5b79d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cross { color: var(--red-light); font-size: 18px; line-height: 1; }

/* Link-in-bio */

.home-art {
  position: fixed;
  inset: 0 0 auto;
  height: 62svh;
  z-index: 0;
}
.home-art img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 30%; display: block; }
.home-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #12110f55 0%, #12110f99 45%, var(--bg) 100%);
}

.bio {
  position: relative;
  z-index: 1;
  width: min(480px, 100% - 32px);
  margin-inline: auto;
  padding: 30svh 0 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.bio-head { text-align: center; }
.bio-head .eyebrow { justify-content: center; }
.bio-seal { display: block; margin: 0 auto 18px; filter: drop-shadow(0 6px 18px #000a); }
.bio-head h1 {
  font-family: var(--display);
  font-size: clamp(44px, 12vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-top: 14px;
  text-shadow: 0 2px 30px #000c;
}
.bio-head h1 em { font-style: normal; color: var(--gold); }

.bio-links { display: grid; gap: 12px; }
.bio-link {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 14px;
  background: #191714e6;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s, transform .2s;
}
.bio-link:hover { border-color: var(--gold-dim); border-left-color: var(--red-light); background: #211e1a; transform: translateY(-2px); }
.bio-link:active { transform: translateY(0); }
.roman { font-family: var(--display); color: var(--gold); font-size: 20px; text-align: center; }
.bio-link-text { display: grid; gap: 3px; }
.bio-link strong { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .3px; }
/* Cinzel draws "1" like "I", so "1h" would read "Ih". */
.digits { font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.bio-link small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.arrow { color: var(--gold); font-size: 20px; }

.bio-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
.bio-foot span { color: var(--red-light); }
.bio-foot a { color: var(--gold); }
.bio-foot a:hover { color: var(--ink); }

@media (min-width: 900px) {
  .home-art { height: 100svh; }
  .home-art img { object-position: 50% 30%; }
  .home-art::after { background: radial-gradient(ellipse 40% 70% at 50% 50%, #12110fe6 0%, #12110f99 60%, #12110f66 100%); }
  .bio { min-height: 100svh; justify-content: center; padding: 64px 0; }
}

/* Forms */

.page-header {
  width: min(680px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.page-header-wide { width: min(1100px, 100% - 32px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 14px; letter-spacing: 1.5px; }
.header-link { color: var(--muted); font-size: 13px; }
.header-link:hover { color: var(--ink); }

.form-wrap { width: min(680px, 100% - 32px); margin: 0 auto; padding: 36px 0 56px; }
.question-progress { display: grid; gap: 10px; margin-bottom: 28px; }
.question-progress div { text-transform: uppercase; display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 1.6px; }
.question-progress progress { width: 100%; height: 3px; appearance: none; border: 0; background: var(--line); }
.question-progress progress::-webkit-progress-bar { background: var(--line); }
.question-progress progress::-webkit-progress-value { background: var(--red-light); transition: width .25s; }
.question-progress progress::-moz-progress-bar { background: var(--red-light); }

.question-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.question-step h1, .form-success h2 {
  font-family: var(--display);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.5px;
  outline: none;
}
.question-step h1 span, .form-success h2 span { color: var(--gold); }
#form-label:not(:empty)::before { content: " · "; }
.greeting { color: var(--red-light); font-size: 14px; font-weight: 600; margin-bottom: 8px; min-height: 1em; }
.question-description { color: var(--muted); font-size: 15px; margin: 12px 0 24px; }
.question-description a { color: var(--gold); text-decoration: underline; }

.text-answer {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold-dim);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  padding: 10px 0;
  border-radius: 0;
}
textarea.text-answer { min-height: 140px; resize: vertical; border: 1px solid var(--gold-dim); padding: 12px; font-size: 16px; line-height: 1.5; }
.text-answer::placeholder { color: #6f675b; }
.text-answer:focus { outline: none; border-color: var(--gold); }
.text-answer[aria-invalid="true"] { border-color: var(--red-light); }

.choice-list { display: grid; gap: 8px; }
.choice-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice-row:hover { border-color: var(--gold-dim); }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-marker { flex: none; width: 18px; height: 18px; border: 1px solid var(--gold-dim); transform: rotate(45deg); transition: background .15s, border-color .15s; }
.choice-row:has(input:checked) { border-color: var(--gold); background: #231f1a; }
.choice-row:has(input:checked) .choice-marker { background: var(--red-light); border-color: var(--red-light); }
.choice-row:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.field-error, .form-error { color: #e07a6c; font-size: 14px; margin-top: 10px; min-height: 1.2em; }
.form-error { margin-top: 18px; }
.turnstile-slot { margin-top: 20px; min-height: 65px; }

.question-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
.back-button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 8px 0; }
.back-button:hover { color: var(--ink); }
.advance-group { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.key-hint { color: var(--faint); font-size: 12px; }
@media (pointer: coarse) { .key-hint { display: none; } }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 52px;
  padding: 14px 22px;
  background: var(--red);
  border: 1px solid #bb54483b;
  color: #fff1dc;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.button:hover { background: #b13d32; transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button span[aria-hidden] { font-size: 18px; font-weight: 400; }

.form-success { padding-top: 12px; }
.form-success p { color: #cdc3b2; margin: 16px 0 28px; }
.form-contact { color: var(--faint); font-size: 13px; margin-top: 48px; text-align: center; }
.form-contact a { color: var(--gold); }

/* Admin */

.admin-wrap { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 28px 0 56px; }
.admin-wrap > h1 { font-family: var(--display); font-weight: 500; font-size: 28px; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.filters label { display: grid; gap: 4px; color: var(--faint); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.filters select { background: var(--panel); color: var(--ink); border: 1px solid var(--line); padding: 8px; font: inherit; font-size: 14px; }
.admin-count { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.applications { display: grid; gap: 12px; }
.application { border: 1px solid var(--line); border-left: 3px solid var(--gold-dim); background: var(--panel); padding: 16px; display: grid; gap: 12px; }
.application[data-status="approved"] { border-left-color: #5f8f5a; }
.application[data-status="rejected"] { border-left-color: var(--red); opacity: .7; }
.application-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.application-head strong { font-size: 18px; }
.tag { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--line); color: var(--gold); }
.application-head time { color: var(--faint); font-size: 13px; margin-left: auto; }
.application dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; margin: 0; }
.application dt { color: var(--faint); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.application dd { margin: 0; font-size: 14px; }
.application blockquote { margin: 0; padding-left: 12px; border-left: 2px solid var(--line); color: #cdc3b2; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.application-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.application-actions a, .application-actions button {
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
}
.application-actions a:hover, .application-actions button:hover { border-color: var(--gold-dim); }
.application-actions button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
