/* Cairn — shared CSS for legal pages (privacy, imprint, pledge, terms, security).
   Linear/Raycast register, matching index.html.
   All assets self-hosted; no third-party requests. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-variable-latin.woff2') format('woff2-variations'),
       url('fonts/inter-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-variable-latin.woff2') format('woff2-variations'),
       url('fonts/jetbrains-mono-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:        #0b0c0e;
  --bg-2:      #111317;
  --bg-3:      #16191e;
  --line:      #22262d;
  --line-2:    #2c313a;
  --text:      #eceae5;
  --text-2:    #b5b3ad;
  --text-3:    #8d8b85;
  --amber:     #e9a45a;
  --amber-2:   #f0b878;
  --amber-dim: #6a4a23;
  --red:       #e26060;
  --green:     #7ac184;

  --display: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max:     760px;
  --max-nav: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; background: var(--bg); }

body {
  font-family: var(--body);
  color: var(--text-2);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle film grain to match index.html. */
body::before {
  content: "";
  position: fixed; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92 0 0 0 0 0.91 0 0 0 0 0.88 0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(233,164,90,0.05), transparent 60%),
    radial-gradient(700px 500px at 100% 110%, rgba(110,140,200,0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: rgba(233,164,90,0.30); color: var(--text); }

/* ===== top nav ===== */
header.top {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: rgba(11,12,14,0.6);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

header.top .row {
  max-width: var(--max-nav);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.top a.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

header.top .mark {
  width: 26px; height: 26px;
  display: block;
  object-fit: contain;
}

header.top nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

header.top nav a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s ease;
}

header.top nav a:hover { color: var(--text); }

/* ===== content frame ===== */
main.frame {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 96px;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 44px;
  margin-bottom: 12px;
}

h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 26px;
  margin-bottom: 8px;
}

p, ul, ol {
  margin-bottom: 16px;
  color: var(--text-2);
}

ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--text-3); }

a { color: var(--amber-2); text-decoration: none; border-bottom: 1px solid rgba(233,164,90,0.25); transition: border-color .2s ease, color .2s ease; }
a:hover { color: var(--amber); border-bottom-color: rgba(233,164,90,0.7); }

strong { color: var(--text); font-weight: 600; }
em, i { color: var(--text); font-style: italic; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--amber-2);
  background: rgba(233,164,90,0.07);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(233,164,90,0.12);
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 18px;
  margin: 0 0 32px;
}

.lead strong { color: var(--text); font-weight: 600; }

.meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 22px 0;
  font-size: 16px;
  color: var(--text-2);
}

.callout.warn {
  border-color: rgba(233,164,90,0.35);
  background: rgba(233,164,90,0.05);
}

.callout strong { color: var(--text); }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ===== footer ===== */
footer.bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 48px 28px 56px;
  font-size: 13px;
  color: var(--text-3);
}

footer.bottom .row {
  max-width: var(--max-nav);
  margin: 0 auto;
}

footer.bottom .links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
}

footer.bottom .links a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 0;
  font-weight: 500;
}

footer.bottom .links a:hover { color: var(--text); }

footer.bottom .imprint {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-3);
}

footer.bottom .imprint strong {
  color: var(--text-2);
  font-weight: 500;
}

footer.bottom .imprint a {
  color: var(--text-3);
  border-bottom: 0;
}

footer.bottom .imprint a:hover { color: var(--text-2); }

@media (max-width: 720px) {
  header.top .row { padding: 18px 20px; }
  header.top nav { gap: 16px; }
  header.top nav a { font-size: 13px; }
  main.frame { padding: 48px 20px 64px; }
  h2 { font-size: 20px; margin-top: 36px; }
  footer.bottom { padding: 36px 20px 48px; }
}
