/**
 * =============================================================================
 *                  SP BOUCHER | SOFTWARE & RESEARCH
 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING
 * =============================================================================
 *
 * Project          : QYVORA
 * File             : site/styles.css
 * Module           : Site
 * Repository       : https://git.spboucher.ai/qyvora
 * Project Website  : Not specified
 * Created          : 2026-12-04
 * Last Modified    : 2026-12-04
 *
 * Author           : Simon-Pierre Boucher
 * Position         : Professor of Finance
 * Institution      : Université du Québec en Outaouais (UQO)
 * Organization     : SP Boucher
 * Website          : https://spboucher.ai
 * Git              : https://git.spboucher.ai
 *
 * Preferred Contact: contact@spboucher.ai
 * Development      : dev@spboucher.ai
 * Support          : support@spboucher.ai
 * Security/Admin   : admin@spboucher.ai
 *
 * Copyright (c) 2026
 * Simon-Pierre Boucher
 * All rights reserved where applicable. This file is governed by the
 * applicable project license, copyright notices and relevant law.
 * Existing third-party rights and notices remain unaffected.
 *
 * License          : None specified (no license file in this repository)
 *
 * Do not embed credentials, private keys, access tokens,
 * certificates or confidential personal information.
 *
 * =============================================================================
 * END OF SP BOUCHER SOURCE HEADER
 * =============================================================================
 */

/* QYVORA — static site stylesheet. No external resources, no web fonts. */

:root {
  color-scheme: dark;
  --bg: #07070B;
  --surface: #12121A;
  --text: #F2F0F7;
  --muted: #9A97A8;
  --line: #262631;
  --line-strong: #3A3A48;
  --violet: #9B7BFF;
  --blue: #4C8DFF;
  --on-accent: #07070B;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --page: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F6F5FA;
    --surface: #FFFFFF;
    --text: #14131A;
    --muted: #5A5769;
    --line: #DDDAE7;
    --line-strong: #BDB9CB;
    --violet: #6D3FE0;
    --blue: #1C5FE0;
    --on-accent: #FFFFFF;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
table {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--violet);
  color: var(--on-accent);
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  font-variant-ligatures: none;
}

strong {
  font-weight: 600;
}

/* ---------------------------------------------------------------- utilities */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow b {
  font-weight: 500;
  color: var(--violet);
}

.muted {
  color: var(--muted);
}

/* -------------------------------------------------------------------- mark */

.mk-chord {
  stroke: var(--muted);
  stroke-width: 5;
  opacity: var(--chord-opacity, 0.5);
}

.mk-ring {
  stroke: var(--text);
  stroke-width: 28;
  stroke-linecap: round;
}

.mk-node {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 15;
}

.mk-cut {
  stroke: var(--bg);
  stroke-width: 128;
  stroke-linecap: round;
}

.mk-tail {
  stroke-width: 68;
  stroke-linecap: round;
}

.mk-stop-a {
  stop-color: var(--violet);
}

.mk-stop-b {
  stop-color: var(--blue);
}

.mark {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------ header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
}

.brand .mark {
  --chord-opacity: 0;
  width: 1.9rem;
  height: 1.9rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding-block: clamp(3rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem);
}

.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 10.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}

@media (min-width: 60rem) {
  .hero h1 {
    font-size: clamp(3rem, 5.1vw, 4.5rem);
  }
}

.hero h1 span {
  display: block;
}

.hero h1 .accent {
  color: var(--violet);
}

.lead {
  max-width: 38rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.lead strong {
  color: var(--text);
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  border-color: var(--text);
}

.btn--primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: transparent;
  color: var(--text);
}

.btn .arrow {
  font-family: var(--mono);
}

.plate {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
  width: 100%;
  border: 1px solid var(--line);
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border: solid var(--text);
}

.plate::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.plate::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.plate .mark {
  padding: 9%;
}

.plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .plate {
    animation: settle 0.7s ease-out both;
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(0.5rem);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ------------------------------------------------------------------ notice */

.notice {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.notice .wrap {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}

@media (min-width: 48rem) {
  .notice .wrap {
    grid-template-columns: 14rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.notice p {
  font-size: 0.975rem;
  max-width: 52rem;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.notice + .section {
  border-top: 0;
}

.section-head {
  display: grid;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 60rem) {
  .section-head {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  }
}

.section-head h2 {
  max-width: 44rem;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.section-head p {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.section-head p strong {
  color: var(--text);
}

/* ------------------------------------------------------------------ layers */

.layers {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.layer {
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 60rem) {
  .layers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .layer {
    padding: 2.25rem 2rem 2.5rem;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .layer:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .layer:last-child {
    padding-right: 0;
  }
}

.layer .num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.layer h3 {
  margin-top: 0.75rem;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.verdict {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verdict--yes {
  border-color: var(--violet);
  color: var(--violet);
}

.verdict--partial {
  border-color: var(--blue);
  color: var(--blue);
}

.verdict--no {
  color: var(--muted);
}

.layer p {
  margin-top: 1rem;
  font-size: 0.975rem;
  color: var(--muted);
}

.layer p strong {
  color: var(--text);
}

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 44rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}

.feature {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.feature .num {
  padding-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--violet);
}

.feature h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.feature p {
  margin-top: 0.6rem;
  font-size: 0.975rem;
  color: var(--muted);
}

.feature .spec {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text);
}

/* ------------------------------------------------------------------- table */

.table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line-strong);
  font-size: 0.95rem;
  text-align: left;
}

.table caption {
  caption-side: bottom;
  padding-top: 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  color: var(--muted);
}

.table th,
.table td {
  padding: 0.95rem 1.5rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th:last-child,
.table td:last-child {
  padding-right: 0;
}

.table thead th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.table td.std {
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: nowrap;
}

.table td.role {
  color: var(--muted);
}

@media (max-width: 43.99rem) {
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
  }

  .table caption {
    display: block;
  }

  .table tr {
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .table th,
  .table td {
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .table td.std {
    margin-top: 0.3rem;
    white-space: normal;
    color: var(--violet);
  }

  .table td.role {
    margin-top: 0.4rem;
  }
}

/* ------------------------------------------------------------------ status */

.status {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 60rem) {
  .status {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.callout {
  align-self: start;
  padding: 1.75rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--violet);
  background: var(--surface);
}

.callout h3 {
  margin-top: 0.75rem;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.callout p {
  margin-top: 0.9rem;
  font-size: 0.975rem;
  color: var(--muted);
}

.callout p strong {
  color: var(--text);
}

.roadmap {
  border-top: 1px solid var(--line-strong);
}

.roadmap li {
  display: grid;
  gap: 0.35rem 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 36rem) {
  .roadmap li {
    grid-template-columns: 9.5rem minmax(0, 1fr);
  }
}

.roadmap .stage {
  padding-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.roadmap .stage--now {
  color: var(--violet);
}

.roadmap h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.roadmap p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------- facts */

.facts {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 44rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}

.facts > div {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ------------------------------------------------------------------- prose */

.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

.page-head h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.1rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.page-head p {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.doc {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.doc .wrap {
  display: grid;
  gap: 1.5rem 2rem;
}

@media (min-width: 60rem) {
  .doc .wrap {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  }
}

.doc-aside .eyebrow + .eyebrow {
  margin-top: 0.4rem;
}

.doc-aside a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.prose {
  max-width: 44rem;
}

.prose > h2:first-child {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.prose h3 {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 600;
}

.prose h3 .num {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--violet);
}

.prose p,
.prose ul {
  margin-top: 1rem;
}

.prose ul {
  padding-left: 1.25rem;
  list-style: square;
}

.prose li {
  margin-top: 0.4rem;
  padding-left: 0.25rem;
}

.prose li::marker {
  color: var(--muted);
}

.prose .summary {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--violet);
  background: var(--surface);
}

.cards {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.cards > div {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 44rem) {
  .cards > div {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}

.cards h2 {
  font-size: 1.1875rem;
  font-weight: 600;
}

.cards p {
  max-width: 40rem;
  color: var(--muted);
}

.cards p + p {
  margin-top: 0.75rem;
}

.cards p strong,
.cards p a {
  color: var(--text);
}

.cards .addr {
  font-family: var(--mono);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.site-footer .brand {
  color: var(--text);
}

.site-footer p {
  max-width: 40rem;
  margin-top: 1rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer li a {
  display: inline-block;
  padding-block: 0.25rem;
}

/* --------------------------------------------------------------------- 404 */

.lost {
  padding-block: clamp(4rem, 14vw, 10rem);
}

.lost .code {
  font-family: var(--mono);
  font-size: clamp(4rem, 18vw, 10rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.lost h1 {
  margin-top: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lost p {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

@media print {
  .site-nav,
  .skip,
  .actions,
  .more,
  .lang-switch {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
