@font-face {
  font-family: "Karla";
  src: url("fonts/karla-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --ink: #1a1c20;
  --muted: #8a8789;
  --line: #e6e4e2;
  --paper: #ffffff;
  --tint: #f7f6f4;
  --available: #4c9a6a;
  --reserved: #c8973a;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.7 "Karla", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }

.spaced {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .45em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
}
.logo img { width: clamp(150px, 22vw, 230px); }
.nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }

/* ---------- Intro ---------- */

.intro {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 96px) var(--gutter);
  display: grid; gap: clamp(32px, 6vw, 96px);
  grid-template-columns: 1fr;
  align-items: center;
}
.intro__image { margin: 0; }
.intro__text { max-width: 34em; }
.intro__text p { margin: 0 0 1.1em; color: #444; }

@media (min-width: 860px) {
  .intro { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- Works ---------- */

.works {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 120px) var(--gutter);
}
.works__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 40px;
}
.works__head .spaced { margin: 0; }

.filter { display: flex; gap: 4px; }
.filter__btn {
  border: 0; background: none; padding: 6px 12px;
  font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid transparent;
}
.filter__btn.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { all: unset; display: block; width: 100%; cursor: pointer; }
.card__img {
  aspect-ratio: 4 / 5;
  background: var(--tint);
  overflow: hidden;
}
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease, opacity .4s;
}
.card:hover .card__img img { transform: scale(1.03); }
.card:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

.card__caption {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 12px; font-size: 14px; line-height: 1.4;
}
.card__title { font-weight: 400; }
.card__size { color: var(--muted); display: block; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; letter-spacing: .08em; color: var(--muted);
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
.badge--available { color: var(--available); }
.badge--reserved  { color: var(--reserved); }
.badge--sold::before { background: #c0392b; }

[hidden] { display: none !important; }

/* ---------- Buttons & forms ---------- */

.btn {
  display: inline-block;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 13px 28px;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn--full { width: 100%; }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

input, textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0; background: transparent; border-radius: 0;
  transition: border-color .2s;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
textarea { resize: vertical; }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.check input { width: auto; margin-top: 3px; accent-color: var(--ink); flex: none; }

.form-msg { font-size: 14px; }
.form-msg--error { color: #b03a2e; }

/* ---------- Collectors ---------- */

.collectors {
  background: var(--tint);
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  text-align: center;
}
.collectors > p { color: #555; margin: 0 0 32px; }
.newsletter { max-width: 520px; margin: 0 auto; display: grid; gap: 20px; text-align: left; }
.newsletter__row { display: flex; gap: 16px; align-items: flex-end; }
.newsletter__row input { flex: 1; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max); margin: 0 auto;
  padding: 64px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 32px 80px;
  font-size: 14px; color: var(--muted); line-height: 1.8;
}
.site-footer address { font-style: normal; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { margin-left: auto; align-self: flex-end; }

/* ---------- Modal ---------- */

.modal {
  border: 0; padding: 0;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  background: #fff; color: var(--ink);
  overflow: auto;
}
.modal::backdrop { background: rgba(26, 28, 32, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: rise .35s ease; }
.modal[open]::backdrop { animation: fade .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }

.modal__close {
  position: absolute; top: 8px; right: 12px; z-index: 2;
  border: 0; background: rgba(255,255,255,.8);
  width: 40px; height: 40px; font-size: 28px; line-height: 1; font-weight: 300;
}

.modal__body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .modal__body { grid-template-columns: 1.35fr 1fr; min-height: 560px; }
}

.modal__image {
  margin: 0; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
}
.modal__image img { max-height: min(80dvh, 760px); width: 100%; object-fit: contain; }

.modal__info { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.modal__view h3 { font-weight: 400; font-size: 24px; line-height: 1.3; margin: 0 0 24px; }

.status { margin: 0 0 8px; }

.meta {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 24px;
  margin: 0 0 32px; font-size: 15px;
}
.meta dt { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.meta dd { margin: 0; }
.hint { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.inquiry { display: grid; gap: 18px; }
.inquiry label:not(.check) {
  display: grid; gap: 2px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.inquiry h3 { margin-bottom: 0; }
.inquiry__work { margin: -8px 0 4px; font-size: 14px; color: var(--muted); }
.opt { text-transform: none; letter-spacing: 0; }
.back { border: 0; background: none; padding: 0; justify-self: start; font-size: 13px; color: var(--muted); }
.back:hover { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav a { font-size: 11px; letter-spacing: .14em; }
  .grid { gap: 28px 12px; }
  .card__caption { flex-direction: column; gap: 4px; font-size: 13px; }
  .newsletter__row { flex-direction: column; align-items: stretch; }
  .site-footer .legal { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
