:root {
  --ink: #171713;
  --paper: #f3efdf;
  --paper-deep: #e9e2cc;
  --acid: #d8f151;
  --pink: #f2a9c3;
  --blue: #9fc4ee;
  --orange: #f2a45e;
  --white: #fffdf7;
  --line: 2px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(23, 23, 19, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 23, 19, .055) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

body.dialog-open { overflow: hidden; }

button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, a, input, select { touch-action: manipulation; }
button { border: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: var(--line);
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: var(--line);
  background: var(--paper);
}

.brand {
  position: relative;
  width: max-content;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: .8;
  letter-spacing: -4px;
  text-decoration: none;
}
.brand span:last-of-type { font-style: italic; }
.brand i {
  position: absolute;
  right: -9px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.header-note {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.header-link {
  justify-self: end;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 660px;
  border-bottom: var(--line);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(24px, 6vw, 100px);
}

.eyebrow,
.section-number,
.manifesto-kicker {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(70px, 8.2vw, 128px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.075em;
}
h1 em { font-weight: 700; }

.hero-intro {
  max-width: 500px;
  margin: 44px 0 0;
  padding-left: 100px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
}

.hero-cabinet {
  position: relative;
  min-height: 660px;
  border-left: var(--line);
  background: var(--pink);
}

.cabinet-photo {
  position: absolute;
  inset: 9% 12% 11% 10%;
  border: var(--line);
  background: var(--ink);
  box-shadow: 12px 12px 0 rgba(23, 23, 19, .18);
  transform: rotate(2.5deg);
  overflow: hidden;
}
.cabinet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08);
}
.cabinet-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(216, 241, 81, .45));
  mix-blend-mode: color;
}
.cabinet-photo span {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  border-top: var(--line);
  border-left: var(--line);
  background: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.material-tab {
  position: absolute;
  z-index: 2;
  padding: 8px 18px;
  border: var(--line);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}
.tab-clay { top: 5%; left: 3%; transform: rotate(-7deg); }
.tab-paint { top: 24%; right: 2%; background: var(--blue); transform: rotate(7deg); }
.tab-flour { right: 5%; bottom: 16%; background: var(--acid); transform: rotate(-5deg); }
.tab-stems { bottom: 7%; left: 1%; background: var(--orange); transform: rotate(6deg); }

.round-stamp {
  position: absolute;
  z-index: 2;
  right: 2%;
  top: 47%;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 2px dashed var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(12deg);
}

.catalogue { padding: 90px clamp(20px, 4vw, 64px) 110px; }

.catalogue-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  max-width: 1312px;
  margin: 0 auto 46px;
}
.section-number { margin-bottom: 12px; }
h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.055em;
}
.catalogue-note {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  text-align: right;
}

