/* ==========================================================================
   OWN BUSINESS — Base styles
   Reset, typography, layout helpers. Load order:
   fonts/fonts.css → css/tokens.css → css/base.css → css/components.css
   ========================================================================== */

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden], .is-hidden { display: none !important; }

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); font-weight: 700; }

/* Logo-style weight contrast inside a headline: heavy claim, light follow-on
   ("Own" heavy, "Business" light). Same family, never a second typeface.   */
.h-light { font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
p  { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead   { font-size: var(--fs-md); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.muted  { color: var(--muted); }
.small  { font-size: var(--fs-sm); }
.num    { font-variant-numeric: tabular-nums; }

/* Small label: sentence case on purpose. Uppercase, wide-tracked labels are
   kept out of the system so the only wide-tracked line is the tagline.    */
.label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* The tagline, set exactly like the logo's strap line: sentence case,
   regular weight, very open tracking. */
.tagline {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  font-size: var(--fs-sm);
}

/* ---- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section     { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section-head { margin-bottom: var(--space-10); max-width: 46rem; }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head .lead { margin-top: 0; }

.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.grid    { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---- Accessibility ------------------------------------------------------ */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }
