/* JFDavignon.Solutions — the Louis look, as a static site.
 *
 * Colours are Louis's: Angular Material's M2 dark theme with a grey primary and a blue
 * accent (kan-do/src/custom-theme.scss), plus Louis's workflow-status colours
 * (kan-do/src/_theme-variables.scss). The page shell copies kan-do's app.component:
 * a 48 px icon rail on the left, a 49 px toolbar, and the 24 px status bar along the
 * bottom. Louis is dark-only, and so is this site. */

@font-face {
  font-family: "Roboto Flex";
  font-weight: 300 700;
  font-display: swap;
  /* Subset of kan-do's RobotoFlex-VariableFont_All: wght axis only, Latin + French. */
  src: url(fonts/RobotoFlex-latin.woff2) format("woff2");
}

:root {
  color-scheme: dark;

  /* M2 dark theme */
  --bg: #303030;
  --app-bar: #212121;
  --rail: #282828;
  --card: #424242;
  --card-hover: #4a4a4a;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --hint: rgba(255, 255, 255, 0.5);
  --divider: rgba(255, 255, 255, 0.12);
  --tooltip: rgba(97, 97, 97, 0.95);

  /* blue accent: 500 / 300 / 100 / 700 */
  --accent: #2196f3;
  --accent-300: #64b5f6;
  --accent-100: #bbdefb;
  --accent-700: #1976d2;
  --accent-tint: rgba(33, 150, 243, 0.1);

  /* Louis workflow + agent colours */
  --todo: #c680ff;
  --in-progress: #64b5f6;
  --done: #59f45f;
  --sticky: #ffcc00;
  --agent: #bb6af5;
  --agent-bg: rgba(125, 39, 186, 0.2);

  --rail-w: 48px;
  --bar-h: 49px;
  --status-h: 24px;
  --page-w: 1200px;
  --prose-w: 800px;
  --gutter: 24px;
  --radius: 4px;
  --shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
  --shadow-raised: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-padding-top: calc(var(--bar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  padding: var(--bar-h) 0 var(--status-h) var(--rail-w);
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent-100);
}

:focus-visible {
  outline: 2px solid var(--accent-300);
  outline-offset: 2px;
}

.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
  vertical-align: middle;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.skip-link {
  position: fixed;
  left: 56px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--accent-700);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ── Shell: rail ──────────────────────────────────────────────────────────── */

.rail {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  bottom: var(--status-h);
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
  background: var(--rail);
  border-right: 1px solid var(--divider);
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rail-home {
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--divider);
}

.rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--accent-100);
  text-decoration: none;
}

.rail a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rail a[aria-current="page"] {
  color: var(--accent);
}

.rail a[aria-current="page"] .rail-avatar {
  outline: 2px solid var(--accent);
}

.rail-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* matTooltip, positioned "right" */
.rail a::after {
  content: attr(data-tip);
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--tooltip);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
}

.rail a:hover::after,
.rail a:focus-visible::after {
  opacity: 1;
}

/* ── Shell: toolbar ───────────────────────────────────────────────────────── */

.toolbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 16px;
  background: var(--app-bar);
  border-bottom: 1px solid var(--divider);
}

.toolbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toolbar-title a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
}

.toolbar-title img {
  width: 32px;
  height: 32px;
}

.toolbar .spacer {
  flex: 1;
}

/* ── Shell: status bar ────────────────────────────────────────────────────── */

.status-bar {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--status-h);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 11px;
  background: var(--accent-700);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: var(--status-h);
  white-space: nowrap;
  overflow: hidden;
}

.status-bar a {
  text-decoration: none;
}

.status-bar .spacer {
  flex: 1;
}

.status-bar .status-page {
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-bar .icon {
  width: 18px;
  height: 18px;
  margin-left: 6px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: var(--radius);
  background: rgba(158, 158, 158, 0.2);
  color: var(--accent-100);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  background: rgba(158, 158, 158, 0.32);
  box-shadow: var(--shadow-raised);
}

.btn-primary {
  background: var(--accent-700);
  color: #fff;
}

.btn-primary:hover {
  background: #1e88e5;
}

.btn-lg {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ── Page structure ───────────────────────────────────────────────────────── */

main {
  display: block;
  min-height: calc(100vh - var(--bar-h) - var(--status-h) - 1px);
}

.section {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 56px var(--gutter);
}

.section + .section {
  border-top: 1px solid var(--divider);
}

.section-tint {
  max-width: none;
  background: rgba(255, 255, 255, 0.03);
}

.section-tint > * {
  max-width: calc(var(--page-w) - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

.narrow {
  max-width: var(--prose-w);
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  text-wrap: balance;
}

h1,
.page-title {
  color: var(--accent);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
}

h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 400;
}

h3 {
  color: var(--accent-100);
  font-size: 18px;
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

.lead {
  color: var(--text-2);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.5;
  max-width: 46em;
}

.center.lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-300);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Spacing utilities (the site's CSP forbids inline style="" attributes) */
.mt-section {
  margin-top: 56px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-1 {
  margin-top: 1em;
}

.actions-center {
  justify-content: center;
}

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

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-raised);
}

.hero-avatar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-avatar img {
  width: clamp(120px, 18vw, 220px);
}

/* ── Cards (Louis board cards: outlined by workflow status) ───────────────── */

.grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 2px solid var(--divider);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-2);
}

.card .icon {
  color: var(--status, var(--accent-100));
}

.card-todo {
  --status: var(--todo);
  border-color: var(--todo);
}

.card-progress {
  --status: var(--in-progress);
  border-color: var(--in-progress);
}

.card-done {
  --status: var(--done);
  border-color: var(--done);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.legend::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 2px solid var(--status);
}

.legend-todo {
  --status: var(--todo);
}

.legend-done {
  --status: var(--done);
}

/* ── Feature split (text + image) ─────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.split-media {
  display: grid;
  gap: 16px;
}

.split-media img {
  display: block;
  border-radius: 6px;
}

.split-avatar {
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
}

/* Chips (Louis filter / agent chips) */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
}

