/* Hekta - shared site chrome (nav + App Store badge + footer) for static pages.
   Single source of truth for the .hk-* chrome on every static public/ page that
   should feel like the rest of the site (/about and the editorial guide pages).

   These rules and their markup mirror src/components/{Nav,Footer,AppStoreBadge}.tsx
   and the .hk-* rules in src/styles/landing.css. Those styles live in the SPA's
   bundled CSS, which a static public/ page cannot import, so they are restated
   here verbatim. KEEP IN SYNC: when the site chrome changes in landing.css,
   update this file in the same change so the static pages keep matching the SPA.

   Fonts come from site-fonts.css (--hk-display, --hk-body). The page reset, body
   surface, and base typography live in the page's editorial stylesheet, which is
   always linked alongside this file. */

:root {
  --hk-ink: #1a181b;
  --hk-ui: var(--hk-body); /* Nunito Sans, from site-fonts.css */
  --hk-page: 1240px;
  --hk-pad-x: clamp(20px, 4vw, 56px);
}

/* ---------- Nav ---------- */
.hk-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.hk-nav-inner {
  max-width: none;
  margin: 0 auto;
  padding: 14px clamp(20px, 2.6vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hk-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--hk-ink);
}

.hk-wordmark:hover {
  text-decoration: none;
}

.hk-wordmark--lg {
  font-size: 44px;
}

.hk-wordmark-mark {
  height: 1.15em;
  width: auto;
  display: block;
}

.hk-wordmark-text {
  font-family: var(--hk-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hk-nav-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 16px;
  font-weight: 650;
  color: #3f3f45;
}

.hk-nav-links a {
  color: inherit;
  transition: color 0.18s ease;
}

.hk-nav-links a:hover {
  color: var(--hk-ink);
  text-decoration: none;
}

.hk-nav-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ---------- Nav CTA (mirrors the landing nav Download pill) ---------- */
.hk-nav-cta {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hk-nav-cta:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.25);
}

/* ---------- App Store badge ---------- */
.hk-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hk-appstore:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.hk-appstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.hk-appstore-pre {
  font-size: 10px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.hk-appstore-name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hk-appstore--sm {
  padding: 0 12px 0 10px;
  gap: 8px;
  border-radius: 999px;
}

.hk-appstore--sm .hk-appstore-name {
  margin-top: 1px;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.hk-footer {
  background: #1a181b;
  color: #fafafa;
  padding: 80px 0 32px;
}

.hk-footer-inner {
  max-width: var(--hk-page);
  margin: 0 auto;
  padding: 0 var(--hk-pad-x);
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: clamp(32px, 5vw, 80px);
}

.hk-footer-brand p {
  margin: 16px 0 0;
  max-width: 320px;
  color: #c7c7cc;
  font-size: 14px;
  line-height: 1.55;
}

.hk-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hk-footer-cols a {
  display: block;
  padding: 6px 0;
  color: #c7c7cc;
  font-size: 14px;
  transition: color 0.18s ease;
}

.hk-footer-cols a:hover {
  color: #fff;
  text-decoration: none;
}

.hk-footer-h {
  margin-bottom: 12px;
  font-family: var(--hk-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8e8e93;
}

.hk-footer-base {
  max-width: var(--hk-page);
  margin: 56px auto 0;
  padding: 24px var(--hk-pad-x) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #8e8e93;
}

/* ---------- Responsive (chrome) ---------- */
@media (max-width: 900px) {
  .hk-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .hk-nav-links {
    display: none;
  }

  .hk-nav-inner {
    display: flex;
    justify-content: space-between;
  }

  .hk-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hk-footer-cols {
    grid-template-columns: 1fr;
  }
}
