/*!
Theme Name: NNW Netwerk Nijmeegse Woonverenigingen
Theme URI: https://nnw.nu
Author: NNW
Description: Thema met vaste hoofdpagina's (home, over, contact, privacyverklaring) en blog-stijl overzichten voor Events en Kennisdocumenten met "Lees verder" naar unieke pagina's. Gebaseerd op de bestaande huisstijl van nnw.nu.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nnw-theme
*/

/*!
We like light, clean and minimal pure html and CSS code.
We serve no cookies, trackers or ads.
Design Straatmeid.
*/

/*!
1. Base / Reset
*/

/* Modern reset — cross-browser consistentie */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body, div, span, h1, h2, h3, p, a, strong, em, blockquote,
img, ol, ul, li, fieldset, form, article, canvas, details,
footer, header, nav, summary {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  text-decoration: none;
}

article, footer, header, nav {
  display: block;
}

ol, ul {
  list-style: none;
}

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

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

/*!
2. Design tokens (CSS variables)
*/
:root {
  /* Font family */
  --font-base: "Inter", sans-serif;
  
  /* Colors */
  --bgc: #d01e50;
  --text: #d0c8b7;
  --hover: #480b1c;
  --first: #d0c8b7;
  --bgc2: rgba(208, 30, 80, 0.3);
  
  /* Fluid root font size — Scales 16px → 18px afhankelijk van viewport */
  font-size: clamp(16px, 1.15vw, 18px);
  
  /* Line heights */
  --leading-tight: 1;
  --leading-normal: 1.5;
  --leading-loose: 1.75;
  
  /* Fluid spacing scale */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 1rem);
  --space-md: clamp(1rem, 2vw, 2rem);
  --space-lg: clamp(1.5rem, 3vw, 3rem);
  --space-xl: clamp(2rem, 4vw, 5rem);
  --space-xxl: clamp(3rem, 6vw, 8rem);
}

body[data-theme="functional"] {
  --bgc: #d9d6e4;
  --text: #d01e50;
  --hover: #480b1c;
  --first: #d01e50;
}

body[data-theme="events"] {
  --bgc: #d0c8b7;
  --text: #d01e50;
  --hover: #480b1c;
  --first: #d01e50;
}

body[data-theme="kennis"] {
  --bgc: #d0c8b7;
  --text: #d01e50;
  --hover: #480b1c;
  --first: #d01e50;
}

@supports (font-variation-settings: normal) {
  :root { 
    font-family: "InterVariable", sans-serif; 
    font-optical-sizing: auto; 
  }
}

@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: InterVariable;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable-Italic.woff2") format("woff2");
}

