/*
Theme Name: Sinterklaasrijmen Werkplaats
Theme URI: https://sinterklaasrijmen.nl/
Author: Sinterklaasrijmen.nl
Description: Lightweight tool-first theme for Sinterklaasrijmen.nl.
Version: 1.0.0
Text Domain: sinterklaasrijmen
*/

:root {
  --sr-blue: #172554;
  --sr-red: #c1121f;
  --sr-red-dark: #8f0d16;
  --sr-gold: #d9a441;
  --sr-green: #1f5c3a;
  --sr-cream: #fff5f5;
  --sr-white: #ffffff;
  --sr-text: #1f2933;
  --sr-muted: #64748b;
  --sr-border: #f1c9c9;
  --sr-shadow: 0 18px 50px rgba(193, 18, 31, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sr-text);
  background:
    linear-gradient(180deg, #fff5f5 0%, #ffffff 42%, #fff8f8 100%);
  line-height: 1.65;
}
a { color: var(--sr-red); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--sr-red-dark); }
.sr-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.sr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(193, 18, 31, 0.14);
  backdrop-filter: blur(14px);
}
.sr-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}
.sr-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding: 8px 6px;
  color: var(--sr-red-dark);
  font-weight: 850;
  font-size: 1.1rem;
  text-decoration: none;
}
.sr-logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sr-red);
  color: white;
  box-shadow: 0 8px 20px rgba(193, 18, 31, 0.2);
}
.sr-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sr-nav a {
  color: #5f0d12;
  padding: 10px 11px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
}
.sr-nav a:hover { background: rgba(193, 18, 31, 0.08); color: var(--sr-red-dark); }
.sr-menu-toggle { display: none; border: 0; background: var(--sr-red); color: white; border-radius: 8px; padding: 10px 12px; font-weight: 800; }
.sr-hero {
  background:
    radial-gradient(circle at 82% 8%, rgba(255,255,255,.34), transparent 30%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.13) 0 14px, transparent 14px 30px),
    linear-gradient(135deg, #c1121f 0%, #8f0d16 68%, #6d0810 100%);
  color: white;
  padding: 52px 0 34px;
  overflow: hidden;
}
.sr-hero__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr); gap: 34px; align-items: start; }
.sr-kicker { color: #ffffff; font-weight: 850; text-transform: uppercase; letter-spacing: 0; font-size: .82rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; color: var(--sr-blue); }
.sr-hero h1 { color: white; font-size: clamp(2.2rem, 5vw, 4.9rem); margin: 12px 0 16px; max-width: 820px; }
.sr-hero p { color: rgba(255,255,255,.88); font-size: 1.08rem; max-width: 660px; }
.sr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.sr-button, .sr-tool button, .sr-copy-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  background: white;
  color: var(--sr-red-dark);
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.sr-button:hover, .sr-tool button:hover, .sr-copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(20, 33, 61, .16);
  color: var(--sr-red-dark);
}
.sr-button--secondary { background: transparent; color: white; border-color: rgba(255,255,255,.55); }
.sr-button--secondary:hover { color: white; background: rgba(255,255,255,.12); }
.sr-button--red { background: var(--sr-red); color: white; }
.sr-button--red:hover { background: var(--sr-red-dark); color: white; }
.sr-button--outline { background: white; color: var(--sr-red-dark); border-color: #fecdd3; }
.sr-button--outline:hover { background: #fff1f2; color: var(--sr-red-dark); }
.sr-section { padding: 62px 0; }
.sr-section--white { background: white; }
.sr-section--blue { background: #fff0f0; }
.sr-section h2 { font-size: clamp(1.75rem, 3vw, 3rem); margin: 0 0 14px; }
.sr-lead { font-size: 1.1rem; color: #475569; max-width: 780px; }
.sr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.sr-card {
  background: white;
  border: 1px solid var(--sr-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 26px rgba(20, 33, 61, .06);
}
.sr-card:hover { border-color: rgba(217,164,65,.7); transform: translateY(-1px); transition: .16s ease; }
.sr-card h3 { margin-top: 0; font-size: 1.2rem; }
.sr-pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.sr-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,.18); color: white; border: 1px solid rgba(255,255,255,.32); font-weight: 800; font-size: .9rem; }
.sr-section .sr-pill, .sr-tool .sr-pill { background: #fff1f2; color: var(--sr-red-dark); border-color: #fecdd3; }
.sr-tool {
  background: white;
  color: var(--sr-text);
  border: 1px solid rgba(193, 18, 31, .24);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--sr-shadow);
}
.sr-tool h2, .sr-tool h3 { margin-top: 0; }
.sr-tool--gpt { border-top: 8px solid var(--sr-red); }
.sr-kicker--red { color: var(--sr-red-dark); }
.sr-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.sr-field { display: grid; gap: 6px; }
.sr-field label { font-weight: 800; color: var(--sr-blue); font-size: .92rem; }
.sr-field input, .sr-field select, .sr-field textarea {
  width: 100%;
  border: 1px solid #efb4b4;
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: #fffafa;
  color: var(--sr-text);
}
.sr-field textarea { min-height: 92px; resize: vertical; }
.sr-output {
  margin-top: 18px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #fecdd3;
  background: linear-gradient(180deg, #ffffff, #fff1f2);
  color: var(--sr-text);
  min-height: 180px;
  white-space: pre-line;
  font-size: 1.04rem;
}
.sr-score-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sr-score { background: #fff7f7; border: 1px solid #fecdd3; border-radius: 8px; padding: 12px; font-weight: 800; }
.sr-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sr-page-hero { padding: 54px 0 24px; background: linear-gradient(180deg, #fff1f2, #fff); }
.sr-page-hero h1 { font-size: clamp(2.1rem, 4vw, 4rem); max-width: 900px; margin: 0 0 16px; }
.sr-content { background: white; padding-bottom: 60px; }
.sr-content article { width: min(920px, calc(100% - 36px)); margin: 0 auto; }
.sr-content h2 { margin-top: 42px; }
.sr-link-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.sr-link-list a { background: #fff; border: 1px solid var(--sr-border); border-radius: 8px; padding: 13px 14px; text-decoration: none; font-weight: 800; color: var(--sr-blue); }
.sr-footer { background: #7f0b12; color: rgba(255,255,255,.9); padding: 44px 0; }
.sr-footer a { color: #ffffff; }
.sr-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
@media print {
  .sr-header, .sr-footer, .sr-actions, .sr-tool-actions, .sr-nav { display: none !important; }
  body { background: white; }
  .sr-output { border: 0; box-shadow: none; font-size: 14pt; }
}
@media (max-width: 880px) {
  .sr-header__inner { align-items: flex-start; }
  .sr-menu-toggle { display: inline-flex; }
  .sr-nav { display: none; width: 100%; background: white; border: 1px solid var(--sr-border); border-radius: 8px; padding: 8px; }
  .sr-nav.is-open { display: grid; }
  .sr-header__inner { flex-wrap: wrap; }
  .sr-hero__grid, .sr-grid, .sr-footer__grid { grid-template-columns: 1fr; }
  .sr-form-grid { grid-template-columns: 1fr; }
  .sr-score-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sr-link-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sr-shell { width: min(100% - 24px, 1180px); }
  .sr-hero { padding-top: 34px; }
  .sr-tool { padding: 16px; }
  .sr-score-row { grid-template-columns: 1fr; }
  .sr-button, .sr-tool button { width: 100%; }
}
