/* Agentic Workplace website. One stylesheet, no request leaves the site: the two fonts are the
   SIL Open Font License files in fonts/. Light is the default; dark ("Ink") follows the device. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #94a3b8;
  --accent: #0e7490;
  --accent-hover: #155e75;
  --accent-pale: #cffafe;
  --on-accent: #ffffff;
  --ok: #15803d;
  --bad: #b91c1c;
  --warn: #b45309;
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2e;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: #22304a;
    --line-strong: #475569;
    --accent: #22d3ee;
    --accent-hover: #67e8f9;
    --accent-pale: #164e63;
    --on-accent: #0b1220;
    --ok: #4ade80;
    --bad: #f87171;
    --warn: #fbbf24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: 1.35rem; margin-top: 1.8em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(960px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.brand:hover { color: var(--text); }
.bar nav a { display: inline-block; padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bar nav a:hover, .bar nav a[aria-current="page"] { background: var(--line); }
.site-footer { border-top: 1px solid var(--line); margin-top: auto; padding-block: 24px; color: var(--muted); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:disabled { opacity: .6; cursor: default; }
.textlink { font-weight: 600; }

/* the centred pages: home, not found, no workspace */
main { flex: 1; }
.hero { padding-block: clamp(48px, 10vw, 112px); text-align: center; }
.hero .mark { margin: 0 auto 28px; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; margin-inline: auto; }
.page .lead { margin-inline: 0; }
.signin { display: grid; gap: 10px; margin: 40px auto 0; max-width: 460px; text-align: start; }
.signin label { font-weight: 700; }
.after { margin-top: 28px; }

/* a text box with the domain after it */
.suffixed { display: flex; align-items: center; min-height: 48px; border: 2px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding-inline: 14px; text-align: start; }
.suffixed:focus-within { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: 2px; }
.suffixed input { flex: 1 1 0; min-width: 0; width: 100%; border: 0; padding: 10px 0; background: transparent; color: var(--text); font: inherit; outline: none; text-align: end; }
.suffixed span { flex: none; color: var(--muted); white-space: nowrap; }
.suffixed.bad { border-color: var(--bad); }

/* the early-access form and the two text pages */
.page { padding-block: clamp(36px, 7vw, 72px); }
.narrow { max-width: 40em; }
.form { display: grid; gap: 18px; margin-top: 28px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field > input, .field > select, .field > textarea { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.field > textarea { min-height: 120px; resize: vertical; }
.field > input:focus-visible, .field > select:focus-visible, .field > textarea:focus-visible { border-color: var(--accent); }
.field > [aria-invalid="true"] { border-color: var(--bad); }
.help { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.err { margin: 6px 0 0; font-size: .95rem; font-weight: 600; color: var(--bad); }
.err:empty { display: none; }
.note { font-size: .92rem; color: var(--muted); }
.note:empty { display: none; }
.done { margin-top: 28px; padding: 20px 22px; border: 2px solid var(--ok); border-radius: 14px; background: var(--surface); }
.done h2 { margin-top: 0; }
.draft { margin: 20px 0 8px; padding: 14px 18px; border: 2px solid var(--warn); border-radius: 14px; background: var(--surface); }
.draft p { margin: 0; }
.prose ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

@media (max-width: 480px) {
  .brand { font-size: 1rem; }
  .bar nav a { padding-inline: 10px; }
}
