/*
Theme Name: Skillet & Compass
Theme URI: https://aprev.xyz
Author: Lovable
Description: A high-performance, editorial WordPress theme exactly matching the Skillet & Compass preview.
Version: 1.6.0
Text Domain: skillet-and-compass
*/

:root {
  --radius: 0.5rem;
  --background: #FCFAF8; /* oklch(0.985 0.008 90) approximation */
  --foreground: #383530; /* oklch(0.22 0.02 60) */
  --surface: #F5F3EF;
  --ink: #2E2B26;
  --card: #ffffff;
  --primary: #854D0E; /* oklch(0.52 0.16 38) */
  --primary-foreground: #FDFCFB;
  --accent: #D97706; /* oklch(0.72 0.13 75) */
  --border: #E5E1DA;
  --muted-foreground: #71717A;
  --font-display: "Fraunces", serif;
  --font-sans: "Public Sans", sans-serif;
}

* { box-sizing: border-box; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(252, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  height: 64px;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}

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

nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

@media (max-width: 1024px) {
  nav { display: none; }
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  min-height: 500px;
  display: flex;
  align-items: center;
  background: #1a1a1a;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(46, 43, 38, 0.9) 0%, rgba(46, 43, 38, 0.7) 50%, rgba(46, 43, 38, 0.3) 100%);
  z-index: -5;
}

.hero-content {
  padding: 6rem 0;
}

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

.hero-section h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  color: #fff;
  max-width: 48rem;
  margin-bottom: 1.25rem;
}

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

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.2s;
}

.btn-primary:hover { transform: translateY(-2px); }

/* Article Card */
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
  height: 100%;
}

.article-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.card-img-wrap {
  aspect-ratio: 3/2;
  overflow: hidden;
}

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

.article-card:hover .card-img-wrap img { transform: scale(1.03); }

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

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

.card-title {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

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

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

/* Section Title */
.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

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

/* Grids */
.article-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid.three-col { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .article-grid.featured { grid-template-columns: repeat(3, 1fr); }
  .article-grid.featured .featured-post { grid-column: span 1; }
  .article-grid.featured .latest-posts { grid-column: span 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* Categories Section */
.bg-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.py-16 { padding: 4rem 0; }

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
}

.category-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.category-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.category-card p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }

/* Single Article */
.article-header { padding: 4rem 0; text-align: center; }
.article-header h1 { font-size: 2.5rem; margin: 1rem 0; }
.article-featured-img { width: 100%; max-height: 600px; object-fit: cover; border-radius: 0.5rem; margin-bottom: 3rem; }
.article-body { max-width: 45rem; margin: 0 auto; font-size: 1.0625rem; line-height: 1.8; color: #444; }
.article-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body p { margin-bottom: 1.5rem; }

footer { background: #1A1A1A; color: #999; padding: 4rem 0; margin-top: 4rem; text-align: center; font-size: 0.875rem; }
