/* 3DVWR site. Colors are the app's studio backdrop and wireframe; headings use a DIN-style drafting face. */

@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-600.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #dfe3e8;
  --stage-core: #fbfcfd;
  --ink: #14171c;
  --muted: #4c5461;
  --line: #b4bbc6;
  --accent: #0a5cc2;
  --wire: #14171c;
  --vertex: #1a7ae6;
  --shot-shadow: rgba(20, 23, 28, 0.28);

  --display: "Barlow Semi Condensed", "DIN Alternate", "Arial Narrow", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 34rem;
  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1217;
    --stage-core: #303642;
    --ink: #f2f4f7;
    --muted: #9ba4b3;
    --line: #2f3641;
    --accent: #4da8ff;
    --wire: #ffffff;
    --vertex: #4da8ff;
    --shot-shadow: rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--text);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; }
p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { top: 0.75rem; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.5rem/1 var(--display);
  letter-spacing: 0.01em;
}
.brand img { width: 2.25rem; height: 2.25rem; }
.masthead nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.masthead nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { text-decoration: underline; }

/* Hero: the studio backdrop of the app, with the model the visitor can turn. */

.hero {
  background: radial-gradient(ellipse farthest-side at 72% 46%, var(--stage-core), var(--bg));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 1rem;
  padding-block: clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.012em;
}
.lede {
  max-width: 30rem;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.45;
}
.availability {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 30rem;
  color: var(--muted);
}
.availability strong { color: var(--ink); font-weight: 600; }

.stage { margin: 0; }
.stage canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: grab;
  touch-action: pan-y;
}
.stage canvas.is-dragging { cursor: grabbing; }
.stage figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}
.stage noscript img { width: 60%; margin: 20% auto; }

/* What it does: text on the left edge, the app window on the right. */

.uses { padding-block: clamp(2rem, 6vw, 5rem); display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.use {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.use h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.use p { margin-top: 0.9rem; max-width: var(--measure); color: var(--muted); }
.use p + p { margin-top: 0.7rem; }
.use img { filter: drop-shadow(0 1.4rem 2.6rem var(--shot-shadow)); }

/* Formats: four kinds, the grouping the app uses itself. */

.formats { padding-block: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.formats h2, .private h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.formats > p { margin-top: 1rem; max-width: var(--measure); color: var(--muted); }
.kinds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.kind { padding: 1.25rem 1.25rem 0.5rem 0; }
.kind + .kind { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.kind h3 { font-size: 1.35rem; font-weight: 500; }
.kind ul { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.kind li { display: flex; justify-content: space-between; gap: 0.75rem; padding-block: 0.3rem; }
.kind li span { color: var(--muted); font-size: 0.9375rem; white-space: nowrap; }

.private { padding-block: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.private p { margin-top: 1rem; max-width: var(--measure); }
.private p + p { color: var(--muted); }

/* Footer */

.colophon {
  border-top: 1px solid var(--line);
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.colophon .wrap { display: grid; gap: 1rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }
.colophon a { color: var(--ink); }
.colophon p { max-width: 44rem; }

/* Text pages: privacy, support, not found. */

.page { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem); }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 0.98; }
.prose { max-width: 40rem; }
.prose .updated { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.prose .summary { margin-top: 1.75rem; font-size: 1.25rem; line-height: 1.45; }
.prose h2 { font-size: 1.9rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.3rem; font-weight: 500; margin-top: 2rem; }
.prose p, .prose ul, .prose address { margin-top: 0.9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }
.prose address { font-style: normal; }
.prose .path { font-weight: 600; }

@media (max-width: 52rem) {
  .hero { background: radial-gradient(ellipse farthest-side at 50% 26%, var(--stage-core), var(--bg)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { order: -1; max-width: 26rem; margin-inline: auto; width: 100%; }
  .use { grid-template-columns: minmax(0, 1fr); }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kind:nth-child(3) { padding-left: 0; border-left: 0; }
  .kind:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 30rem) {
  .masthead nav a.optional { display: none; }
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .kind + .kind { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
