/* ABOUTME: Site-wide foundations: self-hosted fonts, colour tokens, reset, header, footer and shared components. */
/* ABOUTME: The palette is taken from the Augmented Intelligence covers: steel blue-grey with crimson accents. */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("/fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/fonts/inter.woff2") format("woff2"); }

:root {
  --ink: #0b0f13;
  --ink-raised: #131a20;
  --ink-line: #24303a;
  --steel: #8797a3;
  --text: #e7ebee;
  --text-muted: #a3afb8;
  --crimson: #a8242e;
  --crimson-bright: #e0505a;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --content-width: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--crimson-bright); outline-offset: 3px; }

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

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

.eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel); margin: 0 0 0.75rem; }

/* Header */
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--ink-line); background: var(--ink); }
.site-header__inner { max-width: var(--content-width); margin-inline: auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; margin: 0; }
.site-nav ul { list-style: none; display: flex; gap: clamp(16px, 3vw, 36px); margin: 0; padding: 0; }
.site-nav a { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--text-muted); padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); border-bottom-color: var(--crimson-bright); }

/* Buttons and retailer links */
.button { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding: 0.8em 1.4em; border: 2px solid var(--crimson); background: var(--crimson); color: #fff; transition: background 0.2s, border-color 0.2s; }
.button:hover { background: #c22d38; border-color: #c22d38; }
.button--ghost { background: transparent; border-color: rgba(231, 235, 238, 0.4); color: var(--text); }
.button--ghost:hover { background: rgba(231, 235, 238, 0.08); border-color: var(--text); }

.retailers { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.retailers a { display: inline-block; font-size: 0.875rem; font-weight: 500; text-decoration: none; padding: 0.45em 0.9em; border: 1px solid var(--ink-line); background: rgba(11, 15, 19, 0.6); color: var(--text); transition: border-color 0.2s; }
.retailers a:hover { border-color: var(--crimson-bright); }

.text-link { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--text); border-bottom: 2px solid var(--crimson-bright); padding-bottom: 2px; }
.text-link:hover { color: var(--crimson-bright); }

/* About the author */
.about-author { max-width: 720px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 40px); border: 1px solid var(--ink-line); border-left: 4px solid var(--crimson); background: var(--ink-raised); }
.about-author h2 { font-size: 1.15rem; letter-spacing: 0.22em; color: var(--steel); margin-bottom: 12px; }
.about-author p { margin: 0; color: var(--text-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--ink-line); background: #070a0d; margin-top: 96px; }
.site-footer__inner { max-width: var(--content-width); margin-inline: auto; padding: 48px var(--gutter) 40px; display: grid; gap: 24px; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; }
.site-footer a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer__series a { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__legal { color: #6b7780; font-size: 0.85rem; }
.site-footer__legal p { margin: 0 0 4px; }

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