﻿/* Machine Learning Salon - Cortex theme
   Built on Bulma 1.x with custom variables. Class namespace: cx-
   Seed 390806795 drove: soft-round buttons, 8px radii, notched dividers,
   square imagery, fade-up reveals, amber accent #b45309, two column footer. */

:root {
  --cx-paper: #fbfaf6;
  --cx-surface: #ffffff;
  --cx-tint: #eef3fb;
  --cx-tint-warm: #f5f0e6;
  --cx-ink: #182541;
  --cx-body: #46505f;
  --cx-muted: #6b7480;
  --cx-line: #e2ded3;
  --cx-line-strong: #cfc9ba;
  --cx-primary: #134fb3;
  --cx-primary-ink: #0e3a86;
  --cx-sky: #6ec1e4;
  --cx-amber: #b45309;
  --cx-amber-soft: #f6e7d3;
  --cx-green: #2f855a;
  --cx-green-soft: #e2f2e8;
  --cx-radius: 8px;
  --cx-radius-lg: 14px;
  --cx-shadow: 0 1px 0 rgba(24, 37, 65, 0.04), 0 14px 34px -22px rgba(24, 37, 65, 0.45);
  --cx-shadow-tight: 0 1px 0 rgba(24, 37, 65, 0.05), 0 8px 20px -16px rgba(24, 37, 65, 0.5);
  --cx-shell: 1140px;
  --cx-narrow: 760px;
  --cx-font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
  --cx-font-body: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;

  --bulma-family-primary: var(--cx-font-body);
  --bulma-family-secondary: var(--cx-font-display);
  --bulma-body-family: var(--cx-font-body);
  --bulma-body-color: var(--cx-body);
  --bulma-body-background-color: var(--cx-paper);
  --bulma-link-h: 218;
  --bulma-link-s: 81%;
  --bulma-link-l: 39%;
  --bulma-radius: var(--cx-radius);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cx-paper);
  color: var(--cx-body);
  font-family: var(--cx-font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--cx-primary); text-decoration: none; }
a:hover { color: var(--cx-primary-ink); text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--cx-font-display);
  color: var(--cx-ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

hr { border: 0; border-top: 1px solid var(--cx-line); margin: 2rem 0; }

.cx-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cx-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--cx-radius) 0;
}
.cx-skip:focus { left: 0; color: #fff; }

.cx-shell {
  width: 100%;
  max-width: var(--cx-shell);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}
.cx-narrow { max-width: var(--cx-narrow); }

/* ------------------------------------------------------------------ topbar */
.cx-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--cx-line);
}
.cx-top__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}
.cx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cx-ink);
  font-family: var(--cx-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.cx-brand:hover { color: var(--cx-ink); text-decoration: none; }
.cx-brand__mark { width: 34px; height: 34px; border-radius: 7px; }
.cx-brand__word { line-height: 1.05; }
.cx-brand__word small {
  display: block;
  font-family: var(--cx-font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cx-muted);
  font-weight: 500;
}

.cx-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cx-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.cx-nav__link {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--cx-radius);
  color: var(--cx-ink);
  font-size: 0.94rem;
  font-weight: 500;
}
.cx-nav__link:hover { background: var(--cx-tint); color: var(--cx-primary-ink); text-decoration: none; }
.cx-nav__link[aria-current="page"] { color: var(--cx-primary); background: var(--cx-tint); }

.cx-menu { position: relative; }
.cx-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  background: var(--cx-surface);
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius-lg);
  box-shadow: var(--cx-shadow);
  padding: 14px;
  display: none;
}
.cx-menu__panel[data-open="true"] { display: block; }
.cx-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.cx-menu__panel a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--cx-radius);
  color: var(--cx-ink);
  font-size: 0.92rem;
}
.cx-menu__panel a:hover { background: var(--cx-tint); text-decoration: none; }

.cx-burger {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  background: var(--cx-surface);
  border: 1px solid var(--cx-line-strong);
  border-radius: var(--cx-radius);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--cx-ink);
  cursor: pointer;
}
.cx-burger__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.cx-burger__bars span { width: 18px; height: 2px; background: var(--cx-ink); border-radius: 2px; }

/* -------------------------------------------------------------------- hero */
.cx-hero {
  position: relative;
  background:
    radial-gradient(1100px 460px at 78% -12%, rgba(110, 193, 228, 0.28), transparent 60%),
    radial-gradient(760px 380px at 8% 120%, rgba(180, 83, 9, 0.14), transparent 62%),
    var(--cx-paper);
  border-bottom: 1px solid var(--cx-line);
}
.cx-hero__inner { padding: 78px 0 72px; text-align: center; position: relative; }
.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cx-amber);
  margin: 0 0 16px;
}
.cx-eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--cx-amber);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}
.cx-hero__title { font-size: clamp(1.85rem, 7vw, 4rem); margin: 0 0 0.35em; }
.cx-hero__title em { font-style: normal; color: var(--cx-primary); }
.cx-hero__lead {
  max-width: 680px;
  margin: 0 auto 26px;
  font-size: 1.14rem;
  color: var(--cx-body);
}
.cx-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cx-hero__meta {
  margin-top: 26px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--cx-muted);
  text-transform: uppercase;
}
.cx-motif { width: 100%; max-width: 520px; margin: 0 auto 24px; height: auto; }

