/* Business in View — site styles.
   Values come from the "Business in View" design system (Clean style).
   Fonts are self-hosted (no third-party requests): Latin-subset variable
   woff2 files from Google Fonts, SIL OFL 1.1 (licenses in fonts/). */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Geist-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/DMSans-latin-var.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f6f2;
  --border: #e8e6e1;
  --border-strong: #8a857d;
  --text-primary: #0f0e0c;
  --text-secondary: #6b6760;
  --accent: #1a1a1a;
  --accent-hover: #333333;
  --accent-text: #ffffff;
  --focus-ring: var(--text-primary);

  --font-display: "Geist", ui-sans-serif, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;

  --radius-sm: 8px;
  --container-max: 1200px;
  --measure: 640px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, p { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  background: var(--accent);
  color: var(--accent-text);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  z-index: 20;
}
.skip-link:focus { top: var(--space-2); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.overline {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}
.navlink {
  position: relative;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}
.navlink::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.22s ease;
}
.navlink:hover::after { width: 100%; }
/* Invisible hit area: grows the tap target to about 44px tall without moving anything */
.navlink::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

/* Hero */
.hero { padding: var(--space-12) 0 var(--space-8); }
.hero__stack {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}
.hero__title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.hero__lead {
  max-width: var(--measure);
  font-size: 18px;
  line-height: 1.65;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: var(--accent-hover); }
.icon { width: 20px; height: 20px; flex: none; }

/* Footer: the email at display size is the anchor */
.footer {
  background: var(--bg-subtle);
  padding: var(--space-12) 0 var(--space-4);
}
.footer__email {
  display: inline-block;
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-decoration: none;
  overflow-wrap: break-word;
}
.footer__email:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1);
  margin-top: var(--space-12);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 14px;
}

@media (min-width: 768px) {
  .hero { padding: var(--space-16) 0 var(--space-12); }
}

/* Load animation, only for people who haven't turned motion off */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
  }
  .hero__badge { animation: fade-up 0.6s ease 0s both; }
  .hero__title { animation: fade-up 0.6s ease 0.1s both; }
  .hero__lead { animation: fade-up 0.6s ease 0.22s both; }
  .hero__action { animation: fade-up 0.6s ease 0.34s both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:active { transform: none; }
}
