/* RFidalgo, single stylesheet. Dark, restrained, system fonts, no external assets. */

/* --- Tokens --- */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #131316;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #8b8b96;
  --line: #2a2a31;
  --control: #6b6b78;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --measure: 62ch;
  --container: 1080px;
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --radius: 4px;
}

/* --- Reset and base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
svg { display: block; }
h1, h2, h3 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); }
p { margin: 0 0 var(--s3); }
p, li { max-width: var(--measure); }
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--control);
}
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 680px; }
@media (min-width: 720px) { .container { padding: 0 2.5rem; } }

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s2) var(--s3);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { left: var(--s3); top: var(--s3); outline-offset: 2px; }

/* --- Header --- */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand svg { height: 22px; width: auto; }
.brand:hover { color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: var(--s1) 0; display: inline-block; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.lang-switch a { font-size: 0.85rem; }
.lang-switch a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--control); }

/* --- Home --- */
.hero { padding: var(--s6) 0 var(--s6); }
@media (min-width: 720px) { .hero { padding: var(--s7) 0 var(--s7); } }
.hero-logo { height: 44px; width: auto; color: var(--ink); margin-bottom: var(--s6); }
@media (min-width: 720px) { .hero-logo { height: 56px; } }
.hero h1 { font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2rem); font-weight: 500; max-width: 34ch; margin-bottom: var(--s6); }
.hero h1 .hero-line { display: block; }
.home .brand { display: none; }
.home main { display: flex; flex-direction: column; justify-content: center; }
.nav { margin-left: auto; }
.keywords {
  list-style: none;
  margin: 0;
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: var(--s4) var(--s5);
}
@media (min-width: 720px) { .keywords { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.keywords > li { max-width: none; }
.pillar-name { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: var(--s2); }
.keywords ul { list-style: none; margin: 0; padding: 0; }
.keywords ul li { font-size: 0.95rem; color: var(--dim); line-height: 1.7; }
.hero-cta { margin: var(--s5) 0 0; }

/* --- Buttons --- */
.button {
  display: inline-block;
  border: 1px solid var(--control);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* --- Inner pages --- */
.page-header { padding-top: var(--s6); padding-bottom: var(--s3); }
.page-body { padding-bottom: var(--s7); }
.lead { color: var(--muted); font-size: 1.1rem; }
.privacy-body h2 { margin-top: var(--s5); }
.privacy-body p { color: var(--muted); }
.updated { margin-top: var(--s5); font-size: 0.9rem; color: var(--dim); }
.back-link { margin-top: var(--s5); }
.notfound-links { list-style: none; padding: 0; }
.notfound-links li { margin-bottom: var(--s2); }

/* --- Form --- */
.contact-form { margin-top: var(--s3); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--s4); max-width: 520px; }
.field label { font-size: 0.95rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  width: 100%;
  min-height: 24px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field-check { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.field-check input { width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0.3rem 0 0; padding: 0; accent-color: var(--ink); flex: none; }
.field-check label { font-size: 0.95rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: var(--s4); }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 0.9rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
  padding-top: var(--s4);
  padding-bottom: var(--s4);
}
.footer-inner p { margin: 0; }
.footer-links { list-style: none; display: flex; gap: var(--s4); margin: 0; padding: 0; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
