/* ————— Forma —————
   Palette: workshop paper, warm ink, deep pine, sprout marks,
   and one material color per craft. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/artifacts/forma-frontend--v1--s2--glm-5.3--frontend-design--2026-09-17T08-17-10-339Z/assets/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/artifacts/forma-frontend--v1--s2--glm-5.3--frontend-design--2026-09-17T08-17-10-339Z/assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F3F1E7;
  --raised: #FBFAF3;
  --ink: #26261C;
  --muted: #5F5E51;
  --line: rgba(38, 38, 28, 0.16);
  --pine: #1D3A33;
  --pine-deep: #142A24;
  --pine-ink: #17332C;
  --sprout: #C9D6A8;
  --paper-on-dark: #F6F3E6;
  --focus: #3F5FB0;

  /* category material colors */
  --ceramics: #2F5749;
  --ceramics-bg: #DCE7DF;
  --painting: #31479B;
  --painting-bg: #DFE4F6;
  --floristry: #33591F;
  --floristry-bg: #E2ECD6;
  --baking: #7A5210;
  --baking-bg: #F3E7CB;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dt, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* ————— focus & skip ————— */

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--pine);
  color: var(--paper-on-dark);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.topbar a:focus-visible, .hero .hero-cta:focus-visible, .footer a:focus-visible {
  outline-color: var(--sprout);
}

/* ————— top bar ————— */

.topbar {
  background: var(--pine);
  color: var(--paper-on-dark);
}
.topbar-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper-on-dark);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark { width: 17px; height: 17px; color: var(--sprout); }
.topbar-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(246, 243, 230, 0.8);
}

/* ————— hero ————— */

.hero {
  background:
    radial-gradient(58% 72% at 80% 24%, rgba(201, 214, 168, 0.16), transparent 70%),
    linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%);
  color: var(--paper-on-dark);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px);
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.hero-copy p {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: rgba(246, 243, 230, 0.85);
  max-width: 44ch;
}
.hero-cta {
  display: inline-block;
  margin-top: 34px;
  background: var(--paper-on-dark);
  color: var(--pine-deep);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.hero-cta:hover { background: var(--sprout); }

.hero-art {
  position: relative;
  height: clamp(320px, 34vw, 470px);
}
.hero-photo {
  border-radius: 999px 999px 16px 16px;
  object-fit: cover;
}
.hero-photo-back {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(150px, 17vw, 215px);
  aspect-ratio: 3 / 4;
  transform: rotate(4deg);
  border: 3px solid rgba(246, 243, 230, 0.35);
}
.hero-photo-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(200px, 22vw, 290px);
  aspect-ratio: 3 / 4;
  box-shadow: 0 26px 60px rgba(10, 20, 16, 0.45);
}
.doodle {
  position: absolute;
  color: var(--sprout);
  width: clamp(26px, 3vw, 38px);
}
.doodle-star {
  top: clamp(2px, 1vw, 8px);
  left: clamp(150px, 16vw, 215px);
  transform: rotate(12deg);
}
.doodle-loop {
  right: clamp(120px, 13vw, 170px);
  bottom: clamp(-6px, -0.5vw, 0px);
  width: clamp(60px, 6.5vw, 88px);
}

/* ————— schedule section ————— */

.section-head { padding-block: clamp(40px, 5vw, 64px) 8px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.section-head p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 58ch;
}

/* ————— toolbar ————— */

.toolbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 241, 231, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-block: 1px solid var(--line);
  margin-top: 26px;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: end;
  padding-block: 16px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--raised);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 46px;
}
.field-search input { width: 100%; max-width: 420px; }
.field select { padding-right: 36px; appearance: none; -webkit-appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M1 1.5 6 6.5 11 1.5" fill="none" stroke="%2326261C" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:hover, .field select:hover { border-color: rgba(38, 38, 28, 0.4); }

.shortlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--pine);
  background: transparent;
  color: var(--pine);
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.shortlist-btn:hover { background: rgba(29, 58, 51, 0.08); }
.shortlist-btn[aria-pressed="true"] {
  background: var(--pine);
  color: var(--paper-on-dark);
}
.icon-ticket { width: 19px; height: 19px; flex: none; }

.count {
  margin-top: 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

/* ————— workshop rows ————— */

.workshop-list {
  display: grid;
  gap: 14px;
  padding-block: 14px 10px;
}
.workshop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 8px 24px;
  align-items: center;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  transition: border-color .15s ease, background .15s ease;
}
.workshop:hover { border-color: rgba(38, 38, 28, 0.38); background: #FFFFFF; }

.workshop-open {
  display: grid;
  grid-template-columns: auto 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: none;
  border: none;
  padding: 6px;
  margin: -6px;
  border-radius: 12px;
  text-align: left;
}
.when {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  padding: 9px 4px;
  border: 1.5px solid rgba(29, 58, 51, 0.45);
  border-radius: 10px;
  color: var(--pine);
  background: var(--paper);
}
.when-month { font-size: 0.72rem; font-weight: 700; }
.when-day { font-size: 1.65rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.when-weekday { font-size: 0.72rem; color: var(--muted); }

.thumb {
  width: 84px;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  transition: transform .18s ease;
}
.workshop-open:hover .thumb { transform: scale(1.045); }

.workshop-title {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.workshop-open:hover .workshop-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--sprout); }
.byline {
  display: block;
  margin-top: 3px;
  font-size: 0.9rem;
  color: var(--muted);
}

.workshop-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  align-content: center;
}
.chip {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.chip-ceramics { background: var(--ceramics-bg); color: var(--ceramics); }
.chip-painting { background: var(--painting-bg); color: var(--painting); }
.chip-floristry { background: var(--floristry-bg); color: var(--floristry); }
.chip-baking { background: var(--baking-bg); color: var(--baking); }

.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.facts dt, .detail-facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.facts dd, .detail-facts dd {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}
.facts .fact-price, .detail-facts #d-price { color: var(--pine); font-weight: 800; }

.saved-flag {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pine);
  background: var(--sprout);
  padding: 4px 12px;
  border-radius: 999px;
}
.saved-flag::before {
  content: "";
  width: 12px; height: 12px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3.5 10.5l4.5 4.5 9-10" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M3.5 10.5l4.5 4.5 9-10" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
}