.control-bench {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(200px, .8fr) minmax(230px, .8fr);
  max-width: 1312px;
  margin: 0 auto;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-control,
.filter-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 15px 18px 17px;
  border-right: var(--line);
}
.search-control > span:first-child,
.filter-control > span:first-child {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.input-wrap,
.select-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg,
.select-wrap svg {
  position: absolute;
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  pointer-events: none;
}
.input-wrap svg { left: 0; }
.select-wrap svg { right: 0; }
.input-wrap input,
.select-wrap select {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
}
.input-wrap input { padding: 0 8px 0 34px; }
.select-wrap select { appearance: none; padding: 0 34px 0 0; }
.input-wrap input::placeholder { color: #6d6a60; font-weight: 400; }

.saved-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 18px;
  background: var(--acid);
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease;
}
.saved-filter:hover { background: #c8e436; }
.saved-filter:active { background: #b8d02f; }
.saved-filter[aria-pressed="true"] { color: var(--white); background: var(--ink); }
.saved-filter svg {
  width: 28px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
}
.saved-filter[aria-pressed="true"] svg { fill: var(--pink); }
.saved-filter span { display: flex; flex-direction: column; }
.saved-filter b { font-size: 16px; }
.saved-filter small { font-size: 11px; }

.results-line {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1312px;
  margin: 34px auto 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.results-line .rule { flex: 1; height: 1px; background: var(--ink); }

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1312px;
  margin: 0 auto;
  border-top: var(--line);
  border-left: var(--line);
}

.workshop-card {
  --card-color: var(--orange);
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 345px;
  border-right: var(--line);
  border-bottom: var(--line);
  background: var(--white);
  overflow: hidden;
}
.workshop-card:nth-child(4n + 2),
.workshop-card:nth-child(4n + 3) { background: #ebe4d1; }
.workshop-card[data-category="Ceramics"] { --card-color: var(--blue); }
.workshop-card[data-category="Painting"] { --card-color: var(--pink); }
.workshop-card[data-category="Floristry"] { --card-color: var(--acid); }
.workshop-card[data-category="Baking"] { --card-color: var(--orange); }

.card-photo {
  position: relative;
  min-height: 100%;
  border-right: var(--line);
  background: var(--card-color);
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.05);
  transition: transform 350ms cubic-bezier(.2, .75, .3, 1);
}
.workshop-card:hover .card-photo img { transform: scale(1.045); }
.card-photo::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, .8);
  pointer-events: none;
}
.card-index {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  min-width: 58px;
  padding: 8px;
  border-top: var(--line);
  border-right: var(--line);
  background: var(--card-color);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 26px 22px;
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 30px;
}
.category-label {
  padding: 4px 9px 3px;
  border: 1px solid var(--ink);
  background: var(--card-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pin-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pin-mark svg { width: 15px; fill: var(--pink); stroke: var(--ink); stroke-width: 1.8; }

.workshop-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(30px, 2.7vw, 44px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
}
.card-date {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.card-summary {
  display: -webkit-box;
  margin: 0;
  color: #4f4d45;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}
.card-price { font-size: 25px; font-weight: 900; letter-spacing: -.04em; }
.open-item {
  min-height: 46px;
  padding: 10px 14px;
  border: var(--line);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.open-item:hover { color: var(--white); background: var(--ink); transform: translate(-2px, -2px); }
.open-item:active { transform: translate(0, 0); }

.empty-state {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: 1312px;
  min-height: 240px;
  margin: 0 auto;
  padding: 34px;
  border: var(--line);
  background: var(--pink);
  box-shadow: var(--shadow);
}
.empty-state[hidden] { display: none; }
.empty-state svg { width: 100px; fill: none; stroke: currentColor; stroke-width: 2; }
.empty-state .eyebrow { margin-bottom: 8px; }
.empty-state h3 { margin: 0; font-family: var(--serif); font-size: 38px; }
.empty-state p:last-child { margin: 4px 0 0; }
.empty-state button {
  min-height: 48px;
  padding: 10px 18px;
  border: var(--line);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
}
.empty-state button:active { box-shadow: 2px 2px 0 var(--ink); transform: translate(2px, 2px); }

.manifesto {
  position: relative;
  display: grid;
  grid-template-columns: .6fr 2fr .8fr;
  align-items: start;
  gap: 50px;
  padding: 90px clamp(24px, 7vw, 112px);
  border-top: var(--line);
  border-bottom: var(--line);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.manifesto-text {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.045em;
}
.manifesto-text em { color: var(--acid); }
.manifesto-mark { display: grid; grid-template-columns: repeat(2, 70px); transform: rotate(7deg); }
.manifesto-mark span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid var(--white);
  font-family: var(--serif);
  font-size: 28px;
}
.manifesto-mark span:nth-child(1) { background: var(--pink); color: var(--ink); }
.manifesto-mark span:nth-child(4) { background: var(--blue); color: var(--ink); }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  min-height: 170px;
  padding: 40px clamp(20px, 4vw, 64px);
  background: var(--orange);
}
.footer-brand { font-size: 64px; letter-spacing: -7px; }
footer p { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
footer > a:last-child { justify-self: end; font-weight: 800; text-underline-offset: 4px; }

.detail-dialog {
  width: min(1120px, calc(100vw - 56px));
  max-width: none;
  max-height: calc(100vh - 56px);
  margin: auto;
  padding: 0;
  border: var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--ink);
  color: var(--ink);
  overflow: auto;
}
.detail-dialog::backdrop { background: rgba(23, 23, 19, .74); backdrop-filter: blur(3px); }
.detail-dialog[open] { animation: sheet-in 260ms cubic-bezier(.2, .8, .25, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px) rotate(-.5deg); } }

.detail-sheet { min-height: 660px; }
.detail-bar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: var(--line);
  background: var(--acid);
}
.detail-bar p { margin: 0; padding: 10px 18px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.close-detail {
  align-self: stretch;
  min-width: 132px;
  padding: 10px 18px;
  border-left: var(--line);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.close-detail:hover { color: var(--white); background: var(--ink); }
.close-detail:active { color: var(--white); background: #36362f; }
.detail-layout { display: grid; grid-template-columns: 45% 55%; }
.detail-visual {
  position: relative;
  min-height: 600px;
  border-right: var(--line);
  background: var(--detail-color, var(--pink));
  overflow: hidden;
}
.detail-visual img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; filter: saturate(.82) contrast(1.06); }
.detail-visual::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.8); }
.detail-number {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  padding: 12px 16px;
  border-right: var(--line);
  border-bottom: var(--line);
  background: var(--detail-color, var(--pink));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.detail-copy { display: flex; flex-direction: column; padding: clamp(30px, 5vw, 66px); }
.detail-copy .category-label { align-self: start; margin-bottom: 26px; background: var(--detail-color, var(--pink)); }
.detail-copy h2 { font-size: clamp(50px, 6vw, 86px); }
.detail-body { margin: 30px 0; font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: auto;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.fact { min-height: 76px; padding: 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.fact dt { margin-bottom: 3px; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.fact dd { margin: 0; font-size: 14px; font-weight: 800; }
.save-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  padding: 12px 18px;
  border: var(--line);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease;
}
.save-item:hover { transform: translate(-2px, -2px); }
.save-item:active { box-shadow: 2px 2px 0 var(--ink); transform: translate(2px, 2px); }
.save-item[aria-pressed="true"] { background: var(--pink); }
.save-item svg { width: 22px; fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.save-item[aria-pressed="true"] svg { fill: var(--ink); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 560px; }
  .hero-cabinet { min-height: 560px; border-top: var(--line); border-left: 0; }
  .control-bench { grid-template-columns: 1fr 1fr; }
  .filter-control { border-right: 0; }
  .saved-filter { grid-column: 1 / -1; border-top: var(--line); }
  .workshop-card { grid-template-columns: 38% 62%; }
  .manifesto { grid-template-columns: 1fr 3fr; }
  .manifesto-mark { display: none; }
}

@media (max-width: 720px) {
  html { scroll-behavior: auto; }
  .site-header { grid-template-columns: 1fr auto; min-height: 68px; padding: 10px 18px; }
  .header-note { display: none; }
  .header-link { font-size: 12px; }
  .brand { font-size: 33px; }
  .hero { min-height: 0; }
  .hero-copy { min-height: 455px; padding: 58px 20px 48px; }
  h1 { font-size: clamp(59px, 20vw, 78px); }
  .hero-intro { margin-top: 32px; padding-left: 45px; font-size: 17px; }
  .hero-cabinet { min-height: 430px; }
  .cabinet-photo { inset: 9% 9% 12% 8%; }
  .round-stamp { width: 88px; height: 88px; font-size: 10px; }
  .material-tab { padding: 5px 11px; font-size: 17px; }
  .catalogue { padding: 68px 14px 80px; }
  .catalogue-heading { display: block; margin-bottom: 30px; padding: 0 6px; }
  .catalogue-heading h2 { max-width: 320px; font-size: 51px; }
  .catalogue-note { margin-top: 18px; text-align: left; }
  .control-bench { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--ink); }
  .search-control, .filter-control { min-height: 83px; border-right: 0; border-bottom: var(--line); }
  .saved-filter { grid-column: auto; border-top: 0; }
  .results-line { margin-top: 30px; padding: 0 2px; }
  .results-line .rule { display: none; }
  .results-line { justify-content: space-between; }
  .workshop-grid { grid-template-columns: 1fr; }
  .workshop-card { grid-template-columns: 43% 57%; min-height: 330px; }
  .workshop-card:nth-child(4n + 2), .workshop-card:nth-child(4n + 3) { background: var(--white); }
  .workshop-card:nth-child(even) { background: #ebe4d1; }
  .card-copy { padding: 18px 16px 16px; }
  .card-topline { margin-bottom: 20px; }
  .workshop-card h3 { font-size: 29px; }
  .card-summary { font-size: 13px; -webkit-line-clamp: 3; }
  .card-footer { display: block; padding-top: 12px; }
  .card-price { display: block; margin-bottom: 10px; font-size: 21px; }
  .open-item { width: 100%; }
  .empty-state { grid-template-columns: 1fr; gap: 15px; padding: 24px; }
  .empty-state svg { width: 70px; }
  .empty-state h3 { font-size: 32px; }
  .manifesto { grid-template-columns: 1fr; gap: 12px; padding: 70px 22px; }
  .manifesto-text { font-size: 43px; }
  footer { grid-template-columns: 1fr; align-items: start; min-height: 260px; }
  footer p { text-align: left; }
  footer > a:last-child { justify-self: start; }
  .detail-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); box-shadow: 7px 7px 0 var(--ink); }
  .detail-bar p { padding: 8px 10px; font-size: 9px; }
  .close-detail { min-width: 106px; padding: 8px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-visual { min-height: 235px; max-height: 235px; border-right: 0; border-bottom: var(--line); }
  .detail-visual img { min-height: 235px; height: 235px; }
  .detail-copy { padding: 28px 20px 34px; }
  .detail-copy .category-label { margin-bottom: 18px; }
  .detail-copy h2 { font-size: 50px; }
  .detail-body { margin: 22px 0; font-size: 18px; }
  .fact { min-height: 70px; }
}

@media (max-width: 380px) {
  .workshop-card { grid-template-columns: 39% 61%; }
  .card-summary { display: none; }
  .card-date { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
