/* ===========================================================
   OSHNED website — styled after the OSHNED slide decks.

   Brand colours live at the top of :root. Each coloured band
   (.band--white, .band--blue, .band--orange) remaps the "role"
   variables, so text, bullets, links and cards recolour
   themselves automatically inside it.
   =========================================================== */

/* ---------- font: Carlito (SIL Open Font License), self-hosted ---------- */

@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/carlito-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/carlito-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/carlito-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/carlito-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Carlito";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/carlito-400italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Carlito";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/carlito-400italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */

:root {
  /* brand */
  --blue: #0033a0;
  --blue-deep: #00267a;
  --orange: #ff8200;
  --white: #ffffff;
  --hairline: #b9c5e6;      /* light-blue rules, as in the deck tables */

  --wrap: 1120px;
  --radius: 22px;
  --font: "Carlito", "Calibri", "Lato", "Segoe UI", system-ui, sans-serif;

  /* roles (white-band defaults; bands below remap these) */
  --bg: var(--white);
  --fg: var(--blue);
  --heading: var(--blue);
  --accent: var(--orange);    /* bullets, quote bars, link underlines */
  --strong: var(--blue);
  --muted: #4a5f99;
  --rule: var(--hairline);

  --card-bg: var(--blue);
  --card-fg: var(--white);
  --card-muted: #c9d3ee;
  --card-accent: var(--orange);
  --card-gap: var(--white);   /* the thin ring between card and frame */
  --card-ring: var(--orange); /* the thick outer frame */
}

.band--blue {
  --bg: var(--blue);
  --fg: var(--white);
  --heading: var(--white);
  --accent: var(--orange);
  --strong: var(--orange);
  --muted: #c9d3ee;
  --rule: rgba(255, 255, 255, 0.28);

  --card-bg: var(--white);
  --card-fg: var(--blue);
  --card-muted: #4a5f99;
  --card-accent: var(--orange);
  --card-gap: var(--blue);
  --card-ring: var(--orange);
}

/* on orange, body text stays blue: white on orange is too faint to read */
.band--orange {
  --bg: var(--orange);
  --fg: var(--blue);
  --heading: var(--blue);
  --accent: var(--white);
  --strong: var(--blue);
  --muted: var(--blue-deep);
  --rule: rgba(0, 51, 160, 0.3);

  --card-bg: var(--blue);
  --card-fg: var(--white);
  --card-muted: #c9d3ee;
  --card-accent: var(--orange);
  --card-gap: var(--white);
  --card-ring: var(--blue);
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--blue);
  font-family: var(--font);
  font-size: 1.15rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--orange); color: var(--blue); }

img { max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 780px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 50;
  background: var(--orange);
  color: var(--blue);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- links ---------- */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 0.15s ease, text-underline-offset 0.15s ease;
}

/* hover: the underline swells into a highlighter bar */
a:hover {
  text-decoration-thickness: 0.4em;
  text-underline-offset: -0.05em;
  text-decoration-skip-ink: none;
}

/* ---------- typography ---------- */

h1, h2, h3 { line-height: 1.15; color: var(--heading); font-weight: 700; }

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.3rem;
  margin: 1.8rem 0 0.5rem;
}

p { margin: 0 0 1.1rem; }

strong { color: var(--strong); }

.lead {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.subtle { color: var(--muted); }

/* Display text: big bold uppercase headings and section labels */
.display {
  display: inline-block;
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
h1.display {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  margin-bottom: 1.2rem;
}

.display--sm { font-size: clamp(2rem, 4vw, 3rem) !important; }

.kicker {
  display: inline-block;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin-bottom: 0.9rem;
}
.kicker + h2 { margin-top: 0; }

blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 0.1rem 0 0.1rem 1.6rem;
  color: var(--heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}
blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 6px;
  border-radius: 6px;
  background: var(--accent);
}

/* lists with the deck's round orange bullets */
ul.dots {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
ul.dots > li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.6rem 0;
}
ul.dots > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- buttons and fields ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.75rem 1.4rem;
  border: 3px solid var(--orange);
  border-radius: 12px;
  background: var(--orange);
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}
.btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.btn--ghost {
  background: transparent;
  color: var(--heading);
  border-color: currentColor;
}

