/* ==========================================================================
   Forma — workshop studio frontend
   Palette and type are drawn from the workshops themselves: the cobalt
   studio table, porcelain-glazed ceramics, ochre poppies, paints, and bread.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/artifacts/forma-frontend--v1--s2--deepseek-4.1-flash--frontend-design--2026-09-17T08-17-49-579Z/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/artifacts/forma-frontend--v1--s2--deepseek-4.1-flash--frontend-design--2026-09-17T08-17-49-579Z/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --porcelain: #e9edea;
  --paper: #f7f8f5;
  --ink: #15242c;
  --ink-soft: #52626a;
  --line: #cdd6d0;
  --line-strong: #a3b3ab;

  --cobalt: #1e6e8c;
  --cobalt-deep: #135169;
  --ochre: #a9740a;
  --vermilion: #c9442a;
  --plum: #7a4a6c;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --shell: 1180px;
  --gutter: 40px;
  --focus: #135169;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.dialog-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--cobalt-deep);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  transition: top .15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line-strong);
  background: var(--porcelain);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-mark {
  width: 10px;
  height: 10px;
  background: var(--vermilion);
  display: inline-block;
  transform: translateY(1px) rotate(45deg);
}

.brand-note {
  margin: 0;
  font-size: .82rem;
  color: var(--ink-soft);
}

.toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .005em;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}

input[type="search"],
select {
  border: 1px solid var(--ink-soft);
  background: var(--paper);
  border-radius: 0;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--ink);
  width: 100%;
}

input[type="search"] {
  padding-left: 38px;
  min-width: 15rem;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}

input[type="search"]:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
  font-weight: 600;
  border-radius: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.saved-toggle:hover {
  border-color: var(--ink);
}

.saved-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.saved-icon {
  width: 15px;
  height: 17px;
}

.saved-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--line);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

.saved-toggle[aria-pressed="true"] .saved-count {
  background: var(--paper);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 46px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.9vw, 4rem);
  line-height: .97;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lede {
  margin: 0 0 34px;
  max-width: 46ch;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.hero-fact {
  padding: 18px 26px 0 0;
  margin-right: 26px;
  border-right: 1px solid var(--line);
  padding-right: 26px;
}

.hero-fact:last-child {
  border-right: 0;
  margin-right: 0;
}

.hero-fact dt {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

.hero-fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.hero-media {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  max-width: 470px;
  margin-left: auto;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 12% -5% -7% 14%;
  background: var(--cobalt);
}

.hero-img {
  position: absolute;
  display: block;
  object-fit: cover;
  border: 7px solid var(--paper);
  box-shadow: 0 22px 44px -34px rgba(21, 36, 44, .85);
}

.hero-img-a {
  width: 70%;
  height: 80%;
  left: 0;
  top: 0;
  transform: rotate(-1.6deg);
  z-index: 2;
}

.hero-img-b {
  width: 45%;
  height: 45%;
  right: 0;
  bottom: 0;
  transform: rotate(2deg);
  z-index: 3;
}

.hero-img-c {
  width: 33%;
  height: 33%;
  right: 3%;
  top: 6%;
  transform: rotate(3.5deg);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Workshop ledger
   -------------------------------------------------------------------------- */

.workshops {
  padding-bottom: 84px;
}

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
}

.list-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.result-count {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 92px 168px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 28px 10px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}

.row:hover {
  background: var(--paper);
}

.row:has(.open-item:focus-visible) {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--focus);
}

[data-cat="Baking"] { --cat: var(--ochre); }
[data-cat="Ceramics"] { --cat: var(--cobalt); }
[data-cat="Floristry"] { --cat: var(--vermilion); }
[data-cat="Painting"] { --cat: var(--plum); }

.row-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.row-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: -0.05em;
  color: var(--cat, var(--ink));
}

.row-wd {
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 700;
}

.row-mon {
  font-size: .82rem;
  color: var(--ink-soft);
}

.row-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
}

.row-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cat, var(--ink));
  transform: translate(7px, 7px);
  transition: transform .2s ease;
}

.row:hover .row-thumb::before {
  transform: translate(10px, 10px);
}

.row-thumb img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.row-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.dot {
  width: 9px;
  height: 9px;
  background: var(--cat, var(--ink));
  display: inline-block;
}

