/*
Theme Name: Linkpedia Theme
Template: blankslate
Version: 1.0
Author: SK
*/

/* ================================
   DESIGN TOKENS
================================ */
:root {
  /* Core Colors */
  --bg:              #f8f8f6;
  --bg-alt:          #f0f0ed;
  --text:            #0A1002;
  --text-muted:      #4a5240;
  --text-light:      #7a8570;

  /* Brand Colors */
  --accent:          #94F721;
  --accent-hover:    #aaff45;
  --accent-dark:     #153005;
  --accent-deep:     #0A1002;

  /* Borders & Dividers */
  --border:          rgba(10, 16, 2, 0.08);

  /* Spacing */
  --section-pad:     clamp(100px, 12vw, 180px);
  --container:       1100px;
  --text-width:      640px;

  /* Typography */
  --font:            'Inter', sans-serif;

  /* Button */
  --btn-radius:      4px;
  --btn-pad:         13px 32px;
}

/* Force toggle spans to show */
.nav-toggle {
  display:         none;
  flex-direction:  column;
  justify-content: center;
  gap:             5px;
  background:      none;
  border:          none;
  cursor:          pointer;
  padding:         8px;
  z-index:         1001;
  width:           40px;
  height:          40px;
}

.nav-toggle span {
  display:          block !important;
  width:            22px !important;
  height:           2px !important;
  background:       var(--text) !important;
  transition:       all 0.3s ease;
  border-radius:    2px;
  transform-origin: center;
  margin:           0 auto;
}

/* ================================
   RESET
================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

section {
  padding: var(--section-pad) 24px;
}

/* ================================
   SECTION BLENDING
   No hard borders — sections fade
   into each other via bg gradients
================================ */
.section-blend-down {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--bg-alt) 100%
  );
}

.section-blend-up {
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    var(--bg-alt) 100%
  );
}

.section-flat {
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
}

/* ================================
   TYPOGRAPHY
================================ */
h1 {
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

p {
  color: var(--text-muted);
  line-height: 1.75;
  max-width: var(--text-width);
}

/* Small uppercase label above headings */
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
  display: block;
}

/* Accent highlight on text */
.text-accent { color: var(--accent-dark); }
.text-muted  { color: var(--text-muted);  }
.text-light  { color: var(--text-light);  }

/* ================================
   BUTTONS
================================ */

/* Primary — solid green fill */
.btn-primary {
  background:    var(--accent);
  color:         var(--accent-deep);
  padding:       var(--btn-pad);
  border-radius: var(--btn-radius);
  border:        none;
  cursor:        pointer;
  font-size:     14px;
  font-weight:   600;
  font-family:   var(--font);
  text-decoration: none;
  display:       inline-block;
  transition:    background 0.25s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color:      var(--accent-deep);
  transform:  translateY(-1px);
}

/* Secondary — dark fill */
.btn-dark {
  background:    var(--accent-deep);
  color:         var(--accent);
  padding:       var(--btn-pad);
  border-radius: var(--btn-radius);
  border:        none;
  cursor:        pointer;
  font-size:     14px;
  font-weight:   600;
  font-family:   var(--font);
  text-decoration: none;
  display:       inline-block;
  transition:    background 0.25s ease, transform 0.2s ease;
}
.btn-dark:hover {
  background: var(--accent-dark);
  color:      var(--accent);
  transform:  translateY(-1px);
}

/* Ghost — outlined */
.btn-ghost {
  background:    transparent;
  color:         var(--text);
  padding:       var(--btn-pad);
  border-radius: var(--btn-radius);
  border:        1.5px solid var(--border);
  cursor:        pointer;
  font-size:     14px;
  font-weight:   500;
  font-family:   var(--font);
  text-decoration: none;
  display:       inline-block;
  transition:    border-color 0.25s ease, transform 0.2s ease;
}
.btn-ghost:hover {
  border-color: var(--accent-dark);
  color:        var(--text);
  transform:    translateY(-1px);
}


/* ================================
   HEADER
================================ */
.site-header {
  position:   fixed;
  top:        0;
  left:       0;
  right:      0;
  z-index:    1000;
  transition: all 0.4s ease;
}
.header-inner {
  max-width:       1100px;
  margin:          0 auto;
  padding:         24px 24px;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             40px;
  transition:      padding 0.4s ease;
}

/* Scrolled state */
.site-header.scrolled {
  background:              rgba(248, 248, 246, 0.82);
  backdrop-filter:         blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:              0 1px 0 rgba(10,16,2,0.06);
}

.site-header.scrolled .header-inner {
  padding: 16px 24px;
}

/* Logo */
.site-logo {
  font-size:      20px;
  font-weight:    800;
  color:          var(--text);
  letter-spacing: -0.03em;
  flex-shrink:    0;
  line-height:    1;
}

/* Nav */
.main-nav {
  flex:            1;
  display:         flex;
  justify-content: center;
}

.nav-list {
  list-style:  none;
  display:     flex;
  align-items: center;
  gap:         32px;
  margin:      0;
  padding:     0;
}

.nav-list li a {
  font-size:   14px;
  font-weight: 450;
  color:       var(--text-muted);
  transition:  color 0.2s ease;
  white-space: nowrap;
}

.nav-list li a:hover {
  color: var(--text);
}

/* Desktop CTA */
.header-cta {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-shrink: 0;
}

/* Buttons - header specific sizing */
.header-cta .btn-ghost,
.header-cta .btn-primary {
  padding:   9px 20px;
  font-size: 13px;
}

/* Mobile CTA inside nav */
.mobile-cta {
  display: none;
}

/* Toggle button */
.nav-toggle {
  display:        none;
  flex-direction: column;
  justify-content: center;
  gap:            5px;
  background:     none;
  border:         none;
  cursor:         pointer;
  padding:        8px;
  z-index:        1001;
}

.nav-toggle span {
  display:       block;
  width:         22px;
  height:        1.5px;
  background:    var(--text);
  transition:    all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
}

/* Toggle open state — X icon */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ================================
   MOBILE NAV
================================ */
@media (max-width: 768px) {

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position:        fixed;
    inset:           0;
    background:      rgba(248, 248, 246, 0.97);
    backdrop-filter: blur(20px);
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             40px;
    opacity:         0;
    pointer-events:  none;
    transition:      opacity 0.3s ease;
    z-index:         999;
  }

  .main-nav.open {
    opacity:        1;
    pointer-events: all;
  }

  .nav-list {
    flex-direction: column;
    gap:            28px;
    text-align:     center;
  }

  .nav-list li a {
    font-size:   22px;
    font-weight: 500;
    color:       var(--text);
  }

  .mobile-cta {
    display:     flex;
    align-items: center;
    gap:         12px;
  }
}

/* ================================
   FOOTER
================================ */
.site-footer {
  padding:    80px 24px 48px;
  background: var(--accent-deep);
  text-align: center;
}

.footer-brand {
  font-size:      24px;
  font-weight:    700;
  color:          var(--accent);
  letter-spacing: -0.02em;
  margin-bottom:  12px;
  max-width:      100%;
}

.footer-copy {
  font-size:  13px;
  color:      rgba(148, 247, 33, 0.4);
  max-width:  100%;
}

/* ================================
   UTILITY CLASSES
================================ */
.text-center { text-align: center; }
.text-left   { text-align: left;   }

.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.reveal { opacity: 0; }