/* ABOUTME: Site-wide foundations: self-hosted font, colour tokens, reset, header, footer and shared helpers. */
/* ABOUTME: The palette is built around the slate blue-grey of the Shelfless logo on a soft off-white. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 200 800; font-display: swap; src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); }

:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --ink: #1f2f36;
  --muted: #5d6d73;
  --brand: #31474f;
  --brand-deep: #1f3037;
  --accent: #4b8a82;
  --rule: #dfe4e2;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --content-width: 1040px;
  --measure: 68ch;
  --radius: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--brand); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; padding: 8px 16px; background: var(--brand); color: #fff; z-index: 100; }
.skip-link:focus { left: 16px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--content-width); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: clamp(20px, 4vw, 40px); }
.brand { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 24px); color: var(--brand); text-decoration: none; }
.brand:hover { color: var(--brand); }
.logo { display: block; width: auto; height: clamp(84px, 11vw, 116px); }
.brand__tagline { padding-left: clamp(14px, 2.5vw, 24px); border-left: 1px solid var(--rule); color: var(--muted); font-size: clamp(0.8rem, 0.7rem + 0.4vw, 0.95rem); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.3; }

.site-nav ul { list-style: none; display: flex; gap: clamp(20px, 3vw, 36px); margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s; }
.site-nav a:hover { color: var(--brand); border-bottom-color: var(--accent); }

/* Footer */
.site-footer { margin-top: clamp(64px, 10vw, 112px); border-top: 1px solid var(--rule); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 28px 36px; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }

@media (max-width: 520px) {
  .site-header__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
