/* Awkronos shared site styles.
   Used by index.html and projects/index.html — the two public brand pages.
   Tokens follow the locked brand palette: off-white-warm background,
   zinc text scale, single accent for interactive affordances. */

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

:root {
  /* Shared palette, fonts, spacing, motion and radius live in
     assets/tokens.css (linked first). Only site-specific tokens here. */
  --bg-warm: #F5F3EE;
  --text-tertiary: #71717A;
  /* This site's own border stroke used by the hero artwork and rules. */
  --rule: #E4E4E7;
  --accent-light: rgba(15,118,110,0.08);
  --accent-lighter: rgba(15,118,110,0.04);

  /* Canonical aliases mirroring @awkronos/design-tokens as surfaced through
     packages/ui-kit/styles/tokens.css (CANONICAL.md forbids vendoring the
     package itself into this repo). Root font-size is 18px, so --body-size
     here is 1rem. */
  --fg: var(--text);
  --muted: var(--text-secondary);
  --warm: var(--bg-warm);
  --accent-tint: var(--accent-light);
  --accent-glow: var(--accent-lighter);
  --body-size: 1rem;
  --body-leading: 1.7;
}

html { font-size: 18px; scroll-behavior: smooth; scroll-padding-top: 80px; }

section[id] { scroll-margin-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-light); color: var(--text); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--text);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: var(--s-1) var(--s-2);
  border-radius: 6px;
  transition: top var(--t-fast) var(--ease);
}

.skip-link:focus-visible { top: var(--s-2); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 var(--s-4); }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(250,250,248,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 var(--s-4);
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.5rem;
}

.nav-logo img { display: block; width: 160px; height: auto; }

.nav-logo svg { width: 20px; height: 20px; }

.nav-links { display: flex; align-items: center; gap: var(--s-4); list-style: none; }

.nav-links a {
  font-size: 0.8rem; color: var(--text-secondary); font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-size: 0.8rem !important; font-weight: 500 !important;
  color: #fff !important; background: var(--text);
  padding: var(--s-1) var(--s-2); border-radius: 6px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-cta:hover { transform: translateY(-1px); opacity: 0.9; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 500;
  color: #fff; background: var(--text);
  padding: var(--s-2) var(--s-3); border-radius: 8px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.btn-primary:hover { transform: translateY(-1px); opacity: 0.9; }

.btn-primary svg { width: 14px; height: 14px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text); background: transparent;
  padding: var(--s-2) var(--s-3); border-radius: 8px;
  border: 1px solid var(--border);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.btn-secondary:hover {
  background: var(--accent-lighter);
  border-color: var(--accent);
}

.btn-secondary svg { width: 14px; height: 14px; }

/* ---- FOOTER ---- */
footer {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left { font-size: 0.78rem; color: var(--text-tertiary); }

.footer-links {
  flex-wrap: wrap; justify-content: center; display: flex; gap: var(--s-3); list-style: none; }

.footer-links a {
  font-size: 0.78rem; color: var(--text-tertiary);
  transition: color var(--t-fast) var(--ease);
}

.footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 1rem; }
}