.row-title {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.open-item {
  position: relative;
  display: block;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

/* The whole row is the target: the button's overlay spans its positioned ancestor. */
.open-item::after {
  content: "";
  position: absolute;
  inset: 0;
}

.row .open-item:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.open-item-title {
  display: block;
}

.open-item-hint {
  display: block;
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--cobalt-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.row:hover .open-item-hint {
  color: var(--ink);
}

.row-desc {
  margin: 0 0 10px;
  max-width: 52ch;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.row-who {
  margin: 0;
  font-size: .85rem;
  color: var(--ink-soft);
}

.row-who strong {
  color: var(--ink);
  font-weight: 600;
}

.row-facts {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 30px;
  margin: 0;
  padding-left: 6px;
}

.row-facts div {
  display: flex;
  flex-direction: column;
}

.row-facts dt {
  margin-bottom: 2px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.row-facts dd {
  margin: 0;
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.row-saved {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: .7rem;
  font-weight: 700;
}

.row-saved svg {
  width: 11px;
  height: 12px;
}

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

.empty-state {
  margin-top: 26px;
  padding: 56px 28px;
  border: 1px dashed var(--line-strong);
  background: var(--paper);
  text-align: center;
}

.empty-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.empty-body {
  margin: 0 auto 22px;
  max-width: 44ch;
  color: var(--ink-soft);
}

.empty-reset {
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
}

.empty-reset:hover {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
}

/* --------------------------------------------------------------------------
   Detail dialog
   -------------------------------------------------------------------------- */

.detail {
  width: min(1040px, calc(100vw - 56px));
  max-width: 1040px;
  max-height: min(90vh, 760px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  margin: auto;
  overflow: hidden;
  box-shadow: 0 50px 90px -46px rgba(21, 36, 44, .85);
}

.detail::backdrop {
  background: rgba(21, 36, 44, .58);
}

.detail[open] {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.detail-media {
  position: relative;
  min-height: 100%;
  background: var(--ink);
}

.detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 44px 44px;
  overflow-y: auto;
  max-height: min(90vh, 760px);
}

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.detail-cat .dot {
  width: 10px;
  height: 10px;
  background: var(--cat, var(--ink));
}

.detail-close {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--ink-soft);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
}

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

.detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.detail-body {
  margin: 0;
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 4px 0 0;
  border-top: 1px solid var(--line-strong);
}

.detail-fact {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-fact dt {
  margin-bottom: 3px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.detail-fact dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.detail-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.save-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  transition: background .16s ease, color .16s ease;
}

.save-icon {
  width: 16px;
  height: 18px;
}

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

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

.save-item[aria-pressed="true"] .save-icon path {
  fill: var(--paper);
}

.detail-saved-note {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--cobalt-deep);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 2px solid var(--ink);
  padding: 40px 0 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.footer-mark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.footer-note {
  margin: 0;
  max-width: 52ch;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
  }

  .hero-media {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) .08s both;
  }

  .detail[open] {
    animation: dialog-in .3s cubic-bezier(.2, .7, .2, 1) both;
  }

  .detail[open]::backdrop {
    animation: fade-in .3s ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

  .row,
  .row-thumb::before,
  .saved-toggle,
  .save-item,
  .skip-link {
    transition: none;
  }
}

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

@media (min-width: 901px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(233, 237, 234, .93);
    backdrop-filter: blur(9px);
  }
}

@media (max-width: 1080px) {
  .row {
    grid-template-columns: 84px 140px minmax(0, 1fr);
    gap: 24px;
  }

  .row-facts {
    grid-column: 3;
    grid-template-columns: repeat(5, auto);
    gap: 10px 26px;
    padding-left: 0;
    padding-top: 4px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .hero {
    padding: 40px 0 52px;
  }

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

  .hero h1 {
    max-width: 100%;
  }

  .hero-media {
    max-width: 460px;
    margin: 0;
  }
}
@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .toolbar {
    gap: 12px;
  }

  .field-search {
    flex: 1 1 100%;
  }

  input[type="search"] {
    min-width: 0;
  }

  .field-category {
    flex: 1 1 60%;
  }

  .saved-toggle {
    flex: 1 1 auto;
    justify-content: center;
  }

  .row {
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    padding: 24px 4px;
  }

  .row-date {
    order: 1;
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
  }

  .row-day {
    font-size: 2.1rem;
  }

  .row-wd,
  .row-mon {
    margin-top: 0;
  }

  .row-thumb {
    order: 0;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .row-main-cell {
    order: 2;
    grid-column: 1 / -1;
  }

  .row-facts {
    order: 3;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  .detail {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
  }

  .detail[open] {
    display: flex;
    flex-direction: column;
  }

  .detail-media {
    flex: 0 0 auto;
    height: 32vh;
    min-height: 190px;
  }

  .detail-content {
    flex: 1 1 auto;
    padding: 24px 22px 30px;
    max-height: none;
  }

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

@media (max-width: 420px) {
  .hero-facts {
    flex-direction: column;
  }

  .hero-fact {
    border-right: 0;
    margin-right: 0;
    padding: 14px 0 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    width: 100%;
  }

  .hero-fact:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .field-category {
    flex: 1 1 100%;
  }
}
