/* ============================================================
   Forma — studio bulletin
   kraft paper, cobalt & pink ink, printed plates, timetable rows
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/artifacts/forma-frontend--v1--s3-alternative-direction--glm-5.3-flash--frontend-design--2026-10-12T14-25-54-870Z/assets/fonts/BricolageGrotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/artifacts/forma-frontend--v1--s3-alternative-direction--glm-5.3-flash--frontend-design--2026-10-12T14-25-54-870Z/assets/fonts/Newsreader-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/artifacts/forma-frontend--v1--s3-alternative-direction--glm-5.3-flash--frontend-design--2026-10-12T14-25-54-870Z/assets/fonts/Newsreader-italic-latin.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --paper: #efe6d4;
  --paper-deep: #e5dac2;
  --paper-raised: #f6f0e3;
  --ink: #26241f;
  --ink-soft: #57534a;
  --rule: rgba(38, 36, 31, 0.25);
  --rule-faint: rgba(38, 36, 31, 0.14);
  --cobalt: #2440a8;
  --pink: #e94f6e;
  --pink-deep: #b62a4c;
  --sun: #e8a93c;
  --toast: #8a4b2f;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --shell-max: 1180px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* printed-paper grain, laid over everything but touching nothing */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
::selection { background: var(--pink); color: var(--paper-raised); }

.shell { max-width: var(--shell-max); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cobalt); color: #fff; padding: 10px 16px;
  font-weight: 700; text-decoration: none; border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 2px solid var(--ink); background: var(--paper); }
.masthead-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-block: 18px; flex-wrap: wrap;
}
.wordmark {
  font-weight: 800; font-size: 26px; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 9px; line-height: 1;
}
.wordmark-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--pink); box-shadow: 3px 3px 0 var(--cobalt);
  flex: none;
}
.masthead-note { font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 84px) clamp(24px, 3vw, 40px); }
.misprint {
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: clamp(44px, 7.4vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 12ch;
  position: relative;
  color: var(--ink);
}
.misprint::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--pink);
  z-index: -1;
  transform: translate(0.045em, 0.04em);
  animation: register 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes register {
  from { transform: translate(0.12em, 0.09em); opacity: 0.4; }
  to   { transform: translate(0.045em, 0.04em); opacity: 1; }
}
.hero-copy {
  font-family: var(--serif);
  font-size: 19px; line-height: 1.6;
  max-width: 56ch;
  margin-top: 26px;
  color: var(--ink);
}

/* ---------- printed plates ---------- */
.plates {
  display: flex; align-items: flex-end; gap: clamp(14px, 2.5vw, 28px);
  padding-block: 8px clamp(36px, 5vw, 64px);
}
.plate {
  position: relative;
  flex: none;
  background: var(--cobalt);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(1.06);
  mix-blend-mode: screen;
}
.plate::after { /* second ink pass */
  content: ""; position: absolute; inset: 0;
  background: var(--pink); opacity: 0.22; mix-blend-mode: multiply;
  pointer-events: none;
}
.plate-a { width: 30%; aspect-ratio: 4 / 3; transform: rotate(-1.4deg); }
.plate-b { width: 26%; aspect-ratio: 3 / 4; transform: rotate(1deg); }
.plate-c { width: 30%; aspect-ratio: 4 / 3; transform: rotate(-0.6deg); }
.plate figcaption {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  background: var(--paper-raised); border: 1.5px solid var(--ink);
  padding: 3px 10px; font-size: 13.5px; font-weight: 600;
  transform: rotate(0deg);
}
.plate-a figcaption { transform: rotate(1.4deg); }
.plate-b figcaption { transform: rotate(-1deg); }
.plate-c figcaption { transform: rotate(0.6deg); }
@media (hover: hover) {
  .plate:hover img { filter: none; mix-blend-mode: normal; }
  .plate::after { opacity: 0; }
  .plate img, .plate::after { transition: opacity 0.25s ease; }
}

/* ---------- schedule board ---------- */
.board { padding-block: 8px 72px; }
.board-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.board-head h2 {
  font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.05;
}
.result-count { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 15.5px; }

