/* Self-hosted font, latin subset (fontsource), the same font as the original. SIL Open Font License: fonts/OFL-poppins.txt */
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-200-normal.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* The style guide of PIP DELI, read from pipdeli.nl (27-11-2026). One value per size: the original
   does not scale with the screen. Sizes are rem without a unit (1 = 16px). */
:root {
  /* Font: Poppins, as on the original (self-hosted). */
  --font-text: "Poppins", sans-serif;
  --weight-thin: 200;
  --weight-text: 300;
  --weight-strong: 400;
  --weight-bold: 700;

  /* Sizes */
  --h1-desktop: 1.875;
  --h2-desktop: 2;
  --text-desktop: 1.0625;
  --size-menu: 1.1875;
  --size-notice: 1.5625;
  --size-button: 2;
  --size-small: 0.875;
  --size-share: 0.75;

  /* Line height and letter spacing */
  --leading-text: 1.6;
  --tracking-text: 0.0625rem;
  --tracking-wide: 0.09375rem;

  /* Colors */
  --color-text: #000000;
  --color-background: #ffffff;
  --color-line: #dddddd;
  --color-button-line: #9c9c9c;   /* the double line around the menu buttons and the social icons */
  --color-reserve: #5b3a0b;
  --color-alert: #d43a3a;   /* the urgent notice on every page (Floris, 02-12; white text 4.7:1) */
  --color-map: #5b7218;   /* the green of the fig tree in the interior photo, behind the map notice (white text 5.4:1) */

  /* White space */
  --space-xs: 0.625rem;
  --space-s: 1.25rem;
  --space-m: 1.875rem;
  --space-l: 3.75rem;
  --width: 71.25rem;
}

/* PIP DELI. Measured from pipdeli.nl at 390, 900 and 1440 px; values only through tokens.css. */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-s); top: -4rem; z-index: 30; padding: var(--space-xs) var(--space-s); background: var(--color-background); }
.skip:focus { top: var(--space-xs); }

/* Typography */
body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: var(--weight-text);
  font-size: calc(var(--text-desktop) * 1rem);
  line-height: var(--leading-text);
  letter-spacing: var(--tracking-text);
  color: var(--color-text);
  background: var(--color-background);
}
p { margin: 0 0 0.9rem; }
strong { font-weight: var(--weight-strong); }
a { color: inherit; }
.title { margin: 0 0 var(--space-s); font-size: calc(var(--h1-desktop) * 1rem); font-weight: var(--weight-text); line-height: 1; text-transform: uppercase; }
.title--large { font-size: calc(var(--h2-desktop) * 1rem); text-transform: none; }

/* Header: logo in the middle, menu below */
.header { display: flex; flex-direction: column; align-items: center; padding-top: 2.5rem; }
.header__logo img { width: 12.1875rem; }
.header__toggle { display: none; }
.menu ul { list-style: none; margin: 1.875rem 0 0; padding: 0; display: flex; gap: 3.75rem; }
.menu a { display: block; font-size: calc(var(--size-menu) * 1rem); font-weight: var(--weight-thin); line-height: 1.05; letter-spacing: var(--tracking-wide); text-transform: uppercase; text-decoration: none; }
.menu a:hover, .menu [aria-current] { text-decoration: underline; text-underline-offset: 0.4rem; }

main { width: min(100% - 2 * var(--space-s), var(--width)); margin: var(--space-l) auto 0; }

/* Photos side by side */
.photos { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--space-s); }
.photos__item { position: relative; height: 31.125rem; }
.photos__item img { width: 100%; height: 100%; object-fit: cover; }
.photos--short { gap: 0; }
.photos--short .photos__item { height: 14.0625rem; padding: 0 var(--space-m); }
.photos__notice {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 23rem; margin: 0; padding: 1.75rem var(--space-s);
  background: var(--color-text); color: var(--color-background); outline: 1px solid var(--color-background); outline-offset: -3px;
  font-size: calc(var(--size-notice) * 1rem); line-height: 1.3; text-align: center; text-transform: uppercase;
}

