/* ============================================================
   Hub Design System - Base & Typography
   Imports, CSS Reset, Base Styles, Typography Utilities
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=JetBrains+Mono:wght@500&family=Montserrat:wght@600;700&display=swap');

/* ── Modern Minimal CSS Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--pt-bg);
  color: var(--pt-on-surface);
  font-family: var(--pt-font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Selection ── */
::selection {
  background-color: var(--pt-accent-red);
  color: var(--pt-white);
}

::-moz-selection {
  background-color: var(--pt-accent-red);
  color: var(--pt-white);
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--pt-accent-red);
  outline-offset: 2px;
}

/* ============================================================
   Typography Utility Classes
   Hub Design System Scale
   ============================================================ */

/* Display - Hero/Splash use */
.text-display {
  font-family: var(--pt-font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pt-on-surface);
}

/* Headline XL - Page titles */
.text-headline-xl {
  font-family: var(--pt-font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pt-on-surface);
}

/* Headline LG - Section headers */
.text-headline-lg {
  font-family: var(--pt-font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pt-on-surface);
}

/* Headline MD - Subsection headers */
.text-headline-md {
  font-family: var(--pt-font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: var(--pt-on-surface);
}

/* Section Title - Uppercase section labels */
.text-section-title {
  font-family: var(--pt-font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pt-outline);
}

/* Body LG - Prominent body text */
.text-body-lg {
  font-family: var(--pt-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pt-on-surface);
}

/* Body MD - Default body text */
.text-body-md {
  font-family: var(--pt-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pt-on-surface-variant);
}

/* Body SM - Secondary/small body text */
.text-body-sm {
  font-family: var(--pt-font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--pt-outline);
}

/* Label - Buttons, tags, navigation */
.text-label {
  font-family: var(--pt-font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pt-on-surface-variant);
}

/* Mono - Code, data, technical values */
.text-mono {
  font-family: var(--pt-font-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pt-on-surface);
}

/* ── Responsive Typography ── */
@media (max-width: 768px) {
  .text-display {
    font-size: 32px;
  }

  .text-headline-xl {
    font-size: 26px;
  }

  .text-headline-lg {
    font-size: 22px;
  }

  .text-headline-md {
    font-size: 20px;
  }
}

/* ── Visually Hidden (SR Only) ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
