/* Shared base for the static Sleipner pages (sleipner.ai, design.sleipner.ai). Served at /brand/base.css.
   The Next.js apps carry their own copy of these tokens; keep the two in step. */

@font-face { font-family: "Mabry Pro"; src: url("/brand/fonts/MabryPro-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Mabry Pro"; src: url("/brand/fonts/MabryPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mabry Pro"; src: url("/brand/fonts/MabryPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0A0A0A;
  --fg: #FAFAFA;
  --muted: rgba(250, 250, 250, 0.52);
  --line: #1D2128;
  --gutter: clamp(20px, 4vw, 56px);
  --t: 200ms ease;
  --font: "Mabry Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

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

html { background: var(--bg); color: var(--fg); }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  animation: enter 700ms ease both;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1 { font-weight: inherit; font-size: inherit; }

:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.foot a { transition: color var(--t); }
.foot a:hover, .foot a:focus-visible { color: var(--fg); }

.foot-links { display: flex; gap: 24px; }

/* Consent banner (analytics.js; the 3d app's copy is in apps/3d/app/globals.css) */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg);
  animation: enter 300ms ease both;
}
.consent-text { max-width: 72ch; font-size: 13px; color: var(--muted); }
.consent-actions { display: flex; flex: none; gap: 12px; }
.consent-button {
  min-width: 132px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--t);
}
.consent-button:hover, .consent-button:focus-visible { border-color: var(--fg); }
@media (max-width: 720px) {
  .consent { flex-direction: column; align-items: stretch; gap: 16px; }
  .consent-actions > * { flex: 1; min-width: 0; }
}

@keyframes enter { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
