/* modeltogether.com — the app's own look (src/theme/index.ts): near-black page,
   warm off-white ink, the system face, 4:5 tiles with a 1.5px gap, squircle
   corners. Dark first; the light scheme mirrors the app's. Nothing loads from
   anywhere else — no fonts, no scripts, no trackers. */

:root {
  color-scheme: dark light;
  --page: #08080a;
  --surface: #1b1b1e;
  --raised: #2a2a2e;
  --shine: #3a3a3f;
  --border: #34343a;
  --ink: #f4f3f0;
  --ink-2: #b7b5ae;
  --ink-3: #8a8880;
  --on-ink: #08080a;
  --face: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --page: #fafaf8;
    --surface: #f1f0ec;
    --raised: #e7e5df;
    --shine: #fcfbf9;
    --border: #e7e5df;
    --ink: #121212;
    --ink-2: #4b4a47;
    --ink-3: #8b8983;
    --on-ink: #fafaf8;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body { overflow-x: hidden; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- The wall: a portfolio grid still loading ------------------------- */

/* ONE LIGHT FOR THE WHOLE WALL (Noah, 12.10.2026: "a clean swipe"). The band
   runs across the wall itself, not across each tile, so it is one continuous
   sweep; the tiles are only the 1.5px seams drawn over it in the page colour. */
.wall {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  align-content: start;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--surface);
  background-image: linear-gradient(100deg, transparent 0%, transparent 42%, var(--shine) 50%, transparent 58%, transparent 100%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  background-position: 130% 0;
  animation: sweep 4.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  /* Calm in the middle, where the words are; the grid shows at the edges. */
  -webkit-mask-image: radial-gradient(ellipse 60% 56% at 50% 48%, transparent 0%, rgba(0, 0, 0, 0.18) 45%, #000 100%);
  mask-image: radial-gradient(ellipse 60% 56% at 50% 48%, transparent 0%, rgba(0, 0, 0, 0.18) 45%, #000 100%);
}

.wall span {
  aspect-ratio: 4 / 5;
  box-shadow: inset -0.75px -0.75px 0 0 var(--page), inset 0.75px 0.75px 0 0 var(--page);
}

@keyframes sweep {
  0% { background-position: 130% 0; }
  70%, 100% { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wall { animation: none; background-image: none; }
}

/* ---- The page ------------------------------------------------------------ */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 112px;
  text-align: center;
}

.mark {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 0 0 32px;
  background: var(--page);
}

.mark img { display: block; width: 100%; height: 100%; }

.name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

h1 {
  margin: 0;
  font-size: clamp(48px, 11vw, 96px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.lede {
  margin: 20px 0 0;
  max-width: 34ch;
  text-wrap: balance;
  color: var(--ink-2);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.4;
}

.button[hidden] { display: none; }

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
}

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-3);
}

.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---- Legal pages ---------------------------------------------------------- */

.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.doc .back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 48px;
}

.doc .back img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); }

.doc h1 { font-size: clamp(36px, 7vw, 48px); letter-spacing: -0.03em; margin-bottom: 8px; }

.doc .updated { color: var(--ink-3); font-size: 14px; margin: 0 0 40px; }

.doc h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 40px 0 8px;
}

.doc p, .doc li { color: var(--ink-2); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc strong { color: var(--ink); font-weight: 600; }

.card {
  background: var(--surface);
  border-radius: 22px;
  padding: 20px 22px;
  margin: 0 0 12px;
}

.card p:last-child { margin-bottom: 0; }

.doc .foot { position: static; justify-content: flex-start; margin-top: 64px; }
