/* ==========================================================================
   Quaerens Restyle — editorial / journal aesthetic
   Light theme. Spectral + JetBrains Mono. Inline-style-first; this file
   provides only the bare minimum: font imports, body reset, and a few
   universal helpers. All layout styling is inline on each element to match
   the source design intent.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --r-bg: #f4f1e9;
  --r-ink: #211e19;
  --r-text: #5e574c;
  --r-muted: #9a9082;
  --r-rule: #d7d0c0;
  --r-accent: #8c3b32;
  --r-accent-deep: #6f2c25;
  --r-accent-bright: #c3392f;
  --r-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --r-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--r-bg);
  color: var(--r-ink);
  font-family: var(--r-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--r-accent); }
a.r-cta-primary {
  background: var(--r-accent);
  color: var(--r-bg);
  padding: 11px 24px;
  border-radius: 2px;
  transition: background .2s;
  font-size: 15px;
}
a.r-cta-primary:hover { background: var(--r-accent-deep); color: var(--r-bg); }
a.r-cta-secondary {
  border-bottom: 1px solid var(--r-accent-bright);
  padding-bottom: 2px;
  color: var(--r-ink);
  font-size: 15px;
}

p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

/* Hero image slot — used as a placeholder when no figure image is wired up.
   Renders as a subtle parchment pattern so the layout still works. */
.r-image-slot {
  display: block;
  width: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(140, 59, 50, 0.04) 0 14px,
      transparent 14px 28px
    ),
    var(--r-bg);
  border: 1px solid var(--r-rule);
  border-radius: 6px;
}

/* Figure images — photographed notebook sketches, editorial style.
   Subtle 6px radius and a thin parchment-tinted shadow to suggest a page
   resting on the canvas. */
.r-figure {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(33, 30, 25, 0.08);
}

