/* Forma — creative workshops.
   Identity: "the maker's table." Palette grounded in the supplied studio flatlay
   (deep blue-grey workbench, paper, ochre craft accents). Fraunces for display,
   Spline Sans for the interface. */

@font-face {
  font-family: "Fraunces";
  font-weight: 400; font-style: normal;
  src: url("/artifacts/forma-frontend--v1--s2--glm-5.2--frontend-design--2026-09-17T08-16-25-068Z/assets/fraunces-400.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  font-weight: 700; font-style: normal;
  src: url("/artifacts/forma-frontend--v1--s2--glm-5.2--frontend-design--2026-09-17T08-16-25-068Z/assets/fraunces-700.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  font-weight: 900; font-style: normal;
  src: url("/artifacts/forma-frontend--v1--s2--glm-5.2--frontend-design--2026-09-17T08-16-25-068Z/assets/fraunces-900.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  font-weight: 700; font-style: italic;
  src: url("/artifacts/forma-frontend--v1--s2--glm-5.2--frontend-design--2026-09-17T08-16-25-068Z/assets/fraunces-700-italic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans";
  font-weight: 400; font-style: normal;
  src: url("/artifacts/forma-frontend--v1--s2--glm-5.2--frontend-design--2026-09-17T08-16-25-068Z/assets/spline-400.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans";
  font-weight: 500; font-style: normal;
  src: url("/artifacts/forma-frontend--v1--s2--glm-5.2--frontend-design--2026-09-17T08-16-25-068Z/assets/spline-500.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans";
  font-weight: 600; font-style: normal;
  src: url("/artifacts/forma-frontend--v1--s2--glm-5.2--frontend-design--2026-09-17T08-16-25-068Z/assets/spline-600.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #efe9dd;        /* warm paper, cooler than the tell cream */
  --paper-2: #e7e0d1;      /* slightly deeper paper for layered surfaces */
  --ink: #22323f;          /* deep blue-grey ink, from the workbench tabletop */
  --ink-2: #3a4d5d;
  --ink-soft: #5b6b78;
  --rule: #c9c0ad;         /* hairline rule, ink-on-paper */
  --ochre: #b0843f;        /* mustard/ochre craft accent (leather, honey, clay) */
  --sage: #7f8f73;         /* floristry */
  --clay: #c0724e;         /* ceramics — used sparingly */
  --bake: #cf9c4e;         /* baking — golden */
  --paint: #4a6a86;        /* painting — ink blue */
  --shadow: 0 1px 0 rgba(0,0,0,.04);
  --maxw: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Spline Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--ochre); color: #fff; }

/* ---- Focus ---- */
:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .5rem .8rem; z-index: 100; text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; }

/* ---- Type ---- */
.wordmark__text, .intro__lede, .card__title, .detail__title,
.intro__count, .empty__title, .site-foot p:first-child {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}
.wordmark__text, .card__title, .detail__title, .empty__title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ---- Masthead ---- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid #1a2733;
}
.masthead__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 1.25rem;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  text-decoration: none; color: var(--paper);
}
.wordmark__mark {
  font-family: "Fraunces", Georgia, serif; font-weight: 900;
  font-size: 1.45rem; line-height: 1;
  color: var(--ochre);
  border: 1.5px solid var(--ochre);
  width: 1.9rem; height: 1.9rem; display: inline-grid; place-items: center;
  border-radius: 50%;
}
.wordmark__text { font-size: 1.4rem; line-height: 1; }

.shortlist-pill { display: flex; align-items: center; }
.saved-toggle {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid rgba(239,233,221,.4);
  background: transparent; color: var(--paper);
  padding: 0.4rem 0.8rem; border-radius: 999px;
  font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.saved-toggle:hover { border-color: var(--ochre); color: #fff; }
.saved-toggle__dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--ink-soft);
  transition: background .15s ease, border-color .15s ease;
}
.saved-toggle[aria-pressed="true"] {
  background: var(--ochre); border-color: var(--ochre); color: #fff;
}
.saved-toggle[aria-pressed="true"] .saved-toggle__dot {
  background: #fff; border-color: #fff;
}
.saved-toggle__count {
  font-variant-numeric: tabular-nums;
  padding-left: 0.1rem;
}
.saved-toggle[aria-pressed="false"] .saved-toggle__count { opacity: .65; }

/* ---- Intro ---- */
.intro {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 0; align-items: stretch;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--paper);
}
.intro__photo { overflow: hidden; background: var(--ink); }
.intro__photo img {
  width: 100%; height: 100%; min-height: 280px; object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.intro__text {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.75rem);
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--rule);
}
.intro__lede {
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.15; font-weight: 700; margin: 0 0 1.1rem;
  color: var(--ink);
}
.intro__sub {
  margin: 0; color: var(--ink-soft); font-size: 0.98rem;
  display: flex; align-items: baseline; gap: 0.5rem;
  border-top: 1px solid var(--rule); padding-top: 0.9rem;
}
.intro__count {
  font-size: 1.5rem; font-weight: 900; color: var(--ochre);
  line-height: 1;
}

/* ---- Controls ---- */
.controls {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem 1.25rem 0.5rem;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--paper);
}
.controls__bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field--search { flex: 1 1 240px; }
.field--filter { flex: 0 0 auto; }
.field__label {
  font-size: 0.78rem; font-weight: 500; color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.field__input, .field__select {
  -webkit-appearance: none; appearance: none;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper-2);
  border: none; border-bottom: 2px solid var(--ink);
  padding: 0.45rem 0.5rem 0.5rem; border-radius: 0;
  width: 100%;
}
.field__select {
  padding-right: 2rem;
  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 1l5 5 5-5' fill='none' stroke='%2322323f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.6rem center;
  cursor: pointer;
}
.field__reset { margin-left: auto; align-self: flex-end; }
.link-reset {
  -webkit-appearance: none; appearance: none;
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 0.9rem; color: var(--ink-soft);
  text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 3px; padding: 0.3rem 0;
}
.link-reset:hover { color: var(--ink); text-decoration-color: var(--ochre); }

.controls__result {
  margin: 0.7rem 0 0; font-size: 0.86rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ---- Grid ---- */
.grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--paper);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background-color: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.grid:empty { display: none; }

/* ---- Card ---- */
.card {
  background: var(--paper);
  padding: 1.5rem 1.4rem 1.4rem;
  display: grid; grid-template-columns: auto 1fr;
  gap: 1.1rem 1.25rem;
  align-items: start;
  position: relative;
}
.card[data-saved="true"]::after {
  content: "saved";
  position: absolute; top: 0; right: 0;
  font-family: "Spline Sans", sans-serif;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #fff; background: var(--ochre);
  padding: 0.18rem 0.5rem 0.22rem;
}
.card__seal {
  width: 84px; height: 84px; border-radius: 50%;
  overflow: hidden; border: 1.5px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--paper);
  flex-shrink: 0; background: var(--paper-2);
}
.card__seal img { width: 100%; height: 100%; object-fit: cover; }
.card__head { display: flex; flex-direction: column; gap: 0.5rem; }
.card__chip {
  align-self: flex-start;
  font-size: 0.74rem; font-weight: 600;
  padding: 0.18rem 0.6rem; border-radius: 2px;
  color: #fff; background: var(--ink-soft);
}
.card__chip[data-cat="Baking"]    { background: var(--bake); }
.card__chip[data-cat="Ceramics"]  { background: var(--clay); }
.card__chip[data-cat="Floristry"] { background: var(--sage); }
.card__chip[data-cat="Painting"]  { background: var(--paint); }

