:root {
  --ink: #17202a;
  --muted: #66717d;
  --line: #dfe3e7;
  --paper: #f5f5f2;
  --white: #ffffff;
  --accent: #2f5bff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.gallery-header { padding: 28px 0 64px; border-bottom: 1px solid var(--line); }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; }
.gallery-mark { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.gallery-mark span:first-child { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--ink); border-radius: 50%; }
.count { color: var(--muted); }
.intro { max-width: 820px; padding-top: 86px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 8vw, 96px); line-height: .93; letter-spacing: -.065em; }
.lead { max-width: 680px; margin: 30px 0 0; color: #43505d; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.note { display: flex; gap: 12px; align-items: flex-start; max-width: 720px; margin-top: 34px; padding: 16px 18px; color: #4a5561; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.note::before { content: "i"; flex: 0 0 auto; display: grid; place-items: center; width: 21px; height: 21px; color: white; background: var(--ink); border-radius: 50%; font-size: 12px; font-weight: 800; }
.gallery-main { padding: 58px 0 90px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; display: flex; min-height: 350px; padding: 24px; overflow: hidden; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(23,32,42,.09); }
.swatch { position: absolute; inset: 0 0 auto; height: 7px; background: var(--swatch); }
.number { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.card h3 { margin: 33px 0 12px; font-size: 26px; line-height: 1.05; letter-spacing: -.04em; }
.desc { margin: 0; color: #53606d; font-size: 15px; line-height: 1.55; }
.fit { margin: auto 0 22px; padding-top: 30px; color: #394550; font-size: 13px; line-height: 1.45; }
.fit strong { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.button { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; color: white; background: var(--ink); border-radius: 8px; font-size: 13px; font-weight: 750; text-decoration: none; }
.button::after { content: "↗"; font-size: 16px; }
.gallery-footer { padding: 28px 0 40px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 620px); }
  .gallery-header { padding-bottom: 44px; }
  .intro { padding-top: 56px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card { min-height: 330px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 52px; }
}
