/*
Theme Name: Skillet & Compass
Theme URI: https://aprev.xyz
Author: Skillet & Compass
Author URI: https://aprev.xyz
Description: A professional, editorial WordPress theme mirroring the Skillet & Compass React application exactly.
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: skillet-and-compass
*/

/* Reset & Variables */
:root {
  --radius: 0.5rem;
  --radius-lg: 0.5rem;
  
  /* OKLCH Colors from React App */
  --background: oklch(0.985 0.008 90);
  --foreground: oklch(0.22 0.02 60);
  --surface: oklch(0.965 0.014 88);
  --ink: oklch(0.18 0.02 55);
  --card: oklch(1 0 0);
  --primary: oklch(0.52 0.16 38);
  --primary-foreground: oklch(0.99 0.01 90);
  --secondary: oklch(0.94 0.02 88);
  --muted: oklch(0.945 0.014 88);
  --muted-foreground: oklch(0.48 0.02 62);
  --accent: oklch(0.72 0.13 75);
  --border: oklch(0.9 0.014 82);
  --shadow-card: 0 1px 2px oklch(0.2 0.02 60 / 0.05), 0 8px 24px oklch(0.2 0.02 60 / 0.06);

  /* Fallback for old browsers */
  --background-fallback: #fafaf9;
  --foreground-fallback: #383733;
  --primary-fallback: #94451c;
  --ink-fallback: #2d2c29;
}

@supports not (color: oklch(0% 0 0)) {
  :root {
    --background: var(--background-fallback);
    --foreground: var(--foreground-fallback);
    --primary: var(--primary-fallback);
    --ink: var(--ink-fallback);
    --card: #ffffff;
    --border: #e8e7e3;
  }
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

.container-page {
  width: 100%;
  margin: 0 auto;
  max-width: 76rem;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.main-nav a:hover, .main-nav .current-menu-item a {
  color: var(--primary);
}

@media (max-width: 768px) {
  .main-nav { display: none; }
}

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: var(--ink);
  color: #fff;
  padding: 6rem 0;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -10;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: linear-gradient(to right, oklch(18% .02 55 / 0.9), oklch(18% .02 55 / 0.7), oklch(18% .02 55 / 0.3));
}

.hero-content {
  max-width: 48rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
  color: oklch(0.985 0.008 90);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.125rem;
  color: oklch(0.985 0.008 90 / 0.85);
  margin-bottom: 2rem;
  max-width: 36rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

/* Card Style */
.card-surface {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-surface:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Article Cards */
.article-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  display: block;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card-surface:hover .card-image img {
  transform: scale(1.03);
}

.card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-family: "Fraunces", serif;
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Sections */
.section-padding {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-family: "Fraunces", serif;
}

@media (min-width: 768px) {
  .section-title { font-size: 1.875rem; }
}

/* Featured Layout - Matching React Index */
.featured-section-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .featured-section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .featured-main { grid-column: span 1; }
  .featured-side { 
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Article Body Typography */
.article-page-header {
  padding: 4rem 0 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

.article-header-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.article-featured-image {
  margin: 2rem auto;
  max-width: 64rem;
}

.article-featured-image img {
  width: 100%;
  border-radius: 0.5rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-body {
  max-width: 48rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: oklch(0.22 0.02 60 / 0.92);
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 2.6rem 0 0.5rem;
  font-family: "Fraunces", serif;
}

.article-body h3 {
  font-size: 1.22rem;
  margin: 1.9rem 0 0.2rem;
  font-family: "Fraunces", serif;
}

.article-body p {
  margin-bottom: 1.15rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.15rem;
  padding-left: 1.3rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.35rem 0 0.35rem 1.1rem;
  font-style: italic;
  color: var(--muted-foreground);
  margin: 1.5rem 0;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding: 3.5rem 0 0;
}

.footer-main {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-about p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}


