/* tokens.css — Parentoo blog design tokens (Material 3 inspired) */

:root {
  --primary: #00506A;
  --primary-container: #006A8A;
  --primary-light: #E0F2F7;
  --on-primary: #ffffff;

  --bg: #F7FAFA;
  --surface: #FFFFFF;
  --surface-2: #EBEEEE;
  --surface-hover: #F1F4F4;

  --text: #181C1D;
  --text-2: #3F484D;
  --text-3: #6F787E;
  --divider: #DCE3E5;
  --divider-soft: #E9EDEE;

  --success: #16A34A;
  --error: #BA1A1A;
  --warning: #EAB308;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --shadow-1: 0 1px 2px rgba(20, 35, 40, 0.05), 0 1px 1px rgba(20, 35, 40, 0.04);
  --shadow-2: 0 2px 6px rgba(20, 35, 40, 0.06), 0 4px 12px rgba(20, 35, 40, 0.05);
  --shadow-3: 0 4px 12px rgba(20, 35, 40, 0.08), 0 12px 28px rgba(20, 35, 40, 0.08);

  --container: 1240px;

  --font-sans: 'Mulish', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Mulish', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--surface-2); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* utility */
.muted { color: var(--text-3); }
.body-2 { color: var(--text-2); }
.divider { height: 1px; background: var(--divider-soft); width: 100%; }

/* card hover */
.card-hover {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--divider);
}

.cta-primary {
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.cta-primary:hover {
  background: var(--primary-container);
  box-shadow: var(--shadow-2);
}
.cta-primary:active {
  transform: translateY(1px);
}

/* article body */
.article-body h2 {
  scroll-margin-top: 100px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 44px 0 18px;
  line-height: 1.2;
}
.article-body h3 {
  scroll-margin-top: 100px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
  line-height: 1.25;
}
.article-body p {
  font-size: 18px;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 22px;
}
.article-body p a {
  color: var(--primary);
  border-bottom: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
}
.article-body p a:hover {
  border-bottom-color: var(--primary);
  text-decoration: none;
}
.article-body ul, .article-body ol {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  line-height: 1.75;
  padding-left: 24px;
  margin: 0 0 22px;
}
.article-body li { margin-bottom: 8px; }
.article-body img {
  border-radius: var(--radius-lg);
  margin: 28px 0;
  box-shadow: var(--shadow-2);
}
.article-body figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-3);
  text-align: center;
  font-style: italic;
  font-family: var(--font-sans);
}
.article-body figure {
  margin: 32px 0;
}
.article-body .lead {
  font-size: 21px;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 28px;
  font-weight: 400;
}

/* callouts */
.callout {
  margin: 28px 0;
  padding: 18px 22px;
  border-left-width: 4px;
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  font-family: var(--font-sans);
}
.callout-tip {
  background: oklch(95% 0.05 142);
  border-color: oklch(70% 0.12 142);
}
.callout-info {
  background: var(--primary-light);
  border-color: oklch(70% 0.06 220);
}
.callout-warning {
  background: oklch(96% 0.07 85);
  border-color: oklch(72% 0.13 85);
}
.callout-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.callout-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}

/* category badges */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* responsive */
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .toc-aside, .article-right { display: none !important; }
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr !important; }
  .sidebar { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .nav-desktop { display: none !important; }
  .header-cta { padding: 8px 16px !important; font-size: 13px !important; }
  .header-logo { height: 26px !important; }
  .hero-title { font-size: 32px !important; }
  .hero-subtitle { font-size: 16px !important; }
  .hero-section .container { padding-top: 40px !important; padding-bottom: 48px !important; }
  .featured-card { grid-template-columns: 1fr !important; }
  .featured-card-info { padding: 20px !important; }
  .featured-card-cover { padding: 12px !important; }
  .featured-card-cover > div { aspect-ratio: 16/9 !important; }
  .featured-card-info h2 { font-size: 22px !important; }
  .featured-card-meta { flex-wrap: wrap !important; gap: 8px !important; }
  .featured-card-meta .meta-sep { display: none !important; }
  .article-header { padding-top: 16px !important; padding-bottom: 24px !important; }
  .article-header h1 { font-size: 28px !important; }
  .article-header p { font-size: 16px !important; }
  .article-cover { aspect-ratio: 16/9 !important; }
  .article-body h2 { font-size: 24px; margin: 32px 0 14px; }
  .article-body h3 { font-size: 20px; }
  .article-body p, .article-body ul, .article-body ol { font-size: 16px; }
  .article-body .lead { font-size: 18px; }
  .read-also-grid { grid-template-columns: 1fr !important; }
  .author-card { flex-direction: column !important; gap: 16px !important; }
  .category-title { font-size: 28px !important; }
}
@media (max-width: 600px) {
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .cards-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .hero-title { font-size: 26px !important; }
  .hero-subtitle { font-size: 15px !important; }
  .hero-section .container { padding-top: 28px !important; padding-bottom: 36px !important; }
  .cat-tabs { padding: 10px 16px !important; }
  .article-header h1 { font-size: 24px !important; }
  .featured-card { margin-top: 28px !important; border-radius: var(--radius-lg) !important; }
  .featured-card-info h2 { font-size: 20px !important; }
  .featured-card-info { padding: 16px !important; }
  .featured-card-info p { font-size: 14px !important; }
  .header-inner { height: 54px !important; }
  .header-cta { padding: 7px 14px !important; font-size: 12px !important; }
  .header-logo { height: 24px !important; }
  .cat-bar { top: 54px !important; }
  .category-title { font-size: 24px !important; }
}

/* focus rings */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--primary-light); color: var(--text); }

/* scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--divider);
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
