/* ViewPoint Studio — shared stylesheet (17.09.2026)
   One file for every page: tokens, type, layout. Dark by default, light on request. */

:root {
  --bg: #0b0b0e;
  --bg-elev: #131318;
  --fg: #ececf1;
  --fg-muted: #9a9aa6;
  --line: #24242c;
  --accent: #ff3b3b;          /* the X-red of DeathCube */
  --accent-soft: #ff3b3b22;
  --max: 72rem;
  --measure: 44rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fafafa;
    --bg-elev: #ffffff;
    --fg: #121216;
    --fg-muted: #5c5c68;
    --line: #e4e4ea;
    --accent: #d61f1f;
    --accent-soft: #d61f1f14;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

a { color: inherit; text-decoration-color: var(--fg-muted); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); }

/* Header */
.site-header {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.wordmark .mark {
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--fg);
  transform: rotate(45deg);
  position: relative;
}
.wordmark .mark::after {
  content: "";
  position: absolute; inset: 3px;
  background: var(--accent);
}
.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--fg-muted); }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--fg); }

/* Content */
main { max-width: var(--max); margin-inline: auto; padding-block: clamp(2rem, 6vw, 4rem); }
.prose { max-width: var(--measure); }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
p, li { color: var(--fg); }
.meta { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 2rem; }
ul { padding-left: 1.2rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 600; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin-block: 0.75rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--fg-muted); font-weight: 500; }
.table-wrap { overflow-x: auto; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 0.75rem 1rem;
  margin-block: 1rem;
  border-radius: 0 6px 6px 0;
}

/* Policy accordion */
.policy details { border-top: 1px solid var(--line); }
.policy details:last-of-type { border-bottom: 1px solid var(--line); }
.policy summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 1.1rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.policy summary::-webkit-details-marker { display: none; }
.policy summary::after {
  content: "+";
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.policy details[open] > summary::after { content: "−"; }
.policy details > :not(summary) { margin-left: 0; }
.policy details > p:first-of-type, .policy details > ul:first-of-type, .policy details > h3:first-of-type { margin-top: 0; }
.policy details > :last-child { margin-bottom: 1.25rem; }
.policy h4 { font-size: 1rem; margin: 1.25rem 0 0.4rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

/* Home */
.hero { min-height: 60vh; display: grid; align-content: center; gap: 1.25rem; }
.hero p { max-width: 36rem; color: var(--fg-muted); font-size: 1.15rem; }
.hero .cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; }
.button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: var(--bg-elev);
}
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin-inline: auto;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}
.site-footer a { text-decoration: none; }
