/* redos.cloud: the one stylesheet, served at /site.css (no inline style anywhere: the CSP is style-src 'self').
   The redfirst.ai design system v1 (redwebsite src/styles/global.css): Big Shoulders Display for display type,
   Outfit for body text, IBM Plex Mono for labels; red #CC1500 on near-black #0D0D0D. The legal pages follow
   redfirst.ai's own legal page (LegalDocument.astro). Fonts are self-hosted under /fonts/. */
@font-face {
  font-family: "Big Shoulders Display"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
:root {
  --red: #cc1500;
  --red-dark: #a01000;
  --red-on-dark: #ff361f;
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --charcoal: #3d3d3d;
  --slate: #6b6b6b;
  --silver: #adadad;
  --mist: #e2e2e2;
  --ghost: #f4f4f4;
  --f-d: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-b: "Outfit", system-ui, sans-serif;
  --f-m: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 48px;
}
@media (max-width: 900px) { :root { --gutter: 24px; } }
*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--f-b); color: var(--dark); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--red); }
.bar { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── the lockup: "RED" redacted in a red block, as redfirst.ai's "The Redaction" ── */
.lockup { display: inline-flex; align-items: baseline; text-decoration: none; line-height: 1; }
.lockup-red, .lockup-os { font-family: var(--f-d); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.lockup-red { background: var(--red); color: var(--black); padding: 0 3px 0 4px; }
.lockup-os { color: #fff; padding-left: 1px; }
.lockup-domain { font-family: var(--f-m); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-on-dark); margin-left: 6px; }

/* ── header ── */
.site-header { background: var(--black); border-bottom: 1px solid #222; }
.site-header .bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .lockup-red, .site-header .lockup-os { font-size: 30px; }
nav { display: flex; gap: 28px; }
nav a {
  font-family: var(--f-b); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--silver); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
nav a:hover { color: #fff; }
.page-privacy nav a[href="/privacy"], .page-terms nav a[href="/terms"], .page-support nav a[href="/support"] {
  color: #fff; border-bottom-color: var(--red);
}

/* ── a document page (privacy, terms, support, brand assets, 404) ── */
main {
  flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 96px;
  display: flex; flex-direction: column;
}
main > * { margin-top: 0; }
main h1 {
  order: -2; margin: 0 0 10px;
  font-family: var(--f-d); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 0.92; text-transform: uppercase;
  color: var(--black);
}
main h1::before {
  content: "RedOS"; display: block; margin-bottom: 14px;
  font-family: var(--f-m); font-weight: 400; font-size: 11px; letter-spacing: 0.2em; line-height: 1; color: var(--red);
  text-transform: uppercase;
}
.updated {
  order: -1; margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--mist);
  font-family: var(--f-m); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate);
}
main h2 {
  font-family: var(--f-d); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--black);
  margin: 44px 0 14px;
}
main h3 { font-family: var(--f-b); font-weight: 600; font-size: 17px; color: var(--charcoal); margin: 28px 0 8px; }
main p, main li { font-family: var(--f-b); font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--charcoal); }
main p { margin: 0 0 14px; }
main strong { font-weight: 600; color: var(--dark); }
main ul, main ol { padding-left: 24px; margin: 0 0 16px; }
main a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
main a:hover { color: var(--red-dark); }
.holding { font-size: 18px; }
/* a screenshot in a page (support clause 6): fits the column, never wider than the picture */
main p > img { display: block; max-width: 100%; height: auto; margin: 4px 0 10px; border: 1px solid var(--mist); border-radius: 8px; }

/* the clause tables: wide ones scroll rather than break the page */
table {
  display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 20px 0 28px;
  font-family: var(--f-b); font-size: 14px; line-height: 1.55;
}
th, td {
  border: 1px solid rgba(0, 0, 0, 0.12); padding: 9px 12px; text-align: left; vertical-align: top;
  color: var(--charcoal); font-weight: 300; min-width: 120px;
}
th {
  font-family: var(--f-m); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); background: var(--ghost); white-space: nowrap;
}

/* ── the home page: a dark hero, then the three pages ── */
.page-home main {
  max-width: none; padding: 112px max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))) 120px;
  background: var(--black); flex: 0 0 auto;
}
.page-home main h1 {
  font-weight: 900; font-size: clamp(72px, 13vw, 168px); line-height: 0.84; letter-spacing: -0.02em; color: #fff;
  margin-bottom: 36px;
}
.page-home main h1::before { content: "RedOS.cloud"; color: var(--red-on-dark); margin-bottom: 28px; }
.page-home main h1::after { content: ""; display: block; width: 96px; height: 8px; background: var(--red); margin-top: 32px; }
.page-home main p {
  max-width: 640px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--silver);
}
.page-home main a { color: #fff; text-decoration-color: var(--red); }
.page-home main h2 { max-width: 760px; margin-top: 64px; font-size: clamp(28px, 3vw, 36px); text-transform: uppercase; color: #fff; }
.page-home main ul { max-width: 760px; margin-bottom: 24px; }
.page-home main li { margin-bottom: 14px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--silver); }
.page-home main strong { color: #fff; }
.page-home .updated { display: none; }

.home-links { display: none; }
.page-home .home-links {
  display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 72px var(--gutter) 96px; gap: 0; flex: 1;
}
.home-links a {
  display: flex; flex-direction: column; gap: 18px; padding: 32px 28px 36px; min-height: 200px;
  border: 1px solid var(--mist); margin-left: -1px; text-decoration: none; color: var(--black);
  transition: background 0.18s ease, color 0.18s ease;
}
.home-links a:hover { background: var(--black); color: #fff; }
.eyebrow { font-family: var(--f-m); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.home-link-title { font-family: var(--f-d); font-weight: 800; font-size: 48px; line-height: 0.9; text-transform: uppercase; margin-top: auto; }
.home-links a::after { content: "\2192"; font-family: var(--f-b); font-size: 22px; color: var(--red); }

/* ── brand assets ── */
.assets { list-style: none; padding: 0; display: grid; gap: 12px; }
.assets li { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--mist); }
.assets img { width: 56px; height: 56px; }
.assets .updated { order: 0; margin: 0 0 0 auto; padding: 0; border: 0; }

/* ── footer ── */
.site-footer { background: var(--black); color: var(--silver); }
.site-footer .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.site-footer p { margin: 0; }
.footer-mark .lockup-red, .footer-mark .lockup-os { font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .footer-legal {
  font-family: var(--f-m); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver); text-decoration: none;
}
.footer-links a:hover { color: #fff; }
.footer-legal { margin-left: auto !important; color: #878787; }

@media (max-width: 700px) {
  nav { gap: 16px; }
  .site-header .lockup-red, .site-header .lockup-os { font-size: 24px; }
  .lockup-domain { display: none; }
  .page-home .home-links { grid-template-columns: 1fr; }
  .home-links a { margin-left: 0; margin-top: -1px; min-height: 0; }
  .footer-legal { margin-left: 0 !important; }
}
