/* Studio — surface produit. Neutre, dense, sans effet. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-100900-0.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Spline Mono";
  src: url("assets/fonts/spline-mono-400-0.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f0f0ee;
  --card: #fbfbfa;
  --ink: #111110;
  --muted: #6b6b66;
  --line: #d9d9d4;
  --line-strong: #b8b8b2;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  overscroll-behavior-y: contain;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 0 clamp(18px, 4vw, 56px) 80px;
}

a {
  color: inherit;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus-visible {
  transform: none;
}

:focus-visible {
  outline: 2px solid #1c4fe0;
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

.top {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
}

.top p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.top .brand {
  color: var(--ink);
  letter-spacing: 0.02em;
}

.top .who {
  text-align: center;
}

.top .count {
  text-align: right;
}

.top-sim {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

.top-sim:hover {
  color: #1c4fe0;
  border-color: #1c4fe0;
}

main {
  padding-top: clamp(34px, 6vw, 64px);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 500;
  font-stretch: 88%;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 clamp(30px, 5vw, 52px);
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3d3d38;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.preview {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #e4e4e0;
  border-bottom: 1px solid var(--line);
}

.preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 990px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(var(--s, 0.3));
  pointer-events: none;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px 16px 18px;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card-line {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.card-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4a4a44;
  min-height: 5.6em;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.card-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.card-preview:hover {
  border-color: var(--ink);
  background: #fff;
}

.card-link {
  justify-self: start;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.card-link:hover {
  color: #1c4fe0;
  border-color: #1c4fe0;
}

.sys {
  margin-top: clamp(44px, 7vw, 90px);
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 4vw, 60px);
}

.sys h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sys dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  margin: 0;
}

.sys div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.sys dt {
  font-weight: 600;
  font-size: 13px;
}

.sys dd {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #4a4a44;
  line-height: 1.5;
}

.note {
  grid-column: 2;
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-desc {
    min-height: 4.2em;
  }
}

@media (max-width: 680px) {
  .top {
    grid-template-columns: 1fr auto;
  }
  .top-sim {
    display: none;
  }
  .top .who {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card-desc {
    min-height: 0;
  }
  .sys {
    grid-template-columns: 1fr;
  }
  .sys dl {
    grid-template-columns: 1fr;
  }
  .note {
    grid-column: 1;
  }
}

html {
  overscroll-behavior-y: contain;
}
