:root {
  --paper: #f3efe6;
  --paper-deep: #e8e0d2;
  --ink: #201d1b;
  --muted: #68615a;
  --purple: #6047df;
  --purple-dark: #4431af;
  --coral: #ff7255;
  --acid: #d6ee59;
  --white: #fffdf8;
  --line: rgba(32, 29, 27, 0.2);
  --shadow: 0 28px 70px rgba(38, 28, 22, 0.2);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  touch-action: manipulation;
}

button,
select,
a {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

.site-header {
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.wordmark {
  width: max-content;
  color: var(--ink);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: var(--coral);
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-link {
  min-height: 44px;
  justify-self: end;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.header-link svg,
.primary-link svg {
  width: 20px;
}

.hero {
  max-width: 1440px;
  min-height: 475px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 72px) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  background: var(--coral);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 6.2vw, 92px);
  font-weight: 750;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.hero h1 em {
  color: var(--purple);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.hero-intro {
  max-width: 560px;
  margin: 26px 0 24px;
  color: #514b46;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}

.primary-link {
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  display: inline-flex;
  gap: 24px;
  align-items: center;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background var(--ease), box-shadow var(--ease);
}

.primary-link:hover {
  background: #e4f780;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 555px);
  isolation: isolate;
}

.hero-visual img {
  width: 100%;
  height: 370px;
  border: 2px solid var(--ink);
  border-radius: 48% 48% 10px 10px;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.03);
}

.shape {
  position: absolute;
  z-index: -1;
}

.shape-one {
  width: 150px;
  height: 150px;
  top: -26px;
  right: -35px;
  border-radius: 50%;
  background: var(--coral);
}

.shape-two {
  width: 100px;
  height: 100px;
  bottom: -20px;
  left: -28px;
  background: var(--purple);
  transform: rotate(12deg);
}

.hero-stamp {
  position: absolute;
  right: -18px;
  bottom: 22px;
  width: 136px;
  height: 136px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--ink);
  background: var(--acid);
  text-align: center;
  transform: rotate(7deg);
}

.hero-stamp strong {
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 400;
  line-height: 0.9;
}

.hero-stamp span {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.category-ribbon {
  min-height: 62px;
  padding: 12px 24px;
  display: flex;
  gap: clamp(22px, 4vw, 64px);
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 24px);
  font-style: italic;
  white-space: nowrap;
}

.category-ribbon i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
}

.catalogue {
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 72px) 110px;
}

.section-heading {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 40px;
  align-items: end;
}

.section-heading h2,
.closing-note h2 {
  margin: 0;
  font-size: clamp(46px, 5.4vw, 78px);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.toolbar {
  padding: 20px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(200px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  background: rgba(255, 253, 248, 0.62);
}

.field {
  display: grid;
  gap: 8px;
}

.field > span:first-child {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.field-control > svg:not(.select-arrow) {
  position: absolute;
  left: 16px;
  width: 20px;
  pointer-events: none;
}

.field input,
.field select {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
}

.field input {
  padding: 0 16px 0 48px;
}

.field select {
  padding: 0 46px 0 16px;
  appearance: none;
}

.field input::placeholder {
  color: #77706a;
}

.select-arrow {
  position: absolute;
  right: 15px;
  width: 20px;
  pointer-events: none;
}

.saved-filter {
  min-width: 180px;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--paper);
  font-weight: 750;
  transition: color var(--ease), background var(--ease);
}

.saved-filter:hover,
.saved-filter[aria-pressed="true"] {
  color: var(--white);
  background: var(--purple);
}

.saved-filter svg,
.save-item svg {
  width: 20px;
  fill: transparent;
}

.saved-filter[aria-pressed="true"] svg,
.save-item[aria-pressed="true"] svg {
  fill: currentColor;
}

.saved-filter strong {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--ink);
  background: var(--acid);
  font-size: 12px;
}

.results-meta {
  margin: 32px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.results-meta p {
  margin: 0;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 2.5vw, 38px);
  row-gap: 54px;
}

.workshop-card {
  position: relative;
  min-width: 0;
}

.card-open {
  width: 100%;
  padding: 0;
  border: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  background: transparent;
  text-align: left;
}

.card-open::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
}

.workshop-card:has(.card-open:focus-visible) {
  outline: 3px solid var(--purple);
  outline-offset: 7px;
}

.card-image {
  position: relative;
  display: block;
  margin-bottom: 18px;
  border: 1.5px solid var(--ink);
  overflow: hidden;
  background: var(--paper-deep);
}

.card-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 65%, rgba(20, 16, 14, 0.28));
  pointer-events: none;
}

.card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 350ms ease, filter 250ms ease;
}

