/* ==========================================================================
   The Floor (theme-7)
   Lacquer red / gold leaf / warm ink. US-operator meter strip + paytable.
   Not felt-green, not wine passs, not magenta circuit, not cyan grid.
   ========================================================================== */

:root {
  --ink: #120a08;
  --chamber: #1e120e;
  --panel: #2a1812;
  --lacquer: #c51f1a;
  --lacquer-deep: #8e1210;
  --gold: #e8c25a;
  --gold-deep: #c49a2e;
  --ivory: #f6ead0;
  --mist: #d4c3a4;
  --jade: #4aae78;
  --line: rgba(232, 194, 90, 0.28);
  --display: "Fraunces", "Times New Roman", serif;
  --ui: "Outfit", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --mast: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --filigree: linear-gradient(135deg, #f3d98a, var(--gold) 32%, #8a6a1c 52%, var(--gold) 72%, #f6ead0);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(197, 31, 26, 0.22), transparent 55%),
    radial-gradient(700px 380px at -10% 110%, rgba(232, 194, 90, 0.1), transparent 50%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* ---------- mast ---------- */

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--mast);
  background: rgba(18, 10, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.mast.is-tight { --mast: 60px; }
.mast__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.sigil {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.sigil__mark {
  width: 36px;
  height: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  align-items: end;
  flex-shrink: 0;
}
.sigil__mark i {
  display: block;
  background: var(--gold);
  border-radius: 1px;
}
.sigil__mark i:nth-child(1) { height: 70%; }
.sigil__mark i:nth-child(2) { height: 48%; background: var(--lacquer); }
.sigil__mark i:nth-child(3) { height: 100%; }
.sigil__mark i:nth-child(4) { height: 40%; background: var(--jade); }
.sigil__mark i:nth-child(5) { height: 62%; }
.sigil__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  font-style: italic;
  white-space: nowrap;
}
.mast__menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.mast__links { display: flex; gap: 16px; }
.mast__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--mist);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mast__links a:hover,
.mast__links a[aria-current="page"] { color: var(--ivory); }
.mast__act { display: flex; align-items: center; gap: 12px; }
.mast__login {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
  margin-left: auto;
  z-index: 2;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 12px;
  width: 18px; height: 2px;
  background: var(--ivory);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 480px) {
  .sigil__name { font-size: 15px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .mast__menu { display: none; }
  .mast.is-open .mast__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--chamber);
    padding: 12px 20px 20px;
    gap: 6px;
    border-bottom: 1px solid var(--line);
  }
  .mast.is-open .mast__links { flex-direction: column; gap: 0; }
  .mast.is-open .mast__links a { min-height: 48px; border-bottom: 1px solid var(--line); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  text-decoration: none;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--gold {
  background: var(--filigree);
  color: var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ivory);
  box-shadow: inset 0 0 0 1.5px var(--line);
  clip-path: none;
}
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; clip-path: none; }

/* ---------- footer ---------- */

.foot {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 14px;
  background: var(--chamber);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.foot h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ivory); }
.foot__tag {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
}
.foot__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}
.foot--slim { padding-top: 24px; }
.foot--slim .foot__legal { border: 0; padding-top: 0; }

@media (max-width: 800px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__legal { flex-direction: column; }
}

.tlink { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* generated footer/legal polish */
.domain-note {
  padding: clamp(28px, 5vw, 56px) 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.domain-note .wrap {
  max-width: min(1120px, calc(100% - 40px));
}
.domain-note .eyebrow {
  margin-bottom: 10px;
}
.domain-note h2 {
  max-width: 19ch;
  margin: 0 0 14px !important;
  font-size: clamp(1.45rem, 3vw, 2.6rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}
.domain-note .body-copy {
  max-width: 76ch;
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-address {
  box-sizing: border-box;
  width: 100%;
  max-width: 76ch;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  font-size: clamp(12px, 0.92vw, 14px);
  line-height: 1.55;
}
.legal-address p {
  max-width: none !important;
  margin: 0 !important;
}
.legal-address p + p {
  margin-top: 8px !important;
}
.legal-address strong {
  color: inherit;
  font-weight: 700;
}
.legal-address__note {
  opacity: 0.86;
}
.ftr__bot,
.foot__legal,
.footer-grid,
.footer-inner {
  flex-wrap: wrap;
}
.ftr__bot .legal-address,
.foot__legal .legal-address {
  flex: 1 1 100%;
}
.footer .legal-address {
  grid-column: 1 / -1;
}
.footer-inner .legal-address,
.footer-grid .legal-address {
  flex: 1 1 100%;
}
.legal-address--standalone {
  display: block;
  max-width: min(960px, calc(100% - 32px));
  margin: 24px auto;
}
@media (max-width: 560px) {
  .domain-note .wrap {
    max-width: calc(100% - 32px);
  }
  .legal-address {
    padding: 14px 15px;
  }
}
