/* masondata.ai: one page, in Mason's own look (mason-data src/web/app.css): warm graphite on stone white (charcoal
   slate in the dark), mortar-grey hairlines, one patina accent; Zilla Slab for titles, Geist for prose, Geist Mono for
   code. The fonts are served from /assets/fonts/. */

@font-face { font-family: "Geist"; src: url("fonts/geist/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("fonts/zilla-slab/zilla-slab-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f6f5f2; --surface: #fdfcfb; --line: #e8e5df; --line-strong: #cfcac1; --frame: #dcd8d0;
  --fg: #2d2a27; --muted: #615c56; --subtle: #69645d;
  --accent: #2b6f70; --ok: #2e7340;
  --cta: #2b6f70; --cta-hover: #235d5e; --cta-fg: #ffffff;
  --code-bg: #f4f2ee; --code-fg: #36322e; --code-muted: #69645d; --code-dim: #a29c93; --code-cmd: #2b6f70; --code-str: #865600;
  --stone: #e6e2db;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16181c; --surface: #1c1f24; --line: #2a2e35; --line-strong: #3f444d; --frame: #30353d;
    --fg: #e7e5e1; --muted: #aaa69f; --subtle: #97938c;
    --accent: #6cbcb8; --ok: #72c48f;
    --cta: #5aaba7; --cta-hover: #6cbcb8; --cta-fg: #0d1919;
    --code-bg: #121417; --code-fg: #dcdad5; --code-muted: #97938c; --code-dim: #5f646c; --code-cmd: #6cbcb8; --code-str: #e2b45e;
    --stone: #111316;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.86em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.1; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.hl { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { display: inline-flex; width: 26px; height: 26px; background: var(--cta); color: var(--cta-fg); box-shadow: 1px 1px 0 var(--stone); }
.logo svg { width: 100%; height: 100%; }
.brand-name { font: 700 24px/1 var(--font-display); }
.nav { display: flex; align-items: center; gap: 14px; }
.signin { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; font: 500 15px/1 var(--font-sans); color: var(--muted); text-decoration: none; }
.signin:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.gh { display: inline-flex; padding: 6px; margin-right: -6px; color: var(--muted); }
.gh:hover { color: var(--fg); }
.gh svg { display: block; }

.hero { padding: 72px 0 56px; }
/* above the headline: open source and its licence, a hairline label in mono (as mason-data's UI marks a badge) */
.label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 5px 12px; border: 1px solid var(--frame); background: var(--surface);
  font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--subtle); }
.label a { color: var(--accent); text-decoration: none; }
.label a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.hero h1 { font-size: clamp(38px, 6.4vw, 58px); line-height: 1.05; }
.sub { margin-top: 22px; font-size: 21px; color: var(--muted); }
.sub b { color: var(--accent); font-weight: 600; }

/* what each word of the headline means: a patina brick for a bullet, the word in the text's colour */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 22px; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--accent); }
.points b { color: var(--accent); font-weight: 600; }

.why { margin-top: 72px; }
.connect h2, .why h2 { font-size: 22px; margin-bottom: 14px; }
.terminal { background: var(--code-bg); border: 1px solid var(--frame); box-shadow: 2px 2px 0 var(--stone); }
.terminal pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 14px/1.8 var(--font-mono); color: var(--code-fg); }
.terminal code { font-size: inherit; }
/* the shell, highlighted: the prompt and operators recede, a command is the patina, a string amber, a comment muted */
.terminal .p { color: var(--code-dim); user-select: none; }
.terminal .k { color: var(--code-cmd); font-weight: 600; }
.terminal .s { color: var(--code-str); }
.terminal .o { color: var(--code-dim); }
.terminal .c { color: var(--code-muted); }
.btn { display: inline-flex; align-items: center; margin-top: 22px; min-height: 44px; padding: 0 18px; font: 500 15px/1 var(--font-mono); text-decoration: none;
  background: var(--cta); color: var(--cta-fg); border: 1px solid var(--cta); box-shadow: 1px 1px 0 var(--stone); }
.btn:hover { background: var(--cta-hover); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 16px; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 88px; border-top: 1px solid var(--line); }
.col { padding: 28px 28px 0 0; }
.col + .col { padding: 28px 0 0 28px; border-left: 1px solid var(--line); }
.col h3 { font-size: 26px; margin-bottom: 10px; }
.yes h3 { color: var(--accent); }
.no h3 { color: var(--muted); }
.col p { color: var(--muted); font-size: 16px; }
/* the benchmark: a hairline-framed table in mono, numbers right-aligned in tabular figures, the verdict in the patina */
.bench { margin-top: 40px; overflow-x: auto; background: var(--surface); border: 1px solid var(--frame); box-shadow: 2px 2px 0 var(--stone); }
.bench table { width: 100%; border-collapse: collapse; font: 13px/1.45 var(--font-mono); font-variant-numeric: tabular-nums; }
.bench th, .bench td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line); }
.bench thead th { border-top: 0; background: var(--code-bg); color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--frame); }
.bench tbody th { font-weight: 400; color: var(--muted); }
.bench tbody th .what { display: block; color: var(--fg); }
.bench .n { text-align: right; white-space: nowrap; }
.bench td.n { color: var(--fg); }
.bench .faster, .bench .slower { white-space: nowrap; font-weight: 600; }
.bench .faster { color: var(--accent); }
.bench .slower { color: var(--muted); }
.source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-top: 14px; font: 13px/1.6 var(--font-mono); color: var(--subtle); }
.source a { color: var(--muted); }

footer.wrap { margin: 96px auto 0; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
footer p { padding-top: 24px; border-top: 1px solid var(--line); }
/* the policies, a row of links under the credit line */
footer .legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
footer .legal a { color: var(--muted); text-decoration: none; }
footer .legal a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top { padding-top: 20px; padding-bottom: 20px; }
  .hero { padding: 40px 0 40px; }
  .sub { font-size: 18px; }
  .why { margin-top: 56px; }
  .points { gap: 12px; font-size: 16px; }
  .terminal pre { font-size: 12.5px; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .fit { grid-template-columns: 1fr; margin-top: 64px; }
  .col, .col + .col { padding: 24px 0 0; border-left: 0; }
  .col + .col { margin-top: 24px; border-top: 1px solid var(--line); }
  /* a phone: each row a block, its label across the top, then the three values side by side under their names */
  .bench { overflow: visible; }
  .bench thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bench tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .bench tbody tr:first-child { border-top: 0; }
  .bench tbody th { grid-column: 1 / -1; padding: 0; border: 0; color: var(--fg); }
  .bench tbody td, .bench tbody td.n { padding: 0; border: 0; text-align: left; white-space: normal; }
  .bench tbody td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 400; color: var(--subtle); }
  footer.wrap { margin-top: 64px; }
}
