/* ==========================================================================
   SJCC LEARN — BASE STYLES & RESET (MASTER SPEC 2)
   Roboto Variable Typography, Two-Tone Headlines, Editorial Architecture
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text);
  background-color: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Headings & Display Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
}

h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  letter-spacing: -0.035em;
  line-height: var(--leading-none);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

h5 {
  font-size: var(--text-md);
  font-weight: var(--font-medium);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}

/* --------------------------------------------------------------------------
   Two-Tone Headlines (Signature Style)
   First phrase in --primary weight 600, second phrase in --primary-light weight 300
   -------------------------------------------------------------------------- */
.t-strong {
  color: var(--primary) !important;
  font-weight: var(--font-semibold) !important;
  display: inline;
}

.t-soft {
  color: var(--primary-light) !important;
  font-weight: var(--font-light) !important;
  display: inline;
}

.headline-two-tone {
  line-height: var(--leading-none);
  letter-spacing: -0.03em;
}

/* Large Editorial Statements */
.editorial-statement {
  font-weight: var(--font-light);
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Big Stat Numbers (tabular-nums, 3-4rem) */
.stat-huge {
  font-size: clamp(3rem, 5.5vw, 4.25rem);
  font-weight: var(--font-semibold);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--primary);
}

/* Editorial Micro-labels: 0.75rem, weight 500, underlined 1px with 3px offset */
.micro-label {
  font-size: 0.75rem;
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  display: inline-block;
  border-bottom: 1px solid var(--primary-light);
  padding-bottom: 3px;
  text-decoration: none !important;
  margin-bottom: var(--space-2);
}

/* Pull Quotes (Roboto italic 300) */
blockquote, .pull-quote {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: var(--font-light);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-2);
  border-left: 3px solid var(--primary);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
}

p {
  margin-bottom: var(--space-3);
  color: var(--text-2);
  line-height: var(--leading-normal);
}

p:last-child {
  margin-bottom: 0;
}

small, .text-small {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* Focus styles for WCAG 2.2 AA */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Material Symbols Rounded Icon Integration */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-rounded.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --------------------------------------------------------------------------
   App Shell & Containers
   -------------------------------------------------------------------------- */
#app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-body {
  display: flex;
  flex: 1;
  position: relative;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  transition: margin-left var(--transition-normal);
  overflow-x: hidden;
}

.page-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-8) var(--space-6);
  flex: 1;
  min-width: 0;
}

/* Section Background Variations */
.section-tint {
  background-color: var(--section-tint) !important;
}

.section-paper {
  background-color: var(--paper) !important;
  color: var(--ink) !important;
}

.section-primary {
  background-color: var(--primary) !important;
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   Futuristic Motion & Micro-Interactions
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-rotate {
  animation: orbitRotate 60s linear infinite;
  transform-origin: center;
}

.card-interactive {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* --------------------------------------------------------------------------
   Responsive Utilities
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  .app-main {
    padding-bottom: 72px; /* DevToolbar clearance */
  }
  .page-container {
    padding: var(--space-6) var(--space-4);
  }
  .hidden-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .only-mobile { display: none !important; }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.w-full { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
