/* Forma - in-person creative workshops
   Native CSS. Font: Bricolage Grotesque (OFL), self-hosted.
   Palette: forest green on green-tinted bone paper. One accent, one theme per mode. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/artifacts/forma-frontend--v1--s1--glm-5.3--taste--2026-09-17T06-27-26-848Z/assets/fonts/BricolageGrotesque-latin.woff2") format("woff2");
}

:root {
  --bg: #EAEDE0;
  --panel: #F4F6EB;
  --ink: #1E2A21;
  --muted: #556055;
  --green: #2B4B38;
  --green-ink: #F2F3E6;
  --green-hover: #223D2D;
  --band: #24382B;
  --band-ink: #EAEEDA;
  --line: rgba(30, 42, 33, 0.16);
  --focus: #2B4B38;
  --r-s: 10px;
  --r-m: 16px;
  --shadow: 0 24px 64px rgba(30, 42, 33, 0.22);
  --font-sans: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141A15;
    --panel: #1C241D;
    --ink: #E6E9D8;
    --muted: #A6AF9C;
    --green: #47714F;
    --green-ink: #EDF3E0;
    --green-hover: #55815D;
    --band: #1D2B22;
    --band-ink: #E6E9D8;
    --line: rgba(230, 233, 216, 0.18);
    --focus: #8FBF9C;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--green);
  color: var(--green-ink);
  border-radius: var(--r-s);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

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

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-dot { color: var(--green); }

.masthead-nav { display: flex; gap: 1.75rem; }
.masthead-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
}
.masthead-nav a:hover { color: var(--ink); }

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

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vh, 5.5rem);
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}

.hero-copy { grid-column: 1 / 7; }

.hero-season {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.7rem, 4.6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 16ch;
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34rem;
}

.hero-figure {
  grid-column: 7 / 13;
  margin: 0;
  overflow: hidden;
  border-radius: 999px 999px var(--r-m) var(--r-m);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

/* ---------- Buttons, chips, fields ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 22px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { background: var(--green-hover); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--green);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.chip:hover { background: rgba(43, 75, 56, 0.1); }
.chip[aria-pressed="true"] { background: var(--green); color: var(--green-ink); }

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.chip[aria-pressed="true"] .chip-count { background: var(--green-ink); color: var(--green); }

.field { position: relative; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.field-search { flex: 1 1 260px; }

input[type="search"], select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}
input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
input[type="search"]:focus, select:focus {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: transparent;
}

.field-category { flex: 0 1 220px; }
.select-wrap { position: relative; display: block; }
.select-wrap::after {
  content: "\25BE";
  position: absolute;
  right: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--green);
  font-size: 0.8rem;
  pointer-events: none;
}
select {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

/* ---------- Browse head + list ---------- */

.browse { padding-bottom: clamp(3rem, 7vh, 5rem); }

.browse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
}

.browse-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.item + .item { border-top: 1px solid var(--line); }

.item-open {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem) 4px;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.item-media {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-m);
}
.item-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.item-open:hover .item-media img,
.item-open:focus-visible .item-media img { transform: scale(1.03); }

.item-info { display: flex; flex-direction: column; gap: 0.55rem; }

.item-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.item-cat { color: var(--green); }
.item-saved-tag {
  color: var(--green-ink);
  background: var(--green);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.08em;
}

.item-title {
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.item-open:hover .item-title { color: var(--green); }

.item-desc {
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.55;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.item-meta span { padding: 2px 0; }
.item-meta span + span {
  border-left: 1px solid var(--line);
  margin-left: 12px;
  padding-left: 12px;
}

.item-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}
.item-price { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.item-view {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.item-open:hover .item-view,
.item-open:focus-visible .item-view { color: var(--green); text-decoration-color: currentColor; }

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

.empty-state {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  text-align: center;
}
.empty-title { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.empty-body { margin: 0 0 1.5rem; color: var(--muted); }

/* ---------- Color-block band ---------- */

.band {
  margin-top: clamp(2rem, 5vh, 4rem);
  background: var(--band);
  color: var(--band-ink);
}

.band-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 8vh, 5rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.band-figure {
  grid-column: 1 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-m);
}
.band-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.band-copy { grid-column: 5 / 13; }
.band-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 20ch;
}
.band-sub {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--band-ink);
  opacity: 0.86;
  max-width: 46ch;
}

.band-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
.band-facts div {
  border-top: 1px solid rgba(234, 238, 218, 0.28);
  padding-top: 0.85rem;
}
.band-facts dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.band-facts dd { margin: 0.25rem 0 0; font-size: 1.15rem; font-weight: 700; }

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

.footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.footer-inner .wordmark { font-size: 1.15rem; }
.footer-note { margin: 0; color: var(--muted); font-size: 0.88rem; max-width: 62ch; }

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

.detail {
  width: min(860px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--r-m);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow-y: auto;
}
.detail::backdrop { background: rgba(20, 26, 21, 0.55); }

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--panel);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.detail-close:hover { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.detail-close:active { transform: scale(0.95); }

.detail-figure { margin: 0; overflow: hidden; border-radius: var(--r-m) var(--r-m) 0 0; }
.detail-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.detail-body { padding: clamp(1.5rem, 3.5vw, 2.75rem); }

.detail-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.detail-body h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding-right: 3rem;
}

.detail-desc { margin: 0 0 1.75rem; font-size: 1.08rem; line-height: 1.6; color: var(--muted); max-width: 60ch; }

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 1.75rem;
}
.detail-facts div {
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--green) 9%, transparent);
  padding: 12px 14px;
}
.detail-facts dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-facts dd { margin: 0.2rem 0 0; font-size: 1.02rem; font-weight: 700; }

.btn-save { width: 100%; padding: 15px 22px; font-size: 1.05rem; }
.btn-save[aria-pressed="true"] {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-save[aria-pressed="true"]:hover { background: rgba(43, 75, 56, 0.12); }

.detail-note { margin: 0.9rem 0 0; text-align: center; color: var(--muted); font-size: 0.85rem; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-figure { animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
  .detail[open] { animation: dialog-in 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
  .detail[open]::backdrop { animation: fade-in 0.28s ease; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes dialog-in {
    from { opacity: 0; transform: translateY(16px) scale(0.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; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { grid-column: 1; }
  .hero-figure { grid-column: 1; }
  .hero-figure img { aspect-ratio: 4 / 3; border-radius: 160px 160px var(--r-m) var(--r-m); }
  .hero h1 { max-width: 14ch; }

  .item-open { grid-template-columns: 1fr; gap: 1.1rem; }
  .item-media img { aspect-ratio: 16 / 10; }

  .band-inner { grid-template-columns: 1fr; }
  .band-figure { grid-column: 1; max-width: 420px; }
  .band-figure img { aspect-ratio: 4 / 3; }
  .band-copy { grid-column: 1; }
  .band-facts { grid-template-columns: 1fr 1fr; }

  .detail { width: calc(100% - 20px); max-height: calc(100% - 20px); }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .masthead-inner { height: 58px; }
  .masthead-nav { gap: 1.1rem; }
  .field-search { flex-basis: 100%; }
  .field-category { flex: 1 1 auto; }
  .chip { margin-left: auto; }
  .band-facts { grid-template-columns: 1fr; }
  .detail-body h2 { padding-right: 2.5rem; }
}
