/* Reset, typography and layout primitives shared by the website, the studio and the client space. */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
/* Titles in the identity font (Marshi Sans has a single weight: never fake a bold). */
h1, h2, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
h1 { font-size: 2rem; line-height: 1.15; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { margin: 0; }

button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

select, textarea, input[type="text"], input[type="number"], input:not([type]) {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}
textarea { width: 100%; resize: vertical; }

/* Page frame */
.page { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); padding-block: 36px 72px; }

/* Layout primitives */
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.scroll { overflow-x: auto; }

.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.head p { margin-top: 6px; color: var(--muted); max-width: 62ch; }

/* Text utilities */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }

@media (max-width: 860px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
