/* Forma — bench studio design
   paper bench, cobalt glaze, ink; Bricolage Grotesque throughout */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3-flash--frontend-design--2026-09-18T23-02-05-522Z/assets/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  --paper: #edeae2;
  --card: #f9f7f2;
  --ink: #1c1b17;
  --ink-soft: #565247;
  --cobalt: #2447c9;
  --cobalt-deep: #1a359b;
  --ember: #b24a1a;
  --line: #d8d3c5;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- top bar ---------- */

.top {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 60;
}
.wordmark-mark { width: 26px; height: 26px; color: var(--cobalt); }

.tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  margin-right: auto;
}

.shelf-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.shelf-btn svg { width: 19px; height: 19px; }
.shelf-btn[aria-pressed="true"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}
.shelf-count {
  background: var(--cobalt);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  min-width: 22px;
  padding: 1px 7px;
  text-align: center;
}
.shelf-btn[aria-pressed="true"] .shelf-count {
  background: #fff;
  color: var(--cobalt-deep);
}

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

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 28px 8px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 750;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}

.lede {
  margin: 0 0 26px;
  max-width: 52ch;
  font-size: 19px;
  color: var(--ink-soft);
}

.hero-facts {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cobalt-deep);
  border-top: 2px solid var(--ink);
  display: inline-block;
  padding-top: 10px;
}

/* the wheel */

.vessel-wrap {
  justify-self: center;
  text-align: center;
}

#vessel {
  width: min(340px, 78vw);
  height: auto;
  display: block;
  touch-action: none;
  cursor: grab;
}
#vessel:active { cursor: grabbing; }

.vessel-body { fill: var(--cobalt); }
.vessel-line {
  fill: none;
  stroke: var(--cobalt-deep);
  stroke-width: 2.5;
}
.vessel-ridge {
  stroke: rgba(249, 247, 242, 0.4);
  stroke-width: 2;
  fill: none;
}
.wheel-rim {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 2;
}
.wheel-dash {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 3;
  stroke-dasharray: 10 14;
  stroke-linecap: round;
}
.spin .wheel-dash { animation: wheelturn 5.5s linear infinite; }
@keyframes wheelturn { to { stroke-dashoffset: -96; } }

