/* Cassone design system: base. Fonts, reset, body defaults, type roles, page shell. Needs tokens.css first. */

/* Fonts: the site's own files (Eurostile LT Pro Unicode Demi, Roboto Regular, Medium, SemiBold), served from this site. */
@font-face { font-family: "Eurostile LT Pro Unicode"; src: url("/assets/fonts/eurostile-demi.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding: 100px; }
body, h1, h2, h3, p, ul, figure, blockquote, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; }
ul { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }

/* Body: Roboto, black, 18 / 20 at 150 percent, numbers lining. */
body {
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--size-body-l);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  font-feature-settings: "liga" off;
  font-variant-numeric: lining-nums proportional-nums;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

a { color: var(--color-skyline); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-void); }

/* Focus: a visible 2 px ring on every control. Yellow on dark and blue bands, nightfall elsewhere (3:1 or better on each). */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tone-dark :focus-visible, .tone-brand :focus-visible { outline-color: var(--color-yellow); }

/* Headings: Eurostile Demi in capitals, 120 percent. */
h1, h2, h3, .heading {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  text-transform: uppercase;
  font-variant-numeric: lining-nums proportional-nums;
  color: inherit;
}
h1, .t-h1 { font-size: var(--size-h1); }
h2, .t-h2 { font-size: var(--size-h2); }
.t-display { font-size: var(--size-display); }

/* Type roles as classes (the site's ui-label and body-text styles). */
.t-label-4xl { font-family: var(--font-display); font-weight: 600; font-size: var(--size-label-4xl); line-height: var(--leading-label); text-transform: uppercase; }
.t-label-2xl { font-family: var(--font-display); font-weight: 600; font-size: var(--size-label-2xl); line-height: var(--leading-label); text-transform: uppercase; }
.t-label-xl  { font-family: var(--font-display); font-weight: 600; font-size: var(--size-label-xl); line-height: var(--leading-label); }
.t-label-m   { font-family: var(--font-display); font-weight: 600; font-size: var(--size-body); line-height: var(--leading-label); }
.t-label     { font-family: var(--font-display); font-weight: 600; font-size: var(--size-label); line-height: var(--leading-label); }
.t-label-xs  { font-family: var(--font-display); font-weight: 600; font-size: var(--size-xs); line-height: var(--leading-label); }
.t-caps      { text-transform: uppercase; }
.t-body-xl   { font-size: var(--size-label-xl); line-height: var(--leading-body); }
.t-body      { font-size: var(--size-body); line-height: var(--leading-body); }
.t-small     { font-size: var(--size-label); line-height: var(--leading-label); }
.t-muted     { color: var(--text-muted); }

/* Page shell: the three wrappers, band tones and the 2 px rule that closes every band. */
.wrap { width: 100%; margin: 0 auto; max-width: var(--container-wide); padding-inline: var(--gutter); }
.wrap--mid { max-width: var(--container); }
.wrap--narrow { max-width: var(--container-narrow); }
.wrap--full { max-width: none; }
@media (max-width: 1220px) { .wrap { padding-inline: var(--gutter-phone); } }
.rule-bottom { border-bottom: var(--rule); }

.tone-paper { background: var(--surface); color: var(--text); }
.tone-sky { background: var(--surface-tint); color: var(--text); }
.tone-yellow { background: var(--surface-accent); color: var(--color-void); }
.tone-brand { background: var(--surface-brand); color: var(--text-on-dark); }
.tone-dark { background: var(--surface-dark); color: var(--text-on-dark); }
.tone-brand a:not(.btn), .tone-dark a:not(.btn) { color: var(--text-on-dark); }
.tone-brand a:not(.btn):hover { color: var(--color-yellow); }
.tone-dark a:not(.btn):hover { color: var(--color-yellow-hover); }

/* Helpers for people using a keyboard or a screen reader. */
.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; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--color-paper); color: var(--color-void); font: 700 14px/1.2 var(--font-body); padding: 12px 16px; border: var(--rule); }
.skip-link:focus { top: 8px; }
