:root {
  /* значения по умолчанию = палитра mint; main.js переопределяет их по ?p= */
  --bg: #10292b;
  --shade: #07191b;
  --ink: #e4f5ef;
  --ink-2: #7fa39c;
  --accent: #8ae5c7;
  --card: #8ae5c7;
  --band: #15373a;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 78% 70% at 50% 46%, transparent 50%, color-mix(in srgb, var(--shade) 55%, transparent) 100%);
}

.fallback {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
}
.fallback.show { display: grid; }
.fallback svg { width: min(56vw, 300px); height: auto; }
.fb-card { fill: var(--card); }
.fb-band { stroke: var(--band); }
.fb-chip { fill: var(--band); }

.frame {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 44px) clamp(20px, 4.5vw, 52px);
  padding-bottom: max(clamp(20px, 4vw, 44px), env(safe-area-inset-bottom));
  pointer-events: none;
}

.wordmark {
  font-family: "Unbounded", "Golos Text", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 1.55vw, 22px);
  letter-spacing: 0.01em;
  color: var(--ink);
}

.label {
  font-style: normal;
  display: grid;
  gap: 3px;
  max-width: 36ch;
}

.mail {
  pointer-events: auto;
  width: max-content;
  max-width: 100%;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px);
  padding-bottom: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mail:hover { color: var(--accent); border-color: var(--accent); }
.mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-color: transparent; }

.org { color: var(--ink-2); margin-top: 12px; }
.addr { color: var(--ink-2); }

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

@media (max-width: 600px) {
  body { font-size: 14px; }
  .label { max-width: 30ch; }
}
