/* OpenBGA Lab Ops presentation site, in the application's Damson language (static/css/app.css):
   the same palette, Overpass type, tonal surfaces without borders and rounded shapes. The page
   follows the visitor's system colour scheme; every colour token switches with it. */

/* Overpass (OFL-1.1, assets/overpass-OFL.txt) with the application's metric overrides, which
   centre capitals in buttons and pills. The middle dot is left to the system font. */
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  ascent-override: 104%;
  descent-override: 22.6%;
  line-gap-override: 0%;
  src: url("overpass-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --shell: light-dark(#eee8ed, #1e171e);          /* the app's top bar and sidebar */
  --shell-chip: light-dark(#e4dce3, #2f252e);
  --paper: light-dark(#f5f2f4, #211a20);          /* page ground */
  --surface: light-dark(#fdfcfd, #292228);        /* panels */
  --surface-2: light-dark(#f4f0f4, #30272f);      /* wells, quiet buttons */
  --surface-hover: light-dark(#eee9ee, #393038);
  --ink: light-dark(#282428, #e7e0e6);
  --strong: light-dark(#1e1a1d, #f3eff2);
  --muted: light-dark(#615b61, #b5abb3);
  --action: light-dark(#8a4894, #dba9e2);         /* primary button, focus */
  --action-hover: light-dark(#6d3a76, #e6bfeb);
  --on-action: light-dark(#fef8ff, #2a172e);
  --link: light-dark(#7f4389, #e0b2e6);
  --link-hover: light-dark(#5d2f65, #efd1f2);
  --selection: light-dark(#f4def7, #532c5a);
  --plum: light-dark(#3f2444, #171118);           /* the "Try it" band */
  --plum-2: light-dark(#4f2f55, #241b24);
  --on-plum: light-dark(#f8f0f9, #eee6ed);
  --on-plum-muted: light-dark(#d9c6dc, #b8aab6);
  --plum-link: light-dark(#f3cdf7, #e6bfeb);
  --line-desk: light-dark(#4c8689, #7eb8bc);      /* the app's line colours, one per area of work */
  --line-clients: light-dark(#a76941, #d09b7c);
  --line-records: light-dark(#977e43, #cfb274);
  --line-setup: light-dark(#7e787d, #a59fa4);
  --station: light-dark(#fdfcfd, #292228);
  --shadow: 0 1px 2px light-dark(rgb(37 31 36 / 6%), rgb(0 0 0 / 30%)), 0 18px 48px -24px light-dark(rgb(37 31 36 / 30%), rgb(0 0 0 / 60%));
  --shadow-soft: 0 1px 2px light-dark(rgb(37 31 36 / 5%), rgb(0 0 0 / 22%)), 0 2px 10px light-dark(rgb(37 31 36 / 4%), transparent);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --line-width: 4px;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-family: var(--font);
  font-feature-settings: "kern" 1;
  word-spacing: .04em;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: light-dark(#c1bac0, #514850) transparent;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--selection); color: var(--ink); }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--strong); text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
p { max-width: 66ch; }
p + p { margin-top: 1rem; }
img { max-width: 100%; height: auto; }
code, pre { font-family: var(--mono); }
section[id], li[id] { scroll-margin-top: 1.5rem; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }

.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 2; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.wrap, .site-header-inner, .site-footer { width: min(1200px, calc(100% - 4rem)); margin-inline: auto; }

/* Header: the app's mauve shell as one rounded bar */
.site-header { padding-top: 1rem; }
.site-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: .625rem .75rem .625rem 1rem; border-radius: var(--radius-lg); background: var(--shell); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { flex: none; }
.wordmark { display: grid; gap: .0625rem; line-height: 1.15; }
.wordmark-parent { color: var(--muted); font-size: .75rem; font-weight: 500; }
.wordmark-name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.site-nav a { padding: .5rem .875rem; border-radius: var(--radius-pill); color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { background: var(--shell-chip); color: var(--strong); }
.site-nav a[aria-current="page"] { background: var(--shell-chip); color: var(--strong); }

/* Buttons */
.button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 48px; padding: .75rem 1.375rem; border-radius: var(--radius-sm); background: var(--action); color: var(--on-action); font-size: .9688rem; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgb(37 31 36 / 12%); }
.button:hover { background: var(--action-hover); color: var(--on-action); text-decoration: none; }
.button-quiet { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.button-quiet:hover { background: var(--surface-hover); color: var(--strong); }

/* Hero: words on the left, the sign-in scene on the right in a rounded sheet */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1fr minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero-description > h1 + p { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.hero-description > p + p { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.project-status { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem !important; padding: .25rem .75rem; border-radius: var(--radius-pill); background: var(--shell-chip); color: var(--muted); font-size: .8125rem; font-weight: 600; }
.scene { display: block; overflow: hidden; aspect-ratio: 11 / 10; border-radius: var(--radius-xl); background: light-dark(#ece4ee, #120c16); box-shadow: var(--shadow); }
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

/* Screenshots sit in a mauve bezel, rounded like the app's own sheet */
.shot { margin: 0; }
.window { padding: .5rem; border-radius: var(--radius-lg); background: var(--shell); box-shadow: var(--shadow); }
.window picture { display: block; }
.window img { display: block; width: 100%; border-radius: 13px; background: var(--paper); }
.shot figcaption { margin-top: .875rem; padding-inline: .25rem; color: var(--muted); font-size: .8125rem; }
.hero-shot { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem 4rem; margin-bottom: 2.75rem; }
.section-intro > p, .section-intro > div > p { color: var(--muted); font-size: 1.0625rem; }
.eyebrow { margin-bottom: .75rem; color: var(--action); font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.band { background: var(--surface-2); }

/* Workflow as the app's line diagram: four stations on one line */
.workflow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: workflow; }
.workflow::before { content: ""; position: absolute; top: .75rem; left: .75rem; right: calc(25% - 1.5rem); height: var(--line-width); border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--line-clients) 0 33.4%, var(--line-desk) 33.4% 66.7%, var(--line-records) 66.7%); }
.workflow li { position: relative; counter-increment: workflow; padding-top: 2.75rem; }
.workflow li::before { content: ""; position: absolute; top: 0; left: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--station); box-shadow: inset 0 0 0 4px var(--station-colour); }
.workflow li:nth-child(1) { --station-colour: var(--line-clients); }
.workflow li:nth-child(2) { --station-colour: var(--line-desk); }
.workflow li:nth-child(3) { --station-colour: var(--line-records); }
.workflow li:nth-child(4) { --station-colour: var(--action); }
.workflow h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; }
.workflow h3::before { content: counter(workflow, decimal-leading-zero); color: var(--muted); font-size: .8125rem; font-weight: 700; font-feature-settings: "tnum" 1; }
.workflow p { margin-top: .5rem; color: var(--muted); font-size: .9688rem; }

/* Principles: tonal tiles */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.principles > div { padding: 1.5rem 1.625rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.principles dt { display: flex; align-items: center; gap: .625rem; color: var(--strong); font-size: 1.0625rem; font-weight: 800; }
.principles dt .icon { color: var(--action); font-size: 1.25rem; }
.principles dd { margin-top: .5rem; color: var(--muted); font-size: .9688rem; }

/* Features */
.feature { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.feature:nth-child(even) { grid-template-columns: 7fr 5fr; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.feature-text h3 + p { margin-top: 1rem; color: var(--muted); font-size: 1.0313rem; }

/* Tables: rows on tonal strips, no rules */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0 .375rem; text-align: left; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
th, td { padding: 1rem 1.25rem; vertical-align: top; }
thead th { padding-block: .5rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
tbody th, tbody td { background: var(--surface); }
tbody th { width: 26%; color: var(--strong); font-weight: 700; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
tbody td { color: var(--muted); }
tbody td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Free and open source: the licence in plain words beside the two kinds of support */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.terms > li { padding: 1.5rem 1.625rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.terms h3 { font-size: 1.125rem; }
.terms p { margin-top: .5rem; color: var(--muted); font-size: .9688rem; }
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.support > div { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--shell); }
.support h3 { font-size: 1.25rem; }
.support p { margin-top: .625rem; color: var(--ink); }
.support a { font-weight: 700; }
.support .support-paid { background: var(--selection); }

/* Try it: a plum sheet */
.start .wrap > .start-inner { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-xl); background: var(--plum); color: var(--on-plum); }
.start h2 { margin-bottom: 1.25rem; color: var(--on-plum); }
.start p { color: var(--on-plum-muted); }
.start a { color: var(--plum-link); }
.start a:hover { color: var(--on-plum); }
.start :focus-visible { outline-color: var(--plum-link); }
.next-steps { display: grid; gap: .25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.next-steps a { display: inline-flex; align-items: center; gap: .5rem; padding-block: .375rem; font-weight: 700; text-decoration: none; }
.next-steps a:hover { text-decoration: underline; }
.terminal { min-width: 0; }
.commands { padding: 1.25rem 1.5rem; overflow-x: auto; border-radius: var(--radius); background: var(--plum-2); }
.commands pre { margin: 0; color: var(--on-plum); font-size: .875rem; line-height: 1.75; }
.terminal .comment { color: var(--on-plum-muted); }
.terminal p { margin-top: 1rem; font-size: .9375rem; }
.terminal p code { color: var(--on-plum); font-size: .875em; overflow-wrap: anywhere; }

/* Project */
.project h2 { margin-bottom: 1.5rem; }
.project p { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: .5rem; max-width: none; margin-top: 1.75rem !important; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink); font-weight: 700; text-decoration: none; }
.text-link:hover { background: var(--surface-hover); color: var(--strong); text-decoration: none; }
.band .text-link { background: var(--surface); }
.band .text-link:hover { background: var(--surface-hover); }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-block: 0 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--shell); color: var(--muted); font-size: .875rem; }
.site-footer > span:first-child { margin-right: auto; color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------- Roadmap */
/* A status is always named in text; its colour only repeats it. */
.status-built { --status-colour: var(--line-desk); }
.status-next { --status-colour: var(--action); }
.status-later { --status-colour: var(--line-clients); }
.status-exploring { --status-colour: var(--line-setup); }
.status { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .75rem .25rem .625rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink); font-size: .8125rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.status::before { content: ""; width: .625rem; height: .625rem; border-radius: 50%; background: var(--status-colour); }
a.status:hover { background: var(--surface-hover); color: var(--strong); }
.status-exploring::before { background: none; box-shadow: inset 0 0 0 2px var(--status-colour); }

.hero-roadmap .hero-inner { grid-template-columns: 1fr 1fr; align-items: end; }
.hero-roadmap { padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero-roadmap .prose p { color: var(--ink); font-size: 1.125rem; }

/* Roadmap at a glance: one column per status, each a link to its section */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.board > div { padding: 1.25rem 1.375rem 1.5rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); border-top: var(--line-width) solid var(--status-colour); }
.board ul { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.board p { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }
.board ul a { color: inherit; text-decoration: none; }
.board ul a:hover { color: var(--link); text-decoration: underline; }
.board .more { color: var(--muted); font-weight: 500; }

.roadmap-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.roadmap-section .status + h2 { margin-top: .875rem; }
.prose > * + * { margin-top: 1rem; }
.prose p, .prose li { color: var(--muted); font-size: 1.0625rem; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.25rem; max-width: 70ch; }
.prose li + li { margin-top: .375rem; }
.prose li::marker { color: var(--status-colour, var(--action)); }
.roadmap-section .wrap > * + .table-scroll, .roadmap-section .wrap > * + .prose, .roadmap-section .wrap > * + .items { margin-top: 2rem; }

/* Planned items: one card each, what it delivers first, the rest in smaller print */
.items { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.items > li { padding: 1.5rem 1.625rem 1.625rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); scroll-margin-top: 2rem; }
.items > li:target { box-shadow: 0 0 0 3px var(--status-colour, var(--action)), var(--shadow-soft); }
.items h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.items h3 + * { margin-top: .75rem; }
.items .prose p, .items .prose li { font-size: .9688rem; }
.fields { display: grid; gap: .75rem; }
.fields dt { color: var(--strong); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fields dd { margin-top: .125rem; color: var(--muted); font-size: .9375rem; }
/* The roadmap writes "Delivers: a page that..."; set apart from its label, the text starts a line. */
.fields dd::first-letter { text-transform: uppercase; }
.fields > div:first-child dd { color: var(--ink); font-size: .9688rem; }
.closing { align-items: start; margin-bottom: 0; }

@media (max-width: 960px) {
  .hero-inner, .hero-roadmap .hero-inner { grid-template-columns: 1fr; }
  .scene { aspect-ratio: 4 / 3; }
  .workflow { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .workflow::before { display: none; }
  .section-intro { grid-template-columns: 1fr; gap: 1rem; }
  .principles, .support, .items { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .feature, .feature:nth-child(even), .start .wrap > .start-inner { grid-template-columns: 1fr; gap: 2rem; }
  .feature:nth-child(even) .feature-text { order: 0; }
}

@media (max-width: 600px) {
  .wrap, .site-header-inner, .site-footer { width: calc(100% - 2rem); }
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .site-nav { margin-left: 0; }
  .site-nav a { padding: .375rem .625rem; font-size: .875rem; }
  .workflow, .board { grid-template-columns: 1fr; }
  th, td { padding: .875rem .75rem; font-size: .9063rem; }
  tbody th { width: 36%; }
  .commands { padding: 1rem; }
  .commands pre { font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } a, .button, .text-link, .site-nav a { transition: background-color .14s ease-out, color .14s ease-out; } }

@media print {
  :root { color-scheme: light; }
  .skip-link, .site-nav, .actions { display: none; }
  .band, .start .wrap > .start-inner, .site-header-inner, .site-footer, .support > div { background: none; color: #000; }
  .start p, .start a, .start h2, .commands pre, .terminal .comment, .terminal p code { color: #000; }
  .commands { background: none; }
  .commands pre { white-space: pre-wrap; }
  .window, .scene, .principles > div, .terms > li, .items > li, .board > div { box-shadow: none; }
  .feature, .principles > div, .workflow li, .items > li, tr { break-inside: avoid; }
}
