/* ITZA-WORDMARK-SPEC.md: exact house colours, weights and metallic stops. */
@font-face {
  font-family: 'ITZA Wordmark';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/roboto-latin.woff2') format('woff2');
}
:root { --wordmark: 'ITZA Wordmark', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--wordmark);
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.brand .brand-mark { width: 22px; height: 22px; object-fit: contain; }
.wm {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  font-family: var(--wordmark);
  font-size: inherit;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-optical-sizing: none;
}
.wm > span {
  display: block;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  /* Keep the full font box: trimming clips the gold background at curved edges. */
  overflow: visible;
}
.wm-itza { color: #0c7ffb; font-weight: 600; }
.wm-prod { color: #ad8009; font-weight: 800; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .wm-prod {
    background-image: linear-gradient(105deg,
      #8a6206 0%, #c99a10 22%, #f9df6d 40%, #f5c711 52%,
      #a67c08 72%, #e0b312 88%, #b98a0a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
html[data-theme='dark'] .wm-itza, .wordmark-dark .wm-itza { color: #4d9bff; }
html[data-theme='dark'] .wm-prod, .wordmark-dark .wm-prod { color: #f5c711; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  html[data-theme='dark'] .wm-prod, .wordmark-dark .wm-prod {
    background-image: linear-gradient(105deg,
      #b98a0a 0%, #f5c711 25%, #ffe98a 42%, #f5c711 55%,
      #c99a10 75%, #ffd83d 90%, #e0b312 100%);
    color: transparent;
  }
}
html[data-theme='hc'] .wm-itza { color: #0c7ffb; }
html[data-theme='hc'] .wm-prod { background-image: none; color: #a06f00; }
@media (forced-colors: active) {
  .wm .wm-itza, .wm .wm-prod { background-image: none; color: LinkText; }
}
/* The platform diagram and footer are dark surfaces, independent of page theme. */
.map-ai.wordmark-dark { background: #071e59; }
.map-ai>.wm { font-size: 33px; letter-spacing: -0.005em; }
.footer .brand { font-size: 21px; }

/* Match the ITZA Labs header container and balanced navigation placement. */
.header { height: 78px; }
.header .nav-wrap {
  width: min(1340px, calc(100% - 64px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.header .brand { font-size: 21px; gap: 11px; }
.header .brand-mark { width: 34px; height: 30px; flex-shrink: 0; }
.header nav { justify-content: center; align-items: center; margin: 0; gap: 31px; }
@media (min-width: 761px) and (max-width: 1000px) {
  .header .nav-wrap { gap: 20px; }
  .header nav { gap: 20px; }
}
@media (max-width: 760px) {
  .header { height: 68px; }
  .header .nav-wrap { width: calc(100% - 32px); grid-template-columns: 1fr auto auto; gap: 14px; }
  .header .brand { font-size: 21px; }
  .header nav { display: none; top: 67px; left: 0; right: 0; position: absolute; padding: 22px; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); }
  .header nav.open { display: flex; }
  .header nav a { font-size: 16px; }
  .header .menu-toggle { display: flex; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 10px 0 10px 4px; }
  .header .menu-toggle span { width: 20px; height: 2px; background: var(--ink); }
  .header .nav-wrap > .button { min-height: 39px; font-size: 12px; padding: 10px 13px; margin: 0; }
}
