/* Terishield SA — Base styles: reset, elements, typography */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Every in-page anchor target (nav dropdown links, "Apply for this role",
   the Partners certification anchor, etc.) lands cleanly below the sticky
   header instead of underneath it. */
[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

/* One family — Archivo — carries every heading. Hierarchy comes from
   weight and size, not from swapping typefaces: the true Swiss-system
   approach. Source Serif 4 is never used here; it is reserved for the
   single statement moment (see .statement-quote in components.css). */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
h6 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-semibold);
}

p {
  margin: 0 0 var(--space-4);
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent-strong);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

label {
  display: inline-block;
}

hr {
  border: none;
  border-top: var(--border-width) solid var(--color-border);
  margin: 0;
}

/* Accessible, visible focus states everywhere — never suppressed */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link — first focusable element on every page */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-3) var(--space-5);
  font-weight: var(--fw-medium);
  z-index: var(--z-overlay);
  transition: top var(--duration-base) var(--ease-standard);
  border-radius: var(--radius-sm);
}

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

/* Visually-hidden but screen-reader accessible */
.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;
}

::selection {
  background: var(--raw-stone-line);
  color: var(--color-bg-dark);
}
