/* Forma — in-person creative workshops.
   One voice: Bricolage Grotesque, ink on paper, fir-green fields,
   schedule-board rules. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/artifacts/forma-frontend--v1--s2--glm-5.3--impeccable--2026-09-18T13-38-41-102Z/assets/BricolageGrotesque-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --paper: #f6f3ec;
  --paper-card: #fbf9f3;
  --paper-deep: #efeadf;
  --ink: #21251e;
  --ink-body: #3d4137;
  --ink-soft: #5c6155;
  --fir: #1d3c2e;
  --fir-deep: #142c21;
  --marigold: #d9a02b;
  --marigold-ink: #7c5a10;
  --radius: 8px;
}

* , *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  scrollbar-color: rgba(33, 37, 30, 45%) rgba(33, 37, 30, 8%);
}

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--marigold); color: var(--ink); }
input, select { caret-color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
.intro :focus-visible, .footer :focus-visible { outline-color: var(--paper); }

.ic { width: 1em; height: 1em; flex: none; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 44px);
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px;
  top: -56px;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: .9rem;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top .18s ease-out;
}
.skip:focus { top: 12px; }

/* ---------- Masthead ---------- */

.masthead {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.masthead-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 13px;
}
.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-block: 4px;
}
.brand-dot {
  width: .32em;
  height: .32em;
  background: var(--marigold);
  border-radius: 2px;
  transform: rotate(45deg);
  margin-left: 4px;
}
.brand-tag {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 9px 8px 15px;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.chip:hover { background: rgba(33, 37, 30, .08); }
.chip .ic { width: 15px; height: 15px; }
.chip[aria-pressed="true"] {
  background: var(--fir);
  border-color: var(--fir);
  color: var(--paper);
}
.chip-n {
  background: var(--ink);
  color: var(--paper);
  font-size: .74rem;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] .chip-n {
  background: var(--marigold);
  color: var(--ink);
}

/* ---------- Intro band ---------- */

.intro {
  background: var(--fir);
  color: var(--paper);
  padding-block: clamp(48px, 7vw, 84px) clamp(44px, 6vw, 72px);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.intro h1 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 4.8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 14ch;
}
.intro-lede {
  margin: 0 0 30px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.62;
  max-width: 52ch;
  color: rgba(246, 243, 236, .85);
}
.intro-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.intro-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(246, 243, 236, .92);
}
.intro-steps li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--marigold);
  border-radius: 2px;
  transform: rotate(45deg);
  flex: none;
}

.intro-prints {
  position: relative;
  min-height: clamp(300px, 36vw, 430px);
}
.print {
  margin: 0;
  position: absolute;
  background: var(--paper-card);
  border: 12px solid var(--paper-card);
  border-radius: 3px;
  box-shadow: 0 24px 44px rgba(10, 22, 15, .5), 0 3px 10px rgba(10, 22, 15, .35);
}
.print img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.print-a {
  top: 0;
  right: 2%;
  width: 64%;
  aspect-ratio: 3/4;
  transform: rotate(-1.8deg);
  z-index: 1;
}
.print-b {
  bottom: 0;
  left: 0;
  width: 46%;
  aspect-ratio: 4/5;
  transform: rotate(1.6deg);
  z-index: 2;
}

/* ---------- Browse ---------- */

.browse {
  padding: clamp(34px, 5vw, 60px) 0 76px;
  background: var(--paper);
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0 13px;
  border-bottom: 2px solid var(--ink);
}
.field { display: flex; position: relative; }
.field-search { flex: 1 1 auto; max-width: 400px; }
.field input, .field select {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px 14px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #6a6f62; opacity: 1; }
.field-search input { padding-left: 42px; }
.field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321251e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  cursor: pointer;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.toggle:hover { background: rgba(33, 37, 30, .08); }
.toggle .ic { width: 14px; height: 14px; }
.toggle[aria-pressed="true"] {
  background: var(--fir);
  border-color: var(--fir);
  color: var(--paper);
}

.count {
  margin: 0 0 0 auto;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.list-heading {
  margin: 34px 0 16px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.list { list-style: none; margin: 0; padding: 0; }

.row {
  display: grid;
  grid-template-columns: 232px 1fr 176px;
  gap: clamp(18px, 2.6vw, 34px);
  align-items: center;
  padding: 28px 0;
  border-top: 2px solid var(--ink);
}
.row:last-child { border-bottom: 2px solid var(--ink); }

.row-media {
  aspect-ratio: 3/2;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-deep);
  cursor: pointer;
}
.row-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, .7, .25, 1);
}
.row:hover .row-media img { transform: scale(1.035); }

