:root {
  --paper: #f8f0e5;
  --ink: #251a13;
  --muted: #655247;
  --accent: #764321;
  --line: #d9c7b5;
  --white: #fffaf2;
  --green: #2c2018;
  --espresso: #211710;
  --caramel: #f6cd9f;
  --serif: Georgia, 'Times New Roman', serif;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.topline { background: #3b2a1e; color: #f5e3d2; padding: .3rem clamp(1rem, 7vw, 8rem); }
.kaldi-header {
  background: #1b130e;
  color: var(--white);
  max-width: none;
  padding: .55rem clamp(1rem, 7vw, 8rem);
  border: 0;
  gap: clamp(.6rem, 2vw, 2rem);
}
.kaldi-header .brand { position: relative; display: block; width: 94px; height: 54px; flex: 0 0 auto; overflow: hidden; }
.kaldi-header .brand img { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 143px; height: 143px; max-width: none; object-fit: contain; filter: brightness(1.75) saturate(.65); }
.kaldi-header nav { align-items: center; gap: clamp(.6rem, 1.65vw, 1.7rem); font-size: .89rem; }
.kaldi-header nav a { display: flex; align-items: center; min-height: 44px; }
.button { border-radius: 2rem; }
.button:not(.secondary):not(.hero-outline):hover { background: #5d301b; }
.kaldi-header .button.small, .kaldi-hero .button:not(.hero-outline) {
  background: var(--caramel); border-color: var(--caramel); color: #21150e;
}
.kaldi-header .button.small:hover, .kaldi-hero .button:not(.hero-outline):hover {
  background: #ffe2bf; border-color: #ffe2bf;
}
.kaldi-header .button.small { gap: .6rem; white-space: nowrap; }
.kaldi-menu { display: none; color: inherit; min-height: 44px; padding: .4rem .7rem; border: 1px solid #a9927f; border-radius: .55rem; background: transparent; }
.kaldi-more { position: relative; }
.kaldi-more summary { cursor: pointer; padding: .65rem 0; white-space: nowrap; }
.kaldi-more > div { position: absolute; z-index: 3; right: 0; min-width: 10rem; padding: .25rem .8rem; border: 1px solid #765a44; border-radius: .5rem; background: #211710; }

#main:has(.kaldi-hero) { max-width: none; }
body:has(.kaldi-hero) { font-family: Verdana, Geneva, sans-serif; }
body:has(.kaldi-hero) .topline { display: none; }
body:has(.kaldi-hero) .kaldi-header { min-height: 60px; padding-block: .15rem; background: #17110d; }
body:has(.kaldi-hero) .kaldi-header .brand img { filter: brightness(0) invert(1); }
body:has(.kaldi-hero) .kaldi-header nav { gap: clamp(.65rem, 1.55vw, 1.7rem); font-size: clamp(.9rem, 1.1vw, 1.05rem); }
.kaldi-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(365px, 24.85vw, 470px);
  padding: 2rem clamp(1rem, 7.45vw, 9rem);
  color: var(--white);
  background: #20140d;
  overflow: hidden;
}
.kaldi-hero .hero-copy { position: relative; z-index: 1; width: min(100%, 39rem); padding: 0; }
.kaldi-hero .eyebrow { color: #fff1e3; margin: 0 0 .48rem; letter-spacing: .29em; }
.kaldi-hero h1 { font-size: clamp(3.25rem, 4.75vw, 5.5rem); line-height: .91; margin: 0 0 1.45rem; text-wrap: initial; }
.kaldi-hero .hero-last { position: relative; color: #ffd6a7; font-size: .91em; font-style: italic; }
.kaldi-hero .hero-last::after { content: ''; position: absolute; left: 105%; bottom: .18em; width: 1.4em; height: .055em; background: #f7c890; border-radius: 100% 4% 90% 35%; transform: rotate(-12deg); }
.kaldi-hero .hero-copy > p:not(.eyebrow) { color: #fff7ee; max-width: 27rem; font-size: clamp(.95rem, 1.23vw, 1.18rem); line-height: 1.34; }
.kaldi-hero .actions { margin-top: 1.16rem; gap: 1.15rem; }
.kaldi-hero .button { min-height: 45px; padding: .68rem 1.12rem; gap: .7rem; }
.hero-outline { border-color: #f3dcca; background: #241a1380; color: white; }
.hero-outline:hover { background: #4c3526; }
.hero-outline svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.kaldi-hero .hero-visual { position: absolute; z-index: -1; inset: 0 0 0 14%; min-height: 0; }
.kaldi-hero .hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; filter: sepia(.27) saturate(1.18) brightness(1.12); object-position: 50% 56%; }
.kaldi-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #1c120b 1%, #1c120bf2 16%, #1c120bc2 31%, #1c120b32 48%, transparent 67%), linear-gradient(0deg, #26140962, transparent 34%); }
.kaldi-hero .stamp { display: none; }
.kaldi-hero .photo-label {
  z-index: 1;
  inset: auto clamp(1rem, 7.45vw, 9rem) 1.4rem auto;
  padding: .28rem .8rem;
  border: 1px solid #f7ddbc66;
  border-radius: 2rem;
  background: #1b120dce;
  color: #ffead3;
  font-size: .67rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.kaldi-visit-now {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem 1.35rem;
  padding: .4rem 1rem;
  background: #f6e9d9;
  color: #392619;
  font-size: .85rem;
}
.kaldi-visit-now > span { display: flex; flex-wrap: wrap; column-gap: .75rem; }
.kaldi-visit-now a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; text-decoration: underline; text-underline-offset: .18em; }
.workshop-next-label { margin: 1rem 0 .3rem; color: #59371f; font-size: .84rem; font-weight: 700; }
.date-row-next { padding-inline: .55rem; background: #f4e6d5; border-radius: .45rem; }
.workshop-next-meta { display: block; }
.workshop-alert { margin-block: .85rem; }
.machine-demo { padding: clamp(1rem, 3vw, 2rem); margin-block: 1.75rem; background: #f2e5d6; border: 1px solid #d6c3af; scroll-margin-top: 1rem; }
.machine-demo h2 { margin-top: .35rem; }
.machine-demo .actions { margin-top: .9rem; }
.machine-comparison { margin-block: 2.5rem; }
.machine-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 1.3rem; }
.machine-types article { min-width: 0; padding: clamp(.9rem, 2vw, 1.5rem); border: 1px solid #dbc8b4; border-radius: .55rem; background: #fff9f0; }
.machine-types figure { margin: 0; }
.machine-types img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .3rem; }
.machine-types figcaption { margin-top: .45rem; font-size: .8rem; line-height: 1.4; }
.machine-types h3, .machine-alternatives h3 { margin-top: 1rem; }
.machine-types dl, .machine-alternatives dl { margin: 1rem 0 0; }
.machine-types dl > div, .machine-alternatives dl > div { padding-block: .55rem; border-top: 1px solid #e3d3c2; }
.machine-comparison dt { font-weight: 700; }
.machine-comparison dd { margin-left: 0; }
.machine-alternatives { margin-top: 1.5rem; padding: .8rem clamp(.9rem, 2vw, 1.5rem); background: #f1e3d4; border-radius: .4rem; }

.kaldi-services, .kaldi-visit-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; background: linear-gradient(105deg, #453022, #6b4c34 65%, #493627); color: #fff4e9; padding: .35rem clamp(1rem, 8vw, 9rem); }
.kaldi-services a { display: flex; align-items: center; justify-content: center; min-height: 53px; padding-block: .15rem; gap: clamp(.45rem, 1vw, 1rem); font-weight: 600; font-size: .95rem; }
.kaldi-services svg, .kaldi-visit-bar svg { width: 34px; height: 34px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.kaldi-services small { display: block; color: #f6dfca; font-weight: 400; line-height: 1.2; }
.kaldi-services a { transition: background-color .2s ease, color .2s ease; }
.kaldi-services a:hover, .kaldi-services a:focus-visible { background: #281a164d; color: #ffd7a6; text-decoration: none; }
.kaldi-welcome.section { padding: 0; gap: 0; grid-template-columns: 43% 1fr; align-items: stretch; background: #f6ebdf; }
.welcome-photo { position: relative; min-height: clamp(264px, 17.2vw, 335px); margin: 0; }
.welcome-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 27%; }
.kaldi-welcome > div { display: flex; flex-direction: column; justify-content: center; padding: 1.3rem clamp(1.25rem, 5.55vw, 7rem); padding-right: min(37%, 305px); background: url('/assets/snellestraat-8.svg') right bottom / min(36%, 295px) auto no-repeat, url('/assets/paper-grain.svg') repeat, linear-gradient(115deg, #f4e6d7, #fff9f1); }
.kaldi-welcome .eyebrow { margin-bottom: .65rem; }
.kaldi-welcome h2 { max-width: 27rem; font-size: clamp(2.05rem, 2.55vw, 3.3rem); line-height: .96; margin: 0 0 .55rem; text-wrap: initial; }
.kaldi-welcome p:not(.eyebrow) { max-width: 25rem; font-size: .95rem; line-height: 1.38; color: var(--ink); }
.kaldi-welcome p + p { margin-top: .35rem; }
.kaldi-welcome .welcome-link { color: white; background: #251c15; padding: .5rem .9rem; gap: .65rem; min-height: 40px; margin-top: .15rem; }

.kaldi-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding: .85rem clamp(.75rem, 1.2vw, 1.5rem); background: url('/assets/paper-grain.svg'), #f8f0e5; }
.kaldi-cards > a { position: relative; isolation: isolate; display: flex; align-items: end; min-height: clamp(144px, 9.4vw, 196px); overflow: hidden; border-radius: .9rem; padding: .85rem clamp(.85rem, 2vw, 2rem); color: white; background: #2c1a10; }
.kaldi-cards img, .kaldi-cards a::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.kaldi-cards a::after { content: ''; background: linear-gradient(78deg, #1b1009ca, transparent 83%), linear-gradient(0deg, #1b1009d9 1%, transparent 84%); }
.kaldi-cards img { transition: transform .35s ease; filter: sepia(.12) saturate(.88); }
.kaldi-coffee-card img { object-position: center 83%; }
.kaldi-cards a:hover img, .kaldi-cards a:focus-visible img { transform: scale(1.055); }
.kaldi-cards strong { display: block; font: 400 clamp(1.25rem, 2.1vw, 2rem)/1.05 var(--serif); }
.kaldi-cards small { display: block; margin-top: .35rem; font-size: .85rem; }
.kaldi-cards b { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #ffe5c8aa; border-radius: 50%; background: #24160fb3; color: white; transition: background-color .2s ease, color .2s ease; }
.kaldi-cards a:hover b, .kaldi-cards a:focus-visible b { background: var(--caramel); color: var(--espresso); }
.kaldi-visit-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); background: #201a15; padding-block: .9rem; }
.kaldi-visit-bar a { display: flex; align-items: center; gap: .75rem; justify-content: center; text-align: left; font-size: .9rem; min-height: 44px; }
.kaldi-visit-bar a + a { border-left: 1px solid #78695a; }
.kaldi-visit-bar strong, .kaldi-visit-bar small { display: block; }
.kaldi-visit-bar small { color: #eadacd; }
.machine, .visit { background: #efe0d1; }
.agenda, .machine .machine-photo, .discovery article > img { border-radius: 1rem; }

/* Carry the shop's materials and colour into the rest of the homepage. */
main:has(.kaldi-hero) > :is(#ontdek, #machines, #workshops, #bezoek, .review-summary) { padding-inline: clamp(1rem, 7.45vw, 9rem); }
main:has(.kaldi-hero) > #ontdek { background: url('/assets/paper-grain.svg'), #fbf3e7; }
main:has(.kaldi-hero) .discovery { grid-template-columns: 1.18fr 1fr; align-items: start; gap: clamp(1rem, 3vw, 3rem); }
main:has(.kaldi-hero) .discovery article { overflow: hidden; border: 1px solid #d8c3ad; border-radius: .85rem; background: #fffaf3; }
main:has(.kaldi-hero) .discovery article:nth-child(2) { margin-top: clamp(1rem, 4.5vw, 4.5rem); }
main:has(.kaldi-hero) .discovery article > img { width: 100%; height: clamp(215px, 25vw, 420px); padding: 0; border-radius: 0; }
main:has(.kaldi-hero) .discovery article > div { padding: clamp(1rem, 2.3vw, 2.3rem); }
main:has(.kaldi-hero) .discovery h3 { font-size: clamp(1.55rem, 2.4vw, 2.5rem); }
main:has(.kaldi-hero) .discovery .number { color: #744421; font-size: .78rem; letter-spacing: .14em; }
main:has(.kaldi-hero) #machines { background: url('/assets/paper-grain.svg'), linear-gradient(115deg, #eee0ce, #f7eddf); }
main:has(.kaldi-hero) #machines .machine-photo { background: #fff8ed; padding: clamp(.45rem, 1.2vw, 1.15rem); border: 1px solid #bba188; }
main:has(.kaldi-hero) #machines .machine-photo img { border-radius: .45rem; }
main:has(.kaldi-hero) .review-summary { background: #f9efe1; border-block: 1px solid #dfccba; }
main:has(.kaldi-hero) .review-summary .review-score strong { color: #70401f; font-family: var(--serif); font-weight: 400; }
main:has(.kaldi-hero) #workshops { background: radial-gradient(ellipse at 95% 0%, #4b3021, #231812 74%); }
main:has(.kaldi-hero) #workshops .eyebrow, main:has(.kaldi-hero) #workshops .facts strong { color: var(--caramel); }
main:has(.kaldi-hero) #workshops .agenda { background: url('/assets/paper-grain.svg'), #fff6e9; border: 1px solid #ddc1a6; box-shadow: 0 20px 55px #120b0759; }
main:has(.kaldi-hero) #workshops .agenda-heading { border-bottom: 1px solid #e1c9b4; padding-bottom: .8rem; }
main:has(.kaldi-hero) #workshops .date-square { border-radius: .45rem; background: #eddbc5; }
main:has(.kaldi-hero) #bezoek { background: url('/assets/paper-grain.svg'), #f7eadb; }
main:has(.kaldi-hero) #bezoek .hours { border-top: 1px solid #bdaa96; }

@media (max-width: 940px) {
  .kaldi-header { flex-wrap: wrap; }
  .kaldi-header #hoofdnavigatie { order: 4; width: 100%; display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem .8rem; text-align: left; }
  .kaldi-header .kaldi-menu { display: block; margin-left: auto; }
  .kaldi-menu[aria-expanded="true"] + #hoofdnavigatie { display: grid; }
  .kaldi-more > div { position: static; padding: 0; border: 0; background: transparent; }
  .kaldi-services { padding-inline: 1rem; }
  .kaldi-services a { gap: .3rem; font-size: .83rem; }
  .kaldi-services svg { width: 22px; height: 22px; }
  .kaldi-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kaldi-welcome > div { padding-right: clamp(1.25rem, 5.55vw, 7rem); padding-bottom: 8rem; background-size: 10rem auto, auto, auto; }
}

@media (max-width: 720px) {
  .machine-types { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .kaldi-visit-now { flex-wrap: nowrap; justify-content: space-between; gap: .75rem; font-size: .78rem; }
  .kaldi-visit-now > span { flex-direction: column; }
  .kaldi-visit-now a { flex: none; }
  .kaldi-header .brand { width: 78px; height: 46px; }
  .kaldi-header .brand img { width: 118px; height: 118px; }
  .kaldi-header .button.small { padding: .6rem .75rem; }
  .kaldi-header #hoofdnavigatie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kaldi-hero { min-height: 360px; }
  .kaldi-hero h1 { font-size: clamp(2.55rem, 9.25vw, 4rem); }
  .kaldi-hero .hero-last::after { display: none; }
  .kaldi-hero .hero-visual { left: 0; }
  .kaldi-hero .hero-visual > img { object-position: 63% 50%; }
  .kaldi-hero::after { background: linear-gradient(90deg, #20140deb, #20140d9e 62%, #20140d59), linear-gradient(0deg, #20140d77, transparent 75%); }
  .kaldi-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .75rem; }
  .kaldi-services a { justify-content: start; gap: .55rem; }
  .kaldi-welcome.section { grid-template-columns: 1fr; }
  .welcome-photo { min-height: clamp(255px, 65vw, 350px); }
  .kaldi-cards { gap: .55rem; }
  .kaldi-cards > a { padding: .7rem; min-height: 133px; }
  .kaldi-visit-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: .6rem; }
  .kaldi-visit-bar a { font-size: .83rem; }
  .kaldi-visit-bar a + a { border-left: 0; }
  .kaldi-visit-bar svg { width: 26px; height: 26px; }
  .kaldi-hero .photo-label { display: none; }
  main:has(.kaldi-hero) .discovery { grid-template-columns: 1fr; }
  main:has(.kaldi-hero) .discovery article:nth-child(2) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kaldi-cards img, .kaldi-cards b, .kaldi-services a { transition: none; }
  .kaldi-cards a:hover img, .kaldi-cards a:focus-visible img { transform: none; }
}
