/* Oldemaat-IT — the whole stylesheet for www.oldemaat-it.nl.
   Same type family as the apps site (Source Serif 4, IBM Plex Sans/Mono)
   so the three Oldemaat-IT sites read as one company, but with its own
   accent: a deep blue-green instead of the apps site's amber. */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper: #f5f3ee;
  --paper-raised: #ffffff;
  --ink: #17232b;
  --ink-soft: #5d6b73;
  --line: rgba(23, 35, 43, 0.13);
  --accent: #1f6f78;
  --accent-deep: #15525a;
  --accent-tint: rgba(31, 111, 120, 0.1);
  --on-accent: #ffffff;
  --apps: #b9740f;
  --games: #6a4bb0;
  --ok: #2e6b36;
  --ok-tint: rgba(46, 107, 54, 0.1);
  --error: #b3392c;
  --error-tint: rgba(179, 57, 44, 0.1);
  --shadow: rgba(23, 35, 43, 0.12);

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141c21;
    --paper-raised: #1c262c;
    --ink: #e8eef0;
    --ink-soft: #a3b2b9;
    --line: rgba(232, 238, 240, 0.14);
    --accent: #6cc3cc;
    --accent-deep: #9adbe2;
    --accent-tint: rgba(108, 195, 204, 0.14);
    --on-accent: #0e1a1d;
    --apps: #f2a93c;
    --games: #b9a2f0;
    --ok: #7ecb86;
    --ok-tint: rgba(126, 203, 134, 0.14);
    --error: #e0796c;
    --error-tint: rgba(224, 121, 108, 0.14);
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --paper: #141c21;
  --paper-raised: #1c262c;
  --ink: #e8eef0;
  --ink-soft: #a3b2b9;
  --line: rgba(232, 238, 240, 0.14);
  --accent: #6cc3cc;
  --accent-deep: #9adbe2;
  --accent-tint: rgba(108, 195, 204, 0.14);
  --on-accent: #0e1a1d;
  --apps: #f2a93c;
  --games: #b9a2f0;
  --ok: #7ecb86;
  --ok-tint: rgba(126, 203, 134, 0.14);
  --error: #e0796c;
  --error-tint: rgba(224, 121, 108, 0.14);
  --shadow: rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Masthead ---------- */

header.masthead {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0;
}

.wordmark a { color: var(--ink); text-decoration: none; }
.wordmark .dash { color: var(--accent); }

nav.sitenav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

nav.sitenav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav.sitenav a:hover,
nav.sitenav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

nav.sitenav a.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

nav.sitenav a.lang-switch:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 72px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 17ch;
  text-wrap: balance;
}

.hero .lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 36px;
}

.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 24px;
  border: 1px solid var(--accent);
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-tint); }
.btn svg { width: 16px; height: 16px; }

/* Three quick facts under the hero: how and when the user can be hired. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact { padding: 26px 28px 26px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }

.fact .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.fact .value {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 0;
}

/* ---------- Sections ---------- */

section.block { padding: 88px 0 0; }
section.block:last-of-type { padding-bottom: 96px; }

/* Anchor targets land below the top edge instead of flush against it. */
section[id] { scroll-margin-top: 24px; }

.section-head { max-width: 680px; margin-bottom: 40px; }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section-head p { color: var(--ink-soft); margin: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 > *, .grid-2 > * { min-width: 0; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 10px;
}

.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon svg { width: 22px; height: 22px; }

/* ---------- Expertise ---------- */

.skills { border-top: 1px solid var(--line); }

.skill {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.skill h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
}

.skill p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.level {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- Past work ---------- */

.case .num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---------- Sister brands ---------- */

.brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.brand:hover { border-color: var(--brand); transform: translateY(-2px); }
.brand .brand-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0; }
.brand .brand-name .dash { color: var(--brand); }
.brand .brand-link { font-weight: 600; font-size: 15px; color: var(--brand); margin-top: 6px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.contact-grid > * { min-width: 0; }

.contact-notes { color: var(--ink-soft); }
.contact-notes p { margin: 0 0 16px; }

form.contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form.contact label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 6px;
}

form.contact .optional { font-weight: 400; color: var(--ink-soft); }

form.contact input,
form.contact textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
}

form.contact textarea { min-height: 160px; resize: vertical; }

form.contact .hint { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* Honeypot: kept in the DOM for bots, invisible and unreachable for people. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

form.contact button { align-self: flex-start; }
form.contact button:disabled { opacity: 0.6; cursor: wait; }

.status { display: none; border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.status.show { display: block; }
.status.ok { background: var(--ok-tint); color: var(--ok); }
.status.err { background: var(--error-tint); color: var(--error); }

/* ---------- Legal pages ---------- */

.legal { max-width: 720px; padding: 64px 0 96px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: 40px; margin: 0 0 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 32px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.footer-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
}

.footer-row a { color: var(--ink-soft); text-decoration: none; }
.footer-row a:hover { color: var(--accent); }
.footer-legal { font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 42px; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .skill { grid-template-columns: 1fr auto; row-gap: 6px; }
  .skill p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  /* Phone header: wordmark, Contact and the language switch on one row.
     The section links are a scroll away anyway. */
  header.masthead { padding: 18px 0; }
  .masthead-row { flex-wrap: nowrap; gap: 12px; }
  .wordmark { font-size: 21px; }
  nav.sitenav { gap: 14px; flex-wrap: nowrap; }
  nav.sitenav a:not(.lang-switch):not([href$="#contact"]) { display: none; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 17px; }
  h2 { font-size: 29px; }
  section.block { padding-top: 64px; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}
