/*
Theme Name: Ivy
Theme URI: https://example.com/ivy-theme
Author: Antigravity & Rdoin
Author URI: https://example.com
Description: Ivy is an elegant, editorial WordPress theme crafted specifically for craft blogs, makers, amigurumi designers, lifestyle creators, and tutorial hubs. Features magazine-style featured grids, category showcases, step-by-step tutorial styling, responsive Pinterest share integrations, and full WordPress customizer options.
Version: 1.0.4
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ivy
Tags: blog, craft, crochet, magazine, grid-layout, two-columns, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready

Ivy WordPress Theme - Handcrafted with perfection.
*/

/* Reset & CSS Variables */
:root {
  --ivy-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --ivy-font-serif: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
  
  /* Color Palette matching the design */
  --ivy-primary: #C49A2B;
  --ivy-primary-hover: #b0871e;
  --ivy-primary-light: #F7F1E1;
  --ivy-primary-border: #E8DCC2;
  
  --ivy-dark: #191816;
  --ivy-dark-card: #201F1C;
  --ivy-dark-muted: #8E8A82;
  
  --ivy-bg: #FFFFFF;
  --ivy-bg-warm: #FAF6EF;
  --ivy-bg-cream: #F5EFE4;
  --ivy-bg-light: #FDFBF8;
  
  --ivy-text: #22201D;
  --ivy-text-muted: #736E65;
  --ivy-text-light: #9B958A;
  
  --ivy-border: #EAE3D5;
  --ivy-border-light: #F0EAE0;
  
  --ivy-pinterest: #CB2027;
  --ivy-facebook: #1877F2;
  --ivy-whatsapp: #25D366;
  --ivy-twitter: #000000;
  
  --ivy-radius-sm: 4px;
  --ivy-radius: 8px;
  --ivy-radius-lg: 14px;
  --ivy-radius-pill: 9999px;
  
  --ivy-shadow-sm: 0 2px 8px rgba(30, 25, 15, 0.04);
  --ivy-shadow: 0 8px 24px rgba(30, 25, 15, 0.07);
  --ivy-shadow-lg: 0 16px 40px rgba(30, 25, 15, 0.1);
  
  --ivy-container-width: 1240px;
  --ivy-header-height: 80px;
  --ivy-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--ivy-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ivy-text);
  background-color: var(--ivy-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--ivy-transition);
}

a:hover {
  color: var(--ivy-primary);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--ivy-font-serif);
}

.font-italic {
  font-style: italic;
}

.text-gold {
  color: var(--ivy-primary);
}

/* Golden script accent helper */
.ivy-highlight-text {
  font-family: var(--ivy-font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ivy-primary);
  display: inline-block;
  position: relative;
}

.ivy-highlight-text::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(196, 154, 43, 0.18);
  border-radius: 4px;
  z-index: -1;
}

/* Container */
.ivy-container {
  width: 100%;
  max-width: var(--ivy-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ivy-container-narrow {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Section Header Component */
.ivy-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ivy-border-light);
}

.ivy-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ivy-section-icon {
  width: 14px;
  height: 14px;
  background-color: var(--ivy-primary);
  display: inline-block;
  border-radius: 2px;
}

.ivy-section-title {
  font-family: var(--ivy-font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ivy-text);
  letter-spacing: -0.02em;
}

.ivy-section-title span.italic {
  font-style: italic;
  font-weight: 400;
  color: var(--ivy-primary);
}

.ivy-view-all {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ivy-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--ivy-transition);
}

.ivy-view-all:hover {
  color: var(--ivy-primary);
  transform: translateX(3px);
}
