/*
Theme Name: Pea6 KiNiK Custom Theme
Theme URI: http://peasix.com/
Description: A native, self-contained WordPress theme featuring the Pea6 Author Page template and the KiNiK Crowdfunding campaign template. Built without Elementor or ACF. Animations powered by Motion Dev.
Version: 1.0.2
Author: Stephen Myles
Author URI: http://peasix.com/
Text Domain: pea6-kinik
Tags: custom-templates, portfolio, crowdfunding, dark, light, clean
*/

/* ==========================================================================
   Global Resets & Design Tokens
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #151515;
  margin-bottom: 1.2rem;
  text-rendering: optimizeLegibility;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  margin-bottom: 1.5rem;
  color: #4b5563;
  font-size: 16px;
}

a {
  color: #FF6500;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
  color: #e05900;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 20px auto;
}

/* ==========================================================================
   Default Header / Navigation Bar Styling
   ========================================================================== */
.default-header {
  background-color: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.default-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.site-branding .site-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-branding .site-title a {
  color: #151515;
}

.site-branding .site-title a:hover {
  color: #FF6500;
}

/* Navigation lists */
.main-navigation ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-navigation li a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4b5563;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-navigation li a:hover {
  color: #FF6500;
  border-bottom-color: #FF6500;
}

.main-navigation li.current-menu-item a {
  color: #FF6500;
  border-bottom-color: #FF6500;
}

/* ==========================================================================
   Default Page & Post Loop Layout
   ========================================================================== */
.default-main-layout {
  padding: 60px 0;
  background-color: #fbfbfb;
  min-height: 70vh;
}

.default-layout-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .default-layout-container {
    margin: 20px 15px;
    padding: 20px;
  }
}

.entry-header {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.entry-title {
  text-align: center;
  color: #151515;
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.entry-content {
  color: #374151;
  font-size: 17px;
  line-height: 1.8;
}

/* Center all standalone alignments */
.entry-content p {
  margin-bottom: 1.6rem;
}

.entry-content img {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* ==========================================================================
   Default Footer Styling
   ========================================================================== */
.default-footer {
  background-color: #151515;
  color: #9ca3af;
  padding: 40px 0;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 14px;
}

.default-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.default-footer a {
  color: #e5e7eb;
}

.default-footer a:hover {
  color: #FF6500;
}

.default-footer .sep {
  color: #4b5563;
  margin: 0 8px;
}

/* ==========================================================================
   Buttons and Forms
   ========================================================================== */
input[type="submit"], button.submit, .wp-block-button__link {
  background-color: #FF6500;
  color: #ffffff;
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(255, 101, 0, 0.2);
}

input[type="submit"]:hover, button.submit:hover, .wp-block-button__link:hover {
  background-color: #e05900;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(255, 101, 0, 0.3);
}