/* A photo and a text side by side */
.split { display: grid; grid-template-columns: 482fr 570fr; gap: 4.375rem; align-items: start; padding: 0 var(--space-xs); }
.split--photo-left { grid-template-columns: 570fr 500fr; }
.split--photo-left .split__photo { order: -1; }
.split .title { margin-bottom: var(--space-s); }
/* "photo_crop": as on the original, a landscape cut-out of a portrait photo (the eat in page). */
.split__photo--crop img { width: 100%; aspect-ratio: 872 / 699; object-fit: cover; object-position: 50% 50%; }

/* Menu page */
.menus { text-align: center; padding-top: var(--space-l); }
.menus__buttons { display: flex; justify-content: center; gap: var(--space-s); margin-bottom: var(--space-xs); }
.menus__hint { margin-bottom: var(--space-m); font-size: calc(var(--size-small) * 1rem); }
.menus__button { display: inline-block; padding: 0.9375rem var(--space-m); border: 3px double var(--color-button-line); font-size: calc(var(--size-button) * 1rem); font-weight: var(--weight-thin); line-height: 1; text-transform: uppercase; text-decoration: none; }

/* Contact */
.contact { display: grid; grid-template-columns: 255fr 509fr 246fr; align-items: start; padding: 0 var(--space-xs); }
/* As on the original: the drawing is larger than its column and starts left of it; the map sits a little higher. */
.contact__tree { width: 118%; max-width: none; margin-left: -23%; }
.contact__map { width: 92%; margin-top: -1.3rem; }
.contact__text > p:last-of-type { margin-top: 1.7rem; }
.contact__text a { font-weight: var(--weight-strong); text-decoration: none; }
.contact .follow { margin-top: 1.8rem; text-align: left; }
.contact .follow__title { margin-bottom: 0.75rem; }
.contact .follow__links { justify-content: flex-start; }
/* The map: a holder that is in the HTML; the iframe takes the place of the link after the click. */
.embed__frame { aspect-ratio: 469 / 408; }
.embed__frame > *, .consent-dialog__frame { display: block; width: 100%; height: 100%; border: 0; }
.map { display: grid; place-content: center; gap: var(--space-s); height: 100%; text-decoration: none; padding: var(--space-s); border: 0; background: var(--color-map); color: var(--color-background); text-align: center; }

.map__note { max-width: 24rem; margin: 0 auto; font-size: calc(var(--size-small) * 1rem); }
.map__open { text-decoration: underline; font-weight: var(--weight-strong); }
/* Alert: urgent notice on every page */
.alert { max-width: var(--width); width: calc(100% - 2 * var(--space-s)); margin: var(--space-m) auto var(--space-l); padding: var(--space-s) var(--space-m); background: var(--color-alert); color: var(--color-background); text-align: center; line-height: 1.5; font-weight: var(--weight-strong); }
.alert a { color: inherit; }
/* Job */
.job { display: grid; grid-template-columns: 303fr 767fr; gap: 3.125rem; align-items: start; padding: 0 var(--space-xs); }
.job__kicker { margin: 0 0 var(--space-s); font-size: calc(var(--text-desktop) * 1rem); font-weight: var(--weight-bold); line-height: 1; }
.job__title { margin: 0 0 var(--space-s); font-size: calc(var(--h2-desktop) * 1rem); font-weight: var(--weight-strong); line-height: 1; }
.job__share-title { margin: var(--space-l) 0 var(--space-s); font-size: 1rem; font-weight: var(--weight-strong); line-height: 1; }
.job__share { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.job__share a { display: block; padding: 0.25rem 0.9rem; border-radius: 4px; background: var(--color-text); color: var(--color-background); font-size: calc(var(--size-share) * 1rem); font-weight: var(--weight-bold); text-decoration: none; }

/* Text pages */
.text { max-width: 42rem; margin: 0 auto; padding: 0 var(--space-xs); }
.title--small { margin-top: var(--space-m); font-size: 1.25rem; text-transform: none; }


/* Footer */
.footer { position: relative; width: min(100% - 2 * var(--space-s), var(--width)); margin: var(--space-l) auto 0; padding-bottom: var(--space-l); }
.footer__address { display: flex; align-items: center; justify-content: center; margin: 0; font-size: calc(var(--size-small) * 1rem); letter-spacing: var(--tracking-wide); }
.footer__address img { width: 4.1875rem; height: 5.625rem; object-fit: contain; }
.footer__legal { display: flex; justify-content: center; gap: var(--space-s); margin-top: var(--space-s); font-size: calc(var(--size-small) * 1rem); }
.footer .follow { position: absolute; top: 0; right: var(--space-xs); }
.follow { text-align: center; }
.follow__title { margin: 0 0 var(--space-s); line-height: 1; }
.follow__links { display: flex; justify-content: center; gap: var(--space-s); }
.follow__links a { display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border: 3px double var(--color-button-line); border-radius: 50%; }
.follow__links .icon { width: 1rem; height: 1rem; }

/* Reservations: a link to Zenchef; with consent their booking page opens in a dialog */
.reserve { position: fixed; right: var(--space-s); bottom: var(--space-s); z-index: 20; display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem var(--space-s); border-radius: 0.5rem; background: var(--color-reserve); color: var(--color-background); font-weight: var(--weight-strong); text-decoration: none; }
.reserve .icon { width: 1.125rem; height: 1.125rem; }
.consent-dialog { width: min(30rem, 100% - 2 * var(--space-s)); height: min(45rem, 100% - 2 * var(--space-s)); padding: 0; border: 0; border-radius: 0.5rem; }
.consent-dialog__close { position: absolute; top: var(--space-xs); right: var(--space-xs); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--color-background); color: var(--color-text); cursor: pointer; }

