/* ==========================================================================
   Incredible Man design system 1.0 (2026-11-13)
   base.css: fonts, reset, body defaults, tones, type roles, page shell.
   Needs tokens.css first. No raw colors or sizes here: tokens only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS. The site's own files, now served from this site (assets/fonts).
   Originals on the old host, for the record:
     Anton-Regular.ttf, ReenieBeanie-Regular.ttf,
     Inter-VariableFont_opsz,wght.ttf (cdn.prod.website-files.com/6882484f...)
   All three: SIL Open Font License 1.1. Paths are relative to this file.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: Anton;
  src: url("/assets/fonts/anton-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Reenie Beanie";
  src: url("/assets/fonts/reeniebeanie-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Variable";
  src: url("/assets/fonts/inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
dialog { padding: 0; border: 0; }

/* --------------------------------------------------------------------------
   BODY
   -------------------------------------------------------------------------- */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-tight);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* bands may bleed art past the edge (hover photos, the hero backdrop);
   the landmarks clip it so the page never scrolls sideways */
main, body > footer { overflow-x: clip; }

/* --------------------------------------------------------------------------
   TONES. A band takes one tone; the tone re-points the semantic colors.
   Dark is the default. Contrast per tone (text / muted / accent or line / focus):
     .tone-dark   ink-900: 19.80 / 7.30 / 12.66 / 19.80
     .tone-black  black:   21.00 / 7.74 / 13.43 / 21.00
     .tone-sand   sand:    16.61 / 6.72 / line 16.61 / 16.61
     .tone-yellow yellow:  13.43 / 5.43 / line 13.43 / 13.43
     .tone-paper  white (hero teaser card only): 21.00 / focus 21.00
   Allowed neighbours: dark next to sand, black or yellow; sand next to dark.
   Not allowed: sand next to yellow (two light tones blur into one band).
   -------------------------------------------------------------------------- */
.tone-dark {
  --color-bg: var(--ink-900);
  --color-text: var(--white);
  --color-text-muted: var(--grey-400);
  --color-focus: var(--white);
  background-color: var(--color-bg);
  color: var(--color-text);
}
.tone-black {
  --color-bg: var(--black);
  --color-text: var(--white);
  --color-focus: var(--white);
  background-color: var(--color-bg);
  color: var(--color-text);
}
.tone-sand {
  --color-bg: var(--sand-100);
  --color-text: var(--black);
  --color-text-strong: var(--black);
  --color-text-muted: var(--ink-600);
  --color-line: var(--black);
  --color-line-strong: var(--black);
  --color-focus: var(--black);
  background-color: var(--color-bg);
  color: var(--color-text);
}
.tone-yellow {
  --color-bg: var(--yellow-500);
  --color-text: var(--black);
  --color-text-strong: var(--black);
  --color-text-muted: var(--ink-600);
  --color-line: var(--ink-900);
  --color-line-strong: var(--ink-900);
  --color-focus: var(--black);
  background-color: var(--color-bg);
  color: var(--color-text);
}
.tone-paper {
  --color-bg: var(--white);
  --color-text: var(--black);
  --color-focus: var(--black);
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   FOCUS. One ring: 2 px in the tone's text color, 3 px outside the element.
   Never removed without this replacement.
   -------------------------------------------------------------------------- */
a, button, input, select, textarea, summary, [tabindex] { outline-offset: var(--focus-offset); }
:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
}

/* --------------------------------------------------------------------------
   TYPE ROLES. Headings are Anton, uppercase, tight. Body is Inter at 450.
   Each role names the measured size it replaces (1440 / 390).
   -------------------------------------------------------------------------- */
.t-display, .t-h2, .t-h3, .t-h4, .t-h5, .t-h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  text-wrap: balance;
}
.t-display { font-size: var(--size-display); }  /* replaces 120.04 / 69.82 */
.t-h2 { font-size: var(--size-h2); }            /* replaces 89.85 / 51.39 */
.t-h3 { font-size: var(--size-h3); }            /* replaces 41.34 / 30.40 */
.t-h4 { font-size: var(--size-h4); }            /* replaces 31.21 / 24.25 */
.t-h5 { font-size: var(--size-h5); }            /* replaces the testimonial name */
.t-h6 { font-size: var(--size-h6); }            /* replaces the pillar number */

.t-quote {                                       /* replaces 49.4 / 35.5, Anton sentence case */
  font-family: var(--font-display);
  font-size: var(--size-quote);
  font-weight: var(--weight-regular);
  line-height: var(--leading-quote);
  letter-spacing: var(--tracking-tight);
  text-wrap: pretty;
}
.t-script-xl, .t-script-l, .t-script-m {
  font-family: var(--font-script);
  font-weight: var(--weight-regular);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  text-wrap: pretty;
}
.t-script-xl { font-size: var(--size-script-xl); }
.t-script-l { font-size: var(--size-script-l); }
.t-script-m { font-size: var(--size-script-m); }

.t-lead, .t-body-l, .t-body, .t-body-s, .t-small {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  letter-spacing: var(--tracking-tight);
  text-wrap: pretty;
}
.t-lead { font-size: var(--size-lead); line-height: var(--leading-body); text-wrap: balance; }      /* replaces 25.53 / 22.12 */
.t-body-l { font-size: var(--size-body-l); line-height: var(--leading-body); }  /* replaces 21.21 / 18.11 */
.t-body { font-size: var(--size-body); line-height: var(--leading-body); }      /* replaces 19.05 / 16.11 */
.t-body-s { font-size: var(--size-body-s); line-height: var(--leading-normal); }/* replaces 16.90 / 14.10 */
.t-small { font-size: var(--size-small); line-height: var(--leading-normal); }  /* replaces 14 */

.t-nav, .t-label, .t-label-l {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
}
.t-nav { font-size: var(--size-nav); line-height: var(--leading-nav); letter-spacing: var(--tracking-nav); }        /* 19 */
.t-label { font-size: var(--size-label); line-height: var(--leading-normal); letter-spacing: var(--tracking-label); } /* 20 */
.t-label-l { font-size: var(--size-label-l); line-height: var(--leading-snug); letter-spacing: var(--tracking-none); }/* 24 */

.t-muted { color: var(--color-text-muted); }
.t-soft { color: var(--color-text-soft); }
.t-accent { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   LINKS. In running text: accent color, always underlined, offset so the
   line clears descenders. Placement links (nav, buttons, footer) carry no
   underline; their place says they are links.
   -------------------------------------------------------------------------- */
.link {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color var(--duration-fast) var(--ease-out);
}
.link:visited { color: var(--color-accent); }
.link:hover { color: var(--color-text); text-decoration-thickness: 2px; }
.link:active { color: var(--color-accent-hover); }

/* --------------------------------------------------------------------------
   PAGE SHELL
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.inset { margin-inline: var(--gutter); }

.skip-link {
  position: absolute;
  left: var(--space-16);
  top: -10rem;
  z-index: var(--layer-skip);
  padding: var(--space-16) var(--space-24);
  background-color: var(--yellow-500);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: var(--size-label);
  text-transform: uppercase;
  text-decoration: none;
  --color-focus: var(--ink-900);
}
.skip-link:focus { top: var(--space-16); }

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

/* --------------------------------------------------------------------------
   REDUCED MOTION: transitions collapse and smooth scroll stops. Video
   autoplay is switched off by the page script under the same setting.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