.chip .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-300);
}

a.chip:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.chip-agent {
  border-color: transparent;
  background: var(--agent-bg);
  color: var(--agent);
  font-weight: 500;
}

/* Checklists */

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checklist .icon {
  color: var(--done);
  margin-top: 1px;
}

.checklist ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-2);
}

.checklist-warn .icon {
  color: var(--sticky);
}

.checklist-cols {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px 24px;
}

/* A Louis status bar used as a callout */
.callout {
  margin: 32px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-tint);
  font-size: 18px;
}

.callout strong {
  color: var(--accent-100);
}

.quote-xl {
  margin: 20px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300;
  line-height: 1.35;
}

.quote-xl strong {
  color: var(--accent-300);
  font-weight: 500;
}

/* ── Louis page: section index ────────────────────────────────────────────── */

.toc {
  position: sticky;
  z-index: 5;
  top: var(--bar-h);
  background: rgba(48, 48, 48, 0.94);
  border-bottom: 1px solid var(--divider);
  backdrop-filter: blur(6px);
}

.toc ul {
  display: flex;
  gap: 8px;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 10px var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.toc ul::-webkit-scrollbar {
  display: none;
}

.toc a {
  white-space: nowrap;
}

/* Agents */

.agents {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
}

.agent {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--agent);
  background: var(--card);
  box-shadow: var(--shadow);
}

.agent img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--agent-bg);
}

.agent h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
}

.agent .role {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 400;
}

.agent p {
  color: var(--text-2);
}

.agent p:last-child {
  margin-bottom: 0;
}

/* ── Prose (blog posts, about) ────────────────────────────────────────────── */

.prose {
  max-width: var(--prose-w);
  font-size: 17px;
  line-height: 1.7;
}

.prose h2 {
  margin-top: 1.8em;
  color: var(--accent-300);
  font-size: 26px;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 19px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--sticky);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 204, 0, 0.07);
  font-style: italic;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote cite {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-style: normal;
}

.post-header {
  max-width: var(--prose-w);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 28px;
  color: var(--text-2);
  font-size: 14px;
}

.post-hero {
  margin: 0 0 36px;
}

.post-hero img {
  display: block;
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow-raised);
}

.post-hero-avatar img {
  width: 220px;
  box-shadow: none;
}

/* Post lists */

.post-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 16px;
  border: 2px solid var(--divider);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.post-card:hover {
  border-color: var(--accent);
}

.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg);
}

.post-card img.contain {
  object-fit: contain;
}

.post-card h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.post-card p {
  margin: 0;
  color: var(--text-2);
}

.post-card .post-meta {
  margin: 0;
}

.more-posts {
  max-width: var(--prose-w);
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--divider);
}

.more-posts h2 {
  font-size: 22px;
}

.more-posts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.more-posts li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}

.more-posts time {
  color: var(--text-2);
  font-size: 14px;
}

.more-posts li[aria-current] a {
  color: var(--accent-300);
  text-decoration: none;
}

/* Profile */

.profile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.profile-badge {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent-700);
  color: var(--accent-100);
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.jf-avatar {
  border-radius: 50%;
  width: 157px;
  height: 157px;
}

.tagline {
  color: var(--accent-100);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Contact / chooser */

.contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent-700);
}

.contact-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.contact-card h2 .icon {
  color: var(--accent-300);
}

.contact-card p {
  margin: 0;
  color: var(--text-2);
}

.contact-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.chooser-avatar {
  display: block;
  width: 160px;
  margin: 0 auto 16px;
}

.chooser {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.chooser a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 2px solid var(--divider);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.chooser a:hover {
  border-color: var(--accent);
}

.chooser strong {
  color: var(--accent-100);
  font-size: 22px;
  font-weight: 500;
}

.chooser span {
  color: var(--text-2);
  font-size: 14px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--app-bar);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-brand strong {
  display: block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
}

.footer-brand span {
  color: var(--text-2);
  font-size: 14px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.footer-legal {
  width: 100%;
  margin: 0;
  color: var(--hint);
  font-size: 13px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero,
  .split,
  .split-avatar {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .post-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero-avatar,
  .profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-avatar img {
    width: 120px;
  }

  .profile-badge {
    width: 112px;
    height: 112px;
    font-size: 40px;
  }

  .toolbar .btn-label,
  .status-bar .status-wide {
    display: none;
  }

  .toolbar .btn {
    padding: 6px 10px;
  }

  .agent {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent img {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

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