/* FitBlow — global chrome (header, footer, tokens). Ported from design/FitBlow. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:      #1a1a18;
  --ink-60:   rgba(26,26,24,.6);
  --ink-20:   rgba(26,26,24,.12);
  --bg:       #fafaf8;
  --surface:  #f2efe9;
  --red:      #ea2626;
  --border:   1px solid rgba(26,26,24,.09);
  --sans:     'DM Sans', system-ui, sans-serif;
  --mono:     'DM Mono', 'Courier New', monospace;
  --r-sm:     2px;
  --r-md:     4px;
  --shadow-sm: 0 1px 3px rgba(26,26,24,.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── TOPBAR ── */
.topbar {
  background: var(--ink);
  padding: 6px 0;
  text-align: center;
}
.topbar span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .88px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ── HEADER ── */
header {
  background: var(--bg);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 1.5rem;
  white-space: nowrap;
}
.logo-img { display: flex; align-items: center; flex-shrink: 0; }
.logo-img img { height: 24px; width: auto; display: block; }
.main-nav {
  display: flex;
  list-style: none;
  flex: 1;
  flex-wrap: nowrap;
}
.main-nav li a {
  font-family: var(--mono);
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 .85rem;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  opacity: .65;
  white-space: nowrap;
  transition: opacity .15s, border-color .15s;
}
.main-nav li a:hover { opacity: 1; }
.main-nav li a.active { opacity: 1; border-bottom-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.btn-search {
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--ink-60); display: flex; align-items: center;
}
.btn-subscribe {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .88px;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.btn-subscribe:hover { background: var(--red); }

/* ── FOOTER ── */
footer { background: var(--ink); color: #fff; border-top: 2px solid var(--ink); }
.footer-top {
  max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 2rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
}
.logo-img--footer { margin-bottom: 1.25rem; display: block; }
.logo-img--footer img { height: 20px; width: auto; }
.footer-brand p {
  font-family: var(--sans); font-size: 13px; font-weight: 300;
  line-height: 1.65; color: rgba(255,255,255,.4);
}
.footer-col-title {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  letter-spacing: .88px; text-transform: uppercase;
  color: rgba(255,255,255,.9); margin-bottom: 1rem;
  padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
  font-family: var(--sans); font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,.4); transition: color .15s;
}
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); }
.footer-bottom-inner {
  max-width: 1200px; margin: 0 auto; padding: 1.25rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom-inner span {
  font-family: var(--mono); font-size: 10px; font-weight: 300;
  letter-spacing: .5px; color: rgba(255,255,255,.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: .5rem; }
}
