/* ============================================================
   Catalog brand system — Hamish Gunasekara
   Light planes · slate monochrome · photography supplies the color
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Pilat Wide";
  src: url("fonts/catalog/PilatWide-Demi.woff2") format("woff2"),
       url("fonts/catalog/PilatWide-Demi.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pilat Wide";
  src: url("fonts/catalog/PilatWide-Bold.woff2") format("woff2"),
       url("fonts/catalog/PilatWide-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eurostile";
  src: url("fonts/catalog/Eurostile-Reg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eurostile";
  src: url("fonts/catalog/Eurostile-Med.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bio Sans";
  src: url("fonts/catalog/BioSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Core palette */
  --paper: #ffffff;
  --light-gray: #f2f2f2;
  --mist: #e6edf1;
  --slate-blue: #adbfc9;
  --harbor: #587285;
  --ink-slate: #2f4250;

  /* Ink (typography is the darkest element on any surface) */
  --ink-primary: #2f4250;
  --ink-secondary: rgba(47, 66, 80, 0.74);
  --ink-tertiary: rgba(47, 66, 80, 0.52);

  /* Surfaces & lines */
  --surface-border: rgba(173, 191, 201, 0.40);
  --hairline: rgba(47, 66, 80, 0.10);

  /* Type families */
  --font-display: "Pilat Wide", "Eurostile", system-ui, sans-serif;
  --font-label: "Eurostile", system-ui, sans-serif;
  --font-body: "Bio Sans", system-ui, -apple-system, sans-serif;

  /* Geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-hover: 160ms;

  /* Page rhythm */
  --gutter: clamp(24px, 6vw, 64px);
  --measure: 34rem;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--slate-blue);
  color: var(--ink-slate);
}

/* ---------- Shared type primitives ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--harbor);
  margin: 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.0;
  color: var(--ink-primary);
  margin: 0;
}

/* ---------- Footer (shared) ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px var(--gutter);
  margin-top: 64px;
}
.site-footer .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity var(--t-hover) var(--ease);
}
.site-footer .wordmark:hover { opacity: 1; }
.site-footer .wordmark img {
  height: 12px;
  width: auto;
  display: block;
}
.site-footer .wordmark .arrow {
  font-family: var(--font-label);
  color: var(--harbor);
  font-size: 0.75rem;
}
.site-footer .colophon {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