/* Static fonts fallback */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100; font-display: swap; src: url("/fonts/Inter-Thin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100; font-display: swap; src: url("/fonts/Inter-ThinItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 200; font-display: swap; src: url("/fonts/Inter-ExtraLight.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 200; font-display: swap; src: url("/fonts/Inter-ExtraLightItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/Inter-Light.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 300; font-display: swap; src: url("/fonts/Inter-LightItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/Inter-MediumItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/Inter-BoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/Inter-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 800; font-display: swap; src: url("/fonts/Inter-ExtraBoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/Inter-Black.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 900; font-display: swap; src: url("/fonts/Inter-BlackItalic.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 100; font-display: swap; src: url("/fonts/InterDisplay-Thin.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 100; font-display: swap; src: url("/fonts/InterDisplay-ThinItalic.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 200; font-display: swap; src: url("/fonts/InterDisplay-ExtraLight.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 200; font-display: swap; src: url("/fonts/InterDisplay-ExtraLightItalic.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/InterDisplay-Light.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 300; font-display: swap; src: url("/fonts/InterDisplay-LightItalic.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/InterDisplay-Regular.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/InterDisplay-Italic.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/InterDisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/InterDisplay-MediumItalic.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/InterDisplay-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 600; font-display: swap; src: url("/fonts/InterDisplay-SemiBoldItalic.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/InterDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/InterDisplay-BoldItalic.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/InterDisplay-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 800; font-display: swap; src: url("/fonts/InterDisplay-ExtraBoldItalic.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/InterDisplay-Black.woff2") format("woff2"); }
@font-face { font-family: "InterDisplay"; font-style: italic; font-weight: 900; font-display: swap; src: url("/fonts/InterDisplay-BlackItalic.woff2") format("woff2"); }

@font-feature-values InterVariable {
  @character-variant {
      cv01: 1; cv02: 2; cv03: 3; cv04: 4; cv05: 5; cv06: 6; cv07: 7; cv08: 8;
      cv09: 9; cv10: 10; cv11: 11; cv12: 12; cv13: 13;
      alt-1: 1; alt-3: 9; open-4: 2; open-6: 3; open-9: 4;
      lc-l-with-tail: 5; simplified-u: 6; alt-double-s: 7;
      uc-i-with-serif: 8; uc-g-with-spur: 10; single-story-a: 11;
      compact-lc-f: 12; compact-lc-t: 13;
  }
  @styleset {
      ss01: 1; ss02: 2; ss03: 3; ss04: 4; ss05: 5; ss06: 6; ss07: 7; ss08: 8;
      open-digits: 1; disambiguation: 2; disambiguation-except-zero: 4;
      round-quotes-and-commas: 3; square-punctuation: 7; square-quotes: 8;
      circled-characters: 5; squared-characters: 6;
  }
}
@font-feature-values Inter {
  @character-variant {
      cv01: 1; cv02: 2; cv03: 3; cv04: 4; cv05: 5; cv06: 6; cv07: 7; cv08: 8;
      cv09: 9; cv10: 10; cv11: 11; cv12: 12; cv13: 13;
      alt-1: 1; alt-3: 9; open-4: 2; open-6: 3; open-9: 4;
      lc-l-with-tail: 5; simplified-u: 6; alt-double-s: 7;
      uc-i-with-serif: 8; uc-g-with-spur: 10; single-story-a: 11;
      compact-lc-f: 12; compact-lc-t: 13;
  }
  @styleset {
      ss01: 1; ss02: 2; ss03: 3; ss04: 4; ss05: 5; ss06: 6; ss07: 7; ss08: 8;
      open-digits: 1; disambiguation: 2; disambiguation-except-zero: 4;
      round-quotes-and-commas: 3; square-punctuation: 7; square-quotes: 8;
      circled-characters: 5; squared-characters: 6;
  }
}
@font-feature-values InterDisplay {
  @character-variant {
      cv01: 1; cv02: 2; cv03: 3; cv04: 4; cv05: 5; cv06: 6; cv07: 7; cv08: 8;
      cv09: 9; cv10: 10; cv11: 11; cv12: 12; cv13: 13;
      alt-1: 1; alt-3: 9; open-4: 2; open-6: 3; open-9: 4;
      lc-l-with-tail: 5; simplified-u: 6; alt-double-s: 7;
      uc-i-with-serif: 8; uc-g-with-spur: 10; single-story-a: 11;
      compact-lc-f: 12; compact-lc-t: 13;
  }
  @styleset {
      ss01: 1; ss02: 2; ss03: 3; ss04: 4; ss05: 5; ss06: 6; ss07: 7; ss08: 8;
      open-digits: 1; disambiguation: 2; disambiguation-except-zero: 4;
      round-quotes-and-commas: 3; square-punctuation: 7; square-quotes: 8;
      circled-characters: 5; squared-characters: 6;
  }
}

body {
  font-family: var(--font-base);
  font-weight: 400;
  font-feature-settings: 'cv10' 1, 'ss07' 1;
  background-color: var(--bgc);
  background-image: url("/img/NNW_Background.svg");
  background-repeat: no-repeat;
  background-size: cover;
  padding: var(--space-md);
}

#page {
  max-width: 1200px;
  margin: 0 auto;
}

main {
  overflow: hidden;
}

header {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

footer {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

/*!
4. Navigation — Flexbox for floats
*/
nav {
  clear: both;
  margin: 0;
  padding: 0;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  font-size: clamp(0.5rem, 3vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
}

nav ul li a {
  display: block;
  color: var(--text);
  text-transform: uppercase;
  padding: calc(var(--space-xs) / 2) 0;  /* ½ ruimte boven/onder, geen left/right */
}

nav li:hover > a {
  color: var(--hover);
  text-shadow: 1px 2px var(--text);
}

/*!
5. Typografie — Fluid clamp() sizing
*/
h1 {
  margin-bottom: var(--space-lg);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--first);
}

h2 {
  margin-bottom: var(--space-sm);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text);
}

h3 {
  margin-bottom: var(--space-sm);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text);
}

p {
  margin-bottom: var(--space-lg);
  font-size: clamp(1rem, 0.9vw, 1.25rem);
  line-height: var(--leading-normal);
  letter-spacing: 0.02em;
  color: var(--text);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: 0.75rem;
}

/*!
6. Content-specific blocks
*/
.first {
  margin-bottom: var(--space-lg);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: var(--leading-normal);
  color: var(--first);
}

h3.article-excerpt-title {
  margin-bottom: var(--space-sm);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text);
}

.event {
  margin-bottom: var(--space-xs);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-underline-position: under;
  color: var(--text);
}

.event_facts {
  margin-bottom: var(--space-md);
  font-variant: tabular-nums;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  color: var(--text);
}

img {
  margin-left: var(--space-sm);
  padding-bottom: var(--space-md);
}

img.article {
  max-width: 75%;
  height: auto;
  filter: grayscale(0.9);
}

img.event {
  max-width: 75%;
  height: auto;
}

/*!
6a. Links (content & footer)
*/
article p a,
footer p a {
  padding-bottom: 0.0625rem;
  color: var(--text);
  border-bottom: 0.0625rem solid var(--text);
}

article p a:hover,
footer p a:hover {
  color: var(--hover);
  border-bottom-color: var(--hover);
}

/*!
7. Components
*/
#logo {
  width: 10.9375rem;
  margin-left: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.button {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--bgc);
  background: var(--text);
  cursor: pointer;
  border: none;
}

.button:hover {
  background: var(--hover);
  color: var(--text);
}

/*!
8. Lists
*/
ul.text_list {
  font-size: clamp(1rem, 0.9vw, 1.25rem);
  line-height: var(--leading-loose);
  list-style: disc;
  color: var(--text);
  margin-left: var(--space-md);
}

li.text_list_steps {
  margin-left: var(--space-md);
  list-style: disc;
  color: var(--text);
}

/*!
9. Media queries — Alleen voor layout-breaking gevallen, geen tekstgrootte
*/
@media (max-width: 1400px) {
  body {
    background-image: none;
  }
}

@media (max-width: 700px) {
  header {
    margin-bottom: var(--space-xl);
  }

  nav ul {
    justify-content: flex-start; 
    gap: var(--space-md);         /* Ruimte verkleinen indien nodig voor mobiel */
  }

  li.text_list_steps {
    margin-left: var(--space-sm);
  }
}

@media print {
  body {
    background: none;
    margin: 0;
  }

  nav, footer {
    display: none;
    margin: 0;
  }

  a {
    font-weight: 700;
    color: var(--bgc) !important;
  }

  h1, h2, h3 {
    margin-bottom: 0.5rem;
    page-break-after: avoid;
    page-break-inside: avoid;
    font-weight: 700;
  }

  ul, ol, li {
    page-break-before: avoid;
  }

  img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    page-break-inside: avoid;
    page-break-after: avoid;
  }
}

/*!
10. Utilities
*/
::selection {
  background: yellow;
}

/*!
11. WordPress — automatische opmaak content-editor
Zodat redacteuren geen classes hoeven te kiezen: de eerste alinea
en lijsten in de inhoud krijgen automatisch de juiste stijl.
*/
.entry-content > p:first-of-type {
  margin-bottom: var(--space-lg);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: var(--leading-normal);
  color: var(--first);
}

.entry-content ul {
  font-size: clamp(1rem, 0.9vw, 1.25rem);
  line-height: var(--leading-loose);
  list-style: disc;
  color: var(--text);
  margin-left: var(--space-md);
  margin-bottom: var(--space-lg);
}

.entry-content ul li {
  margin-left: var(--space-md);
  list-style: disc;
  color: var(--text);
}

.entry-content img {
  max-width: 75%;
  height: auto;
}

/*!
12. WordPress — vaste Event- en Kennisdocument-velden
*/
.page-title {
  margin-bottom: var(--space-lg);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--first);
}

.event-cta {
  margin-bottom: var(--space-lg);
}

.archive-grid {
  display: grid;
  gap: var(--space-xl);
}

.no-results {
  color: var(--text);
}