/* ============================================
   ATHLETIK-BLOG — Design Tokens & Styles
   Dark athletic theme with lime-green accent
   ============================================ */

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* --- Spacing (4px base) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* --- Fonts --- */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ============================================
   DARK MODE (Default) — Athletic Dark
   User preference: dark as default
   ============================================ */
:root, [data-theme="dark"] {
  --color-bg:             #0f0f0f;
  --color-surface:        #161616;
  --color-surface-2:      #1c1c1c;
  --color-surface-offset: #1a1a1a;
  --color-surface-dynamic: #242424;
  --color-divider:        #2a2a2a;
  --color-border:         #333333;

  --color-text:           #e0e0e0;
  --color-text-muted:     #888888;
  --color-text-faint:     #555555;
  --color-text-inverse:   #0f0f0f;

  /* Lime green accent (from original brand) */
  --color-primary:        #a3c520;
  --color-primary-hover:  #b8d63a;
  --color-primary-active: #8aab10;
  --color-primary-highlight: #2a2e1a;

  --color-success:        #6daa45;
  --color-error:          #d16363;
  --color-warning:        #d1a043;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-theme="light"] {
  --color-bg:             #f5f5f0;
  --color-surface:        #ffffff;
  --color-surface-2:      #fafaf7;
  --color-surface-offset: #eeede8;
  --color-surface-dynamic: #e5e4df;
  --color-divider:        #d8d7d2;
  --color-border:         #cccbc5;

  --color-text:           #1a1a1a;
  --color-text-muted:     #666666;
  --color-text-faint:     #aaaaaa;
  --color-text-inverse:   #f5f5f0;

  --color-primary:        #5a7a00;
  --color-primary-hover:  #4a6600;
  --color-primary-active: #3d5500;
  --color-primary-highlight: #e8efd4;

  --color-success:        #437a22;
  --color-error:          #a13535;
  --color-warning:        #96751a;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:             #f5f5f0;
    --color-surface:        #ffffff;
    --color-surface-2:      #fafaf7;
    --color-surface-offset: #eeede8;
    --color-surface-dynamic: #e5e4df;
    --color-divider:        #d8d7d2;
    --color-border:         #cccbc5;
    --color-text:           #1a1a1a;
    --color-text-muted:     #666666;
    --color-text-faint:     #aaaaaa;
    --color-text-inverse:   #f5f5f0;
    --color-primary:        #5a7a00;
    --color-primary-hover:  #4a6600;
    --color-primary-active: #3d5500;
    --color-primary-highlight: #e8efd4;
    --color-success:        #437a22;
    --color-error:          #a13535;
    --color-warning:        #96751a;
    --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
    --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
    --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
  }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--default {
  max-width: var(--content-default);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-4);
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--color-primary);
}

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

.theme-toggle {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-dynamic);
}

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  padding: var(--space-2);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    flex-direction: column;
    padding: var(--space-6) var(--space-4);
    gap: var(--space-4);
  }

  .header__nav.open {
    display: flex;
  }

  .header__nav a {
    font-size: var(--text-base);
    padding: var(--space-2) 0;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0;
  text-align: left;
}

.hero__tagline {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 16ch;
}

.hero__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

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

/* Featured post: large card */
.blog-card--featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}

.blog-card--featured:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .blog-card--featured {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-10);
  }
}

.blog-card--featured .blog-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.blog-card--featured .blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.blog-card--featured .blog-card__excerpt {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.blog-card--featured .blog-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.blog-card--featured .blog-card__visual {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card--featured .blog-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Regular post cards */
.blog-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .blog-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-cards-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-interactive),
              border-color var(--transition-interactive),
              transform var(--transition-interactive);
}

.blog-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.blog-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.blog-card__readmore {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-header {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0 var(--space-8);
}

.article-header__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.article-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.article-header__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.article-header__meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.article-body {
  padding-bottom: clamp(var(--space-12), 8vw, var(--space-24));
}

.article-body .prose {
  max-width: 65ch;
}

.article-body .prose p {
  margin-bottom: var(--space-6);
  line-height: 1.75;
}

.article-body .prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.article-body .prose h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.article-body .prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.article-body .prose ul,
.article-body .prose ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.article-body .prose li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.article-body .prose strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Article nav */
.article-nav {
  display: flex;
  justify-content: space-between;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-divider);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.article-nav a {
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-header {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0 var(--space-8);
}

.about-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.about-header__subtitle {
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 500;
}

.about-content {
  padding-bottom: clamp(var(--space-12), 8vw, var(--space-24));
}

.about-content .prose {
  max-width: 65ch;
}

.about-content .prose p {
  margin-bottom: var(--space-6);
  line-height: 1.75;
}

.about-content .prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

/* About intro */
.about-intro {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.6;
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-6);
  margin-bottom: var(--space-8);
}

/* Career Timeline */
.career-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.career-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.career-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.career-period {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  padding-top: 0.15em;
}

.career-details strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.career-details p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .career-entry {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

/* Achievements list */
.achievements-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.achievements-list li {
  position: relative;
  padding-left: var(--space-6);
  padding-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.achievements-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Education list */
.education-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.education-list li {
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-4);
}

.education-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.education-list li strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Kontakt link */
.about-content .prose a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.about-content .prose a:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) 0;
  margin-top: var(--space-16);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer__brand img {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-3);
}

.footer__brand p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 36ch;
}

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

.footer__links-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.footer__links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links-col a {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-decoration: none;
}

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

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__bottom p,
.footer__bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__bottom a {
  text-decoration: none;
}

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

/* ============================================
   ARTICLE HERO IMAGE
   ============================================ */
.article-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: var(--color-surface-2);
}

.article-hero img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article Figures */
.article-figure {
  margin: var(--space-10) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.article-figure figcaption {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.5;
  border-top: 1px solid var(--color-divider);
}

/* Cascade / Flow Box */
.cascade-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.8;
  overflow-x: auto;
}

.cascade-box p {
  margin-bottom: 0 !important;
}

/* Data Table */
.data-table-wrap {
  overflow-x: auto;
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table thead {
  background: var(--color-surface-2);
}

.data-table th {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-4) var(--space-5);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  line-height: 1.5;
}

.data-table td strong {
  color: var(--color-text);
}

/* Sources Section */
.sources-section {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.sources-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.sources-list {
  padding-left: var(--space-6);
  counter-reset: source-counter;
}

.sources-list li {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.65;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.sources-list li:last-child {
  border-bottom: none;
}

.sources-list li em {
  color: var(--color-text-muted);
}

.sources-list li a {
  color: var(--color-primary);
  text-decoration: none;
  word-break: break-all;
}

.sources-list li a:hover {
  text-decoration: underline;
}

/* Article CTA */
.article-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-top: var(--space-8);
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.7;
}

.article-cta a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.article-cta a:hover {
  text-decoration: underline;
}

/* Article body links */
.article-body .prose a {
  color: var(--color-primary);
  text-decoration: none;
}

.article-body .prose a:hover {
  text-decoration: underline;
}

/* Blockquote cite */
.article-body .prose blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-faint);
}

.article-body .prose blockquote cite a {
  color: var(--color-primary);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(var(--space-8), 6vw, var(--space-20)) 0;
}

.section--lg {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

/* Divider */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  margin: var(--space-8) 0;
}

/* ============================================
   UTILITY
   ============================================ */
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-text-muted); }
.text-faint   { color: var(--color-text-faint); }
.font-display { font-family: var(--font-display); }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.back-link:hover {
  color: var(--color-primary);
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: var(--space-6);
  margin-left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-interactive);
}

.lang-switch:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: var(--space-4);
}
