/* ============================================================
   FaceStabilizer. Shared Styles
   ============================================================ */

/* Self-hosted fonts (latin subset) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FAF8F7;
  --bg-warm: #F5F0EB;
  --bg-dark: #1C1412;
  --bg-dark-warm: #110A0D;
  --text: #1C1412;
  --text-secondary: #5C5450;
  --text-muted: #706963;
  --border: #E5E0DA;
  --border-light: #EDEBE8;

  /* Feature accent colors */
  --coral: #FF6B4A;
  --coral-light: #FFF0EC;
  --green: #1A5C12;
  --green-dark: #0E3D08;
  --green-light: #E6F0E5;
  --purple: #88527F;
  --purple-light: #F3EDF5;
  --blue: #6B4F8A;
  --blue-light: #F0EBF5;
  --amber: #A0522D;
  --amber-light: #F8EDE6;

  --font: 'Outfit', sans-serif;
  --font-serif: 'Fraunces', serif;
  --font-mono: 'Outfit', sans-serif;
  --max-w: 1320px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ============ UTILITY ============ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.25rem;
  font-weight: 600;
}


/* ============ NAV (shared. light background) ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(250, 248, 247, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-full {
  height: 22px;
  width: auto;
  filter: brightness(0);
  transition: filter 0.3s ease;
}
.nav-logo-icon {
  height: 28px;
  width: auto;
  display: none;
  filter: brightness(0);
  transition: filter 0.3s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu {
  display: none;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s ease;
}


/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.btn-coral {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 24px rgba(255,107,74,0.3);
}
.btn-coral:hover {
  background: #e85e3f;
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(255,107,74,0.4);
}


/* ============ POST TAGS ============ */
.post-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.tag-guide { background: var(--blue-light); color: var(--blue); }
.tag-workflow { background: var(--green-light); color: var(--green); }
.tag-privacy { background: var(--amber-light); color: var(--amber); }
.tag-product { background: var(--coral-light); color: var(--coral); }
.tag-social { background: var(--purple-light); color: var(--purple); }
.tag-podcast { background: var(--purple-light); color: var(--purple); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.post-meta span { display: flex; align-items: center; gap: 0.3rem; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }


/* ============ FOOTER ============ */
footer {
  padding: 5.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}
.footer-brand {
  max-width: 280px;
}
.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-links {
  display: flex;
  gap: 4rem;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--text); }


/* ============ ARTICLE (blog posts) ============ */
.article-header {
  padding: 7rem 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.article-back:hover { color: var(--text); }
.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.article-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--coral);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--coral-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-cta {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.cta-box {
  background: var(--text);
  color: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.cta-box p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}


/* ============ RESPONSIVE (shared) ============ */
@media (max-width: 900px) {
  .footer-inner { flex-direction: column; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-full { display: none; }
  .nav-logo-icon { display: block; }
  .nav-inner .nav-left { gap: 0; }
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg-dark-warm);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
  .mobile-menu.show {
    display: flex;
  }
  .mobile-menu-logo {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
  }
  .mobile-menu-logo img {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
  }
  .mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }
  .mobile-menu ul a {
    color: rgba(250, 248, 247, 0.8);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 0.6rem 0;
    display: block;
    transition: color 0.2s;
  }
  .mobile-menu ul a:hover {
    color: #FAF8F7;
  }
  .mobile-menu .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    display: block;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
  .nav-toggle { z-index: 1001; }
  .nav-toggle.active span { background: #FAF8F7; }
  .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(250, 248, 247, 0.8);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s;
  }
  .mobile-menu-close:hover {
    color: #FAF8F7;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .nav-inner { padding: 0 1rem; }
  .article-header { padding: 6rem 1rem 1.5rem; }
  .footer-links { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
