/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

:root {
  --ivory: #F5F0E8;
  --ivory-dark: #EDE6D8;
  --olive: #3B3F2E;
  --olive-light: #4F5440;
  --plum: #8B6E7F;
  --plum-light: #A68B99;
  --gold: #C4A55A;
  --gold-light: #D4BA7A;
  --shadow: rgba(59,63,46,0.08);
  --font-display: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: Garamond, 'Times New Roman', serif;
  --font-accent: 'Trebuchet MS', 'Gill Sans', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ivory);
  color: var(--olive);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--gold);
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
.site-header:hover { box-shadow: 0 4px 20px var(--shadow); }

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; font-style: italic;
  color: var(--olive);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.logo span { color: var(--gold); }

.nav-links { display: none; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--olive-light); text-decoration: none;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--plum);
  transition: width 0.4s ease;
}
.nav-links a:hover { color: var(--plum); }
.nav-links a:hover::after { width: 100%; }

.burger { display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--olive); transition: 0.3s; }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ivory); z-index: 200;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--olive); text-decoration: none;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--plum); }
.mobile-nav-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; font-size: 2rem; color: var(--olive); cursor: pointer;
}

/* === HERO SPREAD === */
.hero-spread {
  display: grid; grid-template-columns: 1fr;
  min-height: 70vh; overflow: hidden;
}
.hero-headline-col {
  padding: 3rem 1.5rem 2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-issue {
  font-family: var(--font-accent);
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 2.4rem; line-height: 1.15; font-weight: 700;
  color: var(--olive); margin-bottom: 1.2rem;
  animation: fadeSlideUp 1s ease both;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem; line-height: 1.7;
  color: var(--olive-light);
  max-width: 480px;
  animation: fadeSlideUp 1s 0.2s ease both;
}
.hero-text-col {
  background: var(--ivory-dark);
  padding: 2.5rem 1.5rem;
  border-left: none;
  border-top: 3px solid var(--gold);
}
.hero-text-col p {
  font-size: 0.95rem; line-height: 1.9;
  margin-bottom: 1rem; color: var(--olive);
}
.hero-author {
  font-family: var(--font-accent);
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--plum); margin-top: 0.5rem;
}

/* === ASYMMETRIC LAYOUT === */
.asymmetric-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 0; padding: 0;
}
.main-column { padding: 2rem 1.5rem; }
.sidebar-column {
  background: var(--olive);
  color: var(--ivory);
  padding: 2rem 1.5rem;
}
.sidebar-column h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--gold);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--olive-light);
  padding-bottom: 0.5rem;
}
.sidebar-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(245,240,232,0.1);
}
.sidebar-item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem; color: var(--ivory); margin-bottom: 0.3rem;
}
.sidebar-item p {
  font-size: 0.82rem; color: var(--plum-light); line-height: 1.6;
}
.sidebar-item a {
  font-size: 0.7rem; color: var(--gold); text-decoration: none;
  font-family: var(--font-accent); letter-spacing: 0.1em; text-transform: uppercase;
}
.sidebar-item a:hover { color: var(--gold-light); }

/* === SECTIONS === */
.section-divider {
  display: flex; align-items: center; gap: 1rem;
  padding: 2rem 1.5rem 1rem;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gold);
}
.section-divider span {
  font-family: var(--font-accent);
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--plum); white-space: nowrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--olive); margin-bottom: 1rem;
}
.section-lead {
  font-size: 1rem; color: var(--olive-light);
  line-height: 1.8; margin-bottom: 1.5rem;
}

/* === OVERSIZED QUOTE === */
.oversized-quote {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--ivory-dark) 0%, var(--ivory) 100%);
  border-left: 4px solid var(--gold);
  position: relative;
}
.oversized-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem; color: var(--gold); opacity: 0.3;
  position: absolute; top: 0.5rem; left: 1rem; line-height: 1;
}
.oversized-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem; font-style: italic;
  line-height: 1.6; color: var(--olive);
  padding-left: 1rem;
}
.oversized-quote cite {
  display: block; margin-top: 1rem;
  font-family: var(--font-accent);
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--plum); font-style: normal;
}

