@font-face { font-family: "Titillium Web"; src: url("/fonts/titillium-web.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/fonts/noto-sans.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("/fonts/roboto-slab.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* Style guide Meeuwig. Read from meeuwig.nl (23-11-2026).
   Sizes are rem without a unit: mobile (20rem wide) → desktop (80rem wide). */
:root {
  /* Fonts */
  --font-heading: "Titillium Web", sans-serif;
  --font-text: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-list: "Noto Sans", sans-serif;
  --font-menu: "Roboto Slab", serif;
  --weight-heading: 700;
  --weight-text: 400;

  /* Sizes */
  --h1-mobile: 1.5;      --h1-desktop: 1.5;
  --h2-mobile: 1.25;     --h2-desktop: 1.25;
  --h3-mobile: 1;        --h3-desktop: 1.125;
  --h4-mobile: 1;        --h4-desktop: 1;
  --text-mobile: 0.875; --text-desktop: 0.875;
  --small-mobile: 0.75;  --small-desktop: 0.75;
  --menu-mobile: 1;      --menu-desktop: 1.3125;

  /* Line height */
  --leading-heading: 1.5;
  --leading-text: 1.785;

  /* Letter spacing */
  --tracking-heading: 0.15em;
  --tracking-text: 0.036em;

  /* Colors */
  --color-text: #333333;
  --color-heading: #000000;
  --color-background: #ffffff;
  --color-accent: #b79883;
  --color-on-accent: #ffffff;
  --color-surface: #eeeeee;
  --color-notice: #eb0f0f;
  --color-search-hit: #ffe600;

  /* White space */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 5rem;
  --width: 84.375rem;
  --space-rule: 2.1875rem;
  --width-narrow: 42rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* Typography: tokens only. Sizes scale from mobile (20rem) to desktop (80rem). */
body {
  font-family: var(--font-text);
  font-weight: var(--weight-text);
  font-size: clamp(calc(var(--text-mobile) * 1rem), calc(var(--text-mobile) * 1rem + (var(--text-desktop) - var(--text-mobile)) * (100vw - 20rem) / 60), calc(var(--text-desktop) * 1rem));
  line-height: var(--leading-text);
  letter-spacing: var(--tracking-text);
  color: var(--color-text);
  background: var(--color-background);
  margin: 0;
  padding-bottom: 66px; /* space for the bar */
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  text-transform: uppercase;
  color: var(--color-heading);
  margin: 0;
}
h1 { font-size: clamp(calc(var(--h1-mobile) * 1rem), calc(var(--h1-mobile) * 1rem + (var(--h1-desktop) - var(--h1-mobile)) * (100vw - 20rem) / 60), calc(var(--h1-desktop) * 1rem)); }
h2 { font-size: clamp(calc(var(--h2-mobile) * 1rem), calc(var(--h2-mobile) * 1rem + (var(--h2-desktop) - var(--h2-mobile)) * (100vw - 20rem) / 60), calc(var(--h2-desktop) * 1rem)); }
h3 { font-size: clamp(calc(var(--h3-mobile) * 1rem), calc(var(--h3-mobile) * 1rem + (var(--h3-desktop) - var(--h3-mobile)) * (100vw - 20rem) / 60), calc(var(--h3-desktop) * 1rem)); }
h4 { font-size: clamp(calc(var(--h4-mobile) * 1rem), calc(var(--h4-mobile) * 1rem + (var(--h4-desktop) - var(--h4-mobile)) * (100vw - 20rem) / 60), calc(var(--h4-desktop) * 1rem)); }
.small { font-size: clamp(calc(var(--small-mobile) * 1rem), calc(var(--small-mobile) * 1rem + (var(--small-desktop) - var(--small-mobile)) * (100vw - 20rem) / 60), calc(var(--small-desktop) * 1rem)); }
p { margin: 0 0 0.9rem; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }

/* Links in running text in the accent color */
main p a, main dd a { color: var(--color-accent); }
main p a:hover { text-decoration: underline; }

/* Row of links with a pictogram (as on Contact) */
.pictograms { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 0.9rem; }
.pictograms a { display: inline-flex; align-items: center; gap: 10px; color: var(--color-accent); }
.pictograms a:hover { text-decoration: underline; }

/* Heading with a rule below. The h1 (first heading of a page) looks like the other rule headings, as in the original. */
h1.rule-heading { font-size: clamp(calc(var(--h2-mobile) * 1rem), calc(var(--h2-mobile) * 1rem + (var(--h2-desktop) - var(--h2-mobile)) * (100vw - 20rem) / 60), calc(var(--h2-desktop) * 1rem)); }
.rule-heading::after { content: ""; display: block; width: 100px; height: 4px; background: var(--color-heading); margin: var(--space-rule) 0; }
/* A next heading after text: 34 px white space between text and heading, as in the original. */
p + .rule-heading { margin-top: 30px; }

/* Surface across the full content width (1350 px, with margin on narrower screens) */
.clients, .colophon, .standalone-heading, .image-text, .product, .product-list { width: min(100% - 2 * var(--space-m), var(--width)); margin-inline: auto; }

/* Header and menu */
.header { padding: 20px var(--space-m) 0; position: relative; z-index: 11; background: var(--color-background); }

.header + .menu > ul { width: 100%; }
.header__logo img { width: 400px; margin: 0 auto; }
.menu {
  position: sticky; top: 0; z-index: 10;
  background: var(--color-background);
  font-family: var(--font-menu);
  /* Grows from 15 px (768 px wide) to 21 px (1440 px), so the menu always fits on one line. */
  font-size: clamp(15px, calc(15px + 6 * (100vw - 768px) / 672), calc(var(--menu-desktop) * 1rem));
  text-transform: uppercase;
  padding: 10px 0;
  box-shadow: 0 1px 20px -13px #000;
}
.menu > ul { display: flex; flex-wrap: wrap; justify-content: center; width: 92%; }
.menu__item { position: relative; }
.menu__link, .bar a, .bar__search { display: block; padding: 13px clamp(8px, calc(8px + 22 * (100vw - 768px) / 672), 30px); color: var(--color-heading); line-height: 20px; }
.menu a[aria-current="page"], .bar a[aria-current="page"], .menu__item:hover > .menu__link { color: var(--color-accent); }
.menu__has-sub > a::after { content: ""; display: inline-block; width: 0.35em; height: 0.35em; margin-left: 0.4em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.2em) rotate(45deg); }
.menu__sub {
  position: absolute; top: 100%; left: 0; min-width: 14rem;
  background: var(--color-background); box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
  font-size: 0.8em; text-transform: none;
  /* Expand: fade in softly and slide down a little. */
  visibility: hidden; opacity: 0; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.menu__item:hover > .menu__sub, .menu__item:focus-within > .menu__sub { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s; }

/* Search: at the end of the bottom bar, dialog over the whole screen. */
.bar__search { background: none; border: 0; cursor: pointer; font: inherit; line-height: 20px; text-transform: inherit; }
.bar__search[hidden] { display: none; }
/* Phone: magnifying glass in the header, next to the hamburger menu. */
.mobile__search { margin-left: auto; background: none; border: 0; padding: 12px; cursor: pointer; color: var(--color-heading); line-height: 0; }
.mobile__search[hidden] { display: none; }
.bar__search:hover { color: var(--color-accent); }
.search { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 12vh var(--space-m) 0; background: #111; color: #fff; }
.search[open] { animation: expand 0.25s ease-out; }
.search::backdrop { background: transparent; }
.search__field, .search__results { display: block; width: min(100%, 50rem); margin: 0 auto; }
.search__field { font: inherit; font-size: 1.75rem; color: #fff; background: none; border: 0; border-bottom: 2px solid #fff; padding: 0.4em 0; outline: none; }
.search__field::placeholder { color: rgb(255 255 255 / 0.6); }
.search__results { margin-top: var(--space-l); max-height: 60vh; overflow-y: auto; }
.search__results li { margin-bottom: var(--space-m); }
.search__results a { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #fff; }
.search__results a:hover { color: var(--color-accent); }
.search__results p { margin: 0.3em 0 0; color: rgb(255 255 255 / 0.75); }
.search__results strong { color: #fff; }
.search-hit { background: var(--color-search-hit); color: inherit; }
.search__close { position: absolute; top: 20px; right: 20px; }
.search__close button { background: none; border: 0; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; }
.menu__sub a { display: block; padding: var(--space-xs) var(--space-s); color: var(--color-heading); }
.menu__sub a:hover, .menu__sub a[aria-current="page"] { color: var(--color-accent); }

/* Tablet and phone: hamburger menus */
.mobile { display: none; }
.mobile summary { list-style: none; cursor: pointer; padding: var(--space-s); line-height: 0; }
.mobile summary::-webkit-details-marker { display: none; }
.hamburger, .hamburger::before, .hamburger::after { display: inline-block; width: 20px; height: 3px; border-radius: 2px; background: var(--color-heading); transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease; }
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
details[open] > summary .hamburger { background: transparent; }
details[open] > summary .hamburger::before { top: 0; transform: rotate(45deg); }
details[open] > summary .hamburger::after { top: 0; transform: rotate(-45deg); }
.mobile__menu > ul {
  position: absolute; left: 0; right: 0; background: var(--color-background);
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1); padding: var(--space-xs) 0;
  font-family: var(--font-menu); text-transform: uppercase; font-size: 0.9375rem; text-align: left;
  top: 100%;
}
/* Opening: the menu fades in and slides along a little. */
.mobile__menu[open] > ul, .mobile__menu details[open] > ul { animation: expand 0.25s ease-out; }
@keyframes expand { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .menu__sub, .hamburger, .hamburger::before, .hamburger::after { transition: none; }
  .mobile__menu[open] > ul, .mobile__menu details[open] > ul { animation: none; }
}
.mobile__menu a, .mobile__menu details summary { display: block; padding: 0.55rem var(--space-m); color: var(--color-heading); line-height: 1.6; }
.mobile__menu a[aria-current="page"] { color: var(--color-accent); }
.mobile__menu details summary::after { content: ""; display: inline-block; width: 0.35em; height: 0.35em; margin-left: 0.5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.2em) rotate(45deg); }
.mobile__menu details ul { padding-left: var(--space-m); text-transform: none; }

/* Block: photo wall */
.photo-wall { height: 100vh; background-image: url("/images/winkelwand.webp"); background-repeat: repeat; background-size: 480px auto; background-attachment: fixed; }

/* Block: clients */
.clients { padding: 50px 0 var(--space-xl); display: grid; gap: var(--space-xl); }
.clients ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; line-height: 26px; font-family: var(--font-list); }
@media (min-width: 60rem) {
  .clients { grid-template-columns: 1fr 1fr; gap: 0; }
  .clients > div:first-child { padding-left: 50px; }
  .clients > div + div { padding-left: 100px; }
}

/* Block: colophon */
.colophon { padding: 0 0 var(--space-xl); display: grid; gap: var(--space-l); align-items: start; }
.colophon p { margin: 0; }
.colophon a { color: var(--color-accent); }
@media (min-width: 48rem) { .colophon { grid-template-columns: 540px 315px; gap: 0; padding-left: 50px; } }

/* Block: standalone heading */
.standalone-heading { padding: 15px 0 0; }
.standalone-heading .rule-heading::after { margin-bottom: 0; }

/* Block: image + text, product */
.image-text, .product, .product-list { padding: 60px 0; display: grid; gap: var(--space-l); align-items: start; }
.product-list { padding-bottom: 150px; row-gap: 0; --text-x: 30.7%; --text-b: 37.9%; }
main > :first-child:not(.photo-wall) { margin-top: 40px; }
.image-text img { width: 100%; }
.product { padding: 60px 0 10px; --image-mx: 7.7vw; --image-mb: 84.6vw; }
.product img { width: 290px; margin: 0 auto; }
.product dl { display: grid; grid-template-columns: 140px 1fr; gap: 0; margin: 0; line-height: 17px; }
.product dd { margin: 0; font-weight: 700; color: var(--color-heading); }
.product__note { color: var(--color-accent); }
.product dl + p { margin-top: 20px; }
.product-list ul { columns: 2 14rem; }

/* Notice below a heading, such as "tijdelijk niet leverbaar" */
.notice { color: var(--color-notice); font-size: 1rem; line-height: 1; letter-spacing: 0.5px; margin: calc(20px - var(--space-rule)) 0 20px; }

/* Block: text */
.text { max-width: var(--width-narrow); margin: 0 auto; padding: var(--space-xl) var(--space-m); }

/* Footer and bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; flex-wrap: wrap; justify-content: center;
  padding: 10px 0; background: var(--color-background); box-shadow: 0 -1px 20px -13px #000;
  font-family: var(--font-menu); font-size: clamp(15px, calc(15px + 6 * (100vw - 768px) / 672), calc(var(--menu-desktop) * 1rem)); text-transform: uppercase;
}

/* Block: styleguide (only for the style guide page) */
.styleguide { max-width: var(--width); margin: 0 auto; padding: var(--space-l) var(--space-m); }
.styleguide section { padding: var(--space-l) 0; border-top: 1px solid var(--color-surface); }
.styleguide__label { display: block; font-family: ui-monospace, monospace; font-size: 0.75rem; letter-spacing: 0; color: var(--color-accent); margin-bottom: var(--space-xs); }
.styleguide__row { margin-bottom: var(--space-m); }
.styleguide__menu { font-family: var(--font-menu); text-transform: uppercase; font-size: calc(var(--menu-desktop) * 1rem); }
.styleguide__colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--space-s); }
.styleguide__swatch { height: 5rem; border: 1px solid var(--color-surface); border-radius: 0.25rem; margin-bottom: var(--space-xs); }
.styleguide__space { height: 1rem; background: var(--color-accent); }
.styleguide__swatch--color-text { background: var(--color-text); }
.styleguide__swatch--color-heading { background: var(--color-heading); }
.styleguide__swatch--color-background { background: var(--color-background); }
.styleguide__swatch--color-accent { background: var(--color-accent); }
.styleguide__swatch--color-on-accent { background: var(--color-on-accent); }
.styleguide__swatch--color-surface { background: var(--color-surface); }
.styleguide__swatch--color-notice { background: var(--color-notice); }
.styleguide__swatch--color-search-hit { background: var(--color-search-hit); }
.styleguide__space--space-xs { width: var(--space-xs); }
.styleguide__space--space-s { width: var(--space-s); }
.styleguide__space--space-m { width: var(--space-m); }
.styleguide__space--space-l { width: var(--space-l); }
.styleguide__space--space-xl { width: var(--space-xl); }
.styleguide__space--space-rule { width: var(--space-rule); }
.styleguide dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-xs) var(--space-m); font-family: ui-monospace, monospace; font-size: 0.8125rem; letter-spacing: 0; }
.styleguide dd { margin: 0; }

