@font-face {
  font-family: "Noto Serif";
  src: url("/assets/noto-serif-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif";
  src: url("/assets/noto-serif-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #102657;
  --muted: #414d5a;
  --forest: #0b5946;
  --forest-dark: #084536;
  --gold: #d29632;
  --line: #e8c07a;
  --paper: #fffcf3;
  --cream: #fcf2dc;
  --panel: linear-gradient(160deg, #fffdf6, #fcf2dc);
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  font: 16px/1.58 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 20px;
}

* { box-sizing: border-box; }
body, figure, h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
:where(a, button, select, [tabindex]):focus-visible { outline: 3px solid #8a5412; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1152px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; z-index: 1; background: white; padding: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header, .site-footer {
  color: #fffae5;
  background: var(--forest-dark);
  font-size: .94rem;
}
.site-header { border-bottom: 3px solid #d59b3c; }
.site-footer { border-top: 5px solid var(--gold); }
.header-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 25px;
  padding-block: 9px;
}
.wordmark {
  font: 700 1.5rem/1.15 var(--serif);
  letter-spacing: -.05em;
  text-decoration: none;
  width: fit-content;
}
.wordmark span { color: #ffd481; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline-color: #ffd481; }
.section-nav, .language-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.section-nav { gap: 3px 22px; }
.section-nav a { font-weight: 650; text-decoration: none; padding-block: 6px; }
.section-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.language-nav {
  grid-column: 1 / -1;
  gap: 3px 6px;
  padding-top: 6px;
  border-top: 1px solid #f8d89455;
}
.page-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-size: .875rem;
}
.page-language[aria-current], .page-language:hover { border-color: #efbd5b; background: #ffffff19; }
.flag { font: 1.1rem/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; }
h1 { font-size: clamp(2rem, 3.2vw, 3.15rem); letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 1.2rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: stretch;
  margin-top: clamp(16px, 3vw, 35px);
  border: 1px solid var(--gold);
  border-radius: 25px;
  overflow: hidden;
  background: linear-gradient(145deg, #fffaf0, #f8eaca);
  box-shadow: 0 3px 0 #f1dfb8;
}
.hero-copy {
  align-self: center;
  padding: clamp(20px, 3vw, 37px);
  text-align: center;
}
.catalog-emblem {
  width: clamp(85px, 11vw, 132px);
  margin: 0 auto 9px;
  mix-blend-mode: multiply;
}
.ribbon {
  display: inline-block;
  max-width: 100%;
  margin-top: 14px;
  padding: 5px 20px;
  border: 1px solid #d39b3e;
  border-radius: 6px;
  color: #57330f;
  background: linear-gradient(#fff0bd, #f4cd77);
  font: 700 .94rem/1.3 var(--serif);
}
.hero-intro { margin: 12px auto 0; max-width: 34em; font-family: var(--serif); }
.hero-illustration { min-width: 0; border-left: 1px solid var(--gold); background: #faf0dc; }
.hero-illustration img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.order-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 23px);
  margin-top: 24px;
}
.order-route {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: start;
  gap: 9px;
  padding: 19px clamp(14px, 3vw, 28px);
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: var(--panel);
}
.order-route h2 { font-size: clamp(1.23rem, 2.4vw, 1.65rem); letter-spacing: -.025em; }
.order-route p { color: var(--muted); line-height: 1.45; }
.business-route { color: #fffae5; background: linear-gradient(135deg, #176950, #0b4a3c 75%); }
.business-route p { color: #fbf3da; }
.business-route .button { background: #fff3d4; color: #16483b; }
.business-route .button:hover { background: #ffe6aa; }
.business-route a:focus-visible { outline-color: #ffd481; }

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b67a23;
  border-radius: 8px;
  font: 650 .94rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.primary { background: linear-gradient(#14785c, #09513f); color: #fffdf0; }
.primary:hover { background: #084536; }
.secondary { background: #fffdf4; color: var(--forest-dark); }
.secondary:hover { background: #fcf0d2; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 23px;
  padding-block: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff9e9;
  text-align: center;
}
.facts > div { padding: 2px 10px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font: 700 1rem/1.25 var(--serif); }
.facts dd { margin-top: 4px; font-size: .875rem; line-height: 1.4; color: var(--muted); }

.section { padding-block: clamp(39px, 6vw, 72px); }
.section-head { margin: 0 auto clamp(23px, 4vw, 36px); max-width: 46rem; text-align: center; }
.section-head h2::after { content: ""; display: block; width: 62px; height: 2px; margin: 12px auto 0; background: var(--gold); }
.section-head p { color: var(--muted); margin-top: 11px; }
.edition-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3,minmax(0, 1fr));
  gap: 14px;
}
.edition-card {
  display: grid;
  grid-template-columns: 77px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: clamp(12px, 1.6vw, 17px);
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 2px 0 #eddbab80;
}
.edition-cover { align-self: start; display: block; border-radius: 3px; box-shadow: 2px 2px 0 #b8873d; }
.edition-cover img { border-radius: inherit; aspect-ratio: 17 / 22; object-fit: contain; }
.edition-copy { align-self: center; }
.edition-language {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #db9d3e;
  border-radius: 6px;
  color: #fff7dd;
  background: linear-gradient(#197459, #0c5443);
  font: 700 .875rem/1.25 var(--serif);
}
.edition-list h3 { margin-top: 7px; overflow-wrap: anywhere; }
.edition-isbn { color: var(--muted); font-size: .875rem; margin-top: 5px; }
.edition-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.edition-samples { color: var(--forest-dark); font-size: .9rem; font-weight: 650; padding-block: 5px; text-underline-offset: 3px; }

.business { position: relative; border-block: 1px solid var(--line); background: linear-gradient(#f9efd6, #fef9eb); }
.business::before, .site-footer::before {
  content: "";
  display: block;
  height: 7px;
  background: url("/assets/catalogus-patroon.webp") repeat-x center 42% / 31px 30px;
}
.business::before { position: absolute; inset: 0 0 auto; border-bottom: 1px solid var(--line); }
.business-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.price-panel, .trial-panel, .quote-panel {
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 19px;
  padding: clamp(14px, 2.45vw, 25px);
}
.price-panel h3, .trial-panel h3, .quote-panel h3 { font-size: clamp(1.19rem, 2vw, 1.5rem); }
.price-panel > p, .trial-panel > p, .quote-panel p { color: var(--muted); margin-top: 8px; }
.prices {
  width: 100%;
  margin-block: 16px 13px;
  border: 1px solid var(--gold);
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  font-size: .94rem;
  font-variant-numeric: tabular-nums;
}
.prices th, .prices td { padding: 10px 6px; text-align: center; }
.prices thead { color: #fff8df; background: linear-gradient(#187e61, #0a5544); }
.prices thead th { font-family: var(--serif); line-height: 1.25; }
.prices thead span { display: block; margin-top: 2px; font-size: .875rem; font-weight: 400; }
.prices tbody tr:nth-child(odd) { background: #fdf2d8; }
.prices tbody tr + tr > * { border-top: 1px solid var(--line); }
.prices tbody td { white-space: nowrap; }
.price-note, .trial-excl { font-size: .875rem; }
.trial-body {
  display: grid;
  grid-template-columns: minmax(0, 98px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-block: 15px;
}
.trial-body img { width: 100%; border: 1px solid var(--gold); border-radius: 3px; }
.trial-quantity { color: var(--forest); font-weight: 700; }
.trial-price { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.2 var(--serif); letter-spacing: -.035em; }
.trial-excl { margin-top: 4px; color: var(--muted); }
.trial-incl { margin-top: 8px; font-weight: 700; font-size: .94rem; }
.trial-panel > .button { margin-top: 14px; }
.quote-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 18px; }
.quote-panel > :first-child { min-width: 0; }
.quote-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; }
.terms-link { display: inline-block; margin-top: 8px; color: var(--forest-dark); font-weight: 650; text-underline-offset: 3px; }
.terms { margin-top: clamp(29px, 5vw, 51px); }
.terms > h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.terms > p { margin-top: 6px; color: var(--muted); }
.terms-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.terms-list li {
  padding: 14px clamp(14px, 2.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.terms-list h4 { margin: 0 0 5px; font: 700 1rem/1.3 var(--serif); color: var(--forest-dark); }
.terms-list p { color: var(--muted); }

.preview-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0, 258px); align-items: start; gap: 18px; }
.edition-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; margin-bottom: 14px; }
.edition-picker label { font-weight: 650; }
.edition-picker select {
  min-height: 44px;
  max-width: 100%;
  appearance: none;
  color: var(--forest-dark);
  background: linear-gradient(45deg, transparent 50%, #0b5946 50%) right 16px center / 6px 6px no-repeat,
              linear-gradient(135deg, #0b5946 50%, transparent 50%) right 10px center / 6px 6px no-repeat #fffdf5;
  border: 1px solid var(--gold);
  border-radius: 7px;
  padding: 8px 30px 8px 10px;
  font: inherit;
}
.edition-preview:not([hidden]) + .edition-preview:not([hidden]) { margin-top: 28px; }
.edition-preview h3 { margin-bottom: 10px; }
.edition-preview h3 span { font: 400 .9rem/1.3 system-ui, sans-serif; color: var(--muted); }
.sample-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(7px, 1.55vw, 15px); }
.sample {
  min-width: 0;
  padding: clamp(5px, 1.1vw, 11px);
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
}
.sample:hover { border-color: var(--forest); }
.sample img { width: 100%; aspect-ratio: 17 / 22; object-fit: contain; background: white; border-radius: 3px; }
.sample strong {
  display: block;
  margin-top: 8px;
  color: var(--forest-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font: 700 .875rem/1.32 var(--serif);
  overflow-wrap: anywhere;
}
.preview-actions { margin-top: 14px; }
.cover-carousel { width: min(100%, 258px); margin-inline: auto; min-width: 0; padding: 12px; border: 1px solid var(--gold); border-radius: 15px; background: var(--panel); }
.cover-carousel h3 { margin-bottom: 10px; text-align: center; }
.cover-track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b98538 #fcf2dc; }
.cover-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 4px 16px 7px; }
.cover-slide img { width: 100%; aspect-ratio: 17 / 22; object-fit: contain; border-radius: 4px; box-shadow: 2px 3px 0 #d9b677; }
.cover-slide figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); text-align: center; }
.cover-controls { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding-top: 10px; }
.cover-controls .button { min-width: 0; padding-inline: 5px; font-size: .875rem; }
.cover-position { flex-shrink: 0; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--muted); }

.footer-layout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: #fff1c9; text-underline-offset: 3px; }

dialog { width: min(92vw, 640px); max-height: 94dvh; padding: 16px; border: 1px solid var(--gold); border-radius: 14px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #102231cc; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dialog-heading h2 { font-size: clamp(1.2rem, 4vw, 1.8rem); }
dialog img { max-height: 74dvh; margin-inline: auto; object-fit: contain; }

@media (max-width: 910px) {
  .edition-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .business-layout { grid-template-columns: minmax(0,1fr); }
  .trial-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 0 16px; }
  .trial-panel h3 { grid-column: 1 / -1; }
  .trial-body { grid-row: span 2; }
  .trial-panel > .button { width: fit-content; }
  .preview-layout { grid-template-columns: minmax(0,1fr) minmax(0, 208px); }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 28px); }
  .header-layout { grid-template-columns: 1fr; gap: 6px; }
  .section-nav, .language-nav { justify-content: flex-start; }
  .section-nav { gap: 1px 14px; }
  .language-nav { gap: 2px; }
  .page-language { padding-inline: 5px; min-height: 32px; }
  .hero { display: flex; flex-direction: column; border-radius: 17px; }
  .hero-copy { padding: 13px 15px 14px; }
  .catalog-emblem { width: 80px; margin-bottom: 4px; }
  h1 { font-size: clamp(1.68rem, 6.5vw, 2.45rem); }
  .ribbon { margin-top: 7px; padding-block: 3px; }
  .hero-intro { margin-top: 8px; font-size: .94rem; line-height: 1.42; }
  .hero-illustration { width: 100%; height: clamp(110px, 39vw, 200px); border-left: 0; border-top: 1px solid var(--gold); }
  .order-routes { margin-top: 14px; }
  .order-route { grid-template-rows: minmax(2.4em, auto) 1fr auto; gap: 7px; padding: 12px; border-radius: 13px; }
  .order-route h2 { text-wrap: wrap; font-size: 1.12rem; }
  .order-route p { font-size: .9rem; }
  .order-route .button { padding-inline: 8px; font-size: .875rem; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 15px; padding: 8px; }
  .facts > div { padding: 7px; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .edition-list { grid-template-columns: minmax(0,1fr); }
  .edition-card { grid-template-columns: 67px minmax(0,1fr); border-radius: 14px; }
  .quote-panel { flex-wrap: wrap; }
  .quote-actions { flex: 0 1 auto; }
  .terms-list { grid-template-columns: minmax(0, 1fr); }
  .preview-layout { grid-template-columns: 1fr; }
  .cover-carousel { margin-top: 6px; }
}
@media (max-width: 430px) {
  .trial-panel { display: block; }
  .trial-body { grid-template-columns: 65px minmax(0, 1fr); gap: 12px; }
  .prices { font-size: .875rem; }
  .prices th, .prices td { padding-inline: 3px; }
  .prices thead span { font-size: .8rem; }
}
@media (max-width: 350px) {
  .order-routes { grid-template-columns: 1fr; }
  .order-route { grid-template-rows: auto; }
  .sample-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.locale-code { display: none; }
@media (max-width: 430px) {
  .section-nav { gap: 1px 12px; }
  .section-nav a { font-size: .875rem; }
  .language-nav { gap: 3px; }
  .page-language { gap: 4px; padding-inline: 5px; }
  .page-language .flag { font-size: .9rem; }
  .locale-code { display: inline; }
  .locale-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
