/* Copyright (c) 2026 HostAtlas Technologies LLC. All rights reserved.
 *
 * smartdisk.io – one stylesheet for all pages. Tokens from the Akyros design
 * system (website/design/ds/akyros), page rules from the design's pages.
 * Fonts are self-hosted (SIL OFL 1.1, see assets/fonts/LICENSE-*.txt).
 */

/* Fonts */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/geist-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/geist-mono-latin-700-normal.woff2") format("woff2"); }

/* Design tokens */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --surface-3: #f0eee8;
  --rail: #efece5;
  --canvas: #f0eee9;
  --border: #e8e5dd;
  --border-strong: #d6d2c8;
  --border-medium: #c9c4b8;
  --ink: #15140f;
  --ink-2: #5b574d;
  --ink-3: #8a857a;
  --ink-4: #b1ad9f;
  --on-accent: #ffffff;
  --accent: #1f6bf0;
  --accent-soft: #e5eeff;
  --accent-ink: #1652c8;
  --accent-2: #00b890;
  --accent-2-soft: #e2f6ee;
  --danger: #d83b3b;
  --danger-soft: #fbeaea;
  --warning: #c97a16;
  --warning-soft: #fbf1de;
  --info: #2a6fdb;
  --info-soft: #e3edfb;
  --p1: var(--danger);
  --p2: var(--warning);
  --p3: var(--info);
  --p1-soft: var(--danger-soft);
  --p2-soft: var(--warning-soft);
  --p3-soft: var(--info-soft);
  --ok: var(--accent-2);
  --ok-soft: var(--accent-2-soft);
  --src-hostatlas: #1f6bf0;
  --src-codelake: #00b890;
  --src-blockforge: #d97706;
  --src-akyros: #1a1a1a;
  --src-pageduty: #d83b3b;
  --scrim: rgba(20,18,12,.28);
  --surface-app: var(--bg);
  --surface-card: var(--surface);
  --surface-subtle: var(--surface-2);
  --surface-hover: var(--surface-3);
  --surface-sidebar: var(--rail);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-tertiary: var(--ink-3);
  --text-disabled: var(--ink-4);
  --text-link: var(--accent-ink);
  --border-default: var(--border);
  --action-primary: var(--accent);
  --status-healthy: var(--accent-2);
  --status-degraded: var(--warning);
  --status-critical: var(--danger);
  --status-offline: var(--ink-4);
}

:root {
  --font-sans:
    "Space Grotesk",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --font-mono:
    "Geist Mono",
    ui-monospace,
    monospace;
  --fs-display: 28px;
  --lh-display: 1.15;
  --ls-display: -0.5px;
  --fs-h1: 22px;
  --lh-h1: 1.2;
  --ls-h1: -0.4px;
  --fs-h2: 17px;
  --lh-h2: 1.25;
  --ls-h2: -0.1px;
  --fs-h3: 15.5px;
  --lh-h3: 1.3;
  --ls-h3: -0.2px;
  --fs-body: 13.5px;
  --lh-body: 1.55;
  --fs-body-sm: 12.5px;
  --lh-body-sm: 1.55;
  --fs-caption: 11.5px;
  --lh-caption: 1.45;
  --fs-label: 10px;
  --lh-label: 1.4;
  --ls-label: .06em;
  --fs-mono: 13px;
  --lh-mono: 1.5;
  --fs-mono-caption: 11px;
  --lh-mono-caption: 1.45;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fs-ui: 13px;
}

:root {
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-22: 22px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --radius-3: 3px;
  --radius-4: 4px;
  --radius-5: 5px;
  --radius-6: 6px;
  --radius-7: 7px;
  --radius-8: 8px;
  --radius-9: 9px;
  --radius-10: 10px;
  --radius-14: 14px;
  --radius-pill: 999px;
  --layout-sidebar: 232px;
  --layout-thread: 360px;
  --layout-cockpit-aside: 320px;
  --shadow-toggle-knob: 0 1px 2px rgba(0,0,0,.2);
  --shadow-toast: 0 8px 24px color-mix(in srgb, var(--accent-2) 7%, transparent), 0 1px 3px rgba(0,0,0,.08);
  --shadow-modal: 0 20px 60px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.04);
  --ease-ui: ease;
  --dur-fast: .12s;
  --dur-base: .15s;
  --dur-slow: .25s;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #5b574d; text-decoration: none; }
a:hover { color: #15140f; }
article a { text-decoration: underline; text-underline-offset: 2px; }
pre { margin: 0; font-family: var(--font-mono); white-space: pre-wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 6px; font-weight: 500; font-size: 14px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; }
[id] { scroll-margin-top: 84px; }

/* Text pages: download, privacy, changelog */
.doc h2 { margin: 48px 0 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.4px; }
.doc h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.65; color: #5b574d; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc code { font-family: var(--font-mono); font-size: 13.5px; background: #f0eee8; padding: 1px 5px; border-radius: 4px; color: #15140f; }
.page-download .btn { height: 42px; padding: 0 18px; }