/* === FOLDED STRIP === */
.folded-strip {
  background: var(--plum);
  color: var(--ivory);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.folded-strip::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 40px 40px 0;
  border-color: transparent var(--ivory) transparent transparent;
}
.folded-strip h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--gold); margin-bottom: 1rem;
}
.folded-strip p { font-size: 0.92rem; line-height: 1.8; }

/* === PHOTO SPREAD === */
.photo-spread {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.photo-spread img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.8s ease;
}
.photo-spread:hover img { transform: scale(1.03); }
.photo-spread-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(59,63,46,0.85));
  padding: 3rem 1.5rem 1.5rem;
  color: var(--ivory);
}
.photo-spread-caption h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; margin-bottom: 0.3rem;
}
.photo-spread-caption p {
  font-size: 0.82rem; color: var(--plum-light);
}

/* === CARDS === */
.cards-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem; padding: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--ivory-dark);
  padding: 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px var(--shadow); }
.card:hover::before { height: 100%; }
.card-tag {
  font-family: var(--font-accent);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 0.6rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--olive);
}
.card p { font-size: 0.88rem; color: var(--olive-light); line-height: 1.7; }
.card-link {
  display: inline-block; margin-top: 1rem;
  font-family: var(--font-accent);
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  transition: color 0.3s;
}
.card-link:hover { color: var(--plum); }

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: var(--ivory-dark);
  border: 1px solid var(--gold);
  padding: 2rem 1.5rem;
  margin: 1.5rem;
  position: relative;
}
.highlight-box::before {
  content: '';
  position: absolute; top: -1px; left: 2rem;
  width: 40px; height: 3px; background: var(--plum);
}
.highlight-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--olive); margin-bottom: 0.8rem;
}
.highlight-box ul {
  list-style: none; padding: 0;
}
.highlight-box li {
  padding: 0.5rem 0 0.5rem 1.2rem;
  position: relative; font-size: 0.9rem;
  color: var(--olive-light);
}
.highlight-box li::before {
  content: '\2014'; position: absolute; left: 0; color: var(--gold);
}

/* === SUBSCRIBE === */
.subscribe-section {
  background: var(--olive);
  color: var(--ivory);
  padding: 3rem 1.5rem;
  text-align: center;
}
.subscribe-section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--gold); margin-bottom: 0.5rem;
}
.subscribe-section p {
  font-size: 0.9rem; color: var(--plum-light);
  margin-bottom: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto;
}
.subscribe-form {
  display: flex; flex-direction: column; gap: 0.8rem;
  max-width: 360px; margin: 0 auto;
}
.subscribe-form input[type="email"] {
  padding: 0.9rem 1rem;
  background: transparent; border: 1px solid var(--olive-light);
  color: var(--ivory); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.3s;
}
.subscribe-form input[type="email"]::placeholder { color: var(--plum-light); }
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
.subscribe-form button {
  padding: 0.9rem;
  background: var(--gold); border: none;
  font-family: var(--font-accent);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--olive); cursor: pointer;
  transition: background 0.3s;
  min-height: 44px;
}
.subscribe-form button:hover { background: var(--gold-light); }

/* === ARTICLE PAGE === */
.article-header {
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--ivory-dark);
}
.article-category {
  font-family: var(--font-accent);
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 0.8rem;
}
.article-header h1 {
  font-family: var(--font-display);
  font-size: 2rem; line-height: 1.2;
  color: var(--olive); margin-bottom: 1rem;
}
.article-meta {
  font-family: var(--font-accent);
  font-size: 0.7rem; color: var(--olive-light);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.article-body {
  padding: 2rem 1.5rem;
  max-width: 680px;
}
.article-body p {
  margin-bottom: 1.2rem; font-size: 1rem;
  line-height: 1.85; color: var(--olive);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem; margin: 2rem 0 1rem;
  color: var(--olive);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; margin: 1.5rem 0 0.8rem;
  color: var(--olive);
}
.article-img {
  margin: 2rem 0;
  overflow: hidden;
}
.article-img img {
  width: 100%; display: block;
  transition: transform 0.6s;
}
.article-img:hover img { transform: scale(1.02); }

/* === INLINE PULL QUOTE === */
.pull-quote {
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 1.5rem 0;
  margin: 2rem 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.2rem; font-style: italic;
  color: var(--plum); line-height: 1.5;
}

/* === LEGAL PAGES === */
.legal-page { padding: 2rem 1.5rem; max-width: 720px; margin: 0 auto; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--olive);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.15rem; margin: 1.8rem 0 0.6rem; color: var(--olive);
}
.legal-page p {
  font-size: 0.9rem; color: var(--olive-light);
  line-height: 1.8; margin-bottom: 1rem;
}

