/* ==========================================================================
   Alignment Marketing design system 1.0 (2026-11-12): base
   Fonts, reset, body defaults, type roles, page shell.
   Requires tokens.css first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font
   The live site names Inter but ships no font file (material/styles.css has
   no @font-face; rendered.html has no font link). This rule keeps that
   behaviour honest: Inter is used where it is installed, by local() only,
   and the stack falls through to the system UI face elsewhere, as on the
   live site. Inter is SIL Open Font License 1.1. If the client chooses to
   self-host it (open question), add url() sources here and nothing else.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: local("Inter"), local("Inter Variable"), local("Inter-Regular");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: local("Inter Italic"), local("Inter Variable Italic"), local("Inter-Italic");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Reset (the parts of Tailwind preflight the home relies on)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--line);
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-height: var(--type-body-line);
  font-family: var(--font-sans);
}
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
ol, ul { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
hr { height: 0; border-top-width: var(--rule); color: inherit; }

/* --------------------------------------------------------------------------
   Body defaults
   -------------------------------------------------------------------------- */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-size: var(--type-body-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "rlig" 1, "calt" 1;
}

/* Focus: one ring everywhere, keyboard only. Never remove without replacing. */
:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-offset);
}

/* --------------------------------------------------------------------------
   Type roles
   -------------------------------------------------------------------------- */
.t-display {          /* page title, one per page: h1 36 px, 48 px from 40rem */
  font-size: var(--type-display-size);
  line-height: var(--type-display-line);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}
@media (min-width: 40rem) { /* --bp-sm */
  .t-display {
    font-size: var(--type-display-size-wide);
    line-height: var(--type-display-line-wide);
  }
}
.t-lede {             /* the line under the page title: 18 px muted */
  font-size: var(--type-lede-size);
  line-height: var(--type-lede-line);
  color: var(--muted);
  max-width: var(--measure-lede);
}
.t-title {            /* card and list titles: 16 px semibold */
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}
.t-eyebrow {          /* uppercase group label above a title: 12 px medium */
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-line);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
}
.t-small {            /* secondary lines, the footer motto: 14 px muted */
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  color: var(--muted);
}
.t-micro {            /* credits and legal: 12 px muted */
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-line);
  color: var(--muted);
}
.t-italic { font-style: italic; }

/* --------------------------------------------------------------------------
   Page shell
   lang on html, viewport that allows zoom, skip link first, header, main,
   footer landmarks, one h1. Footer sits at the viewport floor on short pages
   (measured: min-h-screen flex column, main flex 1).
   -------------------------------------------------------------------------- */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.shell > main { flex: 1; }

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

/* Skip link: added for the floor; invisible until focused. */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  font-weight: var(--weight-semibold);
  border: var(--rule) solid var(--ink);
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

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