.card__sub {
  margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft);
  max-width: 44ch;
}
.card__title {
  font-size: 1.5rem; line-height: 1.1; margin: 0;
}
.card__facts {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid var(--rule);
}
.fact { padding: 0.7rem 0.7rem 0; border-right: 1px solid var(--rule); }
.fact:last-child { border-right: none; }
.fact__k { font-size: 0.68rem; color: var(--ink-soft); font-weight: 500; }
.fact__v { font-size: 0.95rem; color: var(--ink); font-weight: 500;
  margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.fact__v--price { color: var(--ochre); font-weight: 600; }
.fact__v--seats { font-weight: 500; }

.card__open {
  grid-column: 1 / -1; margin-top: 0.8rem;
}
.open-item {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: inherit; font-size: 0.92rem; font-weight: 600;
  color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 0.55rem 0.9rem; cursor: pointer;
  border-radius: 0;
  transition: background .15s ease, color .15s ease;
}
.open-item:hover { background: var(--ink); color: var(--paper); }

/* ---- Empty state ---- */
.empty {
  max-width: var(--maxw); margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.empty__inner { max-width: 38ch; }
.empty__title { font-size: 1.6rem; margin: 0 0 0.5rem; }
.empty__body { margin: 0 0 1.25rem; color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
  -webkit-appearance: none; appearance: none;
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 0; padding: 0.65rem 1.1rem; border: 1px solid var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-2); }

/* ---- Footer ---- */
.site-foot { max-width: var(--maxw); margin: 0 auto; }
.site-foot__inner {
  padding: 2rem 1.25rem 2.5rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.site-foot p:first-child {
  font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--ink);
}
.site-foot__fine { margin: 0; font-size: 0.8rem; color: var(--ink-soft); max-width: 60ch; }

/* ---- Detail dialog ---- */
.detail {
  border: none; padding: 0; margin: auto;
  max-width: min(720px, 94vw); width: 100%;
  background: var(--paper); color: var(--ink);
  border-radius: 0; box-shadow: 0 18px 50px rgba(20,30,40,.32);
}
.detail::backdrop { background: rgba(20,30,40,.55); backdrop-filter: blur(2px); }
.detail[open] { animation: rise .26s cubic-bezier(.2,.7,.3,1) both; }
.detail__sheet { display: grid; grid-template-columns: 1fr; }
.detail__photo { background: var(--ink); max-height: 42vh; overflow: hidden; }
.detail__photo img { width: 100%; height: 100%; object-fit: cover; }
.detail__body {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  position: relative;
}
.detail__close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  -webkit-appearance: none; appearance: none;
  font: inherit; font-size: 0.86rem; font-weight: 600;
  color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--rule); padding: 0.4rem 0.7rem; cursor: pointer;
}
.detail__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.detail__cat {
  margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 600;
  color: var(--ochre);
}
.detail__title { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.05; margin: 0 0 0.9rem; }
.detail__body-text { margin: 0 0 1.4rem; font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }

