/* ================================================================
   Site-offerte.nl — stylesheet
   Stijl: warm vakman editorial — rustig, leesbaar, geen verkoop
   ================================================================ */

/* --- Custom properties --- */
:root {
  /* Kleuren */
  --paper: #f6f1e7;          /* warme ivoor-achtergrond */
  --paper-deep: #ebe3d2;     /* iets dieper voor secties */
  --ink: #2a2622;            /* warm zwart voor tekst */
  --ink-soft: #5a4f43;       /* zachter voor secundair */
  --rule: #c9bda5;           /* lijnen */
  --moss: #3a5a3d;           /* diepgroen accent */
  --moss-deep: #2a4530;      /* donker diepgroen */
  --rust: #9c4a1a;           /* warm rood-bruin accent */
  --highlight: #f0e6cc;      /* zachte highlight */

  /* Typografie */
  --serif: "Crimson Pro", "Crimson Text", "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", Georgia, serif;
  --sans: "Inter Tight", "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Maten */
  --content-width: 38rem;
  --wide-width: 60rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Schaal */
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.18rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.6rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding-left: 1.25em; }
img { display: block; max-width: 100%; height: auto; }

/* --- Base --- */
html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(154, 132, 88, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(58, 90, 61, 0.03) 0%, transparent 50%);
  mix-blend-mode: multiply;
}

/* --- Layout containers --- */
.shell {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--wide-width);
}

/* --- Site header --- */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  background: var(--paper);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand__mark {
  color: var(--moss);
  font-style: italic;
}

.brand__tagline {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: var(--step--1);
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

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

/* --- Article header --- */
.article-header {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.article-header__eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.article-header h1 {
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}

.article-header__lede {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.5;
}

/* --- Body content --- */
.prose {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.prose > * + * {
  margin-top: 1.2em;
}

.prose h2 {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 3.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.prose h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--moss);
  margin-bottom: 1.25rem;
}

.prose h3 {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2.25rem;
}

.prose p {
  font-size: var(--step-0);
  line-height: 1.7;
}

.prose p strong {
  font-weight: 600;
  color: var(--ink);
}

.prose ul, .prose ol {
  padding-left: 1.5em;
}

.prose li {
  margin-bottom: 0.5em;
  line-height: 1.65;
}

.prose li::marker {
  color: var(--moss);
}

.prose a {
  color: var(--moss-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose a:hover {
  color: var(--rust);
}

/* --- Pull quote / aside --- */
.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--highlight);
  border-left: 3px solid var(--moss);
  font-style: italic;
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

.prose blockquote p {
  font-style: italic;
}

.prose blockquote strong {
  font-style: normal;
  color: var(--moss-deep);
}

/* --- Pricing cards --- */
.price-card {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  border-radius: 4px;
}

.price-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--rule);
}

.price-card__title {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.price-card__price {
  font-family: var(--sans);
  font-size: var(--step-1);
  color: var(--moss-deep);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* --- Table --- */
.comparison {
  margin: 2.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: var(--step--1);
}

.comparison th,
.comparison td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.comparison thead th {
  background: var(--moss);
  color: var(--paper);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.comparison tbody tr:nth-child(even) {
  background: var(--paper-deep);
}

.comparison tbody tr:last-child td {
  border-bottom: none;
}

.comparison th:first-child {
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-deep);
}

/* --- Page navigation cards --- */
.next-reading {
  margin: 3rem 0 1rem;
  padding: 2rem;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.next-reading h2 {
  font-size: var(--step-2);
  margin-top: 0;
}

.next-reading h2::before {
  display: none;
}

.next-reading ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.next-reading li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--rule);
}

.next-reading li:last-child {
  border-bottom: none;
}

.next-reading a {
  font-family: var(--serif);
  color: var(--moss-deep);
  text-decoration: none;
  display: block;
  font-size: var(--step-1);
}

.next-reading a:hover {
  color: var(--rust);
}

.next-reading a::after {
  content: " →";
  color: var(--moss);
  margin-left: 0.25em;
}

.next-reading small {
  display: block;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.25em;
}

/* --- Mid-page invite (subtle in-text CTA) --- */
.invite {
  margin: 3rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.invite__photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-deep);
  border: 2px solid var(--paper-deep);
}

.invite__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.invite__body {
  flex: 1;
  min-width: 240px;
}

.invite__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-0);
  color: var(--ink);
  margin: 0 0 0.6rem 0;
  line-height: 1.5;
}

.invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  font-family: var(--sans);
  font-size: var(--step--1);
}

.invite__actions a {
  color: var(--moss-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--moss);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.invite__actions a:hover {
  color: var(--rust);
  border-color: var(--rust);
}

.invite__separator {
  color: var(--rule);
  user-select: none;
}

/* Author card needs extra contact options */
.author-card__contact {
  font-family: var(--sans);
  font-size: var(--step--1);
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
}

.author-card__contact a {
  color: var(--moss-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--moss);
  padding-bottom: 1px;
  white-space: nowrap;
}

.author-card__contact a:hover {
  color: var(--rust);
  border-color: var(--rust);
}

.author-card__contact span {
  color: var(--rule);
}

/* --- Author card (with photo) --- */
.author-card {
  margin-top: 3.5rem;
  padding: 1.5rem;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.author-card__photo {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 8px rgba(42, 38, 34, 0.08);
}

.author-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-card__body {
  flex: 1;
  min-width: 200px;
}

.author-card__name {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.author-card__role {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.author-card__cta {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-0);
  color: var(--ink);
  margin: 0;
  line-height: 1.45;
}

.author-card__cta a {
  color: var(--moss-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.author-card__cta a:hover {
  color: var(--rust);
}

/* --- Large author portrait (for /over-dennis) --- */
.author-portrait {
  margin: 0 auto 2.5rem;
  max-width: 220px;
}

.author-portrait img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--paper);
  box-shadow: 0 4px 16px rgba(42, 38, 34, 0.1);
  display: block;
}

/* --- Author note (dark CTA block - kept for some pages) --- */
.author-note {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--moss-deep);
  color: var(--paper);
  border-radius: 4px;
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.65;
}

.author-note p {
  margin: 0;
}

.author-note strong {
  color: var(--paper);
  font-weight: 600;
}

.author-note a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.author-note a:hover {
  color: var(--highlight);
}

/* --- Site footer --- */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 40rem) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  color: var(--moss);
  border-color: var(--moss);
}

.site-footer__credit {
  max-width: var(--wide-width);
  margin: 2rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: center;
}

/* --- Reading bar (subtle scroll indicator) --- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--moss);
  z-index: 100;
  width: 0;
  transition: width 0.1s;
}

/* --- Print styles --- */
@media print {
  body { background: white; }
  .site-header, .site-nav, .next-reading, .author-note, .site-footer { display: none; }
  .prose { padding-top: 0; }
}

/* --- Focus styles for accessibility --- */
a:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Mark / highlight --- */
mark {
  background: var(--highlight);
  color: var(--ink);
  padding: 0 0.15em;
}

/* --- Numbered illustration block --- */
.illustration {
  margin: 2.5rem 0;
  padding: 0;
  text-align: center;
}

.illustration svg {
  max-width: 100%;
  height: auto;
}

.illustration figcaption {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.75rem;
  font-style: italic;
}

/* --- Decorative drop cap on lede --- */
.prose > .drop-cap::first-letter {
  font-family: var(--serif);
  font-size: 4.5em;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  padding-right: 0.1em;
  padding-top: 0.05em;
  color: var(--moss);
}

/* --- Mobile tweaks --- */
@media (max-width: 30rem) {
  .article-header h1 { max-width: none; }
  .prose blockquote { padding: 1.25rem; }
  .price-card { padding: 1.5rem; }
  .author-note { padding: 1.5rem; }
}