/* Consent for Zenchef and Google Maps: refusing is as easy and as visible as accepting */
.consent { position: fixed; left: var(--space-s); right: var(--space-s); bottom: var(--space-s); z-index: 30; max-width: 32rem; padding: var(--space-s); border: 1px solid var(--color-line); background: var(--color-background); font-size: calc(var(--size-small) * 1rem); }
.consent p { margin: 0 0 var(--space-s); }
.consent__buttons { display: flex; gap: var(--space-xs); }
.consent__button { flex: 1; padding: 0.75rem var(--space-s); border: 2px solid var(--color-text); background: var(--color-background); color: var(--color-text); font: inherit; font-weight: var(--weight-strong); cursor: pointer; }
.consent-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* Tablet and phone */
@media (max-width: 63.99rem) {
  .menu ul { gap: var(--space-m); }
  .footer .follow { position: static; margin-top: var(--space-m); }
  .job, .contact { margin: 0 -1.25rem; padding: 0 0.625rem; }
  .job { grid-template-columns: 235fr 589fr; }
  .contact { grid-template-columns: 235fr 400fr 245fr; gap: var(--space-l); }
  .contact__tree, .contact__map { width: 100%; margin: 0; }
}
@media (max-width: 47.99rem) {
  .split, .split--photo-left, .contact, .job { grid-template-columns: 1fr; gap: var(--space-m); }
  .job, .contact { margin: 0; }
  .job { padding: 0 1.25rem; }
  .header { position: relative; padding-top: var(--space-s); }
  .header__toggle { display: block; position: absolute; top: var(--space-s); right: var(--space-s); }
  .header__toggle summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
  .header__toggle summary::-webkit-details-marker { display: none; }
  .header__toggle .icon--close, .header__toggle[open] .icon--menu { display: none; }
  .header__toggle[open] .icon--close { display: block; }
  .menu { display: none; }
  .header__toggle[open] ~ .menu { display: block; }
  .menu ul { flex-direction: column; align-items: center; gap: var(--space-s); }
  .photos { grid-template-columns: 1fr; }
  .photos__item { height: 25rem; }
  .photos--short .photos__item { padding: 0; }
  .photos__notice { width: 85%; }
  .menus__buttons { flex-direction: column; align-items: center; }
}

/* Style guide page */
.styleguide { max-width: var(--width); margin: 0 auto; padding: var(--space-l) var(--space-s); }
.styleguide section { padding: var(--space-l) 0; border-top: 1px solid var(--color-line); }
.styleguide__label { display: block; font-family: ui-monospace, monospace; font-size: 0.75rem; letter-spacing: 0; margin-bottom: var(--space-xs); }
.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; }
