/* ============================================================
   typography.css — Type Scale & Font Definitions
   Pinion & Adams Fabricators
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ----------------------------------------
   Base
   ---------------------------------------- */

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-primary);
}

/* ----------------------------------------
   Headings
   ---------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-text-heading);
  line-height: 1.1;
}

h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-text-dark);
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h5 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0;
}

h6 {
  font-size: clamp(0.875rem, 1.25vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ----------------------------------------
   Body Text
   ---------------------------------------- */

p {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text-primary);
}

p + p {
  margin-top: 1rem;
}

/* ----------------------------------------
   Links
   ---------------------------------------- */

a {
  transition: color var(--transition-fast);
}

/* ----------------------------------------
   Lists
   ---------------------------------------- */

ul, ol {
  padding-left: 1.5rem;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li {
  margin-bottom: 0.35rem;
  color: var(--color-text-primary);
  line-height: 1.6;
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */

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

.text-red {
  color: var(--color-secondary);
}

.text-white {
  color: #ffffff;
}

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

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  line-height: 1.4;
}

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

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.5vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--color-text-on-dark);
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ----------------------------------------
   Blockquote
   ---------------------------------------- */

blockquote {
  border-left: 3px solid var(--color-secondary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  background: var(--color-surface-light);
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----------------------------------------
   Code
   ---------------------------------------- */

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-surface-light);
  border: 1px solid var(--color-border);
  padding: 0.125em 0.375em;
  border-radius: var(--border-radius);
  color: var(--color-secondary);
}

pre {
  background: var(--color-surface-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--color-accent);
}

/* ----------------------------------------
   Horizontal Rule
   ---------------------------------------- */

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* ----------------------------------------
   Strong / Em
   ---------------------------------------- */

strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

em {
  font-style: italic;
  color: var(--color-accent);
}

/* ----------------------------------------
   Selection
   ---------------------------------------- */

::selection {
  background: var(--color-secondary);
  color: #ffffff;
}

::-moz-selection {
  background: var(--color-secondary);
  color: #ffffff;
}
