/* Fonts, reset and typography classes (Figma "Design / …" text styles) */

/* Forum is loaded from Google Fonts in <head>; Tilda Sans VF and Festus are self-hosted */
@font-face {
  font-family: "Tilda Sans VF";
  src: url("../assets/fonts/TildaSans-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Festus";
  src: url("../assets/fonts/Festus.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

/* ---------- Typography ---------- */

/* Design / Display / Footer — Forum 156 */
.t-display-footer {
  font-family: var(--font-serif);
  font-size: var(--fs-display-footer);
  font-weight: 400;
  text-transform: uppercase;
}

/* Design / Display / Numeral — Forum 80 */
.t-display-numeral {
  font-family: var(--font-serif);
  font-size: var(--fs-display-numeral);
  font-weight: 400;
  text-transform: uppercase;
}

/* Design / Heading / Section — Forum 44 uppercase */
.t-heading-section {
  font-family: var(--font-serif);
  font-size: var(--fs-heading-section);
  font-weight: 400;
  text-transform: uppercase;
}

/* Design / Heading / Hero — Forum 36 uppercase */
.t-heading-hero {
  font-family: var(--font-serif);
  font-size: var(--fs-heading-hero);
  font-weight: 400;
  text-transform: uppercase;
}

/* Design / Heading / Name — Forum 28 */
.t-heading-name {
  font-family: var(--font-serif);
  font-size: var(--fs-heading-name);
  font-weight: 400;
}

/* Design / Label / Uppercase — Forum 16 */
.t-label {
  font-family: var(--font-serif);
  font-size: var(--fs-label);
  font-weight: 400;
  text-transform: uppercase;
}

/* Design / Handwritten / Accent & Numeral — Festus 24 */
.t-hand {
  font-family: var(--font-hand);
  font-size: var(--fs-handwritten);
  font-weight: 400;
}

/* Design / Handwritten / Signature / 28 — Festus 28 */
.t-hand--28 { font-size: 28px; }

/* Design / Link / 20 — underlined Tilda 20 */
.t-link {
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  color: var(--text-primary);
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .t-link:hover { color: var(--text-accent); }
}

/* Design / Body / Large / Regular — Tilda 20 */
.t-body-lg {
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  font-weight: 400;
}

/* Design / Body / Small / Regular|Medium|Semibold|Bold — Tilda 16 */
.t-body {
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  font-weight: 400;
}
.t-body--medium { font-weight: 500; }
.t-body--semibold { font-weight: 600; }
.t-body--bold { font-weight: 700; }

/* Design / Caption / 14 / Regular */
.t-caption {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 400;
}

/* Colour helpers */
.c-primary { color: var(--text-primary); }
.c-secondary { color: var(--text-secondary); }
.c-muted { color: var(--text-muted); }
.c-accent { color: var(--text-accent); }
.c-inverse { color: var(--text-inverse); }
.c-decorative { color: var(--text-decorative); }

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