/* Layouts: image and text at fixed places, in percent of the content width.
   image-text: photo or photo-small (a photo, text beside it), third or half; product and product list: one each
   (the product list sets its own in its rule above).
   Phone: the image at --image-mx with width --image-mb (in vw), full width by default. */
.image-text--photo.image-text--left  { --image-x: 28.5%; --image-b: 27.8%; --text-x: 60.7%; --text-b: 39.3%; }
.image-text--photo.image-text--right { --image-x: 46%;   --image-b: 27.8%; --text-x: 3.7%;  --text-b: 38%; }
.image-text--photo-small.image-text--left  { --image-x: 33%; --image-b: 23.5%; --text-x: 60.7%; --text-b: 39.3%; }
.image-text--photo-small.image-text--right { --image-x: 48%; --image-b: 23.5%; --text-x: 3.7%;  --text-b: 38%; }
.image-text--third.image-text--left  { --image-x: 0%;    --image-b: 33.3%; --text-x: 37%;   --text-b: 63%; }
.image-text--third.image-text--right { --image-x: 66.7%; --image-b: 33.3%; --text-x: 0%;    --text-b: 63%; }
.image-text--half                    { --image-x: 0%;    --image-b: 50%;   --text-x: 53.7%; --text-b: 46.3%; }
.product--left  { --image-x: 20.7%; --image-b: 21.5%; --text-x: 47.4%; --text-b: 51.9%; }
.product--right { --image-x: 47.3%; --image-b: 21.5%; --text-x: 4.4%;  --text-b: 39.1%; }
.image-text--photo, .image-text--photo-small { --image-mx: 29vw; --image-mb: 42vw; }
@media (min-width: 48rem) {
  .image-text, .product { grid-template-columns: 1fr; gap: 0; }
  /* Text shorter than the image: vertically centered next to it. */
  .image-text > img, .product > img { grid-area: 1 / 1; align-self: start; justify-self: start; margin: 0 0 0 var(--image-x); width: var(--image-b); max-width: none; }
  .image-text > div, .product > div { grid-area: 1 / 1; align-self: center; margin-left: var(--text-x); width: var(--text-b); padding: 0; }
  .product-list > * { margin-left: var(--text-x); width: var(--text-b); }
  .product--right { padding-bottom: 150px; }
}