.detail__facts {
  margin: 0 0 1.5rem; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
}
.detail__facts > div {
  padding: 0.7rem 0.6rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.detail__facts > div:nth-child(2n) { border-right: none; padding-left: 0.9rem; }
.detail__facts dt { font-size: 0.72rem; color: var(--ink-soft); font-weight: 500; margin: 0 0 0.15rem; }
.detail__facts dd { margin: 0; font-size: 1rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.detail__facts dd.is-price { color: var(--ochre); font-weight: 600; }

.detail__actions { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.btn--save {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--paper-2); color: var(--ink); border: 1.5px solid var(--ink);
}
.btn--save:hover { background: var(--paper); }
.btn--save[aria-pressed="true"] {
  background: var(--ochre); color: #fff; border-color: var(--ochre);
}
.btn--save__dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; flex-shrink: 0;
}
.btn--save[aria-pressed="true"] .btn--save__dot { background: #fff; border-color: #fff; }

/* ---- Reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(8px); }
[data-reveal].is-in {
  animation: rise .5s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .intro { grid-template-columns: 1fr; }
  .intro__photo img { min-height: 220px; }
  .intro__text { border-left: none; border-top: 1px solid var(--rule); }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card { grid-template-columns: auto 1fr; gap: 0.9rem 1rem; padding: 1.25rem 1.1rem; }
  .card__facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2n) { border-right: none; }
  .card__title { font-size: 1.35rem; }
  .masthead__inner { padding: 0.6rem 1rem; }
  .wordmark__text { font-size: 1.25rem; }
  .field__reset { margin-left: 0; }
  .detail__facts { grid-template-columns: 1fr; }
  .detail__facts > div { border-right: none !important; padding-left: 0 !important; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .detail[open] { animation: none; }
}