/* ————— empty state ————— */

.empty {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 20px;
}
.empty-mark { width: 34px; height: 34px; color: var(--pine); margin-inline: auto; opacity: 0.8; }
.empty-title { margin-top: 18px; font-size: 1.25rem; font-weight: 700; }
.empty-hint { margin-top: 8px; color: var(--muted); }
.btn {
  margin-top: 26px;
  background: var(--pine);
  color: var(--paper-on-dark);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  transition: background .15s ease;
}
.btn:hover { background: var(--pine-deep); }

/* ————— footer ————— */

.footer {
  margin-top: clamp(48px, 7vw, 88px);
  background: var(--pine-deep);
  color: rgba(246, 243, 230, 0.78);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  justify-content: space-between;
  padding-block: clamp(36px, 5vw, 56px);
}
.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--paper-on-dark);
}
.footer-notes p { font-size: 0.85rem; max-width: 52ch; }
.footer-notes p + p { margin-top: 8px; }

/* ————— detail dialog ————— */

.detail {
  width: min(940px, calc(100vw - 32px));
  height: min(660px, calc(100dvh - 48px));
  max-height: none;
  padding: 0;
  border: none;
  border-radius: 22px;
  background: var(--raised);
  color: var(--ink);
  overflow: hidden;
}
.detail::backdrop {
  background: rgba(16, 30, 25, 0.62);
}
.detail[open] { animation: detail-rise .26s ease; }
.detail[open]::backdrop { animation: detail-fade .26s ease; }
@keyframes detail-rise { from { transform: translateY(16px); opacity: 0; } }
@keyframes detail-fade { from { opacity: 0; } }

.detail-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  height: 100%;
}
.detail-media {
  position: relative;
  background: var(--pine);
  padding: 24px 24px 0;
  min-height: 0;
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}
.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(246, 243, 230, 0.94);
  color: var(--pine);
  display: grid;
  place-items: center;
  transition: background .15s ease;
}
.detail-close:hover { background: var(--sprout); }
.detail-close svg { width: 17px; height: 17px; }

.detail-content {
  padding: clamp(26px, 4vw, 42px);
  overflow-y: auto;
  min-height: 0;
}
.detail-content .chip { margin-bottom: 18px; }
.detail-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.detail-body {
  margin-top: 16px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 52ch;
}
.detail-facts {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.detail-facts dd { margin: 2px 0 0; font-size: 1rem; }

.save-btn {
  margin-top: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 2px solid var(--pine);
  background: transparent;
  color: var(--pine);
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.save-btn:hover { background: rgba(29, 58, 51, 0.08); }
.save-btn[aria-pressed="true"] {
  background: var(--pine);
  color: var(--paper-on-dark);
}
.save-btn[aria-pressed="true"]:hover { background: var(--pine-deep); }
.save-btn svg { width: 18px; height: 18px; flex: none; }
.save-btn .icon-check { display: none; }
.save-btn[aria-pressed="true"] .icon-check { display: block; }
.save-btn[aria-pressed="true"] .icon-plus { display: none; }

/* ————— responsive ————— */

@media (max-width: 900px) {
  .workshop { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 330px; max-width: 420px; }
  .hero-photo-front { left: 4%; }
  .hero-photo-back { right: 4%; }
  .doodle-star { left: calc(4% + clamp(150px, 44vw, 190px)); }
  .doodle-loop { right: calc(4% + clamp(110px, 34vw, 150px)); }

  .toolbar { grid-template-columns: 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
  .field-search input { max-width: none; }

  .workshop { grid-template-columns: 1fr; padding: 14px; }
  .workshop-side { grid-template-columns: 1fr; gap: 12px; }
  .facts { grid-template-columns: 1fr 1fr; }

  .detail {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    inset: 0;
    margin: 0;
    border-radius: 0;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .detail-media { height: 32dvh; padding: 18px 18px 0; }
  .detail-facts { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 480px) {
  .workshop-open { grid-template-columns: auto 64px minmax(0, 1fr); gap: 12px; }
  .thumb { width: 64px; }
  .when { width: 54px; }
  .when-day { font-size: 1.35rem; }
  .topbar-note { display: none; }
}

/* ————— reduced motion ————— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
