/**
 * SKILLORBIT Academy — Base / Reset / Typography / Utilities
 */

/* ——— Box model & reset ——— */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--announce-h) + 8px);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* body.has-sticky-cta {
  padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px));
} */

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

img {
  object-fit: cover;
}

svg {
  fill: currentColor;
}

iframe {
  border: 0;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: var(--transition-colors);
}

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

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

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

hr {
  border: none;
  border-top: var(--border-w) solid var(--border-color);
  margin: var(--space-6) 0;
}

strong,
b {
  font-weight: var(--fw-bold);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--fs-sm);
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  background: var(--primary-lighter);
  color: var(--deep);
}

pre {
  overflow-x: auto;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--near-black);
  color: var(--white);
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

::selection {
  background: rgba(54, 168, 74, 0.28);
  color: var(--near-black);
}

[data-theme="dark"] ::selection {
  background: rgba(54, 168, 74, 0.4);
  color: #F0F7F2;
}

/* ——— Skip link ——— */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--deep);
  color: var(--white);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
  color: var(--white);
}

/* ——— Focus visible ——— */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible,
.nav__link:focus-visible,
.tab:focus-visible,
.filter-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  box-shadow: var(--shadow-focus);
}

/* ——— Typography ——— */
h1, h2, h3, h4, h5, h6,
.heading {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  text-wrap: balance;
}

h1, .h1 { font-size: var(--fs-hero); font-weight: var(--fw-extrabold); }
h2, .h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
h4, .h4 { font-size: var(--fs-xl); }
h5, .h5 { font-size: var(--fs-lg); }
h6, .h6 { font-size: var(--fs-md); }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  max-width: 42rem;
}

.text-display {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tight);
}

.text-body { font-family: var(--font-body); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-deep { color: var(--deep); }
.text-inverse { color: var(--text-inverse); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.uppercase { text-transform: uppercase; letter-spacing: var(--tracking-wider); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--deep);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: var(--glow-green-soft);
}

.section-title {
  margin-bottom: var(--space-3);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: var(--fs-md);
  max-width: 36rem;
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 44rem;
  margin-inline: auto;
}

.section-header--left {
  text-align: left;
  margin-inline: 0;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ——— Layout ——— */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }
.container--xl { max-width: var(--container-xl); }
.container--narrow { max-width: 720px; }
.container--full { max-width: none; }

.section {
  position: relative;
  padding-block: var(--section-py);
}

.section--sm { padding-block: var(--section-py-sm); }
.section--lg { padding-block: clamp(4rem, 10vw, 8rem); }
.section--flush { padding-block: 0; }
.section--light { background: var(--bg-light); }
.section--surface { background: var(--surface); }
.section--muted { background: var(--surface-muted); }
.section--dark {
  background: var(--gradient-brand);
  color: var(--white);
}
.section--dark .section-title,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}
.section--dark .section-subtitle,
.section--dark .text-muted,
.section--dark .lead {
  color: rgba(255, 255, 255, 0.72);
}
.section--brand {
  background: var(--gradient-brand);
  color: var(--white);
}
.section--mesh {
  background-color: var(--bg);
  background-image: var(--gradient-mesh);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.flex {
  display: flex;
  gap: var(--space-4);
}

.flex--wrap { flex-wrap: wrap; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--start { align-items: flex-start; }
.flex--end { align-items: flex-end; }
.flex--col { flex-direction: column; }
.flex--gap-sm { gap: var(--space-2); }
.flex--gap-lg { gap: var(--space-6); }

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack--sm { gap: var(--space-2); }
.stack--lg { gap: var(--space-6); }
.stack--xl { gap: var(--space-8); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.center {
  display: grid;
  place-items: center;
}

/* ——— Spacing utilities ——— */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mx-auto { margin-inline: auto; }

.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-inline: var(--space-4); }
.py-4 { padding-block: var(--space-4); }
.py-6 { padding-block: var(--space-6); }
.py-8 { padding-block: var(--space-8); }

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* ——— Display / visibility ——— */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none !important; }
.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;
}

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-h-svh { min-height: 100svh; }

/* ——— Position ——— */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.z-1 { z-index: 1; }
.z-10 { z-index: 10; }

/* ——— Visual helpers ——— */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-glow { box-shadow: var(--glow-primary); }

.border { border: var(--border-w) solid var(--border-color); }
.border-t { border-top: var(--border-w) solid var(--border-color); }
.border-b { border-bottom: var(--border-w) solid var(--border-color); }

.bg-white { background: var(--surface); }
.bg-light { background: var(--bg-light); }
.bg-primary { background: var(--primary); }
.bg-deep { background: var(--deep); }
.bg-brand { background: var(--gradient-brand); }
.bg-dark { background: var(--gradient-brand); }
.bg-transparent { background: transparent; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— Glass utility ——— */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.glass--strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass--dark {
  background: var(--glass-dark-bg);
  border-color: var(--glass-dark-border);
  color: var(--white);
}

/* ——— Divider ——— */
.divider {
  height: 1px;
  background: var(--border-color);
  border: none;
  margin: var(--space-6) 0;
}

.divider--vertical {
  width: 1px;
  height: auto;
  align-self: stretch;
  margin: 0 var(--space-4);
}

/* ——— Aspect ratios ——— */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-4-3 { aspect-ratio: 4 / 3; }

/* ——— Icon sizes ——— */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
}

.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.5rem; height: 1.5rem; }
.icon--lg { width: 2rem; height: 2rem; }
.icon--xl { width: 3rem; height: 3rem; }

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--primary-lighter);
  color: var(--deep);
  flex-shrink: 0;
}

.icon-box--lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
}

.icon-box--brand {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--glow-primary);
}

/* ——— List styles ——— */
.list-check {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.list-check li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary-lighter) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23168238'%3E%3Cpath d='M6.5 11.5L3 8l1.1-1.1L6.5 9.3l5.4-5.4L13 5.1z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ——— Prose (blog / about content) ——— */
.prose {
  max-width: 68ch;
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.prose p { margin-bottom: var(--space-4); }

.prose ul,
.prose ol {
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li + li { margin-top: var(--space-2); }

.prose a {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose img {
  border-radius: var(--radius-xl);
  margin-block: var(--space-6);
}

.prose blockquote {
  border-left: 3px solid var(--primary);
  padding-left: var(--space-5);
  font-style: italic;
  color: var(--text-muted);
}

/* ——— Page shell ——— */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
}

/* ——— Custom cursor (disabled) ——— */
.custom-cursor,
.custom-cursor__ring {
  display: none !important;
}

body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: auto !important;
}
