/*
Theme Name: Audacity To Homeschool
Theme URI: https://audacitytohomeschool.com
Author: Dinora Adriana Ruiz
Author URI: https://audacitytohomeschool.com
Description: Dark Academia editorial theme for Audacity To Homeschool — a Family Education Architecture practice.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: audacity-to-homeschool
Tags: dark, education, blog, custom-menu, featured-images
*/

/* ── Design Tokens ─────────────────────────────────────────────────── */
:root {
  --page-bg:      #141210;
  --card-bg:      #1b1916;
  --deep-bg:      #0f0e0c;
  --text:         #e3ded5;
  --muted:        #9c9384;
  --gold:         #bfa37a;
  --gold-dim:     rgba(191, 163, 122, 0.35);
  --gold-faint:   rgba(191, 163, 122, 0.12);
  --separator:    rgba(191, 163, 122, 0.2);
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ────────────────────────────────────────────────────────── */
.site-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.prose-container { max-width: 650px; margin: 0 auto; }

/* ── Navigation ────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--page-bg);
  border-bottom: 1px solid var(--separator);
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(20, 18, 16, 0.97);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo:hover { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--page-bg) !important;
  background: var(--gold);
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--text); color: var(--page-bg) !important; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--page-bg);
  padding: 2rem;
  overflow-y: auto;
  z-index: 99;
}

.nav-mobile-menu.open { display: block; }

.nav-mobile-links { list-style: none; }
.nav-mobile-links li { border-bottom: 1px solid var(--separator); }
.nav-mobile-links a {
  display: block;
  padding: 1rem 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}
.nav-mobile-links a:hover { color: var(--gold); }

/* ── Main Content ──────────────────────────────────────────────────── */
.site-main { padding-top: 64px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--deep-bg);
  border-top: 1px solid var(--separator);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-nav h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--separator);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-bg);
  background: var(--gold);
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--text); color: var(--page-bg); }

.btn-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  padding: 0.875rem 2rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--gold); color: var(--page-bg); }

/* ── Section Divider ───────────────────────────────────────────────── */
.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,18,16,0.85) 50%, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

/* ── Trust Strip ───────────────────────────────────────────────────── */
.trust-strip {
  background: var(--card-bg);
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  padding: 2.5rem 2rem;
}

.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-stat-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trust-stat-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Article Cards ─────────────────────────────────────────────────── */
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--separator);
  padding: 2rem;
  transition: border-color 0.2s;
}

.article-card:hover { border-color: var(--gold); }

.article-card-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.article-card-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-card-summary {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.article-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
}

/* ── Article Grid ──────────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ── Single Article ────────────────────────────────────────────────── */
.article-body {
  max-width: 650px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--card-bg);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  font-style: italic;
}

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--separator);
  color: var(--text);
  padding: 0.875rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus { border-color: var(--gold); }

.form-textarea { min-height: 140px; resize: vertical; }

/* ── Page Header ───────────────────────────────────────────────────── */
.page-header {
  background: var(--deep-bg);
  border-bottom: 1px solid var(--separator);
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.page-header-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-header-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.page-header-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .trust-strip-inner { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2rem; }
}