/* Tablet and phone (at the bottom, so these rules take precedence) */

/* Tablet only: the desktop layout to scale. */
@media (min-width: 48rem) and (max-width: 64rem) {
  /* The desktop menu and the bottom bar, as on desktop (they scale along, see .menu). */
  .menu > ul { width: 100%; }
  /* Image and text side by side: always 35 px space below the menu (the space between heading and rule). */
  main > :first-child:not(.photo-wall) { margin-top: 0; padding-top: var(--space-rule); }
  .colophon { grid-template-columns: 323px 207px; }
  /* Olive oil cards: almost half the width, on the side of the card. */
  .product--left { --image-x: 5.9%; --image-b: 43%; }
  .product--right { --image-x: 51.1%; --image-b: 43%; }
}
@media (max-width: 47.99rem) {
  .header, .menu, .bar { display: none; }
  body { padding-bottom: 0; }
  .mobile { display: flex; align-items: center; position: sticky; top: 0; z-index: 10; background: var(--color-background); justify-content: space-between; min-height: 68px; padding: 10px 14px 10px var(--space-m); box-shadow: 0 1px 20px -13px #000; }
  .mobile__logo { display: block; }
  .mobile__logo img { width: 196px; height: auto; }
  :root { --space-m: 1.25rem; }
  /* When a page starts with an image, it sits directly below the header.
     When it starts with text, at least the space between heading and rule (35 px). */
  main > :first-child:not(.photo-wall) { margin-top: 0; padding-top: var(--space-rule); }
  main > :first-child:is(.image-text, .product):not(.text-first-mobile) { padding-top: 0; }
  /* Images: full width by default, or at --image-mx with width --image-mb (see Layouts). */
  .image-text > img, .product > img { width: var(--image-mb, 100vw); max-width: none; margin: 0 0 0 calc(var(--image-mx, 0vw) - var(--space-m)); }
  .image-text, .product { padding: 30px 0; gap: var(--space-rule); grid-template-columns: minmax(0, 1fr); }
  .text-first-mobile > img { order: 1; }
  .clients ul { grid-template-columns: 1fr; }
  .colophon > img { order: -1; width: 35.6vw; justify-self: center; }
}
