/* LARGESS — old-money engraving. Ink, imperial green, patinated gold, ivory. */
:root {
  --ink: #0b0e0c;
  --deep: #0f1913;
  --green: #142619;
  --gold: #c8a55e;
  --gold-bright: #e6cb8d;
  --ivory: #f2ecdd;
  --ivory-dim: #b3ac9a;
  --hairline: rgba(200, 165, 94, 0.28);
  --debt: #a5453a;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* faint engraving grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

main, footer, header { position: relative; z-index: 1; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

section { padding: 96px 0; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: none; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.12;
  color: var(--ivory);
  margin: 14px 0 28px;
}

p.lead { font-size: clamp(21px, 2.6vw, 24px); color: var(--ivory); }
p + p { margin-top: 1em; }
.muted { color: var(--ivory-dim); }
em { font-style: italic; }
strong { color: var(--gold-bright); font-weight: 600; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 64px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(20, 38, 25, 0.9), transparent 70%),
    var(--ink);
}

.crest { width: 92px; height: 92px; margin-bottom: 34px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 11vw, 118px);
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--ivory);
  line-height: 1;
}

.hero .rule {
  width: 72px; height: 1px; background: var(--gold);
  margin: 30px auto;
}

.hero .tagline {
  font-size: clamp(24px, 3.4vw, 32px);
  font-style: italic;
  color: var(--gold-bright);
}

.hero .sub {
  margin-top: 26px;
  max-width: 560px;
  color: var(--ivory-dim);
  font-size: 19px;
}

.hero .cta-row { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.est {
  margin-top: 56px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.btn:hover { background: var(--gold); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.btn.solid { background: var(--gold); color: var(--ink); }
.btn.solid:hover { background: var(--gold-bright); }

/* ---------- tributes ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }

.tier {
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(20, 38, 25, 0.55), rgba(11, 14, 12, 0.2));
  padding: 42px 30px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.25s ease;
}
.tier:hover { border-color: var(--gold); transform: translateY(-4px); }

.tier .tname {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.tier .amount {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 5vw, 58px); color: var(--ivory);
  margin: 22px 0 6px; line-height: 1;
}
.tier .desc { color: var(--ivory-dim); font-size: 17px; flex: 1; margin-bottom: 30px; }
.tier .btn { width: 100%; }

.sovereign {
  margin-top: 22px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(20, 38, 25, 0.55), rgba(11, 14, 12, 0.2));
  padding: 40px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.sovereign .amount-input {
  display: flex; align-items: baseline; gap: 8px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
}
.sovereign .amount-input span { font-size: 34px; color: var(--gold-bright); font-family: var(--serif); }
.sovereign input {
  background: transparent; border: none; outline: none;
  color: var(--ivory); font-family: var(--serif); font-size: 38px;
  width: 180px;
}
.sovereign input::placeholder { color: rgba(179, 172, 154, 0.45); }

/* ---------- instrument chooser ---------- */
.chooser-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(11, 14, 12, 0.86);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.chooser {
  width: 100%; max-width: 420px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--green), var(--ink));
  padding: 40px 32px 30px;
  text-align: center;
}
.chooser h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 30px; color: var(--ivory);
  margin: 14px 0 28px;
}
.chooser .btn { width: 100%; margin-bottom: 14px; }
.chooser-close {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ivory-dim); padding: 10px;
}
.chooser-close:hover { color: var(--ivory); }

/* ---------- ledger ---------- */
.ledger-table { margin-top: 44px; border: 1px solid var(--hairline); }
.ledger-row {
  display: grid; grid-template-columns: 84px 1fr auto;
  gap: 18px; align-items: baseline;
  padding: 22px 28px;
  border-top: 1px solid var(--hairline);
}
.ledger-row:first-child { border-top: none; }
.ledger-row .rank { font-family: var(--serif); font-size: 24px; color: var(--gold); }
.ledger-row .name { font-size: 21px; }
.ledger-row .sum { font-family: var(--serif); font-size: 24px; color: var(--gold-bright); }
.ledger-row.crown-row { background: rgba(200, 165, 94, 0.07); }
.ledger-row.crown-row .name::after { content: ' ♛'; color: var(--gold); }

