/*
 * Hairline Index: design tokens
 * A quiet catalogue. Warm paper inside a thick ink frame that holds the whole viewport,
 * one hairline rule between the index and the results, a tall letterspaced condensed wordmark,
 * tiny grotesk labels next to small serif lists, and flat tonal plates with fine line drawings.
 * One muted moss accent, used almost nowhere. No radius, no shadows.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200;300&family=Hanken+Grotesk:wght@400;500&family=Spectral:ital,wght@0,300;0,400;1,300&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: paper everywhere, a slightly darker paper for plates and quiet panels */
  --hx-paper: #f6f4ec;
  --hx-paper-2: #ebe7da;
  --hx-paper-3: #ddd7c5;

  /* Ink: the frame, every rule and all text */
  --hx-ink: #1b1a17;
  --hx-soft: #5f5c54;
  --hx-faint: #9a968a;
  --hx-line: #1b1a17;          /* rules are ink, just very thin */
  --hx-line-faint: #cfcabb;    /* only for dotted leaders and table rows */

  /* The one accent: muted moss. A link underline, a selected filter, a small dot */
  --hx-moss: #626a45;
  --hx-moss-soft: #dfe0cc;
  --hx-clay: #b98a6a;          /* only as a plate tint, never for text or buttons */
  --hx-clay-soft: #eadccd;

  /* Type */
  --hx-display: "Oswald", "Arial Narrow", sans-serif;
  --hx-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hx-serif: "Spectral", "Iowan Old Style", Georgia, serif;

  --hx-text-hero: clamp(44px, 7.4vw, 104px);
  --hx-text-h2: clamp(30px, 3.6vw, 46px);
  --hx-text-h3: 22px;
  --hx-text-lead: 19px;
  --hx-text-body: 16px;
  --hx-text-small: 13px;
  --hx-text-micro: 12px;

  --hx-tracking-logo: .42em;
  --hx-tracking-hero: .02em;
  --hx-tracking-label: .01em;

  /* Shape: none. Square corners, hairlines, a heavy frame */
  --hx-radius: 0;
  --hx-frame: 6px;
  --hx-hair: 1px solid var(--hx-line);
  --hx-hair-faint: 1px solid var(--hx-line-faint);
  --hx-shadow: none;

  /* Space */
  --hx-gutter: 30px;
  --hx-section: clamp(64px, 9vw, 120px);
  --hx-container: 1380px;
  --hx-narrow: 680px;

  /* Motion: plates fade, nothing moves */
  --hx-ease: cubic-bezier(.3, .7, .3, 1);
}

@media (max-width: 640px) {
  :root {
    --hx-frame: 4px;
    --hx-gutter: 18px;
  }
}