.workshop-card:hover .card-image img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.card-category,
.card-saved {
  position: absolute;
  z-index: 1;
  top: 12px;
  min-height: 30px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-category {
  left: 12px;
  color: var(--ink);
  background: var(--acid);
}

.card-saved {
  right: 12px;
  color: var(--white);
  background: var(--purple);
}

.card-saved svg {
  width: 14px;
  margin-right: 6px;
  fill: currentColor;
}

.card-date {
  display: block;
  margin: 0 0 7px;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-title-row {
  margin: 0;
}

.card-title-row .card-open {
  font-family: var(--serif);
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.card-title-row svg {
  width: 28px;
  flex: 0 0 auto;
  color: var(--coral);
  transition: transform var(--ease);
}

.workshop-card:hover .card-title-row svg {
  transform: translateX(4px);
}

.card-description {
  display: block;
  min-height: 48px;
  margin: 13px 0 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-meta {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4d4742;
  font-size: 12px;
}

.card-meta strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-state {
  min-height: 380px;
  padding: 70px 20px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: rgba(255, 253, 248, 0.55);
}

.empty-state svg {
  width: 72px;
  color: var(--purple);
  stroke-width: 2;
}

.empty-state h3 {
  margin: 18px 0 4px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
}

.empty-state p {
  max-width: 430px;
  margin: 0 0 22px;
  color: var(--muted);
}

.empty-state button {
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-weight: 750;
}

.closing-note {
  padding: 90px max(20px, calc((100vw - 1296px) / 2));
  color: var(--white);
  background: var(--purple);
  text-align: center;
}

.closing-note > p {
  margin: 0 0 20px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.closing-note h2 {
  max-width: 980px;
  margin: 0 auto 34px;
}

.closing-note a {
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--white);
  display: inline-flex;
  align-items: center;
  font-weight: 750;
  text-underline-offset: 4px;
}

footer {
  min-height: 110px;
  padding: 30px clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--white);
  background: var(--ink);
}

footer p {
  margin: 0;
  color: #c7c0b9;
  font-size: 12px;
}

footer p:last-child {
  justify-self: end;
}

.footer-mark {
  color: var(--white);
}

dialog {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  height: min(760px, calc(100dvh - 40px));
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(22, 17, 15, 0.72);
  backdrop-filter: blur(4px);
}

.detail-shell {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
}

.close-detail {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  transition: color var(--ease), background var(--ease);
}

.close-detail:hover {
  color: var(--white);
  background: var(--ink);
}

.close-detail svg {
  width: 22px;
}

.detail-media {
  position: relative;
  min-height: 0;
  background: var(--paper-deep);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.detail-media > span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--acid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-copy {
  padding: 72px clamp(34px, 5vw, 72px) 48px;
  overflow-y: auto;
}

.detail-kicker {
  margin: 0 0 15px;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-copy h2 {
  max-width: 530px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.detail-body {
  max-width: 550px;
  margin: 26px 0 34px;
  color: #554f49;
  font-size: 17px;
  line-height: 1.75;
}

.detail-facts {
  margin: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-facts div {
  padding: 19px 8px 19px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.detail-facts div:nth-child(even) {
  padding-left: 24px;
}

.detail-facts dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.detail-action-row {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.detail-action-row > div {
  display: grid;
}

.detail-action-row > div span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-action-row > div strong {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.save-item {
  min-height: 54px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--purple);
  font-weight: 750;
  transition: background var(--ease), color var(--ease);
}

.save-item:hover {
  background: var(--purple-dark);
}

.save-item[aria-pressed="true"] {
  color: var(--ink);
  background: var(--acid);
}

.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr minmax(330px, 0.72fr);
    gap: 32px;
  }

  .hero-visual img {
    height: 320px;
  }

  .header-note {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .workshop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .saved-filter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
  }

  .header-link {
    font-size: 0;
    text-decoration: none;
  }

  .header-link::before {
    content: "Browse";
    font-size: 13px;
  }

  .hero {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 34px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 60px);
  }

  .hero-intro {
    margin: 18px 0 20px;
    font-size: 15px;
    line-height: 1.55;
  }

  .primary-link {
    min-height: 48px;
  }

  .hero-visual {
    width: calc(100% - 20px);
    justify-self: start;
  }

  .hero-visual img {
    height: 205px;
    border-radius: 100px 100px 6px 6px;
  }

  .shape-one {
    width: 100px;
    height: 100px;
    right: -25px;
  }

  .shape-two {
    width: 70px;
    height: 70px;
  }

  .hero-stamp {
    right: -24px;
    bottom: 10px;
    width: 104px;
    height: 104px;
    padding: 14px;
  }

  .hero-stamp strong {
    font-size: 29px;
  }

  .hero-stamp span {
    font-size: 8px;
  }

  .category-ribbon {
    justify-content: flex-start;
  }

  .catalogue {
    padding-top: 62px;
    padding-bottom: 72px;
  }

  .section-heading {
    margin-bottom: 34px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-heading h2,
  .closing-note h2 {
    font-size: clamp(42px, 13vw, 55px);
  }

  .section-heading > p {
    font-size: 15px;
  }

  .toolbar {
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .saved-filter {
    min-width: 0;
    grid-column: auto;
  }

  .results-meta span {
    display: none;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .card-description {
    min-height: 0;
  }

  .closing-note {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  footer {
    min-height: 150px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  footer p:nth-of-type(1) {
    display: none;
  }

  dialog {
    width: 100vw;
    height: 100dvh;
    margin: 0;
  }

  .detail-shell {
    display: block;
    overflow-y: auto;
  }

  .detail-media {
    height: 38vh;
    min-height: 270px;
  }

  .detail-copy {
    padding: 38px 20px max(36px, env(safe-area-inset-bottom));
    overflow: visible;
  }

  .detail-copy h2 {
    padding-right: 20px;
    font-size: clamp(45px, 14vw, 62px);
  }

  .detail-body {
    margin: 22px 0 28px;
    font-size: 16px;
  }

  .detail-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .save-item {
    width: 100%;
  }

  .close-detail {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
  }
}

@media (max-width: 380px) {
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-facts div:nth-child(odd) {
    border-right: 0;
  }

  .detail-facts div:nth-child(even) {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
