@font-face {
  font-family: 'Fraunces';
  src: url('/artifacts/forma-frontend--v1--s2--beam--design-distinctive-websites--2026-10-19T18-53-04-677Z/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/artifacts/forma-frontend--v1--s2--beam--design-distinctive-websites--2026-10-19T18-53-04-677Z/assets/fonts/inter.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3ede2;
  --paper-2: #e9e1d2;
  --ink: #1c1814;
  --ink-soft: #5b544b;
  --ink-faint: #8a8176;
  --accent: #b84a2e;
  --accent-2: #3e5a4a;
  --line: #d8cdb9;
  --line-strong: #bfb39c;
  --surface: #fbf7ef;
  --focus: #2b5fd9;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -24px rgba(28,24,20,.25);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark { font-family: 'Fraunces', Georgia, serif; font-size: 34px; font-weight: 600; color: var(--accent); line-height: 1; }
.brand-name { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.brand-note { margin: 0; font-size: 13px; color: var(--ink-soft); letter-spacing: .02em; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; font-weight: 600; }
.hero h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(44px, 6.4vw, 86px); line-height: .98; letter-spacing: -0.02em; margin: 0 0 20px; font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.hero-lede { max-width: 46ch; color: var(--ink-soft); font-size: 18px; margin: 0 0 24px; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
.hero-meta span { padding-left: 12px; border-left: 1px solid var(--line-strong); }
.hero-meta span:first-child { padding-left: 0; border-left: 0; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-figure figcaption { font-size: 12px; color: var(--ink-faint); margin-top: 10px; letter-spacing: .04em; }

/* Browse */
.browse { padding: 32px 0 80px; border-top: 1px solid var(--line); }
.browse-head { margin-bottom: 28px; display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.browse-head h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(28px, 3vw, 40px); margin: 0; font-weight: 400; letter-spacing: -0.01em; }
.browse-sub { margin: 0; color: var(--ink-soft); }

.toolbar { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 16px; align-items: end; margin-bottom: 32px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
input[type="search"], select {
  font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input[type="search"]:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,74,46,.18);
}
.toggle {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; font-size: 15px;
  transition: background .15s, border-color .15s;
}
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toggle-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.toggle[aria-pressed="true"] .toggle-dot { background: var(--accent); }
.result-count { margin: 0; font-size: 13px; color: var(--ink-faint); align-self: center; justify-self: end; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.item-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.item-title { font-family: 'Fraunces', Georgia, serif; font-size: 24px; line-height: 1.1; margin: 0; font-weight: 400; letter-spacing: -0.005em; }
.item-meta { font-size: 13px; color: var(--ink-soft); margin: 0; }
.item-desc { font-size: 15px; color: var(--ink-soft); margin: 4px 0 8px; flex: 1; }
.open-item {
  align-self: flex-start; margin-top: auto; padding: 8px 0; border: 0; background: none; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--ink);
  transition: color .15s, border-color .15s;
}
.open-item:hover { color: var(--accent); border-color: var(--accent); }
.open-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* Empty */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h3 { font-family: 'Fraunces', Georgia, serif; font-size: 28px; margin: 0 0 8px; font-weight: 400; }
.empty-state p { color: var(--ink-soft); margin: 0 0 18px; }

/* Buttons */
.btn { font: inherit; font-size: 15px; padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-primary[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Overlay / detail */
.overlay { position: fixed; inset: 0; background: rgba(28,24,20,.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay[hidden] { display: none; }
.detail {
  background: var(--surface); border-radius: var(--radius-lg); max-width: 760px; width: 100%; max-height: 90vh; overflow: auto;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.4); position: relative;
}
.close-detail {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.close-detail:hover { background: var(--ink); color: var(--paper); }
.close-detail:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.detail-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.detail-body { padding: 28px 32px 32px; }
.detail-body .eyebrow { color: var(--accent); }
.detail-body h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
.detail-desc { color: var(--ink-soft); font-size: 17px; margin: 0 0 22px; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; margin: 0 0 24px; }
.facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 16px; font-weight: 500; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--ink-faint); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .result-count { grid-column: 1 / -1; justify-self: start; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .toolbar { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .header-inner { padding: 14px 18px; }
  .detail-body { padding: 22px 20px 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .item { transition: none; }
  .item:hover { transform: none; }
}