.btn--blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.field {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 3px solid var(--blue);
  border-radius: 12px;
  background: var(--white);
  color: var(--blue);
  min-width: 0;
}
.field::placeholder { color: #7d8dbd; }

/* ---------- newsletter banner ---------- */
/* Blue strip above the header; script.js unhides it. */

.signup-banner {
  --strong: var(--white);
  background: var(--blue);
  color: var(--white);
}

.signup-banner-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.2rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  padding-right: 3.25rem;  /* room for the close button */
}

.signup-banner-msg { margin: 0; font-size: 1.05rem; }

.signup-banner-form { display: flex; gap: 0.5rem; }
.signup-banner .field { width: 15rem; border-color: var(--white); padding: 0.4rem 0.75rem; font-size: 0.98rem; }
.signup-banner .btn { padding: 0.45rem 1rem; font-size: 0.98rem; }

.signup-banner-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}
.signup-banner-status:empty { display: none; }

.signup-banner-close {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  padding: 0.1rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--white);
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.signup-banner-close:hover { background: rgba(255, 255, 255, 0.15); }


/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand { display: block; margin-right: auto; text-decoration: none; }
.brand img { display: block; height: 54px; width: auto; }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  color: var(--blue);
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
  border: 3px solid transparent;
  border-radius: 12px;
  transition: border-color 0.15s ease;
}
.menu a:hover { border-color: #ffc285; }
.menu a[aria-current="page"] { border-color: var(--orange); }

/* EN | NL switch; the current language is filled in. */
.lang-switch {
  display: flex;
  gap: 0.2rem;
  margin: 0 0 0 -0.9rem;
  padding-left: 1rem;
  border-left: 1px solid var(--hairline);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch a {
  padding: 0.15rem 0.5rem;
  color: var(--blue);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}
.lang-switch a:hover { border-color: #ffc285; }
.lang-switch a[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---------- bands ---------- */

.band {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding: clamp(3.75rem, 7vw, 6rem) 0;
}

/* the little gear in the top-right corner of every slide */
.band::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 56px;
  height: 56px;
  background: url("images/logo/gear-orange.svg") center / contain no-repeat;
  pointer-events: none;
}
.band--orange::after { background-image: url("images/logo/gear-blue.svg"); }
/* the default orange focus ring would vanish on orange */
.band--orange :focus-visible { outline-color: var(--blue); }
.hero::after { display: none; }

.band--white + .band--white { border-top: 1px solid var(--hairline); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: start;
}

.closing {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.closing p { margin: 0; }

/* ---------- hero ---------- */

.hero {
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero-sub {
  margin: 0 0 1.4rem;
  color: var(--orange);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* the big outlined gear from the deck's cover */
.hero-gears {
  position: absolute;
  top: 50%;
  right: -5vw;
  width: min(46vw, 600px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.35;  /* faded, so the white gear reads as a lighter blue */
  pointer-events: none;
}
.hero-gears .gear {
  display: block;
  width: 100%;
  height: 100%;
}

.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.page-hero .hero-copy { max-width: 720px; }
.page-hero .hero-gears { width: min(34vw, 400px); right: -3vw; }
.page-hero .lead { margin-bottom: 0; }

.back-link {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-weight: 700;
}

/* ---------- cards: blue fill, thin white ring, thick orange frame ---------- */

.cards {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 2.4rem;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 10px; /* room for the frame, which is a box-shadow */
}
.cards--2 { --cols: 2; }

/* centred variant: an incomplete last row sits in the middle */
.cards--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.cards--center > .card {
  flex: 0 1 calc((100% - (var(--cols) - 1) * 2.4rem) / var(--cols));
}
.cards--4 { --cols: 4; }

.card {
  background: var(--card-bg);
  color: var(--card-fg);
  border: 5px solid var(--card-gap);
  border-radius: var(--radius);
  box-shadow: 0 0 0 8px var(--card-ring);
  padding: 1.6rem 1.6rem 1.7rem;
  --heading: var(--card-fg);
  --strong: var(--card-accent);
  --accent: var(--card-accent);
  --muted: var(--card-muted);
}

.card h2,
.card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.3rem;
  text-align: center;
}
.card p:last-child { margin-bottom: 0; }

.card-meta {
  display: block;
  margin: -0.5rem 0 0.9rem;
  text-align: center;
  color: var(--card-accent);
  font-weight: 700;
}

/* ---------- people ---------- */

.portrait {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 5px var(--orange);
}

.person-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 2.8rem;
  font-weight: 700;
}

.contacts {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1.6rem 0.8rem 1.4rem;
}
.contact-card .portrait { margin-bottom: 0.9rem; }

.person-name { font-size: 1.2rem; font-weight: 700; }

.person-role {
  color: var(--card-accent);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.contact-inst { font-size: 0.95rem; }

.contact-email {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.people-grid {
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem 1.2rem;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}
.person .portrait { width: 112px; height: 112px; margin-bottom: 0.8rem; }
.person .person-name { font-size: 1.1rem; }
.person .person-role { color: var(--muted); font-weight: 400; }

/* ---------- useful reads ---------- */

.reads-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem 4rem;
  align-items: start;
}
.reads-layout .newsletter { grid-column: 2; grid-row: 1; position: sticky; top: 7rem; }
.reads-layout .reads-main { grid-column: 1; grid-row: 1; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
}

.filter-btn {
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.4rem 1.05rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  transition: background 0.15s ease;
}
.filter-btn:hover { background: #ffe0bf; }
.filter-btn[aria-pressed="true"] { background: var(--blue); color: var(--white); }

.reads-list { list-style: none; padding: 0; margin: 0; }

.read-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.read-item:first-child { border-top: 2px solid var(--orange); }

.read-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.read-tag {
  padding: 0.1rem 0.55rem;
  border-radius: 6px;
  background: var(--orange);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.read-title {
  margin: 0 0 0.3rem;
  color: var(--heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.read-desc { margin: 0; }

.no-results {
  color: var(--muted);
  font-style: italic;
  padding: 1.5rem 0;
}

.newsletter h2 { font-size: 1.5rem; }
.newsletter p { font-size: 1.02rem; }

.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.3rem 0 0;
}
.newsletter .field { border-color: var(--white); }

.newsletter-note {
  margin: 0.8rem 0 0;
  color: var(--card-muted);
  font-size: 0.88rem;
}

/* ---------- article ---------- */

.prose { font-size: 1.2rem; }
.prose h2 { margin-top: 2.6rem; font-size: 1.8rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--blue);
  color: var(--white);
  border-top: 8px solid var(--orange);
  padding: 3.5rem 0 3rem;
  --accent: var(--orange);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2rem 3.5rem;
  align-items: start;
}

.footer-logo { display: block; text-decoration: none; }
.footer-logo img { display: block; height: 96px; width: auto; }

.footer-about p { margin: 0 0 0.4rem; }
.footer-about strong { color: var(--orange); }

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
}
.footer-menu li { margin: 0 0 0.35rem; }

/* ---------- helpers ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* hiding a flex form after a successful signup */
[hidden] { display: none !important; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .cards { --cols: 2; }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reads-layout { grid-template-columns: minmax(0, 1fr); }
  .reads-layout .newsletter,
  .reads-layout .reads-main { grid-column: auto; grid-row: auto; position: static; }
}

@media (max-width: 760px) {
  body { font-size: 1.08rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .cards,
  .cards--2,
  .cards--4 { --cols: 1; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }

  .brand img { height: 44px; }
  .header-inner { justify-content: center; }
  .menu { justify-content: center; gap: 0.2rem 0.3rem; }
  .brand { margin-right: 0; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: 0; }

  .signup-banner-msg { text-align: center; }
  .signup-banner-form { flex: 1 1 100%; }
  .signup-banner .field { flex: 1; width: auto; }
  .signup-banner-close { top: 0.35rem; transform: none; }
  .site-header { position: static; }

  .band::after { top: 1rem; right: 1rem; width: 36px; height: 36px; }
  .hero-gears,
  .page-hero .hero-gears { width: 80vw; right: -30vw; opacity: 0.22; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
