/* Forma — studio timetable */

@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s1--glm-5.3-flash--frontend-design--2026-10-12T04-53-25-054Z/assets/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/artifacts/forma-frontend--v1--s1--glm-5.3-flash--frontend-design--2026-10-12T04-53-25-054Z/assets/work-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d2e32;
  --ink-soft: #4c5f63;
  --chalk: #ecefe9;
  --paper: #fbfaf6;
  --poppy: #f0a63c;
  --poppy-deep: #9a640d;
  --line: rgba(29, 46, 50, 0.28);
  --cat-ceramics: #a9c6d0;
  --cat-painting: #8fbcb2;
  --cat-floristry: #f0a63c;
  --cat-baking: #7a5230;
  --pad-x: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

img { max-width: 100%; }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px var(--pad-x);
}

.wordmark {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--chalk);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 76px) var(--pad-x);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 420;
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 14ch;
}

.hero-intro {
  margin: 0 0 14px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: #c8d4d1;
}

.hero-facts {
  margin: 0;
  font-size: 0.95rem;
  color: var(--poppy);
}

.hero-art { position: relative; }

.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 10px 10px;
}

/* ---------- tools rail ---------- */

.browse {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(36px, 5vw, 60px) var(--pad-x) 88px;
}

.tools {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}

.toggle {
  justify-self: start;
  padding: 9px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}

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

.count { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- session ledger ---------- */

.session {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto 92px;
  grid-template-areas: "date main side thumb";
  gap: 10px 22px;
  align-items: center;
  padding: 22px 10px;
  border-top: 1px solid var(--line);
}

#items .session:last-child { border-bottom: 1px solid var(--line); }

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

.session-date {
  grid-area: date;
  display: grid;
  line-height: 1.15;
}

.session-date .dow,
.session-date .mon { font-size: 0.8rem; color: var(--ink-soft); }

.session-date .dom {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 500;
}

.session-main { grid-area: main; min-width: 0; }

.session-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.chip--Ceramics { background: var(--cat-ceramics); }
.chip--Painting { background: var(--cat-painting); }
.chip--Floristry { background: var(--cat-floristry); }
.chip--Baking { background: var(--cat-baking); color: var(--chalk); }

.saved-flag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--poppy-deep);
}

.session-heading { margin: 0; }

.session-title {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 540;
  line-height: 1.2;
  color: var(--ink);
  text-align: left;
}

.session-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--poppy);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.session-side {
  grid-area: side;
  text-align: right;
}

.session-price {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 540;
}

.session-seats { font-size: 0.82rem; color: var(--ink-soft); }

.session-thumb {
  grid-area: thumb;
  width: 92px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------- empty state ---------- */

.empty {
  border: 1.5px dashed var(--ink-soft);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 44px);
  max-width: 46ch;
}

.empty h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 540;
  font-size: 1.6rem;
}

.empty p { margin: 0 0 18px; color: var(--ink-soft); }

.btn {
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--poppy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.btn:hover { background: #e5992a; }

/* ---------- detail sheet ---------- */

dialog.detail {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -30px 0 70px rgba(16, 26, 29, 0.35);
}

dialog.detail::backdrop { background: rgba(16, 26, 29, 0.55); }

.detail-scroll { height: 100%; overflow-y: auto; }

.detail-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}

.detail-close:hover { background: var(--poppy); }

.detail-body { padding: 26px clamp(22px, 4vw, 34px) 44px; }

.detail-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.detail-title {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
}

.detail-desc {
  margin: 0 0 22px;
  max-width: 52ch;
  font-size: 1.02rem;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 0 0 26px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-facts dt {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.detail-facts dd {
  margin: 0;
  font-weight: 600;
}

.btn-save { width: 100%; }

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

.detail-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-foot {
  padding: 26px var(--pad-x) 40px;
  border-top: 1px solid var(--line);
}

.site-foot p { margin: 0 0 4px; }

.foot-fine { font-size: 0.82rem; color: var(--ink-soft); }

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

@media (prefers-reduced-motion: no-preference) {
  dialog.detail[open] { animation: sheet-in 0.28s ease; }
  @keyframes sheet-in {
    from { transform: translateX(48px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- narrow screens ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-img {
    max-width: 340px;
    aspect-ratio: 1 / 1;
  }
  .browse {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .tools {
    position: static;
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .tools .field:first-child { grid-column: 1 / -1; }
  .count { grid-column: 1 / -1; }
  .session {
    grid-template-columns: 54px minmax(0, 1fr) 78px;
    grid-template-areas:
      "date main  thumb"
      "date side  thumb";
    gap: 6px 14px;
    align-items: start;
  }
  .session-thumb {
    width: 78px;
    height: 64px;
    align-self: center;
  }
  .session-title { font-size: 1.3rem; }
  dialog.detail { width: 100vw; }
}
