/* CLST — clst.fr */
:root {
  --bg: #0c0c0c;
  --panel: #141414;
  --line: #262626;
  --fg: #ecebe7;
  --muted: #8b8a86;
  --red: #c4161c;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 20px;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font: 11px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label b { color: var(--red); font-weight: 400; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 12, 12, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mark { display: flex; align-items: center; gap: 12px; }
.mark img { width: 44px; height: auto; }
.mark span { font-weight: 600; letter-spacing: .32em; font-size: 13px; }
.nav { display: flex; gap: 22px; }
.nav a { font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

/* Hero */
.hero { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 72px; }
.hero img { width: 100%; max-height: 78vh; object-fit: contain; }
.hero figure { margin: 0; background: #0c0c0c; }
.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 11vw, 112px);
  line-height: .92;
  letter-spacing: -.02em;
  font-weight: 700;
}
.hero p { max-width: 34ch; color: var(--muted); margin: 0 0 28px; }

.btn {
  display: inline-block;
  padding: 13px 20px;
  border: 1px solid var(--fg);
  font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.btn:hover { background: var(--fg); color: var(--bg); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
h2 { margin: 0; font-size: clamp(24px, 5vw, 40px); line-height: 1.05; letter-spacing: -.01em; font-weight: 600; }
.lede { max-width: 52ch; color: var(--muted); margin: 0; }

/* Grids */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.tile { margin: 0; background: var(--panel); }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tile figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 12px 12px 14px; }
.tile .name { font-size: 13px; }
.tile .code { font: 10px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.renders .tile img { aspect-ratio: 1 / 2; object-position: center top; }
.pair { display: grid; gap: 12px; }
.pair .tile img { aspect-ratio: auto; }

/* Atelier */
.atelier { display: grid; gap: 28px; }
.atelier figure { margin: 0; }
.atelier figcaption { margin-top: 10px; }
.specs { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.specs li span:first-child { font: 11px/1.8 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* About */
.prose { max-width: 60ch; }
.prose p { margin: 0 0 1.2em; }
.prose .sig { color: var(--red); font-style: italic; }
.legal { font: 11px/1.8 var(--mono); color: var(--muted); letter-spacing: .04em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer .close { font-size: 18px; font-weight: 600; margin: 0; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Inner pages */
.page-head { padding-top: 48px; padding-bottom: 16px; }
.page-head h1 { font-size: clamp(36px, 9vw, 80px); line-height: .95; margin: 12px 0 16px; letter-spacing: -.02em; }
section.flush { border-top: 0; padding-top: 40px; }
.lede.gap { margin-top: 16px; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pair { grid-template-columns: 1fr 1fr; gap: 16px; }
  .atelier { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: end; gap: 56px; padding-top: 56px; padding-bottom: 96px; }
  .hero figure { order: 2; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  section { padding: 104px 0; }
}