.row-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cat, var(--ink));
  transform: rotate(45deg);
  flex: none;
}
.cat-ceramics { --cat: #47688f; }
.cat-painting  { --cat: #b3801f; }
.cat-floristry { --cat: #2f7a52; }
.cat-baking    { --cat: #8a5a33; }

.row-title {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2vw, 1.62rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.open-btn {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 2px 4px;
  margin: -2px -4px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
}
.open-btn:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.open-btn .ic {
  width: 17px;
  height: 17px;
  transition: translate .2s ease-out;
}
.open-btn:hover .ic { translate: 3px 0; }

.row-summary {
  margin: 0 0 12px;
  font-size: .97rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.row-meta {
  margin: 0;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.row-saved {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--marigold-ink);
}
.row-saved .ic { width: 14px; height: 14px; }

.row-rail {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.date-tag {
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-card);
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 12px 7px;
  min-width: 78px;
  cursor: pointer;
}
.dt-weekday, .dt-month {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}
.dt-day {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.row-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.1;
}
.row-price small {
  display: block;
  margin-top: 3px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Empty state ---------- */

.empty {
  max-width: 640px;
  margin: 44px auto 8px;
  border: 2px dashed rgba(33, 37, 30, .5);
  border-radius: 12px;
  padding: clamp(32px, 6vw, 56px) 24px;
  text-align: center;
}
.empty-icon { width: 42px; height: 42px; color: var(--ink-soft); }
.empty h3 {
  margin: 14px 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.empty p {
  margin: 0 auto 24px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.btn {
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 800;
  border-radius: var(--radius);
  padding: 12px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .18s, translate .12s;
}
.btn:active { translate: 0 1px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--fir); }

/* ---------- Plate band & footer ---------- */

.plate-band {
  margin: 0;
  border-block: 2px solid var(--ink);
  background: var(--paper-deep);
  line-height: 0;
}
.plate-band img {
  width: 100%;
  height: min(420px, 46vw);
  object-fit: cover;
  display: block;
}

.footer {
  background: var(--fir-deep);
  color: rgba(246, 243, 236, .85);
  padding-top: clamp(44px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 52px;
}
.footer-brand {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.footer-h {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--marigold);
}
.footer-note { max-width: 36ch; margin: 0; font-size: .95rem; line-height: 1.6; }
.footer p { margin: 0 0 10px; font-size: .92rem; line-height: 1.6; }
.footer strong { color: var(--paper); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(246, 243, 236, .18);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(246, 243, 236, .62);
}
.footer-bottom p { margin: 0; }

/* ---------- Detail sheet ---------- */

.sheet-dialog {
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(600px, 100%);
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  border-left: 2px solid var(--ink);
  border-radius: 0;
  overscroll-behavior: contain;
}
.sheet-dialog::backdrop { background: rgba(16, 24, 18, .55); }

@keyframes sheet-in {
  from { transform: translateX(5%); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet-dialog[open] { animation: sheet-in .34s cubic-bezier(.2, .75, .25, 1); }
}

.sheet {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}
.sheet-media {
  position: relative;
  flex: none;
  aspect-ratio: 16/9;
  background: var(--paper-deep);
}
.sheet-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 24, 18, .25);
  transition: background-color .18s;
}
.sheet-close:hover { background: var(--marigold); }
.sheet-close .ic { width: 18px; height: 18px; }

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 32px) clamp(20px, 4vw, 34px) 28px;
}
.detail-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.detail-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.detail-body {
  margin: 0 0 28px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink-body);
  max-width: 54ch;
}
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger > div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgba(33, 37, 30, .16);
}
.ledger dt {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ledger dd {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ledger-price { font-size: 1.12rem; font-weight: 800; }

.sheet-actions {
  flex: none;
  border-top: 2px solid var(--ink);
  background: var(--paper);
  padding: 16px clamp(20px, 4vw, 34px) 16px;
  display: grid;
  gap: 8px;
}
.save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, translate .12s;
}
.save-btn:active { translate: 0 1px; }
.save-btn[aria-pressed="false"] { background: var(--fir); color: var(--paper); }
.save-btn[aria-pressed="false"]:hover { background: var(--fir-deep); }
.save-btn[aria-pressed="true"] { background: var(--marigold); color: var(--ink); border-color: var(--ink); }
.save-btn .ic { width: 16px; height: 16px; }
.save-note {
  margin: 0;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-prints {
    min-height: 0;
    margin-top: clamp(36px, 8vw, 56px);
  }
  .print-a {
    position: relative;
    top: auto;
    right: auto;
    width: min(420px, 88%);
    margin-inline: auto;
    transform: rotate(-1.2deg);
  }
  .print-b { display: none; }
}

@media (max-width: 820px) {
  .brand-tag { display: none; }
  .toolbar { position: static; flex-wrap: wrap; row-gap: 10px; }
  .field-search { flex-basis: 100%; max-width: none; order: 1; }
  .count { margin-left: 0; }
  .row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .row-media { aspect-ratio: 16/9; }
  .row-rail {
    justify-self: stretch;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

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