/* Extraction Desk site. Dark, in the app's own colors (extraction_desk/ui/theme.py). */

:root {
  --bg: #141517;        /* the app's window */
  --surface: #1c1d20;   /* cards and panels */
  --line: #33363b;
  --ink: #f0efec;
  --muted: #a3a19b;     /* a little lighter than the app's #898781, for reading on the web */
  --accent: #3987e5;
  --link: #7fb3ff;      /* the icon's light blue */

  --measure: 42rem;
  --gutter: clamp(1rem, 5vw, 4.5rem);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--accent); color: #fff; padding: 0.5rem 0.9rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---- page frame -------------------------------------------------------------------------- */

.frame { padding: 0 var(--gutter); }

.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem;
  padding: 1.25rem 0; max-width: 60rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font: 600 1.2rem/1 var(--font-display); letter-spacing: -0.01em;
}
.brand img { width: 2rem; height: 2rem; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.975rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }

main { max-width: var(--measure); padding: 1.5rem 0 4rem; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h1 { font-weight: 600; font-size: clamp(2.3rem, 5.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 1.25rem; }
h2 { font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; margin: 3rem 0 0.75rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.25rem; line-height: 1.5; max-width: 34rem; }
.quiet { color: var(--muted); }

.beta {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 0.9rem 1.1rem; margin: 1.75rem 0 0;
}
.beta p { margin: 0; }

.site-foot {
  border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; max-width: 60rem;
  color: var(--muted); font-size: 0.9rem;
}
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.site-foot p { margin: 0 0 0.35rem; }

/* ---- home: what it does ------------------------------------------------------------------ */

.features { margin: 0; display: grid; gap: 1.5rem; }
.features div { padding-left: 1rem; border-left: 4px solid var(--accent); }
.features dt { font-weight: 600; margin-bottom: 0.2rem; }
.features dd { margin: 0; color: var(--muted); }

/* ---- documents (privacy, support) ------------------------------------------------------- */

.doc h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.doc h2 { font-size: 1.35rem; margin: 2.5rem 0 0.6rem; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.4rem; }
.doc .updated { color: var(--muted); font-size: 0.95rem; }

.contact { display: grid; gap: 0.25rem 1.5rem; grid-template-columns: max-content 1fr; margin: 0 0 1rem; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 600; }

details { border-top: 1px solid var(--line); padding: 0.85rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6rem 0 0; color: var(--muted); }