.empty-state {
  padding: 64px 32px; text-align: center; color: var(--ivory-dim); font-style: italic; font-size: 21px;
}
.empty-state strong { display: block; font-style: normal; margin-bottom: 10px; color: var(--gold-bright); font-size: 24px; }

.claim-note { margin-top: 26px; font-size: 17px; color: var(--ivory-dim); }

/* ---------- wager ---------- */
.wager-box {
  margin-top: 42px;
  border: 1px solid var(--hairline);
  padding: 44px 36px;
  background: linear-gradient(180deg, rgba(20, 38, 25, 0.55), rgba(11, 14, 12, 0.2));
}
.wager-box .preview {
  font-style: italic; font-size: 21px; color: var(--ivory);
  border-left: 2px solid var(--gold); padding-left: 22px; margin: 26px 0 32px;
}
.wager-controls { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.wager-controls .amount-input {
  display: flex; align-items: baseline; gap: 6px;
  border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.wager-controls .amount-input span { font-family: var(--serif); font-size: 26px; color: var(--gold-bright); }
.wager-controls input {
  background: transparent; border: none; outline: none;
  color: var(--ivory); font-family: var(--serif); font-size: 28px; width: 130px;
}

/* ---------- covenant ---------- */
.articles { margin-top: 40px; counter-reset: art; }
.article { display: flex; gap: 26px; padding: 26px 0; border-top: 1px solid var(--hairline); }
.article:first-child { border-top: none; }
.article .num {
  font-family: var(--serif); font-size: 26px; color: var(--gold);
  min-width: 52px;
}
.article p { color: var(--ivory-dim); }
.article p strong { color: var(--ivory); }

/* ---------- debt roll ---------- */
.debt-section h2 { color: var(--ivory); }
.debt-table { margin-top: 40px; border: 1px solid rgba(165, 69, 58, 0.4); }
.debt-table .empty-state strong { color: var(--ivory); }
.debt-row {
  display: grid; grid-template-columns: 1fr auto;
  padding: 22px 28px; border-top: 1px solid rgba(165, 69, 58, 0.4);
  color: var(--debt);
}

/* ---------- faq ---------- */
.faq { margin-top: 36px; }
.faq details { border-top: 1px solid var(--hairline); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-size: 21px; color: var(--ivory);
  list-style: none; display: flex; justify-content: space-between; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 24px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 14px; color: var(--ivory-dim); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 72px;
  text-align: center;
  color: var(--ivory-dim);
  font-size: 16px;
}
footer .fine { margin-top: 18px; font-size: 14px; }
/* Vertical padding, not a larger type size: it keeps the engraved look while giving each link a
   44px touch target. At 11px with wide tracking these were 18px tall — a coin toss on a phone,
   and phones are where this is read. */
footer nav { margin-top: 12px; display: flex; gap: 6px 22px; justify-content: center; flex-wrap: wrap; }
footer nav a {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-block; padding: 13px 3px;
}

/* ---------- terms page ---------- */
.doc { padding: 110px 0 90px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); font-weight: 600; margin: 12px 0 8px; }
.doc .doc-sub { color: var(--ivory-dim); font-style: italic; margin-bottom: 48px; }
.doc h3 { font-size: 25px; font-weight: 600; margin: 42px 0 12px; color: var(--gold-bright); }
.doc p { color: var(--ivory-dim); }
.doc p strong { color: var(--ivory); }
.back { display: inline-block; margin-top: 56px; }

@media (max-width: 760px) {
  .tiers { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .ledger-row { grid-template-columns: 56px 1fr auto; padding: 18px 18px; }
  .sovereign { flex-direction: column; align-items: stretch; text-align: center; }
  .sovereign .amount-input { justify-content: center; }
}
