:root {
  --ink: #0A1418;
  --ink-deep: #07100F;
  --raised: #10202A;
  --hair: #24383F;
  --hair-soft: #182B31;
  --text: #EFE6D6;
  --muted: #B8AA94;
  --verdigris: #1E6E68;
  --seaglass: #7CCFC4;
  --gold: linear-gradient(135deg, #7A5518 0%, #E6BE5A 20%, #FFF2BE 36%, #D9A936 50%, #8E6620 68%, #F3D47C 84%, #A87C26 100%);
  --gold-text: linear-gradient(180deg, #FFF4C8 0%, #EBC566 32%, #B9882A 58%, #F3D684 80%, #A1772A 100%);
  --display: 'Forum', Georgia, 'Times New Roman', serif;
  --ui: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  background: var(--ink) url('/grain.png');
  background-blend-mode: soft-light;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--seaglass); }
a:hover { color: #A9E3DA; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.gold-text {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.label {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.wave { display: block; width: 100%; height: 14px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-size: 24px; letter-spacing: 0.1em; }
.top nav { display: flex; gap: 24px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 88px;
}
.hero h1 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  text-wrap: balance;
}
.hero p.lede { margin: 26px 0 0; max-width: 34em; font-size: 19px; color: #D8CDBA; text-wrap: pretty; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  font: 600 15px var(--ui); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.btn-primary { background: var(--verdigris); color: #FFFFFF; }
.btn-primary:hover { background: #24807A; color: #FFFFFF; }
.btn-ghost { border: 1px solid #3B575E; color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.seal { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.seal img { position: absolute; inset: 9%; width: 82%; height: 82%; }
.seal .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--gold) border-box; }
.seal .ring.outer { inset: -6%; border: 1px solid rgba(124, 207, 196, 0.35); background: none; }

/* Sections */
section.band { padding: 72px 0; }
.band h2 { margin: 10px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; }
.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  border-top: 1px solid var(--hair);
}
.grid article { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--hair-soft); }
.grid .num { font-family: var(--display); font-size: 26px; }
.grid h3 { margin: 6px 0 8px; font-size: 19px; font-weight: 600; }
.grid p { margin: 0; color: var(--muted); }
.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.invite ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.invite li { display: grid; grid-template-columns: 52px 1fr; padding: 18px 0; border-bottom: 1px solid var(--hair-soft); }
.invite li .num { font-family: var(--display); font-size: 22px; }
.invite li strong { display: block; font-weight: 600; }
.invite li span.t { color: var(--muted); }

/* Footer */
footer { padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; padding: 40px 0 72px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1.02; margin: 10px 0 6px; }
.legal h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 40px 0 8px; }
.legal p, .legal li { color: #D8CDBA; }
.legal ul { padding-left: 22px; }
.legal .meta { color: var(--muted); font-size: 15px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 56px; gap: 36px; }
  .seal { width: min(300px, 80%); order: -1; }
  .invite { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .shimmer { background-size: 220% 100%; animation: sheen 9s ease-in-out infinite; }
  @keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
}

/* Apply (invitation form) — mobile first, 48px+ targets, square edges */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.apply { max-width: 680px; padding: 28px 0 72px; }
.apply h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 9vw, 60px); line-height: 1.02; margin: 10px 0 18px; }
.apply h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 6px 0 8px; }
.apply .lede { font-size: 19px; color: #D8CDBA; margin: 0 0 8px; }
.apply .hint { color: var(--muted); font-size: 15px; margin: 4px 0 8px; }
.apply .state { padding: 8px 0 24px; }
.apply .state:focus { outline: none; }
.form { margin-top: 8px; }
.group { border: 0; border-top: 1px solid var(--hair); margin: 30px 0 0; padding: 18px 0 0; min-width: 0; }
.group > legend { font-family: var(--display); font-size: 28px; padding: 0 12px 0 0; display: flex; align-items: baseline; gap: 12px; }
.group > legend .label { font-size: 13px; }
.field { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: 16px; margin: 0 0 6px; padding: 0; }
.optional { color: var(--muted); font-weight: 400; }
.apply input[type="text"], .apply input[type="email"], .apply input[type="tel"] {
  width: 100%; min-height: 52px; padding: 0 16px;
  font: 400 17px var(--ui); color: var(--text);
  background: var(--raised); border: 1px solid #2C454C; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.apply input::placeholder { color: #8F8471; }
.apply input:focus-visible, .choice input:focus-visible + span, .state-chip input:focus-visible + span, .btn:focus-visible, .apply a:focus-visible {
  outline: 2px solid var(--seaglass); outline-offset: 2px;
}
.choices .choice { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 14px; margin: 0 0 8px; border: 1px solid #2C454C; background: rgba(16, 32, 42, 0.6); cursor: pointer; }
.choices.inline { display: flex; flex-wrap: wrap; gap: 0 10px; }
.choices.inline > legend { flex-basis: 100%; }
.choices.inline .choice { flex: 1 1 120px; }
.choices.inline .error { flex-basis: 100%; }
.choice input, .state-chip input { width: 22px; height: 22px; margin: 0; accent-color: var(--verdigris); flex: none; }
.choice:has(input:checked) { border-color: var(--verdigris); background: rgba(30, 110, 104, 0.18); }
.choice.consent { display: flex; align-items: flex-start; gap: 14px; min-height: 48px; padding: 10px 0; border: 0; background: none; font-weight: 400; cursor: pointer; }
.choice.consent input { margin-top: 2px; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.state-chip { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 10px; border: 1px solid #2C454C; cursor: pointer; font-weight: 600; letter-spacing: 0.06em; }
.state-chip:has(input:checked) { border-color: var(--verdigris); background: rgba(30, 110, 104, 0.22); }
.error { color: var(--seaglass); font-weight: 600; font-size: 15px; margin: 6px 0 0; }
.error:empty { display: none; }
.field.has-error > input, .field.has-error .choice, .field.has-error .state-chip { border-color: var(--seaglass); }
.field.has-error > label, .field.has-error > legend { color: var(--seaglass); }
.error-summary { margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--seaglass); background: rgba(124, 207, 196, 0.08); }
.error-summary h2 { font-family: var(--ui); font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary li { margin: 4px 0; }
.error-summary:focus { outline: 2px solid var(--seaglass); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.submit { width: 100%; margin-top: 28px; border: 0; cursor: pointer; min-height: 58px; }
.submit:disabled { opacity: 0.6; cursor: progress; }
.form-error { margin-top: 18px; }
@media (min-width: 720px) {
  .apply { padding-top: 40px; }
  .submit { width: auto; min-width: 280px; }
}
