/* =====================================================================
   NASQUAY — site stylesheet
   The tokens are the app's own, carried over from frontend/src/index.css
   and tailwind.config.js so the site is set in the same material as the
   product: near-black zinc ground, hairline zinc borders, square corners
   everywhere, one amber accent, system faces.
   No webfont, no external request of any kind.
   ===================================================================== */
:root{
  /* Tell the browser this is a dark document, so its own furniture —
     scrollbars and form controls above all — is drawn dark too. The app
     styles no scrollbars of its own, so neither does the site. */
  color-scheme: dark;

  /* zinc, the app's ground and ink */
  --ink:#09090b;          /* zinc-950  — body */
  --panel:#18181b;        /* zinc-900  — cards, code */
  --line:#27272a;         /* zinc-800  — hairlines */
  --line-strong:#3f3f46;  /* zinc-700  — inputs, buttons */
  --text:#f4f4f5;         /* zinc-100  — headings */
  --ui:#a1a1aa;           /* zinc-400  — body copy */
  --dim:#71717a;          /* zinc-500  — captions */
  --dimmer:#52525b;       /* zinc-600  — rules, disabled */

  /* the one accent: the app's primary button and focus ring */
  --accent:#f59e0b;       /* amber-500 */
  --accent-bright:#fbbf24;/* amber-400 */

  /* state, never decoration — green while something holds, red while it does not */
  --ok:#34d399;           /* emerald-400 */
  --bad:#f87171;          /* red-400 */

  --face-sans: ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,
               "Helvetica Neue",Arial,sans-serif;
  --face-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--ink);
  color:var(--ui);
  font-family:var(--face-sans);
  font-size:14px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
::selection{background:rgba(245,158,11,.30);color:var(--text)}

a{color:var(--text);text-decoration:underline;text-underline-offset:2px;
  text-decoration-color:var(--line-strong)}
a:hover{color:var(--accent-bright);text-decoration-color:var(--accent)}

/* ---------- nav ---------- */
nav{
  position:sticky;top:0;z-index:100;
  display:flex;align-items:center;gap:18px;
  padding:10px 22px;
  background:rgba(9,9,11,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(8px);
}
/* The mark plus live text, rather than lockup.svg: at nav height the
   lockup's "QNAP · OPERATIONS" scales to under 4px and reads as a smudge.
   lockup.svg stays for og:image, where it has the room it was drawn for. */
nav .brand{display:flex;align-items:center;gap:9px;text-decoration:none}
nav .brand img{display:block;height:26px;width:auto}
/* The wordmark as the app sets it: "Quay" in amber, the rest in zinc-100. */
nav .brand .wordmark{font-size:15px;font-weight:600;letter-spacing:.03em;color:var(--text)}
nav .brand .wordmark span{color:var(--accent-bright)}
nav .brand:hover{opacity:.82}
nav .links{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
nav .links a{
  font-family:var(--face-mono);
  font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;
  text-decoration:none;color:var(--ui);
  border:1px solid var(--line);
  padding:5px 10px;white-space:nowrap;
}
nav .links a:hover{border-color:var(--accent);color:var(--accent)}
/* On a phone the eight links wrap to four rows — a third of the viewport.
   Sticky at that height covers more than it serves, so let it scroll away. */
@media (max-width:760px){
  nav{position:static;padding:10px 14px;gap:10px;backdrop-filter:none}
  nav .links a{padding:4px 7px;letter-spacing:.1em}
}

/* A link to something that is not public yet. Rendered dead on purpose —
   search for `soon` to restore the anchors when the repositories open. */
.soon{
  color:var(--dimmer) !important;border-color:var(--line) !important;
  cursor:default;pointer-events:none;
}
.soon::after{
  content:"SOON";margin-left:6px;font-size:8px;letter-spacing:.14em;
  color:var(--accent);opacity:.7;
}

/* ---------- section shells ---------- */
section{border-bottom:1px solid var(--line)}
/* Clear the sticky nav when a link jumps to a section, or the eyebrow
   lands underneath it. */
section[id]{scroll-margin-top:58px}
.inner{max-width:1040px;margin:0 auto;padding:60px 26px}
@media (max-width:760px){
  .inner{padding:40px 16px}
  section[id]{scroll-margin-top:10px}
}

/* The caption over a block — the app's table-header treatment. */
.eyebrow{
  font-family:var(--face-mono);
  font-size:9px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--dim);margin-bottom:10px;
}
h1,h2,h3{font-weight:400;color:var(--text)}
h1{font-size:30px;letter-spacing:.01em;line-height:1.25;margin-bottom:14px}
h2{font-size:20px;letter-spacing:.02em;margin-bottom:16px}
h3{font-size:14px;letter-spacing:.04em;margin:24px 0 8px;color:var(--text)}
.lede{font-size:16px;line-height:1.7;color:var(--text);max-width:70ch}
p{margin:0 0 12px;max-width:76ch;line-height:1.7}
ul,ol{margin:0 0 12px;padding-left:20px;max-width:74ch}
li{margin:0 0 6px;line-height:1.7}
li::marker{color:var(--dimmer)}
strong{color:var(--text);font-weight:500}
hr{border:0;border-top:1px solid var(--line);margin:22px 0}

code{
  font-family:var(--face-mono);font-size:12px;
  background:var(--panel);border:1px solid var(--line);
  padding:1px 5px;color:var(--text);
}
pre{
  background:var(--panel);
  border:1px solid var(--line);
  border-left:2px solid var(--line-strong);
  padding:12px 15px;margin:0 0 14px;overflow-x:auto;
}
pre code{background:none;border:0;padding:0;font-size:12px;line-height:1.55;color:var(--ui)}

/* The architecture drawing. Monospace art, so it must not reflow. */
.diagram{font-size:11px;line-height:1.5;color:var(--ui);border-left-color:var(--accent)}
.diagram b{color:var(--accent);font-weight:400}

/* ---------- tables — the app's .th / .td ---------- */
.tablewrap{overflow-x:auto;margin:0 0 16px}
table{border-collapse:collapse;font-size:13px;width:100%}
th{
  font-family:var(--face-mono);
  text-align:left;font-size:10px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--dim);font-weight:400;
  padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap;
}
td{
  padding:8px 10px;border-bottom:1px solid var(--line);
  vertical-align:top;line-height:1.6;
}
tr:last-child td{border-bottom:0}
td code{white-space:nowrap}

