:root {
  --ink: #142c34;
  --muted: #62767c;
  --paper: #f7f9f8;
  --surface: #fff;
  --line: #d8e3e4;
  --teal: #135064;
  --coral: #f28a65;
  --sky: #dceff3;
  --yellow: #f3cb68;
  --display: "Outfit", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 14px/1.65 var(--body); }
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0; }

.announcement {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px;
  min-height: 36px; padding: 7px 20px; color: #113c4a; background: var(--yellow);
  font-size: 10px; font-weight: 700;
}
.announcement a { border-bottom: 1px solid currentColor; font-weight: 700; }
.announcement a span { margin-left: 4px; font-size: 13px; }
.site-header {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; min-height: 80px; padding: 0 max(28px, calc((100% - 1280px) / 2));
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { display: block; width: 42px; height: 42px; flex: 0 0 auto; }
.brand-name { color: var(--teal); font: 700 19px/1.1 var(--display); }
.brand-subtitle { display: block; margin-top: 5px; color: #698087; font: 700 9px/1.1 var(--body); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: #405d66; font-size: 11px; font-weight: 700; }
.main-nav a:hover { color: #d36746; }
.cart-trigger {
  justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 38px;
  padding: 7px 9px 7px 15px; border: 1px solid var(--teal); border-radius: 4px;
  background: var(--teal); color: white; font-size: 11px; font-weight: 700;
}
.cart-trigger:hover { background: #1c6479; }
.cart-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 4px; border-radius: 3px; background: var(--coral); color: #123b48; font-size: 10px; }

.hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: min(640px, calc(100svh - 162px)); padding: 70px max(28px, calc((100% - 1280px) / 2));
  overflow: hidden; color: #fff; background: #10445a;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: url("./assets/puzzle-hero.png") center / cover; }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, rgba(8,48,64,.18), transparent 58%); }
.hero-inner { max-width: 590px; }
.eyebrow { margin: 0 0 22px; color: #d5ecf1; font-size: 10px; font-weight: 700; text-transform: uppercase; }
h1 { margin-bottom: 22px; font-size: 100px; font-weight: 600; line-height: .93; }
.hero-inner > p:not(.eyebrow) { max-width: 430px; margin-bottom: 29px; color: #e4f1f3; font-size: 16px; line-height: 1.75; }
.hero-link {
  display: inline-flex; align-items: center; gap: 24px; min-height: 46px; padding: 11px 17px;
  border-radius: 4px; background: var(--coral); color: #123641; font-size: 11px; font-weight: 700;
}
.hero-link:hover { background: #ffa583; }
.hero-link span { font-size: 18px; font-weight: 400; line-height: 1; }
.hero-caption { position: absolute; right: max(28px, calc((100% - 1280px) / 2)); bottom: 28px; color: white; font-size: 9px; font-weight: 700; }

.intro, .catalog-section, .info-section, .contact-section {
  scroll-margin-top: 96px; padding-inline: max(28px, calc((100% - 1280px) / 2));
}
.section-label { margin: 0 0 18px; color: #c45f41; font-size: 10px; font-weight: 700; }
.intro {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start;
  padding-block: 95px 101px; background: var(--sky);
}
.intro h2 { max-width: 740px; margin-bottom: 19px; font-size: 54px; font-weight: 600; line-height: 1.1; }
.intro > div > p { max-width: 660px; margin: 0; color: #4c6b72; font-size: 15px; line-height: 1.85; }

.catalog-section { padding-block: 95px 110px; background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 31px; }
.section-head h2 { margin: 0; font-size: 54px; font-weight: 600; line-height: 1.1; }
.section-head > p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.catalog-toolbar { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 5px; background: #f7faf9; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field span { color: #58737b; font-size: 10px; font-weight: 700; }
.field input, .field select {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid #cadcde; border-radius: 4px;
  background: white; color: var(--ink); font-size: 12px; appearance: none;
}
.field input::placeholder { color: #82959a; }
.field select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23135064' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 13px center; background-repeat: no-repeat;
}
.result-count { margin: 20px 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.puzzle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.puzzle-card {
  display: flex; flex-direction: column; min-width: 0; padding: 17px;
  border: 1px solid #e0e8e8; border-radius: 5px; background: #fbfcfb;
}
.puzzle-image {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 2px; background-image: url("./assets/puzzle-artworks.png");
  background-size: 300% 200%; background-repeat: no-repeat;
}
.art-amsterdam { background-position: 0 0; }
.art-noordzee { background-position: 50% 0; }
.art-tulpen { background-position: 100% 0; }
.art-onderwater { background-position: 0 100%; }
.art-vormen { background-position: 50% 100%; }
.art-sterrennacht { background-position: 100% 100%; }
.puzzle-meta { display: flex; justify-content: space-between; gap: 10px; margin: 19px 0 9px; color: #b65a3e; font-size: 10px; font-weight: 700; }
.puzzle-card h3 { margin: 0 0 5px; font-size: 25px; font-weight: 600; line-height: 1.2; }
.puzzle-theme { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.puzzle-details { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding: 14px 0; border-top: 1px solid var(--line); }
.puzzle-details span { color: #52727a; font-size: 11px; font-weight: 700; }
.puzzle-details strong { font-size: 15px; font-weight: 700; white-space: nowrap; }
.add-button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 39px; padding: 7px 10px 7px 13px; border: 1px solid var(--teal); border-radius: 4px;
  background: white; color: var(--teal); font-size: 11px; font-weight: 700;
}
.add-button span { font-size: 18px; font-weight: 400; line-height: 1; }
.add-button:hover { color: white; background: var(--teal); }
.empty-results { padding: 30px; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.catalog-note { margin: 24px 0 0; color: var(--muted); font-size: 10px; }

.quote-section { display: grid; place-items: center; gap: 10px; min-height: 285px; padding: 55px 25px; background: var(--yellow); color: #164350; text-align: center; }
.quote-section p { max-width: 800px; margin: 0; font: 600 43px/1.18 var(--display); }
.quote-section span { font-size: 10px; font-weight: 700; }
.info-section { padding-block: 100px 110px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-grid > div { min-height: 205px; padding: 28px 30px; border-right: 1px solid var(--line); }
.info-grid > div:first-child { padding-left: 0; }
.info-grid > div:last-child { border-right: 0; }
.info-grid span { color: #bc5d3f; font-size: 11px; font-weight: 700; }
.info-grid h3 { margin: 30px 0 9px; font-size: 27px; font-weight: 600; }
.info-grid p { max-width: 300px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

.contact-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-block: 98px 110px;
  background: #153d4a; color: white;
}
.contact-section .section-label { color: #f6a889; }
.contact-section h2 { margin: 0; font-size: 58px; font-weight: 600; line-height: 1.1; }
.contact-section > div:last-child { align-self: end; }
.contact-section > div:last-child > p:first-child { color: #cde1e3; font-size: 13px; }
.contact-section a { font: 500 31px/1.3 var(--display); overflow-wrap: anywhere; }
.contact-section a:hover { color: #f3a482; }
.contact-address { margin-top: 29px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.25); }
.contact-address span { display: block; margin-bottom: 8px; color: #f6a889; font-size: 10px; font-weight: 700; }
.contact-address address { color: #d2e3e4; font-size: 13px; font-style: normal; line-height: 1.7; }
.domain { margin: 24px 0 0; color: #adc7cb; font-size: 11px; font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px max(28px, calc((100% - 1280px) / 2)); color: var(--muted); font-size: 11px; }
.site-footer a:hover { color: var(--teal); }

.cart-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(12,41,50,.58); }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-direction: column;
  width: min(460px, 100%); padding: 28px 30px; background: var(--surface); box-shadow: -12px 0 40px rgba(0,0,0,.14);
  transform: translateX(102%); transition: transform .25s ease;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 37px; font-weight: 600; line-height: 1; }
.cart-head .section-label { margin-bottom: 8px; }
.cart-close { align-self: start; border: 0; background: transparent; color: var(--ink); font-size: 32px; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-empty { padding: 45px 0; color: var(--muted); font-size: 12px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-item h3 { margin: 0 0 5px; font-size: 22px; font-weight: 600; }
.cart-item p { margin: 0; color: var(--muted); font-size: 11px; }
.cart-item > strong { font-size: 12px; white-space: nowrap; }
.qty-controls { display: inline-flex; align-items: center; gap: 15px; margin-top: 15px; }
.qty-controls button { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); }
.qty-controls span { min-width: 12px; text-align: center; font-size: 12px; }
.cart-bottom { padding-top: 20px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; gap: 15px; font-size: 14px; font-weight: 700; }
.cart-bottom p { margin: 11px 0 20px; color: var(--muted); font-size: 11px; }
.checkout-button { width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 4px; background: var(--teal); color: white; font-size: 11px; font-weight: 700; }
.checkout-button:hover:not(:disabled) { background: #1c6479; }
.checkout-button:disabled { cursor: not-allowed; opacity: .45; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; row-gap: 0; padding: 13px 28px 11px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 28px; overflow-x: auto; padding-top: 13px; white-space: nowrap; }
  .intro, .contact-section { gap: 35px; }
}
@media (max-width: 760px) {
  .site-header { padding-inline: 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .main-nav { gap: 22px; }
  .hero { min-height: min(610px, 76svh); padding: 68px 20px; align-items: end; }
  .hero-media { background-position: 52% center; }
  .hero::before { background: linear-gradient(0deg, rgba(8,47,62,.91), rgba(8,47,62,.12) 80%); }
  h1 { font-size: 74px; }
  .hero-inner > p:not(.eyebrow) { font-size: 14px; }
  .hero-caption { display: none; }
  .intro, .catalog-section, .info-section, .contact-section { padding-inline: 20px; }
  .intro { grid-template-columns: 1fr; gap: 13px; padding-block: 75px 85px; }
  .intro h2 { font-size: 42px; }
  .catalog-section, .info-section { padding-block: 78px 90px; }
  .section-head { display: block; margin-bottom: 27px; }
  .section-head h2 { font-size: 43px; }
  .section-head > p { margin-top: 11px; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; padding: 12px; }
  .search-field { grid-column: 1 / -1; }
  .puzzle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .puzzle-card { padding: 13px; }
  .puzzle-card h3 { font-size: 21px; }
  .puzzle-details { align-items: start; flex-direction: column; gap: 2px; }
  .quote-section { min-height: 250px; }
  .quote-section p { font-size: 31px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid > div, .info-grid > div:first-child { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .info-grid > div:last-child { border-bottom: 0; }
  .info-grid h3 { margin-top: 14px; }
  .contact-section { grid-template-columns: 1fr; gap: 40px; padding-block: 78px 85px; }
  .contact-section h2 { font-size: 45px; }
  .contact-section a { font-size: 27px; }
  .site-footer { flex-wrap: wrap; padding-inline: 20px; }
}
@media (max-width: 520px) {
  .announcement { gap: 4px 9px; font-size: 9px; }
  .cart-trigger { gap: 5px; padding-left: 8px; font-size: 10px; }
  .brand-name { font-size: 14px; }
  .brand-subtitle { font-size: 8px; }
  h1 { font-size: 65px; }
  .puzzle-grid { grid-template-columns: 1fr; gap: 17px; }
  .puzzle-card { padding: 17px; }
  .puzzle-card h3 { font-size: 24px; }
  .puzzle-details { align-items: center; flex-direction: row; }
}
@media (max-width: 380px) {
  h1 { font-size: 57px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 12px; }
  .brand-subtitle { font-size: 7px; }
  .contact-section a { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart-drawer { transition: none; }
}