.vessel-hint {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* one orchestrated load moment: the vessel draws itself */
.draw .vessel-body {
  animation: bodyin 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.draw .vessel-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: linein 1.4s ease-out 0.15s forwards;
}
.draw .wheel-head,
.draw .vessel-hint { animation: fadein 0.7s ease-out 0.5s both; }
@keyframes bodyin { from { opacity: 0; transform: translateY(14px); } }
@keyframes linein { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* ---------- controls ---------- */

.controls {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 0 28px;
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.field input,
.field select {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  min-width: 220px;
}
.field select { min-width: 190px; }
.field input:focus,
.field select:focus { border-color: var(--cobalt); outline: none; }
.field input:focus-visible,
.field select:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; }

.count {
  margin: 0 0 2px auto;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- schedule rows ---------- */

main { max-width: 1180px; margin: 0 auto; padding: 14px 28px 40px; }

.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 86px 132px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 10px;
  border-bottom: 1.5px solid var(--line);
}
.row:hover { background: var(--card); }
.row.is-saved .row-day { color: var(--cobalt); }

.row-when {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-top: 4px;
}
.row-mon {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.row-day {
  font-size: 46px;
  font-weight: 750;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.03em;
  margin-top: 3px;
}
.row-wk {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 5px;
}

.row-img {
  width: 132px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  display: block;
}

.row-main { min-width: 0; }
.row-title { margin: 0 0 5px; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.row-open {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.row-open::after { content: ""; position: absolute; inset: 0; }
.row:hover .row-open { color: var(--cobalt-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.row-desc {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 15.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-meta {
  margin: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.row-meta .seats-low { color: var(--ember); font-weight: 700; }

.row-side {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
  padding-right: 6px;
}
.row-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cobalt-deep);
}
.row-cat svg { width: 17px; height: 17px; }
.row-price {
  font-size: 21px;
  font-weight: 750;
  font-variation-settings: "opsz" 40;
}
.row-shelved {
  display: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cobalt);
}
.row.is-saved .row-shelved { display: inline; }

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

.empty {
  border: 1.5px dashed var(--ink-soft);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  margin-top: 18px;
}
.empty-title { margin: 0 0 8px; font-size: 24px; font-weight: 750; }
.empty-body { margin: 0 0 22px; color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }

.btn {
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
}
.btn:hover { background: #000; }

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

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 28px 40px;
  border-top: 2px solid var(--ink);
}
.foot p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- detail panel ---------- */

#detail {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-left: 2px solid var(--ink);
  border-radius: 0;
  padding: 0;
  background: var(--card);
  color: var(--ink);
}
#detail::backdrop { background: rgba(23, 22, 18, 0.5); }

@media (prefers-reduced-motion: no-preference) {
  #detail[open] { animation: panelin 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
  @keyframes panelin { from { transform: translateX(60px); opacity: 0; } }
}

.detail-inner {
  height: 100%;
  overflow-y: auto;
  padding-bottom: 110px;
}

.detail-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: var(--card);
  border-bottom: 1.5px solid var(--line);
}
.detail-cat {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--cobalt-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.detail-cat svg { width: 18px; height: 18px; }
.detail-close {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail-close:hover { border-color: var(--ink); }
.detail-close-x { font-size: 18px; line-height: 1; }

.detail-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--ink);
}

.detail-body { padding: 26px 28px 30px; }
.detail-body h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 750;
  font-variation-settings: "opsz" 96;
}
.detail-desc { margin: 0 0 24px; font-size: 17.5px; color: var(--ink-soft); max-width: 44ch; }

.detail-facts {
  margin: 0 0 26px;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
}
.detail-facts div {
  display: contents;
}
.detail-facts dt {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1.5px solid var(--line);
}
.detail-facts dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--line);
}
.detail-facts .fact-low { color: var(--ember); font-weight: 700; }
.detail-facts .fact-price { font-size: 19px; font-weight: 750; }

.btn-save {
  width: 100%;
  background: var(--cobalt);
  font-size: 17px;
  padding: 15px 24px;
}
.btn-save:hover { background: var(--cobalt-deep); }
.btn-save[aria-pressed="true"] {
  background: var(--paper);
  color: var(--cobalt-deep);
  border: 2px solid var(--cobalt);
  padding: 13px 24px;
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 30px; }
  .vessel-wrap { order: 2; }
  #vessel { width: min(280px, 70vw); }
}

@media (max-width: 700px) {
  .top { padding: 16px 18px 0; gap: 10px; flex-wrap: wrap; }
  .tagline { display: none; }
  .wordmark { font-size: 26px; }
  .shelf-btn { margin-left: auto; }
  .hero { padding: 26px 18px 0; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .lede { font-size: 17px; }
  .controls { padding: 0 18px; margin-top: 28px; }
  .field input, .field select { min-width: 0; width: 100%; }
  .field-search, .field-cat { width: 100%; }
  .count { width: 100%; margin: 4px 0 0; }
  main { padding: 10px 18px 30px; }
  .row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "when main"
      "when img"
      "side side";
    gap: 10px 16px;
    padding: 18px 6px;
  }
  .row-when { grid-area: when; }
  .row-day { font-size: 38px; }
  .row-img { grid-area: img; width: 100%; height: 120px; align-self: start; }
  .row-main { grid-area: main; }
  .row-title { font-size: 20px; }
  .row-desc { -webkit-line-clamp: 3; }
  .row-side {
    grid-area: side;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
  }
  .row-price { font-size: 19px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin .wheel-dash { animation: none; }
  .draw .vessel-body,
  .draw .wheel-head,
  .draw .vessel-hint { animation: none; }
  .draw .vessel-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
  #detail[open] { animation: none; }
}
