/* ============================================================
   Forma — "the studio session slip"
   Warm paper canvas, ink text, clay-terracotta accent.
   Signature device: the ruled date-stamp tab.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s1--glm-5.3-flash--design-distinctive-websites--2026-09-19T08-32-57-857Z/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/artifacts/forma-frontend--v1--s1--glm-5.3-flash--design-distinctive-websites--2026-09-19T08-32-57-857Z/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/artifacts/forma-frontend--v1--s1--glm-5.3-flash--design-distinctive-websites--2026-09-19T08-32-57-857Z/assets/fonts/instrument-sans-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f4eee1;
  --surface: #fdfbf4;
  --ink: #241b10;
  --ink-soft: #4c4232;
  --muted: #71654f;
  --line: #ddd1b9;
  --line-strong: #241b10;
  --accent: #c0531e;
  --accent-deep: #9c3f11;
  --teal: #175e58;
  --gold: #b07c17;
  --brown: #7a4a21;
  --focus: #175e58;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;

  --shell: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 12px;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

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

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

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shared bits ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn .ico { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* The date-stamp tab — signature device */
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 8px 10px 7px;
  border-top: 2.5px solid var(--line-strong);
  border-bottom: 2.5px solid var(--line-strong);
  line-height: 1;
  text-align: center;
}
.stamp__month {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.stamp__day {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 560;
  font-variation-settings: "opsz" 60;
  margin-top: 3px;
}
.stamp--compact { min-width: 44px; padding: 5px 7px 4px; border-top-width: 2px; border-bottom-width: 2px; }
.stamp--compact .stamp__day { font-size: 20px; }

/* category dot + label */
.cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot[data-cat="Ceramics"]  { background: var(--teal); }
.dot[data-cat="Painting"]  { background: var(--accent); }
.dot[data-cat="Floristry"] { background: var(--gold); }
.dot[data-cat="Baking"]    { background: var(--brown); }

/* scribble underline */
.scribble-wrap { position: relative; white-space: nowrap; }
.scribble {
  position: absolute;
  left: -1%; right: -2%; bottom: -0.12em;
  width: 103%; height: 0.18em;
  color: var(--accent);
  pointer-events: none;
}

/* ============================================================
   Header
   ============================================================ */

.site-head {
  border-bottom: 1px solid var(--line);
  background: #f8f3e7;
  background: color-mix(in srgb, var(--paper) 88%, #fff);
}
.site-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 620;
  font-variation-settings: "opsz" 40;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark__dot { color: var(--accent); }
.site-head__note { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   Hero
   ============================================================ */

.hero { padding-block: clamp(44px, 7vw, 88px) clamp(48px, 7vw, 92px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 480;
  font-variation-settings: "opsz" 100;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 18px;
  text-wrap: balance;
}
.hero__sub {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 18.5px;
  color: var(--ink-soft);
}
.hero__actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero__meta { font-size: 13.5px; color: var(--muted); }

.hero__figure { position: relative; }
.hero__photo { position: relative; }
.hero__photo::before {
  /* offset slip-board behind the photo */
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--accent);
  border-radius: var(--radius-m);
  opacity: 0.16;
}
.hero__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
.hero__tag {
  position: absolute;
  left: 14px; bottom: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: 0 10px 24px rgba(36, 27, 16, 0.14);
  padding: 10px 16px 10px 10px;
  max-width: min(320px, 88%);
}
.hero__tag-text { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.hero__tag-text strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   Browse / ledger
   ============================================================ */

.browse { padding-block: clamp(40px, 6vw, 72px); }
.browse__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.browse__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 520;
  font-variation-settings: "opsz" 70;
  letter-spacing: -0.01em;
}
.browse__count { font-size: 14px; color: var(--muted); font-weight: 600; }

/* toolbar */
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) auto;
  gap: 14px 20px;
  align-items: end;
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.toolbar__label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.toolbar__input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  transition: border-color 0.18s var(--ease);
}
.toolbar__input:hover { border-color: #c8b995; }
.toolbar__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.toolbar__select { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23241b10' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.btn--toggle {
  padding: 11px 18px;
  border-radius: var(--radius-s);
  font-size: 15px;
}
.btn--toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* ledger rows */
.ledger {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.row {
  display: grid;
  grid-template-columns: 44px 66px 216px minmax(0, 1fr) auto;
  gap: 12px 26px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.row:first-child { border-top: 1px solid var(--line-strong); }
.row__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  font-weight: 480;
  color: var(--muted);
  text-align: right;
}
.row__media { position: relative; }
.row__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease);
}
.row:hover .row__media img { transform: translateY(-3px); }
.row__saved-flag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.row__main { min-width: 0; }
.row__title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 560;
  font-variation-settings: "opsz" 40;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin-top: 7px;
}
.row__title-btn {
  all: unset;
  cursor: pointer;
  display: inline;
}
.row__title-btn:hover { color: var(--accent-deep); }
.row__title-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.row__desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 52ch;
}
.row__instructor { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
.row__instructor em { color: var(--muted); font-style: italic; }

.row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.row__meta {
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.row__price {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 560;
  font-variation-settings: "opsz" 50;
}
.row__price small {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.row__open {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.row__open:hover { background: var(--ink); color: var(--paper); }
.row__open .ico { width: 14px; height: 14px; }

/* empty state */
.empty {
  text-align: center;
  padding: clamp(48px, 8vw, 90px) 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-m);
  margin-top: 28px;
  background: var(--surface);
}
.empty__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 540;
  font-variation-settings: "opsz" 60;
}
.empty__sub { margin-top: 10px; color: var(--muted); }
.empty .btn { margin-top: 22px; }

/* ============================================================
   Closing band + footer
   ============================================================ */

.closing {
  margin-top: clamp(32px, 5vw, 64px);
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(56px, 8vw, 96px);
}
.closing__inner { max-width: 760px; }
.closing__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 470;
  font-variation-settings: "opsz" 100;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.closing__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 520;
}
.closing__sub { margin-top: 18px; font-size: 17px; color: #cfc4ad; max-width: 52ch; }
.closing .btn { margin-top: 28px; }
.closing :focus-visible { outline-color: var(--paper); }

@media (max-width: 560px) {
  .detail__close { position: fixed; top: 14px; right: 14px; margin-bottom: 0; }
}

.site-foot { background: var(--ink); color: #a89a7f; border-top: 1px solid #3d3221; }
.site-foot__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 30px;
  font-size: 13.5px;
}
.site-foot__mark {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--paper);
  font-weight: 600;
}
.site-foot__mark span { color: var(--accent); }
.site-foot__note { max-width: 60ch; }

/* ============================================================
   Detail dialog
   ============================================================ */

.detail {
  width: min(940px, calc(100vw - 32px));
  max-width: min(940px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 64px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(36, 27, 16, 0.35);
  overscroll-behavior: contain;
}
.detail::backdrop {
  background: rgba(24, 17, 9, 0.55);
  backdrop-filter: blur(2px);
}
.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  min-height: 520px;
}
.detail__media { position: relative; min-height: 240px; }
.detail__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail__body {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  overflow-y: auto;
  max-height: min(760px, calc(100vh - 64px));
}
.detail__close {
  position: sticky;
  top: 14px;
  margin-left: auto;
  margin-bottom: -42px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
  z-index: 2;
}
.detail__close svg { width: 16px; height: 16px; }
.detail__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.detail__kicker { display: flex; align-items: center; gap: 8px; }
.detail__headrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.detail__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 520;
  font-variation-settings: "opsz" 80;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.detail__text {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 48ch;
}

.facts {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.facts__item {
  padding: 13px 14px 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin-top: 4px; font-weight: 600; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.facts__item--price dd {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent-deep);
  line-height: 1;
}

.detail__actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
#save-item[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
}
#save-item[aria-pressed="true"] .ico-bookmark { fill: currentColor; }
.detail__hint { font-size: 13px; color: var(--muted); max-width: 24ch; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .row {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    grid-template-areas:
      "stamp main  side"
      "media media media";
    align-items: start;
  }
  .row__index { display: none; }
  .row__stamp { grid-area: stamp; }
  .row__main { grid-area: main; }
  .row__side { grid-area: side; }
  .row__media { grid-area: media; margin-top: 6px; }
  .row__media img { aspect-ratio: 16 / 9; }
  .detail__grid { grid-template-columns: 1fr; }
  .detail__media { min-height: 220px; }
  .detail__media img { position: relative; aspect-ratio: 16 / 9; }
  .detail__body { max-height: none; overflow: visible; }
  .detail { max-height: calc(100vh - 32px); overflow-y: auto; }
}

@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { margin-top: 12px; max-width: 560px; }
  .hero__tag { bottom: auto; top: calc(100% - 24px); }
  .hero__figure { padding-bottom: 34px; }
  .toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .toolbar__field--saved .btn--toggle { justify-content: center; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .site-head__row { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 14px; }
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-areas:
      "stamp main"
      "media media"
      "side  side";
  }
  .row__side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    width: 100%;
    margin-top: 4px;
  }
  .row__price { font-size: 23px; }
  .row__price small { display: inline; margin-left: 6px; }
  .detail { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100dvh; border-radius: 0; border: none; }
  .detail__body { padding-top: 64px; }
}
