/* Forma, in-person creative workshops.
   Palette family: terracotta + slate. Cool grey neutrals, one rust accent.
   Radius system: cards, inputs, panels 14px; buttons pill (999px). One accent. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/artifacts/forma-frontend--v1--s1--glm-5.3-flash--taste--2026-09-17T06-30-59-781Z/assets/fonts/BricolageGrotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/artifacts/forma-frontend--v1--s1--glm-5.3-flash--taste--2026-09-17T06-30-59-781Z/assets/fonts/Archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/artifacts/forma-frontend--v1--s1--glm-5.3-flash--taste--2026-09-17T06-30-59-781Z/assets/fonts/Archivo-Italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #eff1ee;
  --surface: #fbfcfa;
  --ink: #212726;
  --muted: #5b6461;
  --line: #dbe0d9;
  --accent: #a8431c;
  --accent-deep: #8c3413;
  --accent-tint: #f2e2da;
  --chip: #e5e8e2;
  --shadow: 0 18px 40px rgba(33, 39, 38, 0.10);
  --radius: 14px;
  --head-h: 64px;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

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

.shell {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
}

.sr {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(239, 241, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row {
  height: var(--head-h);
  display: flex; align-items: center; gap: 20px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand-dot { color: var(--accent); }
.head-tag {
  color: var(--muted);
  font-size: 0.86rem;
  margin-right: auto;
}
.head-saved {
  font-family: var(--font-body);
  font-size: 0.86rem; font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.head-saved:hover { border-color: var(--ink); }
.head-saved-count {
  background: var(--chip);
  border-radius: 999px;
  font-size: 0.76rem;
  min-width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  padding-inline: 6px;
  font-variant-numeric: tabular-nums;
}
.head-saved[aria-pressed="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.head-saved[aria-pressed="true"] .head-saved-count {
  background: var(--accent); color: #fff;
}
@media (max-width: 640px) {
  .head-tag { display: none; }
  .head-row { justify-content: space-between; }
}

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

.hero {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 6vh, 72px) clamp(48px, 7vh, 88px);
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.hero-sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 44ch;
}
.hero .btn { margin-top: 28px; }
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover;
  border-radius: var(--radius);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: -1;
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px 48px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-copy h1 { max-width: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Catalogue head + toolbar ---------- */

.catalogue { border-top: 1px solid var(--line); }
.cat-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-block: 40px 20px;
}
.cat-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
}
.count { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.toolbar-wrap {
  position: sticky; top: var(--head-h); z-index: 20;
  background: rgba(239, 241, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.toolbar {
  display: flex; align-items: flex-end; gap: 16px;
  padding-block: 14px;
}
.field { display: grid; gap: 5px; }
.field label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted);
}
.field input,
.field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-height: 44px;
  transition: border-color 0.2s ease;
}
.field input:hover, .field select:hover { border-color: var(--muted); }
.field input::placeholder { color: #6b7571; }
.field-search { flex: 1 1 260px; }
.field-cat { flex: 0 1 210px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  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 1.5 6 6.5 11 1.5' fill='none' stroke='%23212726' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.saved-toggle {
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.saved-toggle:hover { background: var(--chip); }
.saved-toggle[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
@media (max-width: 640px) {
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .field-search { flex-basis: 100%; }
  .field-cat { flex: 1 1 auto; }
  .saved-toggle { flex: 0 0 auto; }
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding-block: 32px 56px;
}
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; gap: 22px; padding-block: 24px 48px; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .grid.animate .card { animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}
.card:hover {
  border-color: #b9c1b8;
  box-shadow: var(--shadow);
}
.card-hit {
  position: absolute; inset: 0; z-index: 2;
  background: none; border: 0; cursor: pointer;
  border-radius: inherit;
}
.card-media { overflow: hidden; }
.card-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 18px 22px 22px; }
.card-cat {
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin-top: 6px;
  line-height: 1.15;
}
.card-meta { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.card-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card-price {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.card-seats { color: var(--muted); font-size: 0.86rem; }
.card-saved {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 3px 12px;
}

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

.empty {
  text-align: center;
  background: var(--surface);
  border: 1px dashed #c3cbc2;
  border-radius: var(--radius);
  padding: 64px 24px;
  margin-bottom: 56px;
}
.empty h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; letter-spacing: -0.015em;
}
.empty p { color: var(--muted); max-width: 42ch; margin: 10px auto 24px; }
.noscript { padding: 32px 0; color: var(--muted); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: 24px 88px;
}
.about-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
}
.about-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
}
.about-copy p { color: var(--muted); margin-top: 14px; max-width: 52ch; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; padding-block: 8px 56px; }
}

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

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-block: 28px;
  color: var(--muted); font-size: 0.88rem;
}
.foot-brand {
  font-family: var(--font-display);
  font-weight: 750; font-size: 1.15rem;
  color: var(--ink);
}

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

body.locked { overflow: hidden; }

.dialog { position: fixed; inset: 0; z-index: 50; }
.dialog-backdrop {
  position: absolute; inset: 0;
  background: rgba(33, 39, 38, 0.45);
}
.dialog-panel {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(920px, calc(100% - 32px));
  height: min(680px, calc(100% - 48px));
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 5fr 6fr;
  box-shadow: 0 32px 80px rgba(33, 39, 38, 0.28);
}
@media (prefers-reduced-motion: no-preference) {
  .dialog { transition: opacity 0.2s ease; }
  .dialog[hidden] { display: none; }
  .dialog-backdrop { opacity: 0; transition: opacity 0.25s ease; }
  .dialog-panel {
    opacity: 0; transform: translateY(16px) scale(0.985);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .dialog.open .dialog-backdrop { opacity: 1; }
  .dialog.open .dialog-panel { opacity: 1; transform: none; }
}

.dialog-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 600;
  color: var(--ink);
  background: rgba(251, 252, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.dialog-close:hover { background: #fff; }

.d-media { min-height: 0; }
.d-media img { width: 100%; height: 100%; object-fit: cover; }

.d-content {
  padding: 40px 40px 32px;
  overflow-y: auto;
}
.d-cat {
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
}
.d-title {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 8px;
}
.d-body { color: var(--muted); margin-top: 14px; max-width: 52ch; }

.d-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.d-facts > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.d-facts dt {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted);
}
.d-facts dd { font-weight: 600; font-size: 0.95rem; text-align: right; }

.d-note { color: var(--muted); font-size: 0.86rem; margin-top: 16px; }
.d-actions { margin-top: 24px; }
.btn-save { width: 100%; }
.btn-save[aria-pressed="true"] {
  background: var(--ink);
}
.btn-save[aria-pressed="true"]:hover { background: #0f1312; }

@media (max-width: 820px) {
  .dialog-panel {
    width: 100%; height: 100%;
    inset: 0; margin: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 250px 1fr;
  }
  .d-content { padding: 76px 22px 28px; }
}

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