/*
Theme Name: Codex Starter Theme
Author: Kevin Radstake
Description: Responsief WordPress-thema met Muizendoders grafische instellingen.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: codex-starter-theme
*/

:root {
  --color-bg: #f8f7f3;
  --color-surface: #ffffff;
  --color-text: #1d2428;
  --color-muted: #5f6d72;
  --color-border: #d9dfdc;
  --color-accent: var(--mz-accent, #0f766e);
  --radius: 8px;
  --shadow-soft: 0 18px 45px rgba(29, 36, 40, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--color-accent); }
img { display: block; height: auto; max-width: 100%; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link:focus {
  clip: auto;
  background: var(--color-text);
  color: #fff;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 1000;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  margin: 0 auto;
  max-width: 1120px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  min-height: 82px;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.site-header--stacked .site-header__inner {
  align-items: center;
  flex-direction: column;
}

.site-branding {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  min-width: 0;
}

.site-header--stacked .site-branding {
  flex-direction: column;
  text-align: center;
}

.site-header--logo-center .site-header__inner { justify-content: center; }
.site-header--logo-right .site-header__inner { flex-direction: row-reverse; }
.site-header--logo-center .site-branding { justify-content: center; }
.site-header--logo-right .site-branding { flex-direction: row-reverse; text-align: right; }

.site-logo img,
.custom-logo {
  max-height: var(--mz-logo-size, 120px);
  width: auto;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.site-title a {
  color: var(--color-text);
  text-decoration: none;
}

.site-description {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0.15rem 0 0;
}

.main-navigation ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  border-radius: 999px;
  color: var(--color-text);
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
}

.site-main {
  padding-bottom: 4rem;
  padding-top: 3rem;
}

.content-area,
.post-card,
.comments-area {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header__inner,
  .site-header--logo-right .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-branding,
  .site-header--logo-right .site-branding {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }
}
