/*-- Google Fonts import ----------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap");

/* ── Light theme (default) ─────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg: #ffffff;
  --bg-subtle: #f5f7fa;
  --bg-code: #1a2e4a;
  --bg-header: #ffffff;
  /* Borders */
  --border: #e5e7eb;
  --border-hover: #d1d5db;

  /* Text */
  --text: #3a3a3a;
  --text-muted: #b0aea5;
  --heading: #1a2e4a;

  /* Brand / accent */
  --brand: #1a2e4a; /* primary navy */
  --accent: #7ba454; /* Orbifold blue */
  --accent-hover: #0d4fa0;

  /* Links */
  --link: #4c657f;

  /* Callouts */
  --note: #0a3a78;
  --tip: #2b8c3f;
  --warning: #e36a1c;

  /* Sidebar active / hover item */
  --sidebar-active-bg: #e8e6dc;

  /* Code text */
  --code-text: #505050;
  --inline-code-text: #1a2e4a;
  --inline-code-bg: #f5f7fa;

  --card-bg: white;
  --card-stroke: #e5e7eb;
  --card-title: #1a2e4a;
  --card-accent: #6a81a4a1;
}

body.quarto-dark {
  /* Backgrounds */
  --bg: #1a2e4a;
  --bg-subtle: #ffffff17;
  --bg-code: #f5f7fa;
  --bg-header: rgb(44, 44, 44);
  /* Borders */
  --border: #2c3e5d;
  --border-hover: #3a4e7a;

  /* Text */
  --text: #d1d5db;
  --text-muted: #6b7280;
  --heading: #f5f7fa;

  /* Brand / accent */
  --brand: #1a2e4a; /* primary navy */
  --accent: #0a3a78; /* Orbifold blue */
  --accent-hover: #0d4fa0;

  /* Links */
  --link: #7b99b9;

  /* Callouts */
  --note: #0a3a78;
  --tip: #2b8c3f;
  --warning: #e36a1c;

  /* Sidebar active / hover item */
  --sidebar-active-bg: #16243b;

  /* Code text */
  --code-text: #cacaca;
  --inline-code-text: #1a2e4a;
  --inline-code-bg: #f5f7fa;

  --card-bg: var(--bg-subtle);
  --card-stroke: var(--border);
  --card-title: var(--heading);
}
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  cursor: pointer;
}
.card-title {
  color: var(--card-title);
  font-size: 1.25em;
  margin-bottom: 8px;
}
.card-image {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 12px;
}
.card code {
  font-size: small;
  border-radius: 5px;
  color: var(--code-text);
}

.card:hover,
.example-card:hover {
  background-color: var(--card-accent);
  cursor: pointer;
  color: white;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
  display: inline;
}

p a:hover {
  background-color: var(--link);
  color: white;
  border-radius: 4px;
  padding: 2px;
}

nav-link a:hover {
  background-color: var(--link);
  color: var(--link);
  border-radius: 0;
  padding: 0 !important;
}

.navbar {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border);
}

.cluster rect {
  fill: rgba(156, 179, 197, 0.542) !important;
}
/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column; /* optional */
  justify-content: center; /* vertical if height is set */
  align-items: center; /* horizontal */
  text-align: center; /* center text */
  margin: 4rem auto 2rem 10rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.navbar-title {
  font-size: 2rem;
}
