/*-- scss:defaults --*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

$paper:      #F7F7F5;
$ink:        #14171F;
$circuit:    #2B6CB0;   // circuit-trace blue
$amplitude:  #0F9D8C;   // teal accent for interactive/data moments
$rule:       #D8DCE3;

$font-family-sans-serif: "Space Grotesk", sans-serif;
$font-family-serif: "Source Serif 4", Georgia, serif;
$font-family-monospace: "JetBrains Mono", monospace;

$body-bg: $paper;
$body-color: $ink;
$link-color: $circuit;
$navbar-bg: $paper;
$navbar-fg: $ink;
$navbar-hl: $circuit;
$footer-bg: $paper;
$footer-fg: mix($ink, $paper, 60%);

/*-- scss:rules --*/
body {
  font-family: $font-family-serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

h1, h2, h3, h4, .navbar-title, .navbar-brand {
  font-family: $font-family-sans-serif;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }

// signature element: a "circuit trace" rule — a hairline with small right-angle
// jogs, used under page titles and between major sections instead of a plain <hr>
.circuit-rule {
  height: 10px;
  width: 100%;
  margin: 0.25rem 0 2rem 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20100%2010%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2C1%20H40%20V9%20H100%27%20fill%3D%27none%27%20stroke%3D%27%232B6CB0%27%20stroke-width%3D%272%27%20vector-effect%3D%27non-scaling-stroke%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.55;
}

// category / metadata tags rendered in mono, like register labels on a circuit
.quarto-listing-category, .listing-categories .category, .quarto-title-meta-heading,
.quarto-title-meta-contents {
  font-family: $font-family-monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: mix($ink, $paper, 65%);
}

// project cards
.quarto-grid-item {
  border: 1px solid $rule;
  border-radius: 2px;
  transition: border-color 0.15s ease;
}
.quarto-grid-item:hover {
  border-color: $circuit;
}
.card-img-top { background-color: mix($circuit, $paper, 6%); }

// callouts / status notes (e.g. "merged into ecosystem") rendered as a
// terminal-style readout rather than a generic bootstrap alert
.status-readout {
  font-family: $font-family-monospace;
  font-size: 0.85rem;
  background: mix($ink, $paper, 5%);
  color: mix($ink, $paper, 85%);
  border-left: 3px solid $amplitude;
  padding: 0.6rem 0.9rem;
  margin: 1.25rem 0;
}

// interactive OJS panels
.ojs-panel {
  border: 1px solid $rule;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: mix($circuit, $paper, 3%);
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: $font-family-monospace; }
