/* ============================================================
   Holandês Online — Base element styles
   ============================================================ */

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

html, body {
  background: var(--ho-bg);
  color: var(--ho-fg);
  font-family: var(--ho-font-body);
  font-size: var(--ho-text-base);
  line-height: var(--ho-leading-normal);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ho-font-display);
  color: var(--ho-ink-700);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--ho-leading-tight);
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: var(--ho-text-5xl); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--ho-text-3xl); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: var(--ho-text-2xl); font-weight: 600; letter-spacing: -0.018em; }
h4 { font-size: var(--ho-text-xl);  font-weight: 600; letter-spacing: -0.015em; }
h5 { font-size: var(--ho-text-lg);  font-weight: 600; letter-spacing: -0.01em; }
h6 {
  font-size: var(--ho-text-xs);
  font-weight: 600;
  letter-spacing: var(--ho-tracking-caps);
  text-transform: uppercase;
  color: var(--ho-fg-muted);
}

p {
  margin: 0;
  text-wrap: pretty;
  line-height: var(--ho-leading-normal);
  color: var(--ho-fg);
}

a {
  color: var(--ho-delft-500);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ho-dur-1) var(--ho-ease-out);
}
a:hover { color: var(--ho-orange-600); text-decoration: underline; }
a:visited { color: var(--ho-delft-500); }

code, kbd, samp, pre {
  font-family: var(--ho-font-mono);
  font-size: 0.92em;
}
code {
  background: var(--ho-bg-sunken);
  padding: 0.1em 0.4em;
  border-radius: var(--ho-radius-xs);
  border: 1px solid var(--ho-border);
}

small { font-size: var(--ho-text-sm); color: var(--ho-fg-muted); }

ul, ol { padding-left: 1.5em; margin: 0; }

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

::selection {
  background: var(--ho-orange-200);
  color: var(--ho-ink-800);
}

/* Focus — always visible */
:focus-visible {
  outline: 3px solid var(--ho-orange-500);
  outline-offset: 2px;
}

/* Display — hero-scale type, larger than h1 */
.ho-display {
  font-family: var(--ho-font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ho-ink-700);
  text-wrap: balance;
}

/* Lede — first paragraph under a hero */
.ho-lede {
  font-size: var(--ho-text-lg);
  line-height: 1.55;
  color: var(--ho-fg-muted);
  max-width: 60ch;
  text-wrap: pretty;
}

/* Drupal admin bar offsets */
body.toolbar-horizontal { padding-top: 39px !important; }
body.toolbar-tray-open.toolbar-horizontal { padding-top: 79px !important; }

/* HTMX */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: block; }
form.htmx-request button { opacity: 0.5; pointer-events: none; }

/* Drupal messages */
.messages--status { background: var(--ho-delft-50); border-left: 3px solid var(--ho-delft-500); padding: 12px 16px; border-radius: var(--ho-radius-sm); }
.messages--warning { background: #FFF9EC; border-left: 3px solid var(--ho-stroop); padding: 12px 16px; border-radius: var(--ho-radius-sm); }
.messages--error { background: #FFF0F0; border-left: 3px solid var(--ho-tulip); padding: 12px 16px; border-radius: var(--ho-radius-sm); }

@media (max-width: 640px) {
  h1 { font-size: clamp(26px, 7vw, 36px); }
}
