:root {
  --paper: #f3efe6;
  --ink: #1c1915;
  --muted: #5e574c;
  --line: #ddd4c6;
  --card: #fbf8f3;
  --brass: #8d6840;
  --photo: #efebe3;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a { color: inherit; }

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

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.top {
  border-bottom: 1px solid var(--line);
  background: #f7f4ee;
}

.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
  text-decoration: none;
}

.top-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.crumb {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--brass); }

.catalog { padding: 2.2rem 0 3rem; }

.catalog h1 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.product-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.6rem;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
}

.product-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  background: white;
}

.product-card h2 {
  margin: 0.35rem 0 0.4rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-card p { margin: 0; color: var(--muted); }

.card-price {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: 1.75rem;
  align-items: start;
  padding: 1.75rem 0 0.5rem;
}

.frame {
  background: white;
  border: 1px solid var(--line);
}

.frame img { width: 100%; }

.identity { padding-top: 0.15rem; }

.kicker {
  margin: 0 0 0.35rem;
  color: var(--brass);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.part {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

h1 {
  margin: 1rem 0 0.4rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
}

.spec th,
.spec td {
  text-align: left;
  vertical-align: top;
  padding: 0.62rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

.spec tr:last-child th,
.spec tr:last-child td { border-bottom: 0; }

.spec th {
  width: 42%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec td { font-size: 0.98rem; }

.spec .title-cell {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.3;
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.section {
  padding: 2.25rem 0 0;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

figure { margin: 0; }

figcaption {
  padding: 0.65rem 0.8rem 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.prose {
  max-width: 42rem;
  margin: 0;
}

footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.4rem;
}

@media (max-width: 860px) {
  .hero,
  .gallery,
  .product-card { grid-template-columns: 1fr; }
  .product-card img { height: auto; object-fit: contain; }
  .spec th { width: 38%; }
  .top-inner,
  .foot { flex-direction: column; align-items: flex-start; }
  .top-note { letter-spacing: 0.08em; }
}
