/* De Zingende Krant — gedeeld zetsel voor edities en archief. */

:root {
  --paper: #f4e6c8;
  --paper-deep: #e5cfa0;
  --paper-edge: #d9bf8c;
  --ink: #1c1510;
  --ink-soft: #3d342c;
  --oxblood: #8b1e1c;
  --rule: #1c1510;
  --measure: 40rem;
  --page: 62rem;
  --space: clamp(1.25rem, 3vw, 2.25rem);
}

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

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

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Crimson DZK", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 450;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(28, 21, 16, 0.06), transparent 7%, transparent 93%, rgba(28, 21, 16, 0.06)),
    radial-gradient(ellipse at 50% 0%, rgba(255, 250, 235, 0.55), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(28, 21, 16, 0.06), transparent 50%);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--page));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 0 3.5rem;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 1rem;
  transform: translateY(-160%);
  z-index: 2;
}

.skip:focus {
  transform: none;
  outline: 3px solid var(--oxblood);
  outline-offset: 3px;
}

a {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--oxblood);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 0.16rem solid var(--rule);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.site-header .brand img {
  display: block;
  width: min(100%, 22rem);
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

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

.edition-head {
  text-align: center;
  padding: 1.75rem 0 1.4rem;
}

.edition-head .paper-name {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}

.edition-head h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: "Fraunces DZK", "Iowan Old Style", Palatino, serif;
  font-style: italic;
  font-weight: 520;
  font-size: clamp(2.4rem, 7vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.edition-head .dateline {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.edition-head .mast-meta {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.intro p {
  margin: 0 0 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 2rem;
}

.btn-pdf {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border: 0.14rem solid var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
}

.btn-pdf:hover {
  background: transparent;
  color: var(--ink);
}

.link-plain {
  font-size: 1rem;
}

.rule-double {
  height: 0.55rem;
  border-top: 0.16rem solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.rule-double.inverted {
  border-top: 1px solid var(--rule);
  border-bottom: 0.16rem solid var(--rule);
}

.article {
  padding: 1.7rem 0 1.8rem;
  border-bottom: 1px solid var(--rule);
}

.article h2 {
  margin: 0.15rem 0 0.7rem;
  font-family: "Fraunces DZK", "Iowan Old Style", Palatino, serif;
  font-style: italic;
  font-weight: 550;
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

.article h2 a {
  text-decoration: none;
}

.article h2 a:hover {
  border-bottom: 1px solid var(--ink);
}

.rubriek {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--oxblood);
}

.article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.zingend {
  margin-top: 0.6rem;
  padding: 1rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--rule) 35%, transparent);
}

.zingend .label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.zingend .note {
  margin: 0 0 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.tabs {
  display: grid;
  grid-template-columns: auto auto 1fr;
  column-gap: 0.4rem;
  row-gap: 0.85rem;
  align-items: start;
}

.tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs > label {
  display: inline-block;
  cursor: pointer;
  padding: 0.25rem 0.7rem 0.35rem;
  border-bottom: 0.14rem solid transparent;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.tabs > .panel {
  grid-column: 1 / -1;
  display: none;
}

#tab-video:checked ~ label[for="tab-video"],
#tab-audio:checked ~ label[for="tab-audio"] {
  border-bottom-color: var(--oxblood);
  color: var(--oxblood);
}

/* unique ids per article: use suffix via [id$] */
.tabs > input[id$="-video"]:checked ~ .panel-video,
.tabs > input[id$="-audio"]:checked ~ .panel-audio {
  display: block;
}

.tabs > input[id$="-video"]:checked ~ label[for$="-video"],
.tabs > input[id$="-audio"]:checked ~ label[for$="-audio"] {
  border-bottom-color: var(--oxblood);
  color: var(--oxblood);
}

.player {
  display: block;
  width: min(100%, 22.5rem);
  margin-inline: auto;
  background: #1c1510;
}

.player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: #1c1510;
  vertical-align: top;
}

audio {
  width: 100%;
  height: 2.6rem;
}

.duration {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.archive-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.archive-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.archive-list h2,
.archive-list h3 {
  margin: 0 0 0.3rem;
  font-family: "Fraunces DZK", "Iowan Old Style", Palatino, serif;
  font-style: italic;
  font-weight: 550;
  font-size: 1.55rem;
}

.archive-list h2 a,
.archive-list h3 a {
  text-decoration: none;
}

.page-title {
  margin: 1.6rem 0 0.6rem;
  font-family: "Fraunces DZK", "Iowan Old Style", Palatino, serif;
  font-style: italic;
  font-weight: 520;
  font-size: clamp(2rem, 5vw, 3rem);
}

.crumb {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
}

.site-footer {
  max-width: var(--page);
  margin: 2.5rem auto 0;
  padding-top: 0.9rem;
  border-top: 0.16rem solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 40rem) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .brand img {
    width: min(100%, 18rem);
  }

  .player video {
    width: 100%;
    max-height: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .grain,
  .zingend,
  .skip,
  .site-nav {
    display: none;
  }

  .page {
    width: auto;
    padding: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}


/* Compact edition overview: invisible 4×1 grid, small PDF preview. */

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

.edition-preview {
  display: block;
  width: min(100%, 26rem);
  max-width: 100%;
  margin: 0 auto 2rem;
  text-decoration: none;
  color: inherit;
}

.edition-preview picture,
.edition-preview img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1132;
  background: var(--paper-deep);
  box-shadow:
    0 0 0 1px var(--ink),
    0 0 0 0.28rem var(--paper),
    0 0 0 0.36rem var(--ink);
}

.edition-preview-caption {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.edition-preview:hover .edition-preview-caption,
.edition-preview:focus-visible .edition-preview-caption {
  color: var(--oxblood);
}

.edition-overview {
  margin: 0;
  padding: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
}

.article-cell {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.article-cell h2 {
  margin: 0.15rem 0 0.45rem;
  font-family: "Fraunces DZK", "Iowan Old Style", Palatino, serif;
  font-style: italic;
  font-weight: 550;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-height: calc(1.25em * 5);
}

.cell-media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin: 0.15rem 0 0;
}

.pdf-btn,
.note-btn,
.video-btn {
  display: inline-grid;
  grid-template-columns: 2.5rem auto;
  align-items: center;
  column-gap: 0.45rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  min-height: 2.6rem;
  padding: 0.1rem 0.45rem 0.1rem 0;
}

.note-btn {
  min-height: 3.25rem;
}

.pdf-btn svg,
.note-btn svg,
.video-btn svg {
  display: block;
  justify-self: center;
  flex: 0 0 auto;
}

.pdf-btn svg,
.video-btn svg {
  width: 1.55rem;
  height: 1.55rem;
}

.note-btn svg {
  width: 2.45rem;
  height: 2.45rem;
}

.media-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  line-height: 1.15;
}

.media-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.pdf-btn:hover,
.pdf-btn:focus-visible,
.note-btn:hover,
.note-btn:focus-visible,
.article-cell.is-playing .note-btn,
.video-btn:hover,
.video-btn:focus-visible {
  color: var(--oxblood);
}

.article-cell .duration {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 450;
  color: var(--ink-soft);
}

.audio-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.8rem;
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
}

.audio-dock[hidden] {
  display: none;
}

.audio-dock button {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--ink);
}

.audio-dock button:hover {
  color: var(--oxblood);
  border-bottom-color: var(--oxblood);
}

.audio-status {
  color: var(--ink-soft);
  font-style: italic;
}

.video-dialog {
  width: min(24rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  margin: auto;
  padding: 1rem 1rem 1.15rem;
  border: 0.16rem solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

.video-dialog::backdrop {
  background: rgba(28, 21, 16, 0.72);
}

.video-dialog-close {
  display: inline-block;
  margin: 0 0 0.6rem auto;
  float: right;
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.video-dialog-close:hover {
  color: var(--oxblood);
  border-bottom-color: var(--oxblood);
}

.video-dialog h2 {
  clear: both;
  margin: 0 0 0.4rem;
  font-family: "Fraunces DZK", "Iowan Old Style", Palatino, serif;
  font-style: italic;
  font-weight: 550;
  font-size: 1.25rem;
  line-height: 1.25;
  text-wrap: balance;
}

.video-dialog-note {
  margin: 0 0 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.video-dialog .player {
  width: min(100%, 20rem);
  margin-inline: auto;
  background: #1c1510;
}

.video-dialog .player video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 32rem);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #1c1510;
}

#edition-audio {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 60rem) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-cell h2 {
    min-height: 0;
  }
}

@media (max-width: 36rem) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .edition-preview {
    width: min(100%, 22rem);
  }
}

@media print {
  .video-dialog,
  .audio-dock,
  .pdf-btn,
  .note-btn,
  .video-btn,
  #edition-audio {
    display: none !important;
  }
}