/* === SUCCESS / 404 === */
.status-page {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; padding: 3rem 1.5rem; text-align: center;
}
.status-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem; color: var(--olive); margin-bottom: 1rem;
}
.status-page p {
  font-size: 1rem; color: var(--olive-light);
  max-width: 420px; margin-bottom: 2rem;
}
.status-page .btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--gold); color: var(--olive);
  text-decoration: none;
  font-family: var(--font-accent);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.3s;
  min-height: 44px;
}
.status-page .btn:hover { background: var(--gold-light); }
.status-links { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
.status-links a {
  color: var(--plum); text-decoration: none;
  font-family: var(--font-display); font-size: 1rem;
  transition: color 0.3s;
}
.status-links a:hover { color: var(--gold); }

/* === FOOTER === */
.site-footer {
  background: var(--olive);
  color: var(--ivory);
  padding: 2.5rem 1.5rem 1.5rem;
}
.footer-top {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--olive-light);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem; font-style: italic; color: var(--gold);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a {
  font-family: var(--font-accent);
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--plum-light); text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: 0.75rem; color: var(--olive-light);
  line-height: 1.7; margin-top: 1rem;
}
.footer-copy {
  font-size: 0.7rem; color: var(--olive-light);
  margin-top: 0.5rem;
}

/* === COOKIE BANNER === */
#cookie-toggle { display: none; }
.cookie-banner {
  position: fixed; bottom: 1rem; right: 1rem;
  background: var(--olive); color: var(--ivory);
  padding: 1.5rem; max-width: 340px;
  border: 1px solid var(--olive-light);
  z-index: 300;
  font-size: 0.82rem; line-height: 1.6;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: opacity 0.3s, transform 0.3s;
}
#cookie-toggle:checked ~ .cookie-banner { display: none; }
.cookie-banner p { margin-bottom: 1rem; }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-accept, .cookie-decline {
  padding: 0.6rem 1.2rem;
  font-family: var(--font-accent);
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; border: none;
  min-height: 44px;
  display: flex; align-items: center;
}
.cookie-accept {
  background: var(--gold); color: var(--olive);
}
.cookie-decline {
  background: transparent; border: 1px solid var(--olive-light);
  color: var(--ivory);
}

/* === ANIMATIONS === */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeSlideUp 0.8s ease both;
}

/* === TABLET === */
@media (min-width: 600px) {
  .hero-spread { grid-template-columns: 1fr 1fr; }
  .hero-text-col { border-left: 3px solid var(--gold); border-top: none; }
  .hero-title { font-size: 2.8rem; }
  .asymmetric-layout { grid-template-columns: 2fr 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .subscribe-form { flex-direction: row; }
  .nav-links { display: flex; }
  .burger { display: none; }
  .article-body { margin: 0 auto; }
}

/* === DESKTOP === */
@media (min-width: 960px) {
  .hero-spread { grid-template-columns: 60% 40%; min-height: 80vh; }
  .hero-headline-col { padding: 4rem 3rem; }
  .hero-title { font-size: 3.6rem; }
  .hero-text-col { padding: 3rem 2.5rem; }
  .asymmetric-layout { grid-template-columns: 2.5fr 1fr; }
  .main-column { padding: 3rem; }
  .sidebar-column { padding: 3rem 2rem; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); padding: 2rem 3rem; }
  .section-divider { padding: 3rem 3rem 1.5rem; }
  .oversized-quote { padding: 4rem 3rem; }
  .oversized-quote blockquote { font-size: 1.6rem; }
  .folded-strip { padding: 3rem; }
  .subscribe-section { padding: 4rem 3rem; }
  .photo-spread { min-height: 450px; }
  .highlight-box { margin: 2rem 3rem; }
  .legal-page { padding: 3rem; }
  .site-footer { padding: 3rem; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 4.2rem; }
  .main-column { padding: 3rem 4rem; }
}