/* ---------- cards — the app's .card ---------- */
.grid{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);margin:24px 0}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.card{background:var(--ink);padding:20px}
.card h3{margin:0 0 7px;font-size:13px;letter-spacing:.03em}
.card p{margin:0;font-size:13px;color:var(--ui)}
@media (max-width:860px){ .grid-2,.grid-3{grid-template-columns:1fr} }

/* ---------- hero ---------- */
.hero .inner{padding:74px 26px 62px}
.hero h1{max-width:20ch}
.hero .mark{display:block;height:64px;width:auto;margin-bottom:26px}
@media (max-width:760px){
  .hero .inner{padding:48px 16px 40px}
  h1{font-size:24px}
}

/* A fact stated in the app's own voice: mono, tracked, quiet. */
.note{
  font-family:var(--face-mono);
  font-size:11px;letter-spacing:.06em;color:var(--dim);
  border-left:2px solid var(--accent);padding:8px 0 8px 12px;margin:22px 0;
  max-width:76ch;
}
.status{
  display:inline-block;font-family:var(--face-mono);
  font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent);border:1px solid var(--line-strong);
  padding:4px 9px;margin-bottom:22px;
}
.ok{color:var(--ok)}
.bad{color:var(--bad)}

/* ---------- footer ---------- */
footer{padding:34px 26px;max-width:1040px;margin:0 auto;
  font-size:12px;color:var(--dim)}
footer p{max-width:none;margin:0 0 6px;font-size:12px}

/* ---------- screenshots ---------- */
/* One screenshot at a time, framed like the app's own panels, with the
   whole set as a strip of thumbnails below. Tall pages (audit, roles)
   scroll inside the frame rather than stretching the page. */
nav .links a.here{border-color:var(--accent);color:var(--accent)}
.viewer{margin:24px 0 18px}
.stage{display:flex;align-items:stretch;gap:10px}
.frame{flex:1;display:block;min-width:0;max-height:78vh;overflow-y:auto;
  border:1px solid var(--line);background:var(--panel)}
.frame img{display:block;width:100%;height:auto}
.step{flex:0 0 44px;background:var(--ink);color:var(--ui);
  border:1px solid var(--line-strong);font-size:28px;line-height:1;cursor:pointer;font-family:var(--face-sans)}
.step:hover{border-color:var(--accent);color:var(--accent)}
.step:focus-visible{outline:1px solid var(--accent);outline-offset:2px}
.caption{margin:12px 54px 0;font-size:13px;line-height:1.6}
.caption b{color:var(--text);font-weight:500;margin-right:6px}
.caption .count,.caption .group{font-family:var(--face-mono);font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--dim);margin-right:10px}
.caption .count{color:var(--accent)}
.thumbs{list-style:none;padding:0;margin:26px 0 0;max-width:none;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.thumbs li{margin:0}
.thumbs a{display:block;text-decoration:none;border:1px solid var(--line);background:var(--panel)}
.thumbs a:hover{border-color:var(--line-strong)}
.thumbs a.on{border-color:var(--accent)}
.thumbs img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top left}
.thumbs span{display:block;padding:5px 8px;font-size:11px;color:var(--ui);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thumbs a.on span{color:var(--accent-bright)}
@media (max-width:760px){
  .step{flex-basis:32px;font-size:22px}
  .stage{gap:6px}
  .caption{margin:10px 0 0}
  .thumbs{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
}