/* ---------------------------------------------------------------- sections */
.cx-section { padding: 62px 0; }
.cx-section--tint { background: var(--cx-tint); border-top: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line); }
.cx-section--warm { background: var(--cx-tint-warm); border-top: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line); }
.cx-section__head { max-width: 720px; margin: 0 0 36px; }
.cx-h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cx-h3 { font-size: 1.25rem; }
.cx-lead { font-size: 1.08rem; color: var(--cx-body); }
.cx-muted { color: var(--cx-muted); }
.cx-center { text-align: center; margin-left: auto; margin-right: auto; }

.cx-divider {
  height: 10px;
  margin: 0;
  background: repeating-linear-gradient(90deg, var(--cx-line-strong) 0 10px, transparent 10px 20px);
  -webkit-mask: linear-gradient(#000 0 0) 50% 0 / 20px 100% repeat-x;
  mask: linear-gradient(#000 0 0) 50% 0 / 20px 100% repeat-x;
}

/* ------------------------------------------------------------ prose / list */
.cx-prose p, .cx-entry p, .cx-entry__body p, .cx-prose li { overflow-wrap: anywhere; }
.cx-prose p { margin: 0 0 1.05em; }
.cx-prose > p:first-child { font-size: 1.09rem; color: var(--cx-ink); }
.cx-prose ul, .cx-prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.cx-prose li { margin-bottom: 0.4em; }
.cx-note {
  border-left: 3px solid var(--cx-amber);
  background: var(--cx-amber-soft);
  padding: 14px 18px;
  border-radius: 0 var(--cx-radius) var(--cx-radius) 0;
  margin: 0 0 1.2em;
  font-size: 0.97rem;
}

/* ---------------------------------------------------------------- listings */
.cx-listing { display: grid; gap: 18px; }
.cx-docshell { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.cx-aside-card { position: sticky; top: 96px; }
.cx-aside-card ul { columns: 1; }
.cx-entry {
  background: var(--cx-surface);
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--cx-shadow-tight);
}
.cx-entry__date {
  font-family: var(--cx-font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cx-amber);
  margin: 0 0 8px;
}
.cx-entry__title { font-size: 1.18rem; margin: 0 0 6px; }
.cx-entry__body p { margin: 0 0 0.6em; }
.cx-entry__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cx-entry__links a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
  padding: 5px 11px;
  border: 1px solid var(--cx-line-strong);
  border-radius: 999px;
  background: var(--cx-paper);
  color: var(--cx-primary-ink);
}
.cx-entry__links a:hover { background: var(--cx-tint); text-decoration: none; }

.cx-sec-label {
  font-family: var(--cx-font-display);
  font-size: 1.45rem;
  color: var(--cx-ink);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cx-line);
}
.cx-sec-label:first-child { margin-top: 0; }

/* ------------------------------------------------------------------- cards */
.cx-grid { display: grid; gap: 22px; }
.cx-grid > * { min-width: 0; }
.cx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cx-card {
  background: var(--cx-surface);
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius-lg);
  padding: 26px;
  box-shadow: var(--cx-shadow-tight);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cx-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--cx-tint);
  color: var(--cx-primary);
  margin-bottom: 16px;
}
.cx-card__icon svg { width: 24px; height: 24px; }
.cx-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.cx-card p { margin: 0; color: var(--cx-body); font-size: 0.98rem; }
.cx-card__link { margin-top: auto; padding-top: 14px; font-weight: 500; font-size: 0.92rem; }

.cx-stat { text-align: center; padding: 20px 12px; }
.cx-stat__num { font-family: var(--cx-font-display); font-size: 2.4rem; color: var(--cx-primary); }
.cx-stat__label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cx-muted); }

/* ----------------------------------------------------------------- figures */
.cx-figure {
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  overflow: hidden;
  background: var(--cx-surface);
  box-shadow: var(--cx-shadow);
}
.cx-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cx-figure figcaption { padding: 12px 16px; font-size: 0.86rem; color: var(--cx-muted); }

