/* Theme Name: ZeroY Starter */
:root {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-background);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--basalt);
  background: var(--mineral);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  line-height: 1.65;
  margin: 0 0 16px;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Chrome: top bar, header, footer */
.topbar {
  background: var(--navy-deep);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--orange);
  display: inline-block;
}
.brand-type {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-type small {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  font-weight: 400;
  margin-top: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  color: var(--mist);
  transition: color 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav a:hover,
.nav a.active {
  color: #fff;
}
.site-footer {
  background: var(--navy-deep);
  color: var(--steel);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0 24px;
  font-size: 13px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}
.footer-links a {
  color: var(--mist);
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--navy);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.button:hover {
  background: var(--navy-deep);
  color: #fff;
}
.button.primary {
  background: var(--orange);
}
.button.primary:hover {
  background: #c24d1c;
}

@media (max-width: 760px) {
  .header-inner {
    padding: 14px 16px;
  }
  .nav {
    gap: 16px;
    font-size: 13px;
  }
  .topbar-inner {
    padding: 0 16px;
  }
}

/* Narrow screens: let the header wrap instead of overflowing (nav stays visible) */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 4px 18px;
    width: 100%;
  }
  .nav a {
    min-height: 40px;
  }
}
