/* =========================================================
   The Outscal Resource Archive — shared styles
   Editorial, typography-first. Palette: ink, paper, yellow, blue.
   ========================================================= */

:root {
  --ink: #0A0A0A;
  --ink-soft: #3A3A3A;
  --muted: #7A7A7A;
  --rule: #E8E5DC;
  --paper: #FAFAF6;
  --paper-tint: #F2EFE6;
  --yellow: #F5C518;
  --blue: #3B6BE0;
  --shadow: 0 1px 0 rgba(10,10,10,.04), 0 12px 32px -18px rgba(10,10,10,.18);

  --serif: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------------- MASTHEAD (shared across pages) ---------------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 250, 246, 0.88);
  backdrop-filter: saturate(160%) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.masthead-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 0;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand .mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.brand .title { display: flex; align-items: baseline; gap: 10px; }
.brand .dot { color: var(--yellow); }
.brand .by { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: 0; }
@media (max-width: 560px) { .brand .by { display: none; } }

.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 28px;
}
.nav a {
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.current { color: var(--ink); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
@media (max-width: 560px) { .nav { gap: 16px; } }

/* ---------------- FOOTER (shared) ---------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 96px;
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center;
}
.site-footer strong { color: var(--ink); font-weight: 600; }
.site-footer .sep { opacity: .4; }
/* The raw PNG has ~24% content, rest is transparent padding — crop via CSS. */
.site-footer .wordmark {
  display: inline-block;
  width: 112px;
  height: 22px;
  background: url("../outscal.png") 51.1% 47.7% / auto 425% no-repeat;
  vertical-align: middle;
  opacity: .9;
}
.site-footer .lockup { display: inline-flex; align-items: center; gap: 10px; }

/* ---------------- REUSABLE ---------------- */
.eyebrow {
  font-family: var(--serif);
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kbd {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 2px 6px; background: var(--paper);
}

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