/* 
 * ustwo Accessibility Microsite - Typography Styles
 * Based on ustwo-website typography system
 */

html {
  font-size: 16px;
}

body {
  font-family: var(--bodyFont);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  color: var(--color-text-primary);
  font-weight: 300;
  line-height: 1.5;
  font-size: calc(1rem + (((2 - 1) * ((100vw - 320px) / (2048 - 320))) * 10));
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.fontBody {
  font-family: var(--bodyFont);
}

/* Typography - refined for dashboard */
h1, .h1 {
  padding: 0;
  margin: 0;
  font-family: var(--titleFont);
  line-height: 1.2;
  font-weight: 300;
  font-size: calc(1.5rem + (((5.5 - 1.5) * ((100vw - 320px) / (2048 - 320))) * 10));
  font-display: swap;
  color: var(--color-text-primary);
}

h2, .h2,
h3, .h3 {
  font-family: var(--titleFont);
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-top: 0;
}

.h1Bigger {
  font-size: calc(2rem + (((5 - 2) * ((100vw - 320px) / (2048 - 320))) * 10));
}

.h1Biggest {
  font-size: calc(2.25rem + (((6.5 - 2.25) * ((100vw - 320px) / (2048 - 320))) * 10));
  font-weight: 300;
}

.h1SuperLarge {
  font-size: calc(2.5rem + (((8 - 2.5) * ((100vw - 320px) / (2048 - 320))) * 10));
  font-weight: 300;
  line-height: 1.1;
}

.enormousText {
  font-size: calc(1.875rem + (((12 - 1.875) * ((100vw - 320px) / (2048 - 320))) * 10));
  font-weight: 300;
  line-height: 1 !important;
}

h2, .h2 {
  font-size: calc(1.25rem + (((2.5 - 1.25) * ((100vw - 320px) / (2048 - 320))) * 10));
  margin-top: 0;
  margin-bottom: var(--space-4);
  font-weight: 300;
}

.h2Biggest {
  font-size: calc(1.5rem + (((3.5 - 1.5) * ((100vw - 320px) / (2048 - 320))) * 10));
  line-height: 1.2;
  font-weight: 300;
}

.h2Bigger {
  font-size: calc(1.3rem + (((2.8 - 1.3) * ((100vw - 320px) / (2048 - 320))) * 10));
}

.h2Smaller {
  font-size: calc(1.1rem + (((1.8 - 1.1) * ((100vw - 320px) / (2048 - 320))) * 10));
}

h3, .h3 {
  font-size: calc(1rem + (((1.5 - 1) * ((100vw - 320px) / (2048 - 320))) * 10));
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-weight: 400;
}

h4, .h4 {
  font-family: var(--bodyFont);
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.fontTitle {
  font-family: var(--titleFont);
  line-height: 1.3;
  font-weight: 400;
}

.fontWeightNormal {
  font-weight: 400;
}

h5, .h5 {
  font-size: var(--font-size-sm);
  margin-bottom: 0.6em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.5px;
}

h6 {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Subtitle and intro text - refined */
.subtitle, .intro-text {
  font-weight: 400;
  margin: .3em 0 1.5em;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin: var(--space-4) 0 var(--space-8);
  line-height: 1.5;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: var(--space-4);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  font-size: calc(1rem + (((1.5 - 1) * ((100vw - 320px) / (2048 - 320))) * 10));
  font-weight: 300;
  font-style: normal;
}

/* Regular links (not in navigation, buttons, etc.) */
p a, 
li:not(.site-nav li, .pattern-links li) a,
.regular-link {
  color: var(--color-blue);
  transition: var(--transition);
  padding: 0.1em 0.2em;
  margin: -0.1em -0.2em;
  border-radius: var(--border-radius-sm);
}

p a:hover, 
li:not(.site-nav li, .pattern-links li) a:hover,
.regular-link:hover {
  color: var(--color-blue);
}

/* Default link styles that apply to all links */
a {
  color: var(--color-text-primary);
  transition: var(--transition);
  text-decoration: none;
}

strong {
  font-weight: 500;
}
  
a:hover {
  text-decoration: underline;
}

a:focus {
  text-decoration: underline;
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* Article links */
article p a {
  color: var(--color-blue);
}

p a {
  text-decoration: none;
}

p a:hover {
  text-decoration: underline;
}

.introText {
  color: var(--color-gray-750);
  margin-top: 1rem;
}

/* Text utilities - refined sizes */
.largerBodyText {
  font-size: var(--font-size-lg);
}

.largeBodyText {
  font-size: calc(1.125rem + (((2 - 1.125) * ((100vw - 320px) / (2048 - 320))) * 10));
  font-weight: 300;
  font-style: normal;
}

.normalBodyText {
  font-size: calc(1rem + (((1.5 - 1) * ((100vw - 320px) / (2048 - 320))) * 10));
  font-weight: 300;
  font-style: normal;
}

.smallBodyText {
  font-size: calc(0.875rem + (((1.5 - 0.875) * ((100vw - 320px) / (2048 - 320))) * 10));
}

.smallerBodyText {
  font-size: calc(0.8125rem + (((1.3 - 0.8125) * ((100vw - 320px) / (2048 - 320))) * 10));
}

.smallestBodyText {
  font-size: var(--font-size-xs);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.tinyBodyText {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.textAlignRight {
  text-align: right;
}

@media (min-width: 1024px) {
  /* Remove center alignment */
}

/* Text margin utilities */
.textMarginTop {
  margin-top: var(--space-4);
}

.textMarginTopSmall {
  margin-top: var(--space-2);
}

.textMarginTopLarge {
  margin-top: var(--space-8);
}

.textMarginBottomLarge {
  margin-bottom: var(--space-8);
}

.textMarginBottomSmall {
  margin-bottom: var(--space-2);
}

.noMargin {
  margin: 0;
}

.noTopMargin {
  margin-top: 0;
}

.noBottomMargin {
  margin-bottom: 0;
}

/* Weight utilities */
.fontWeightBold {
  font-weight: 500;
}

.fontItalic {
  font-style: italic;
}

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

blockquote {
  font-style: italic;
  padding-left: 1rem;
}

/* Mobile typography adjustments */
@media (max-width: 768px) {
  section h2 {
    font-size: 1.5rem;
  }
}