/* --------------------------------------------------------------- buttons */
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--cx-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--cx-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cx-btn:hover { text-decoration: none; transform: translateY(-1px); }
.cx-btn--primary { background: var(--cx-primary); color: #fff; }
.cx-btn--primary:hover { background: var(--cx-primary-ink); color: #fff; }
.cx-btn--amber { background: var(--cx-amber); color: #fff; }
.cx-btn--amber:hover { background: #8f4107; color: #fff; }
.cx-btn--ghost { background: var(--cx-surface); border-color: var(--cx-line-strong); color: var(--cx-ink); }
.cx-btn--ghost:hover { border-color: var(--cx-primary); color: var(--cx-primary-ink); }
.cx-btn--sm { padding: 8px 15px; font-size: 0.87rem; }

/* -------------------------------------------------------------------- forms */
.cx-form { max-width: 620px; }
.cx-field { margin-bottom: 18px; }
.cx-field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--cx-ink); margin-bottom: 6px; }
.cx-input, .cx-textarea {
  width: 100%;
  font: inherit;
  color: var(--cx-ink);
  background: var(--cx-surface);
  border: 1px solid var(--cx-line-strong);
  border-radius: var(--cx-radius);
  padding: 11px 13px;
}
.cx-input:focus, .cx-textarea:focus { outline: 2px solid var(--cx-sky); outline-offset: 1px; border-color: var(--cx-primary); }
.cx-textarea { min-height: 140px; resize: vertical; }
.cx-note-line { font-size: 0.85rem; color: var(--cx-muted); }

/* ------------------------------------------------------------------- breadcrumb */
.cx-crumbs { font-size: 0.85rem; color: var(--cx-muted); margin-bottom: 14px; }
.cx-crumbs a { color: var(--cx-muted); }
.cx-crumbs span { margin: 0 6px; }

/* ---------------------------------------------------------------- page head */
.cx-band {
  background:
    radial-gradient(900px 300px at 90% -30%, rgba(110, 193, 228, 0.22), transparent 60%),
    var(--cx-tint);
  border-bottom: 1px solid var(--cx-line);
}
.cx-band__inner { padding: 48px 0 40px; }
.cx-band h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 0.3em; }
.cx-band .cx-lead { max-width: 720px; }

/* --------------------------------------------------------------- resources */
.cx-reslist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cx-reslist a { display: block; padding: 12px 16px; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); color: var(--cx-ink); }
.cx-reslist a:hover { border-color: var(--cx-primary); text-decoration: none; color: var(--cx-primary-ink); }
.cx-reslist span { display: block; font-size: 0.85rem; color: var(--cx-muted); }

/* -------------------------------------------------------------------- footer */
.cx-foot { background: var(--cx-ink); color: #cdd5e4; margin-top: 60px; }
.cx-foot a { color: #e8eefb; }
.cx-foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 54px 0 34px; }
.cx-foot__brand .cx-brand { color: #fff; }
.cx-foot__brand .cx-brand__word small { color: #93a0b8; }
.cx-foot__brand p { margin: 16px 0 0; font-size: 0.92rem; line-height: 1.7; max-width: 34ch; }
.cx-foot__col h3 {
  color: #fff;
  font-family: var(--cx-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cx-foot__col ul { list-style: none; margin: 0; padding: 0; }
.cx-foot__col li { margin-bottom: 9px; }
.cx-foot__col a { font-size: 0.94rem; }
.cx-foot__meta {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #93a0b8;
}
.cx-foot__meta p { margin: 0; }

/* ------------------------------------------------------------------ reveal */
[data-cx-reveal] { opacity: 0; transform: translateY(16px); }
[data-cx-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
@media (prefers-reduced-motion: reduce) {
  [data-cx-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .cx-btn:hover { transform: none; }
}

/* --------------------------------------------------------------- focus states */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--cx-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .cx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-foot__top { grid-template-columns: 1fr 1fr; }
  .cx-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .cx-burger { display: inline-flex; }
  .cx-docshell { grid-template-columns: minmax(0, 1fr); }
  .cx-aside-card { position: static; }
  .cx-nav {
    position: absolute;
    left: 0; right: 0;
    top: 74px;
    margin-left: 0;
    background: var(--cx-surface);
    border-bottom: 1px solid var(--cx-line);
    box-shadow: var(--cx-shadow);
    padding: 14px 22px 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .cx-nav[data-open="true"] { display: flex; }
  .cx-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .cx-nav__link { padding: 11px 12px; }
  .cx-menu__panel { position: static; width: 100%; border: 0; box-shadow: none; padding: 4px 0 4px 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cx-top__inner { gap: 10px; }
  .cx-brand { font-size: 1rem; }
  .cx-brand__word small { display: none; }
  .cx-brand__mark { width: 28px; height: 28px; }
  .cx-grid--2, .cx-grid--3, .cx-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .cx-foot__top { grid-template-columns: 1fr; gap: 26px; }
  .cx-section { padding: 46px 0; }
  .cx-hero__inner { padding: 54px 0 56px; }
  .cx-shell { padding-left: 18px; padding-right: 18px; }
}
