/* ===================================================================
   Turnover Post — turnoverpost.online
   Signature: node-path motif (job-to-job transitions)
   Palette: teal + amber on cool gray
   Fonts: Sora (display) + Inter (body)
   =================================================================== */

:root {
  --surface: #F7F8FA;
  --ink: #111827;
  --brand: #0E7C6B;
  --brand-light: #E6F5F2;
  --pin: #B45309;
  --pin-light: #FEF3C7;
  --rule: #D1D5DB;
  --mute: #6B7280;
  --panel: #FFFFFF;
  --night: #111518;
  --night-mid: #1E2328;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --max-w: 1080px;
  --max-prose: 68ch;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pin); }

/* === Skip link === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .5rem 1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* === Focus === */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* === Container === */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.625rem; font-weight: 600; margin-bottom: var(--space-md); }
h3 { font-size: 1.1875rem; font-weight: 600; margin-bottom: var(--space-sm); }

p + p { margin-top: var(--space-sm); }

.prose {
  max-width: var(--max-prose);
}
.prose p + p { margin-top: 1.1rem; }
.prose h2 { margin-top: var(--space-xl); }
.prose h3 { margin-top: var(--space-lg); }
.prose ul, .prose ol {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.prose li + li { margin-top: 0.4rem; }
.prose strong { font-weight: 600; }

.muted { color: var(--mute); }
.small { font-size: 0.875rem; line-height: 1.55; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--brand); }
.nav-links { display: flex; gap: var(--space-md); align-items: center; }
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mute);
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

/* === Hero === */
.hero {
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 20ch;
}
.hero-sub {
  margin-top: var(--space-sm);
  font-size: 1.125rem;
  color: var(--mute);
  max-width: 50ch;
  line-height: 1.65;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--brand);
}
.hero-link:hover { color: var(--pin); }
.hero-motif { width: 100%; height: auto; opacity: 0.85; }

/* === Section spacing === */
.section {
  padding: var(--space-2xl) 0;
}
.section + .section {
  border-top: 1px solid var(--rule);
}
.section-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

/* === Article cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.card {
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-left-color: var(--pin);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: var(--space-xs);
}
.card h3 { margin-bottom: var(--space-xs); }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card p {
  color: var(--mute);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}
.card-read {
  margin-top: var(--space-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--brand);
}

/* === Access block === */
.access-block {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.access-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.access-block h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}
.access-block p {
  color: var(--mute);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 52ch;
}
.btn-access {
  display: inline-block;
  flex-shrink: 0;
  padding: 0.7rem 1.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: background .15s;
  white-space: nowrap;
}
.btn-access:hover {
  background: #0a6355;
  color: #fff;
}

@media (max-width: 640px) {
  .access-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .access-block { padding: var(--space-md); }
}

/* === Standards grid === */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.standard-item {
  padding: var(--space-md);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.standard-item h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}
.standard-item p {
  font-size: 0.9375rem;
  color: var(--mute);
  line-height: 1.6;
}

/* === Not-list === */
.not-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs) var(--space-lg);
}
.not-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
  color: var(--mute);
  line-height: 1.6;
}
.not-list li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  color: var(--pin);
  font-weight: 700;
  font-size: 0.8125rem;
}

/* === FAQ === */
.faq-list { max-width: var(--max-prose); }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  list-style: none;
  color: var(--ink);
  transition: color .15s;
}
.faq-item summary:hover { color: var(--brand); }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--mute);
  transition: transform .2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 0 var(--space-sm);
  color: var(--mute);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: var(--max-prose);
}

/* === Support block === */
.support-block {
  text-align: center;
  padding: var(--space-xl) 0;
}
.support-block h2 { margin-bottom: var(--space-xs); }
.support-email {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand);
  padding: var(--space-xs) var(--space-md);
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
  transition: background .15s, color .15s;
}
.support-email:hover {
  background: var(--brand);
  color: #fff;
}

/* === Footer === */
.site-footer {
  background: var(--night);
  color: #9CA3AF;
  padding: var(--space-xl) 0 var(--space-lg);
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-xs);
}
.footer-desc { max-width: 36ch; }
.footer-col h4 {
  color: #E5E7EB;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}
.footer-col a {
  display: block;
  color: #9CA3AF;
  margin-bottom: 0.4rem;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--night-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: #fff; }

/* === Page hero (inner pages) === */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { margin-bottom: var(--space-xs); }
.page-hero .lead {
  color: var(--mute);
  font-size: 1.0625rem;
  max-width: var(--max-prose);
}

/* === Article page === */
.article-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  color: var(--mute);
}
.article-meta .tag {
  background: var(--brand-light);
  color: var(--brand);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
}
.article-body {
  padding: var(--space-xl) 0 var(--space-2xl);
}
.article-body .prose { margin: 0 auto; }

/* === Legal pages === */
.legal-body {
  padding: var(--space-xl) 0 var(--space-2xl);
}
.legal-body .prose h2 {
  font-size: 1.375rem;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
}
.legal-body .prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* === Contact page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-2xl);
}
.contact-grid h2 { margin-bottom: var(--space-sm); }
.contact-block + .contact-block { margin-top: var(--space-lg); }
.contact-block h3 {
  font-size: 1rem;
  color: var(--ink);
}
.contact-block p, .contact-block ul {
  color: var(--mute);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.contact-block ul {
  list-style: none;
  margin-top: var(--space-xs);
}
.contact-block li {
  padding-left: 1.2rem;
  position: relative;
}
.contact-block li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--rule);
}

/* === 404 === */
.page-404 {
  text-align: center;
  padding: var(--space-2xl) 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-404 .code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--rule);
  line-height: 1;
}
.page-404 h1 {
  font-size: 1.5rem;
  margin-top: var(--space-sm);
}
.page-404 p {
  color: var(--mute);
  margin-top: var(--space-xs);
}
.page-404 a {
  display: inline-block;
  margin-top: var(--space-md);
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-motif { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
  .not-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-xs); text-align: center; }
}

@media (max-width: 640px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  .site-header .wrap { height: 3.25rem; }
  .nav-links.desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-sm) var(--space-md);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .nav-mobile.open { display: flex; flex-direction: column; gap: var(--space-xs); }
  .nav-mobile a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    padding: var(--space-xs) 0;
  }
}

@media (min-width: 641px) {
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
