/* Shared site chrome: header, mobile menu, footer, buttons. Visual language follows the Fortuna proposal:
   navy on white, Helvetica, uppercase letter-spaced labels, hairline rules, square corners. */
:root {
  --c-navy: #1f3a5f;
  --c-navy-2: #3d6a9e;
  --c-navy-deep: #172c48;
  --c-sky: #9fb8d6;
  --c-ink: #16202c;
  --c-muted: #4f5a66;
  --c-rule: #d5dbe2;
  --c-soft: #f2f4f7;
  --c-paper: #ffffff;
  --c-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --c-max: 1200px;
}
.shell { width: min(var(--c-max), calc(100% - 64px)); margin-inline: auto; }

.topbar { position: sticky; top: 0; z-index: 60; color: var(--c-ink); background: #fffffff2; border-bottom: 1px solid var(--c-rule); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .3s ease; }
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--c-rule), 0 8px 24px #16202c0f; }
.topbar-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--c-navy); text-decoration: none; font-family: var(--c-font); }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand .wordmark { display: inline; gap: 0; font-family: var(--c-font); text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .28em; line-height: 1; white-space: nowrap; }
.wordmark span { font-weight: 300; }
.topnav { display: flex; align-items: center; gap: 32px; }
.topnav a { color: var(--c-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .15s; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--c-navy); }
.topnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-navy); padding-block: 6px; }
.topnav .btn, .topnav .btn:hover { color: #fff; }
.menu { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px; font: 600 14px/1 var(--c-font); letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-mint, .btn-dark { color: #fff; background: var(--c-navy); }
.btn-mint:hover, .btn-dark:hover { background: var(--c-navy-deep); }
.btn-ghost { color: var(--c-navy); border-color: var(--c-navy); background: transparent; }
.btn-ghost:hover { color: #fff; background: var(--c-navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn:focus-visible, .topnav a:focus-visible, .foot a:focus-visible, .menu summary:focus-visible { outline: 2px solid var(--c-navy-2); outline-offset: 4px; }

.foot { color: var(--c-muted); background: var(--c-soft); border-top: 1px solid var(--c-navy); font: 14px/1.6 var(--c-font); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 44px; }
.foot-grid p { margin: 16px 0 0; max-width: 300px; line-height: 1.6; }
.foot h2 { margin: 0 0 14px; color: var(--c-muted); font: 600 11px/1.4 var(--c-font); letter-spacing: .14em; text-transform: uppercase; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot a { color: var(--c-ink); text-decoration: none; }
.foot a:hover { color: var(--c-navy); text-decoration: underline; text-underline-offset: 4px; }
.foot .brand { color: var(--c-navy); }
.foot .brand:hover { text-decoration: none; }
.foot-legal { display: flex; justify-content: space-between; gap: 24px; padding-block: 20px 30px; border-top: 1px solid var(--c-rule); font-size: 12.5px; line-height: 1.6; color: var(--c-muted); }
.foot-legal p { margin: 0; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 40px); }
  .topbar-inner { height: 64px; }
  .brand .mark { width: 28px; height: 28px; }
  .brand .wordmark { font-size: 13px; letter-spacing: .24em; }
  .topnav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--c-rule); border-radius: 2px; color: var(--c-navy); font: 600 13px/1 var(--c-font); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::after { content: ""; width: 14px; height: 9px; background: linear-gradient(currentColor 0 0) 0 0/100% 1.5px no-repeat, linear-gradient(currentColor 0 0) 0 50%/100% 1.5px no-repeat, linear-gradient(currentColor 0 0) 0 100%/100% 1.5px no-repeat; }
  .menu[open] summary { border-color: var(--c-navy); }
  .menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 40px)); display: grid; padding: 8px; border: 1px solid var(--c-rule); border-top: 2px solid var(--c-navy); border-radius: 0; background: #fff; box-shadow: 0 18px 40px #16202c26; }
  .menu nav a { padding: 12px; color: var(--c-ink); font: 15px/1.3 var(--c-font); text-decoration: none; }
  .menu nav a:hover, .menu nav a[aria-current="page"] { color: var(--c-navy); background: var(--c-soft); }
  .menu nav .btn { margin-top: 6px; color: #fff; }
  .menu nav .btn:hover { color: #fff; background: var(--c-navy-deep); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-block: 44px 32px; }
  .foot-grid > :first-child, .foot-grid > :last-child { grid-column: 1 / -1; }
  .foot-legal { flex-direction: column; gap: 8px; }
}
.topbar .menu { margin: 0; padding: 0; border: 0; background: none; }
.brand .wordmark span { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: 300; letter-spacing: inherit; }
/* Solid header: no blurred content showing through */
.topbar { background: #fff; backdrop-filter: none; }
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--c-rule); }
/* Footer labels must not inherit page heading styles (economics page sets h2 globally) */
.foot .foot-grid h2 { margin: 0 0 14px; color: var(--c-muted); font: 600 11px/1.4 var(--c-font); letter-spacing: .14em; text-transform: uppercase; }
