:root {
  --paper: #f6f4ee;
  --card: #fffefa;
  --ink: #2b2a28;
  --muted: #696962;
  --line: #d9d8d0;
  --blue: #4e708c;
  --blue-pale: #e8eef0;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
.site-shell { max-width: 1480px; margin: auto; padding: 0 clamp(22px, 5vw, 84px); }
.topbar { height: 82px; display: flex; align-items: center; border-bottom: 1px solid var(--line); gap: 18px; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: -.055em; text-decoration: none; }
.brand-dot { color: var(--blue); }
.topbar-label, .topbar-contact, .edition, .section-index, .catalog-count, .card-category, .card-number, .card-overline, .card-price, .card-state, footer { font-family: var(--mono); }
.topbar-label { font-size: 12px; color: var(--muted); }
.topbar-contact { margin-left: auto; font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.topbar-contact:hover, .intro-link:hover, .closing a:hover, footer a:hover { color: var(--blue); border-color: var(--blue); }
.edition { display: flex; align-items: center; gap: 10px; margin-top: 64px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.edition-mark { font-size: 19px; line-height: 1; }
.edition-line { width: 35px; border-top: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 50px; align-items: end; padding: 25px 0 85px; }
h1 { font-size: clamp(64px, 8.3vw, 132px); letter-spacing: -.085em; line-height: .93; font-weight: 600; margin: 0; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.09em; }
h1 span { color: var(--blue); }
.intro-side { max-width: 380px; padding-bottom: 9px; }
.intro-side p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.48; letter-spacing: -.022em; margin: 0 0 30px; text-wrap: pretty; }
.intro-link { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.catalog { padding-bottom: 115px; }
.catalog-head { border-top: 1px solid var(--ink); padding: 19px 0 30px; display: flex; justify-content: space-between; align-items: end; }
.section-index { font-size: 11px; letter-spacing: .08em; color: var(--blue); }
h2 { margin: 12px 0 0; font-size: clamp(31px, 3vw, 43px); font-weight: 600; letter-spacing: -.055em; }
.catalog-count { font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 25px; }
.filter { background: transparent; border: 1px solid var(--line); border-radius: 100px; padding: 11px 16px; color: var(--muted); font-size: 12px; cursor: pointer; min-height: 44px; transition: background .15s, color .15s, border-color .15s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.drag-hint { margin: -7px 0 12px; font: 11px var(--mono); color: var(--muted); }
.cards { position: relative; width: 100%; min-height: 320px; isolation: isolate; background: radial-gradient(ellipse at 40% 42%, rgba(232,238,240,.4), transparent 72%); }
.card { position: absolute; top: 0; left: 0; width: min(246px, calc(100% - 16px)); padding: 15px 17px 12px; display: flex; flex-direction: column; background: var(--card); border: 1px solid #dadbd6; border-radius: 22px; box-shadow: 0 8px 32px rgba(42,58,65,.07), 0 2px 5px rgba(42,58,65,.035); transition: border-color .2s, box-shadow .2s; will-change: transform; }
.card:nth-child(3n + 1) { background: #f4f8f7; }
.card:nth-child(4n + 2) { background: #f8f5ee; }
.card:hover, .card:focus-within { border-color: #8c9fa7; box-shadow: 0 12px 34px rgba(42,58,65,.13); z-index: 2; }
.card.dragging { z-index: 5; box-shadow: 0 20px 50px rgba(42,58,65,.19); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 26px; cursor: grab; touch-action: none; user-select: none; }
.card.dragging .card-top { cursor: grabbing; }
.card-top:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 5px; }
.card-category, .card-grip { font-size: 10px; color: var(--blue); letter-spacing: .035em; text-transform: uppercase; }
.card-grip { letter-spacing: -.15em; font-size: 17px; opacity: .66; padding-right: 5px; }
.card-body { padding: 9px 0 14px; }
.card-overline { margin: 0 0 5px; font-size: 10px; line-height: 1.35; color: var(--muted); }
.card-title { margin: 0; font-size: 19px; line-height: 1.16; letter-spacing: -.045em; font-weight: 600; overflow-wrap: anywhere; text-wrap: balance; }
.card-bottom { border-top: 1px solid var(--line); padding: 10px 0 7px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.card-price { font-size: 12px; letter-spacing: -.03em; white-space: nowrap; }
.card-state { font-size: 9px; text-align: right; color: var(--blue); text-transform: uppercase; letter-spacing: .01em; }
.card-details { border-top: 1px solid var(--line); }
.details-toggle { list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; padding: 4px 0 0; font-size: 11px; font-weight: 600; min-height: 34px; }
.details-toggle::-webkit-details-marker { display: none; }
.details-toggle::after { content: '+'; font-size: 20px; font-weight: 400; line-height: 1; color: var(--blue); }
.card-details[open] .details-toggle::after { content: '−'; }
.details-content { padding: 9px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.details-content p { margin: 0 0 10px; }
.details-next { color: var(--ink); }
.source-link { display: inline-block; margin-top: 4px; color: var(--blue); text-underline-offset: 4px; }
.error { padding: 30px; border: 1px solid var(--line); }
.closing { border-top: 1px solid var(--ink); display: grid; grid-template-columns: .8fr 2.6fr; gap: 36px; padding: 32px 0 75px; align-items: start; }
.closing p { margin: 0; }
.closing > p:not(.closing-fine) { font-size: clamp(22px, 2.3vw, 31px); line-height: 1.27; letter-spacing: -.045em; max-width: 540px; }
.closing a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.closing-fine { font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 270px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
@media (max-width: 800px) {
  .edition { margin-top: 52px; }
  .intro { grid-template-columns: 1fr; gap: 29px; padding-bottom: 75px; }
  .intro-side { max-width: 560px; }
  h1 { font-size: clamp(62px, 13vw, 105px); }
  .closing { grid-template-columns: 1fr 1fr; gap: 22px; }
  .closing .section-index { grid-column: span 2; }
}
@media (max-width: 600px) {
  .topbar { height: 68px; }
  .topbar-contact { font-size: 11px; }
  .edition { margin-top: 42px; font-size: 10px; }
  h1 { font-size: clamp(57px, 15vw, 86px); }
  .intro-side p { font-size: 17px; }
  .catalog-head { padding-bottom: 23px; }
  .filter-list { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * clamp(22px, 5vw, 84px)); padding-right: 22px; scrollbar-width: thin; }
  .filter { flex: 0 0 auto; }
  .card { width: min(246px, calc(100% - 16px)); }
  .closing { grid-template-columns: 1fr; padding-bottom: 65px; }
  .closing .section-index { grid-column: auto; }
  .closing-fine { max-width: 490px; }
  footer { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
