/* Public site styling for Axis Inbox.

   Tokens mirror the warm-paper/amber system used by the Axis Auth and Notify sites so all three
   read as one product. Restated as plain CSS rather than imported: this page is served by a
   NestJS/Fastify process that has no CSS build step, and adding one to ship a landing page would
   be a poor trade. */

:root {
  --amber: #fba800;
  --amber-dark: #78590a;
  --ink: #1c1917;
  --body: #44403c;
  --muted: #78716c;
  --paper: #fffdf8;
  --paper-2: #fff8e6;
  --line: #e7e2d9;
  --code-bg: #f5f1ea;
  --font-display: 'Outfit', 'Avenir Next', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #faf9f7; --body: #d6d3d1; --muted: #a8a29e;
    --paper: #1c1917; --paper-2: #262220; --line: #3a3532; --code-bg: #262220;
    --amber-dark: #d8ab52;
  }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber-dark); }

/* ---------- chrome ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); z-index: 20;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .5rem;
}
.mark { width: 10px; height: 10px; border-radius: 3px; background: var(--amber); display: inline-block; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a.active { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--muted); font-size: .85rem;
}
.site-footer .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- landing ---------- */
.hero { max-width: 62rem; margin: 0 auto; padding: 5rem 1.5rem 3rem; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 1.25rem; overflow-wrap: anywhere; min-width: 0;
}
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 42rem; margin: 0 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; padding: .7rem 1.35rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: #241a00; }
.btn-primary:hover { background: #ffc028; }
.btn-secondary { border-color: var(--line); color: var(--ink); background: var(--paper-2); }
.btn-secondary:hover { border-color: var(--amber); }
.btn-ghost { color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--line); }

.status-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin-top: 2.5rem; font-size: .85rem; color: var(--muted); font-family: var(--font-mono);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.ok { background: #16a34a; }
.dot.down { background: #dc2626; }

.section { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }
.section h2 {
  font-family: var(--font-display); color: var(--ink); font-size: 1.5rem;
  margin: 3.5rem 0 1.25rem; letter-spacing: -.01em;
}
.section-lede { max-width: 44rem; color: var(--muted); margin: 0 0 1.25rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem;
  background: var(--paper-2); min-width: 0;
}
.card h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .4rem; font-size: 1rem; }
.card p { margin: 0; font-size: .9rem; color: var(--muted); }
.card a { text-decoration: none; }

pre {
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.15rem; overflow-x: auto; font-family: var(--font-mono);
  font-size: .84rem; line-height: 1.6;
}
code { font-family: var(--font-mono); font-size: .88em; }
:not(pre) > code {
  background: var(--code-bg); border: 1px solid var(--line);
  padding: .1rem .35rem; border-radius: 4px; overflow-wrap: anywhere;
}

/* ---------- docs ---------- */
.docs-shell { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; max-width: 78rem; margin: 0 auto; padding: 2rem 1.5rem; }
@media (max-width: 900px) { .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }

.docs-nav { font-size: .875rem; }
@media (min-width: 901px) { .docs-nav { position: sticky; top: 5rem; align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; } }
.docs-nav .group { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 1.35rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.docs-nav .group:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: .25rem 0 .25rem .7rem; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a.active { color: var(--ink); border-left-color: var(--amber); font-weight: 600; }

.docs-body { min-width: 0; max-width: 48rem; }
.docs-body h1 { font-family: var(--font-display); color: var(--ink); font-size: 2rem; letter-spacing: -.02em; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.docs-body h2 { font-family: var(--font-display); color: var(--ink); font-size: 1.35rem; margin: 2.5rem 0 .75rem; padding-top: .5rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.docs-body h3 { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; margin: 1.75rem 0 .5rem; overflow-wrap: anywhere; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .875rem; }
.docs-body th, .docs-body td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-body th { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.docs-body td code { white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.docs-body blockquote { margin: 1.25rem 0; padding: .75rem 1rem; border-left: 3px solid var(--amber); background: var(--paper-2); border-radius: 0 8px 8px 0; }
.docs-body blockquote p { margin: 0; }
.docs-body ul, .docs-body ol { padding-left: 1.35rem; }
.docs-body li { margin: .3rem 0; }

.generated-note {
  font-size: .8rem; color: var(--muted); background: var(--paper-2);
  border: 1px dashed var(--line); border-radius: 8px; padding: .6rem .85rem; margin: 0 0 1.5rem;
}
.docs-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .9rem; }
.docs-footer a { text-decoration: none; font-weight: 500; }
