/* ==========================================================================
   Milestone Real Estate — basis
   --------------------------------------------------------------------------
   Reset, basistypografie en container. Alle waarden komen uit tokens.css.
   Secties en componenten overschrijven de standaardmaten zelf.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

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

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* --------------------------------------------------------------------------
   2. Basis
   -------------------------------------------------------------------------- */

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

/* --------------------------------------------------------------------------
   3. Typografie
   -------------------------------------------------------------------------- */

/* Alata bestaat alleen als Regular: altijd 400, nooit faux-bold. */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
  text-wrap: balance;
}

/* Standaardmaten voor inhoudspagina's. */
h1 { font-size: var(--fs-h1-sub); }
h2 { font-size: var(--fs-h2-sub); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-card); }

h5,
h6 {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semi);
  line-height: var(--lh-lead);
}

/* Cursief accent in koppen is Open Sans. */
:is(h1, h2, h3, h4) em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-light);
}

p {
  max-width: var(--measure-l);
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em; /* lijn los van de descenders */
  transition: color var(--dur-1) var(--ease-plain);
}

a:hover {
  color: var(--link-hover);
}

strong,
b {
  font-weight: var(--fw-semi);
}

/* --------------------------------------------------------------------------
   4. Focus
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: var(--border-width-accent) solid var(--accent);
  outline-offset: var(--space-1);
}

/* --------------------------------------------------------------------------
   5. Toegankelijkheid
   -------------------------------------------------------------------------- */

/* WordPress-standaard: onzichtbaar, maar wel voorgelezen. De 1px-maten en
   clip zijn het gangbare patroon; display:none zou de tekst ook voor
   schermlezers verbergen. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip-link: buiten beeld tot hij focus krijgt. */
.skip-link {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: var(--z-overlay);
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--white);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transform: translateY(-200%); /* ruim boven de viewport, ook met top-offset */
}

.skip-link:focus {
  color: var(--white);
  transform: none;
}

/* --------------------------------------------------------------------------
   6. Container
   -------------------------------------------------------------------------- */

.container {
  width: min(100%, var(--shell-max));
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
