/*
Theme Name: zeeland02
Theme URI: https://agv.verhulstnet.nl/dagboek/themes/zeeland02/
Author: Karel Verhulst
Author URI: https://www.verhulstnet.nl/karel
Description: geïnspireerd op zeeland en de zeelandbrug
Tags:
Version: 3.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.0
License: Karel Verhulst
*/

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

:root {
  --paper: #e4e0d2;
  --paper-raised: #eeeadd;
  --ink: #201f1c;
  --ink-soft: #55534a;
  --brass: #8a6a34;
  --line: #c3bca5;
  --line-soft: #d5cfba;
  --max: 60rem;
  --read: 34rem;
  --read-wide: 46rem;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  margin: 0;
  min-width: 300px;
}

a { color: #2f4858; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
a:hover, a:focus-visible { color: var(--brass); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; }

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

/* Kop */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.masthead-id { display: flex; align-items: center; gap: 0.9rem; }

.masthead .seal img {
  display: block;
  width: 2.6rem;
  height: auto;
  border: 1px solid var(--line);
}

.masthead-text h1 { font-size: 1.35rem; line-height: 1.2; }
.masthead-text .byline { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }

.lang img { display: block; width: 1.6rem; height: auto; opacity: 0.75; }
.lang img:hover { opacity: 1; }
p.lang.breedm { text-align: right; margin: 0 0 1rem; }

.banner { margin: 0 0 2rem; }
.banner img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  filter: sepia(8%) contrast(1.03);
}

/* Layout: inhoud + navigatiekolom */

#main {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 2.5rem;
  align-items: flex-start;
}

#maind { flex: 1 1 20rem; max-width: var(--read); min-width: 0; }
#maind.breedd { max-width: var(--read-wide); }
.breedm #maind, #main.breedm #maind { max-width: var(--read-wide); }

#rightbar {
  flex: 0 0 10rem;
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}

#rightbar ul, #footbar ul { display: flex; flex-direction: column; gap: 0.6rem; }

#rightbar a, #footbar a, .button {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font: 500 0.92rem 'IBM Plex Sans', sans-serif;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

#rightbar a:hover, #footbar a:hover, .button:hover { color: var(--brass); border-bottom-color: var(--brass); }

@media (max-width: 40rem) {
  #rightbar {
    flex: 1 1 100%;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1rem;
  }
  #rightbar ul, #footbar ul { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

/* Inhoud */

#maind h1, #maind h2.first { font-size: 1.6rem; margin-top: 0; }
h2.sub { font-size: 1.15rem; margin-top: 1.5rem; }

.entry p, #maind p { margin: 0 0 1rem; }
.entry p:last-child { margin-bottom: 0; }

/* Blogpost / dossierkaart */

.post-card {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line-soft);
}
.post-card:first-child { border-top: none; padding-top: 0; }
.post-card h2 { font-size: 1.3rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--brass); }
.post-card .byline { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 0.75rem; }

/* Reacties (brieven) */

h4.comments-title { font-size: 1.05rem; margin-top: 2rem; }

.letter {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}

.endright {
  text-align: right;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-style: normal;
  margin: 0.5rem 0 0;
}

textarea#comment {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  margin: 0 0 0.75rem;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font: inherit;
}

#commentform input[type="text"] {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 0.4rem 0.5rem;
  margin: 0 0 0.6rem;
  font: inherit;
}

#commentform label { display: block; color: var(--ink-soft); font-size: 0.85rem; margin: -0.4rem 0 0.6rem; }

#commentform input[type="submit"] {
  font: 600 0.95rem 'IBM Plex Sans', sans-serif;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}
#commentform input[type="submit"]:hover { background: var(--brass); }

.navigation { display: flex; justify-content: space-between; margin-top: 1.5rem; font-size: 0.9rem; }

/* Voettekst */

footer.colophon {
  min-height: 40px;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer.colophon img { height: 0.9rem; width: auto; vertical-align: middle; }

/* --- Compatibiliteit met bestaande pagina-inhoud (WordPress editor) --- */
/* Deze selectors bestonden in het vorige thema en kunnen nog in opgeslagen
   pagina- of berichttekst voorkomen. Ze blijven werken, alleen herstijld. */

.rechts, .alignright { float: right; margin-left: 1rem; }
.end { clear: both; }
.kamp {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}
.breedm { width: 100%; }
.breedd { max-width: var(--read-wide); }
p.data { clear: both; float: left; width: 110px; }
p.next { float: left; width: 250px; }
.product {
  float: left;
  width: 140px;
  margin: 1rem 0.5rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  overflow: hidden;
}
.pricing .actual-price { color: var(--brass); font-size: 0.95rem; font-weight: 600; }
.lulu { background: url("assets/lulu64x36.jpg") no-repeat right bottom; }

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