/* controls */
.controls {
  display: flex; align-items: end; gap: 18px; flex-wrap: wrap;
  margin-top: 20px; padding-block: 16px;
  border-block: 1.5px solid var(--rule);
}
.control { display: flex; flex-direction: column; gap: 5px; }
.control label, .control-label {
  font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em;
}
.control-search { flex: 1 1 260px; }
.control-search input {
  width: 100%; padding: 9px 12px;
  font: inherit; color: var(--ink);
  background: var(--paper-raised);
  border: 1.5px solid var(--ink); border-radius: 0;
}
.control-search input::placeholder { color: rgba(38, 36, 31, 0.45); }
.control-category select {
  appearance: none; -webkit-appearance: none;
  padding: 9px 38px 9px 12px; min-width: 176px;
  font: inherit; color: var(--ink);
  background-color: var(--paper-raised);
  border: 1.5px solid var(--ink); border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2326241f' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.toggle {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper-raised); font-weight: 600;
}
.toggle-face {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--ink); flex: none;
  background: transparent;
  transition: background 0.15s ease;
}
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper-raised); }
.toggle[aria-pressed="true"] .toggle-face { background: var(--pink); border-color: var(--paper-raised); }
.badge {
  min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--pink-deep); color: #fff;
  font-size: 13px; font-weight: 700; text-align: center; line-height: 1.5;
}
.toggle[aria-pressed="true"] .badge { background: var(--paper-raised); color: var(--ink); }

/* timetable rows */
.schedule { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 76px 96px minmax(0, 1fr) auto auto auto;
  align-items: center; gap: 20px;
  padding-block: 16px;
  border-bottom: 1px dashed var(--rule);
  cursor: pointer;
}
.row:hover, .row:focus-within { background: var(--paper-deep); }
.row-date { text-align: center; line-height: 1; border-right: 1.5px solid var(--rule); padding-right: 18px; }
.row-wd { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-soft); }
.row-day { display: block; font-weight: 800; font-variation-settings: "opsz" 96; font-size: 30px; letter-spacing: -0.02em; margin-top: 3px; }
.row-mon { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 3px; }
.row-thumb {
  width: 96px; aspect-ratio: 1; overflow: hidden;
  border: 2px solid var(--ink);
}
.row-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.05); }
.row[data-cat="Ceramics"]  .row-thumb { background: var(--cobalt); }
.row[data-cat="Floristry"] .row-thumb { background: var(--pink); }
.row[data-cat="Painting"]  .row-thumb { background: var(--sun); }
.row[data-cat="Baking"]    .row-thumb { background: var(--toast); }
.row-thumb img { mix-blend-mode: screen; }
@media (hover: hover) {
  .row:hover .row-thumb img { filter: none; mix-blend-mode: normal; }
}
.row-main { min-width: 0; }
.row-heading {
  font-weight: 700; font-size: 21px; letter-spacing: -0.01em; line-height: 1.15;
}
.row-meta { margin-top: 4px; font-family: var(--serif); font-size: 15.5px; color: var(--ink-soft); }
.row-meta strong { font-weight: 600; color: var(--ink); font-style: italic; }
.row-side { display: contents; }
.row[data-cat="Ceramics"]  .chip { color: var(--cobalt); }
.row[data-cat="Floristry"] .chip { color: var(--pink-deep); }
.row[data-cat="Painting"]  .chip { color: var(--toast); }
.row[data-cat="Baking"]    .chip { color: var(--toast); }
.chip {
  display: inline-block; padding: 4px 12px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em;
  border: 1.5px solid currentColor; border-radius: 2px;
  background: var(--paper-raised);
}
.row-saved-flag {
  display: block; margin-top: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--pink-deep);
}
.row-saved-flag[hidden] { display: none; }
.row-price { font-weight: 800; font-size: 20px; font-variation-settings: "opsz" 96; }
.row-open {
  padding: 9px 18px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper-raised); font-weight: 700; font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}
