@font-face {
  font-family: 'Fraunces';
  src: url('/artifacts/forma-frontend--v1--s2--beam--impeccable--2026-10-19T18-52-01-799Z/assets/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/artifacts/forma-frontend--v1--s2--beam--impeccable--2026-10-19T18-52-01-799Z/assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4efe6;
  --bg-2: #ebe3d5;
  --surface: #fbf8f2;
  --ink: #1f1a14;
  --ink-soft: #4a4238;
  --muted: #7a7062;
  --accent: #b85c38;
  --accent-2: #2f5d50;
  --line: #d9cfbe;
  --shadow: 0 18px 40px -24px rgba(31,26,20,.25);
  --radius: 18px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 18px;
}
.brand-name { font-family: 'Fraunces', serif; font-size: 22px; letter-spacing: -0.02em; }
.header-nav { display: flex; gap: 24px; font-size: 14px; color: var(--ink-soft); }
.header-nav a { text-decoration: none; }
.header-nav a:hover { color: var(--accent); }

.hero { padding: 48px 0 24px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--accent); margin: 0 0 14px; font-weight: 600;
}
.hero h1 {
  font-family: 'Fraunces', serif; font-size: clamp(44px, 6vw, 84px);
  line-height: .95; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); padding: 12px 20px; border-radius: 999px;
  cursor: pointer; text-decoration: none; font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 14/10; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.toolbar-section { padding: 24px 0 8px; position: sticky; top: 62px; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.toolbar { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.field input, .field select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-size: 15px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.toggle-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px;
  align-self: end;
}
.toggle-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.toggle-pill[aria-pressed="true"] { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.toggle-pill[aria-pressed="true"] .dot { background: #fff; }
.results-meta { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.list-section { padding: 32px 0 64px; }
.item-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.item:hover { transform: translateY(-3px); }
.item-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-cat {
  position: absolute; top: 12px; left: 12px; background: var(--bg); color: var(--ink);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.item-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.item-title { font-family: 'Fraunces', serif; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.item-desc { color: var(--ink-soft); font-size: 14px; margin: 0; flex: 1; }
.item-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); gap: 8px; flex-wrap: wrap; }
.item-meta strong { color: var(--ink); font-weight: 700; }
.item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-family: 'Fraunces', serif; font-size: 20px; }
.open-item {
  background: var(--ink); color: var(--bg); border: none; padding: 10px 16px; border-radius: 999px;
  cursor: pointer; font-weight: 600; font-size: 13px;
}
.open-item:hover { background: var(--accent); }
.open-item:focus-visible, .btn:focus-visible, .toggle-pill:focus-visible, .close-detail:focus-visible, .save-item:focus-visible, #clear-filters:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

.empty-state { text-align: center; padding: 64px 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h2 { font-family: 'Fraunces', serif; margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }

.about { padding: 48px 0 64px; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about h2 { font-family: 'Fraunces', serif; font-size: 36px; margin: 0 0 12px; letter-spacing: -0.02em; }
.about p { color: var(--ink-soft); max-width: 52ch; }
.about figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; }

/* dialog */
.detail-dialog {
  border: none; padding: 0; background: transparent; max-width: min(920px, 92vw); width: 100%;
}
.detail-dialog::backdrop { background: rgba(31,26,20,.55); backdrop-filter: blur(4px); }
.detail-shell {
  background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.4);
  display: grid; grid-template-columns: 1fr 1fr;
}
.detail-media { position: relative; min-height: 320px; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.detail-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.detail-title { font-family: 'Fraunces', serif; font-size: 34px; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
.detail-body { color: var(--ink-soft); font-size: 16px; margin: 0; }
.detail-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; font-size: 14px; }
.detail-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.detail-list strong { color: var(--ink); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.save-item {
  background: var(--accent); color: #fff; border: none; padding: 12px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.save-item[aria-pressed="true"] { background: var(--accent-2); }
.close-detail {
  background: transparent; border: 1px solid var(--line); padding: 12px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-shell { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .item-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .header-inner { padding: 12px 16px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toggle-pill { align-self: stretch; justify-content: center; }
}
