/* ArtUp Labs — shared stylesheet. No external fonts, no CDNs. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;
  --text: #172b4d;
  --text-muted: #505f79;
  --border: #dfe1e6;
  --accent: #0b5cd5;
  --accent-hover: #0847a6;
  --accent-contrast: #ffffff;
  --accent-soft: #e9f2ff;
  --todo-bg: #fff4d6;
  --todo-text: #6b4e00;
  --radius: 10px;
  --maxw: 72rem;
  --readw: 46rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --bg-soft: #181c22;
    --surface: #1d2229;
    --text: #e3e8ef;
    --text-muted: #a3adbb;
    --border: #2f3640;
    --accent: #6ea8ff;
    --accent-hover: #93bfff;
    --accent-contrast: #0b1320;
    --accent-soft: #1b2a42;
    --todo-bg: #3a3014;
    --todo-text: #f5d98a;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { left: 1rem; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-contrast);
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Hero */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); }

/* Sections */
.section { padding: 3.5rem 0; }
.section h2 { font-size: 1.75rem; margin: 0 0 0.5rem; }
.section .section-lead { color: var(--text-muted); margin: 0 0 2rem; max-width: 40rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.facts li {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 0.9rem;
  color: var(--text-muted);
}
.facts strong { display: block; color: var(--text); }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-grid a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}
.link-grid a:hover { border-color: var(--accent); }
.link-grid span { display: block; color: var(--text-muted); font-size: 0.9rem; }

/* Documents (legal, security, support) */
.doc {
  max-width: var(--readw);
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 0.5rem; }
.doc h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.doc h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.doc p, .doc li { max-width: 70ch; }
.doc li + li { margin-top: 0.35rem; }
.meta { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1.5rem; }

.notice {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 0.5rem; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
}
.toc h2 { border: 0; margin: 0 0 0.5rem; padding: 0; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }

.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95em;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; padding: 0.75rem 1rem 0; font-weight: 600; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}
th { background: var(--bg-soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 2rem 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer p { margin: 0 0 0.35rem; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .hero { padding: 2.75rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .doc { padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .skip-link, .toc { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