.row-open:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* empty state */
.empty-state {
  margin-top: 28px; padding: 36px 28px;
  border: 1.5px dashed var(--rule);
  text-align: center;
}
.empty-title { font-family: var(--serif); font-style: italic; font-size: 22px; }
.empty-copy { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.ghost-button {
  margin-top: 18px; padding: 9px 18px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; font-weight: 700; font-size: 15px;
}
.ghost-button:hover { background: var(--ink); color: var(--paper-raised); }

/* ---------- colophon ---------- */
.colophon {
  border-top: 2px solid var(--ink);
  padding-block: 28px 44px;
  font-family: var(--serif); color: var(--ink-soft);
}
.colophon-mark {
  font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.colophon-mark .wordmark-dot { width: 9px; height: 9px; box-shadow: 2px 2px 0 var(--cobalt); }
.colophon p + p { margin-top: 6px; }
.colophon-small { font-size: 13.5px; }

/* ---------- ticket (detail dialog) ---------- */
.ticket {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 0; border: 2px solid var(--ink); border-radius: 4px;
  background: var(--paper-raised); color: var(--ink);
  box-shadow: 10px 10px 0 rgba(38, 36, 31, 0.22);
  overscroll-behavior: contain;
}
.ticket::backdrop { background: rgba(38, 36, 31, 0.55); }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow-y: auto; }
.ticket-plate {
  position: relative; margin: 0; min-height: 100%;
  border-right: 2px dashed var(--rule);
  overflow: hidden;
}
.ticket-plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ticket-cat {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--paper-raised); border: 1.5px solid var(--ink);
  padding: 4px 12px; font-size: 13.5px; font-weight: 700;
}
.ticket[data-cat="Ceramics"] .ticket-plate { background: var(--cobalt); }
.ticket[data-cat="Floristry"] .ticket-plate { background: var(--pink); }
.ticket[data-cat="Painting"] .ticket-plate { background: var(--sun); }
.ticket[data-cat="Baking"] .ticket-plate { background: var(--toast); }
.ticket-body { padding: clamp(22px, 3.5vw, 36px); }
.ticket-close {
  position: absolute; top: 14px; right: 14px;
  padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper-raised); font-weight: 700; font-size: 14px;
}
.ticket-close:hover { background: var(--ink); color: var(--paper-raised); }
.ticket h2 {
  font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.02;
  letter-spacing: -0.02em; max-width: 14ch;
  padding-right: 70px;
}
.ticket-instructor {
  margin-top: 10px; font-family: var(--serif); font-style: italic;
  font-size: 17px; color: var(--ink-soft);
}
.ticket-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 14px 18px;
  margin-top: 22px; padding-block: 18px;
  border-block: 1.5px solid var(--rule);
}
.ticket-facts dt { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.ticket-facts dd { margin-top: 3px; font-weight: 700; font-size: 17px; }
.ticket-desc {
  margin-top: 20px;
  font-family: var(--serif); font-size: 18.5px; line-height: 1.65;
  max-width: 58ch;
}
.ticket-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
#save-btn {
  padding: 11px 22px; border: 1.5px solid var(--cobalt); border-radius: 999px;
  background: var(--cobalt); color: #fff;
  font-weight: 700; font-size: 15.5px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
#save-btn[aria-pressed="true"] { background: var(--paper-raised); color: var(--ink); border-color: var(--ink); }
#save-btn[aria-pressed="true"]::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); margin-right: 8px; }
html.dialog-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .row { grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px 16px; }
  .row-thumb { display: none; }
  .chip { grid-column: 3; }
  .row-price { grid-column: 4; }
  .row-open { grid-column: 2 / 5; grid-row: 2; justify-self: end; }
}
@media (max-width: 640px) {
  .plates {
    justify-content: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 28px;
  }
  .plate { width: 62vw; max-width: 300px; scroll-snap-align: start; }
  .plates { padding-top: 10px; }
  .controls { align-items: stretch; flex-direction: column; }
  .control-shortlist { flex-direction: row; align-items: center; }
  .ticket-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .ticket-plate { min-height: 220px; border-right: 0; border-bottom: 2px dashed var(--rule); }
  .ticket { max-height: none; height: calc(100vh - 32px); }
  .row { display: block; padding-block: 20px; }
  .row-date { display: flex; align-items: baseline; gap: 10px; text-align: left; border-right: 0; border-bottom: 1.5px solid var(--rule); padding: 0 0 10px; }
  .row-day { font-size: 24px; margin-top: 0; }
  .row-thumb { display: none; }
  .row-side { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
  .row-price { margin-left: auto; font-size: 18px; }
  .row-open { display: block; width: 100%; margin-top: 12px; }
  .row-saved-flag { display: inline; margin-left: 10px; }
  .row-saved-flag[hidden] { display: none; }
}

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