/* 
 * Typography Utilities - Additional classes to support the type system
 * These supplement the main style.css file
 */

/* Button styles - Using the proper typography settings */
.btn {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  border: none;
}

.btn-primary {
  background-color: var(--ink-navy);
  color: var(--porcelain);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #16385E; /* Slightly lighter navy */
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink-navy);
  border: 1px solid var(--ink-navy);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: rgba(var(--fg-rgb), 0.05);
  text-decoration: none;
}

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

/* Special treatment for all-caps labels */
.caps {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--font-weight-medium);
}

.small-caps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
}

/* Special numerals */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Common paragraph and spacing utilities */
.text-center {
  text-align: center;
}

/* Fix for Safari on iOS which doesn't handle system font weights consistently */
@supports (-webkit-touch-callout: none) {
  .font-medium {
    font-weight: var(--font-weight-medium);
  }
  
  .font-semibold {
    font-weight: var(--font-weight-semibold);
  }
}