@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lato-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-latin-700-normal.woff2") format("woff2");
}

/*
 * The site's one stylesheet (mobile first). Brand: assets/brand/ZIV_Style_Guide.md.
 * Colours: Charcoal text on white / Cloud; Ziv Orange only as the one primary action and
 * a thin accent (never as text: orange on white is below the text contrast floor).
 * The @font-face rules are generated by the build from config/site.yaml (site.fonts).
 */

:root {
  --ziv-orange: #ff6a00;
  --ziv-charcoal: #0b0f14;
  --ziv-cloud: #f5f7fa;
  --ziv-slate: #6b7280;
  --ziv-glow: #fff2e6;
  --ziv-white: #ffffff;
  --font-display: "Inter Display", "Inter", Arial, sans-serif;
  --font-body: "Lato", Arial, sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --radius-control: 8px;
  --radius-surface: 12px;
  --container-max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--ziv-white);
  color: var(--ziv-charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ziv-charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--ziv-orange);
}

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

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

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  padding: var(--space-1) var(--space-2);
  background: var(--ziv-charcoal);
  color: var(--ziv-white);
  border-radius: var(--radius-control);
  z-index: 10;
}

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

.skip-link:focus-visible {
  outline-color: var(--ziv-orange);
}

.site-header {
  padding: var(--space-3) 0;
}

.brand {
  display: inline-block;
  /* Clear space: at least a quarter of the letter height on every side (style guide §3). */
  padding: var(--space-1) 0;
}

.brand img {
  display: block;
  width: 120px;
}

main {
  flex: 1 0 auto;
  padding: var(--space-4) 0 var(--space-8);
}

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ziv-charcoal);
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: var(--space-6);
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-top: var(--space-4);
}

p,
ul,
ol {
  margin: 0 0 var(--space-2);
  max-width: 70ch;
}

strong {
  font-weight: 700;
}

.hero h1 {
  font-weight: 800;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero .accent {
  /* The 100× signal: a thin orange bar under the numerals; the text stays Charcoal. */
  border-bottom: 6px solid var(--ziv-orange);
}

.lead {
  font-size: 18px;
  line-height: 1.5;
}

.cta-row {
  margin-top: var(--space-4);
}

.button {
  display: inline-block;
  min-height: 48px;
  padding: 12px var(--space-3);
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
}

.button-primary {
  background: var(--ziv-orange);
  color: var(--ziv-charcoal);
}

.button-primary:hover {
  background: var(--ziv-charcoal);
  color: var(--ziv-white);
}

.note {
  /* Small text on white stays Charcoal (style guide §7); its link inherits the base link rule. */
  color: var(--ziv-charcoal);
  font-size: 14px;
}

.about {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-3);
  background: var(--ziv-cloud);
  border-radius: var(--radius-surface);
}

.about h2 {
  margin-top: 0;
}

.facts {
  padding-left: var(--space-3);
}

.facts li {
  margin-bottom: var(--space-1);
}

.legal h2 {
  font-size: 24px;
}

.site-footer {
  background: var(--ziv-cloud);
  padding: var(--space-4) 0;
  font-size: 14px;
}

.site-footer .copyright {
  margin: 0 0 var(--space-1);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.site-footer a {
  display: inline-block;
  padding: 4px 0;
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .about {
    padding: var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none;
    animation: none;
  }
}
