/*
  Shared styles: design tokens, layout primitives, header, footer.
  Aesthetic: industrial, minimal, grey/white. No decorative gradients,
  no playful accent fills, no number circles. Big typography, generous
  whitespace. Accent is used sparingly — almost only on links.
*/

:root {
  /* Color */
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --surface: #ffffff;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --ink-muted: #6b6b6b;
  --ink-faint: #9a9a9a;
  --line: #e5e5e5;
  --line-strong: #cdcdcd;
  --accent: #111111;          /* primary "accent" is just black */
  --accent-soft: #f0f0f0;
  --accent-deep: #000000;     /* hover/pressed black for buttons that used to go deeper-orange */
  --good: #1d7a3a;
  --warn: #8a6800;
  --bad: #b32a1c;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Layout */
  --max-w: 1200px;
  --gap-xs: 4px;
  --gap-s: 8px;
  --gap-m: 16px;
  --gap-l: 32px;
  --gap-xl: 64px;
  --gap-xxl: 96px;
  --radius: 4px;
  --radius-lg: 8px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--ink-soft); }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.15s;
}
a:hover { opacity: 0.55; }
a.plain { border-bottom: 0; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap-l); }
@media (max-width: 640px) { .container { padding: 0 var(--gap-m); } }

.section { padding: var(--gap-xxl) 0; }
.section--tight { padding: var(--gap-xl) 0; }
.section--alt { background: var(--bg-alt); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: #fff; color: var(--ink); opacity: 1; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; opacity: 1; }
.btn--inverse { background: #fff; color: var(--ink); border-color: #fff; }
.btn--inverse:hover { background: transparent; color: #fff; border-color: #fff; opacity: 1; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); opacity: 1; }
a.btn { border-bottom: 1px solid transparent; }
a.btn:hover { border-bottom: 1px solid transparent; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header--floating {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-header__brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-header__brand:hover { opacity: 0.55; }
.site-header__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.site-nav {
  display: flex;
  gap: var(--gap-l);
}
.site-nav a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 0;
  padding: 6px 0;
  position: relative;
}
.site-nav a:hover { color: var(--ink); opacity: 1; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
}

@media (max-width: 720px) {
  .site-nav { gap: var(--gap-m); font-size: 0.9rem; }
  .site-nav a:last-child { display: none; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c5c5c5;
  padding: var(--gap-xxl) 0 var(--gap-l);
  margin-top: var(--gap-xxl);
}
.site-footer a { color: #fff; border-bottom: 0; }
.site-footer a:hover { opacity: 0.55; }
.site-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap-xl);
}
@media (max-width: 720px) {
  .site-footer__cols { grid-template-columns: 1fr; gap: var(--gap-l); }
}
.site-footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: var(--gap-m);
  font-weight: 600;
}
.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.site-footer__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  /* Logo is dark-on-transparent — invert for the dark footer */
  filter: invert(1);
}
.site-footer__brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand-block p { color: #888; max-width: 32ch; }
.site-footer__socials { display: flex; gap: 8px; margin-top: var(--gap-m); flex-wrap: wrap; }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  color: #555;
  text-decoration: none;
  border: 1px solid #2a2a2a;
  transition: color 0.15s, border-color 0.15s;
}
.social:hover { color: #555; opacity: 1; }
.social svg { width: 14px; height: 14px; fill: currentColor; }
.social--live { color: #fff; border-color: #444; }
.social--live:hover { color: #fff; border-color: #fff; opacity: 1; }

.site-footer__legal {
  margin-top: var(--gap-xl);
  padding-top: var(--gap-l);
  border-top: 1px solid #222;
  color: #555;
  font-size: 0.85rem;
}

/* Cards / shared blocks */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--gap-l);
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: var(--gap-m);
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 8px 12px; border-radius: 4px;
  z-index: 1000;
}
.skip-link:focus { left: var(--gap-m); top: var(--gap-m); }
