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

:root {
  --ivory: #F5F0E8;
  --ivory-dark: #EDE8DC;
  --black: #1A1A1A;
  --cobalt: #1B4DDB;
  --cobalt-dark: #1539A6;
  --coral: #D4796A;
  --coral-muted: #C4897E;
  --coral-light: #F2D5CE;
  --white: #FFFFFF;
  --gray: #6B6B6B;
  --gray-light: #D6D2CA;
  --gray-ultra: #F0EDE6;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Georgia, 'Times New Roman', 'Noto Serif', serif;
  background: var(--ivory);
  color: var(--black);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--coral); }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory);
  border-bottom: 2px solid var(--black);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}
.logo {
  font-size: 2rem; font-weight: 700; color: var(--black);
  letter-spacing: -0.03em; text-transform: uppercase;
  font-family: 'Courier New', Courier, monospace;
  position: relative;
}
.logo::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 3px; background: var(--cobalt);
}
.burger-check { display: none; }
.burger-btn {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 32px; padding: 4px 0;
}
.burger-btn span {
  display: block; height: 2px; background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-list {
  display: flex; gap: 2.5rem; list-style: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
}
.nav-list a { color: var(--black); position: relative; }
.nav-list a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--cobalt);
  transition: width 0.3s;
}
.nav-list a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .burger-btn { display: flex; }
  .nav-list {
    position: fixed; top: 0; right: -100%; width: 75vw; height: 100vh;
    flex-direction: column; background: var(--ivory);
    padding: 5rem 2rem; gap: 2rem;
    border-left: 2px solid var(--black);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
  }
  .burger-check:checked ~ .nav-list { right: 0; }
  .burger-check:checked ~ .burger-btn span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger-check:checked ~ .burger-btn span:nth-child(2) { opacity: 0; }
  .burger-check:checked ~ .burger-btn span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .header-inner { padding: 1rem; }
}

/* ===== HERO ===== */
.hero {
  max-width: 1400px; margin: 0 auto;
  padding: 4rem 2rem 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem; align-items: start;
}
.hero-tag {
  display: inline-block; font-family: 'Courier New', monospace;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--cobalt); border: 1px solid var(--cobalt);
  padding: 0.25rem 0.75rem; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05; letter-spacing: -0.04em;
  margin-bottom: 1.5rem; font-weight: 700;
}
.hero-lead {
  font-size: 1.15rem; line-height: 1.8;
  color: var(--gray); max-width: 540px;
}
.hero-img-wrap {
  position: relative;
}
.hero-img-wrap img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
}
.hero-img-wrap::before {
  content: ''; position: absolute; top: -1rem; right: -1rem;
  width: 100%; height: 100%;
  border: 2px solid var(--cobalt); z-index: -1;
}
.hero-author {
  margin-top: 1.5rem; font-family: 'Courier New', monospace;
  font-size: 0.8rem; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 2rem 1rem; }
  .hero-img-wrap::before { top: -0.5rem; right: -0.5rem; }
}

/* ===== CONTENT + SIDEBAR ===== */
.content-wrap {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 340px;
  gap: 4rem; padding: 3rem 2rem;
}
.main-article h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15; margin: 3rem 0 1.2rem;
  letter-spacing: -0.02em;
  position: relative; padding-left: 1.5rem;
}
.main-article h2::before {
  content: ''; position: absolute; left: 0; top: 0.2em;
  width: 4px; height: 1.2em; background: var(--cobalt);
}
.main-article p {
  margin-bottom: 1.2rem; max-width: 65ch;
}
.main-article h3 {
  font-family: 'Courier New', monospace;
  font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--cobalt);
  margin: 2.5rem 0 1rem;
}

.sidebar {
  border-left: 2px solid var(--gray-light);
  padding-left: 2rem;
}
.sidebar-block {
  margin-bottom: 2.5rem;
}
.sidebar-title {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--coral);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--coral-muted);
}
.sidebar-list { list-style: none; }
.sidebar-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
}
.sidebar-list li::before {
  content: '→ '; color: var(--cobalt); font-weight: 700;
}
.sidebar-highlight {
  background: var(--cobalt); color: var(--ivory);
  padding: 1.5rem; margin-bottom: 2rem;
}
.sidebar-highlight p {
  font-size: 0.95rem; line-height: 1.7;
}
.sidebar-highlight strong {
  display: block; font-family: 'Courier New', monospace;
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 0.5rem;
  color: var(--coral-light);
}

@media (max-width: 900px) {
  .content-wrap {
    grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1rem;
  }
  .sidebar { border-left: none; border-top: 2px solid var(--gray-light); padding: 2rem 0 0; }
}

/* ===== QUOTE STRIP ===== */
.quote-strip {
  background: var(--black); color: var(--ivory);
  padding: 4rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.quote-strip::before {
  content: '"'; position: absolute; top: -2rem; left: 5%;
  font-size: 20rem; color: rgba(27, 77, 219, 0.15);
  font-family: Georgia, serif; line-height: 1;
}
.quote-strip blockquote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.5; max-width: 800px; margin: 0 auto;
  font-style: italic; position: relative; z-index: 1;
}
.quote-strip cite {
  display: block; margin-top: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem; font-style: normal;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--coral-muted);
}

/* ===== NOTE STRIP ===== */
.note-strip {
  background: var(--cobalt); color: var(--ivory);
  padding: 2.5rem 2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem; letter-spacing: 0.02em;
}
.note-strip-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; gap: 3rem; align-items: center;
  flex-wrap: wrap;
}
.note-strip-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--coral-light);
  white-space: nowrap;
}
.note-strip p { max-width: 70ch; }

/* ===== BROKEN GRID CARDS ===== */
.broken-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 4rem 2rem;
}
.broken-grid-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 3rem; letter-spacing: -0.03em;
  position: relative; display: inline-block;
}
.broken-grid-title::after {
  content: ''; position: absolute; bottom: -0.5rem; left: 0;
  width: 60px; height: 3px; background: var(--coral);
}
.broken-cards {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.broken-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--gray-light);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.broken-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.broken-card.card-large {
  grid-row: span 2;
}
.broken-card.card-accent {
  background: var(--coral-light);
  border-color: var(--coral-muted);
}
.broken-card .card-tag {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--cobalt);
  margin-bottom: 0.75rem; display: block;
}
.broken-card h3 {
  font-size: 1.3rem; line-height: 1.3;
  margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.broken-card p {
  font-size: 0.95rem; color: var(--gray); line-height: 1.7;
}
.broken-card .card-link {
  display: inline-block; margin-top: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--cobalt);
  border-bottom: 1px solid var(--cobalt);
  padding-bottom: 2px;
}

@media (max-width: 768px) {
  .broken-cards { grid-template-columns: 1fr; }
  .broken-card.card-large { grid-row: span 1; }
}

/* ===== INLINE HIGHLIGHT ===== */
.inline-highlight {
  background: var(--coral-light);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--coral);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== IMAGE BLOCK ===== */
.img-block {
  margin: 2.5rem 0;
  position: relative;
}
.img-block img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.img-block figcaption {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gray);
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px solid var(--gray-light);
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--ivory-dark);
  padding: 5rem 2rem;
  text-align: center;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}
.newsletter h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.newsletter p {
  color: var(--gray); margin-bottom: 2rem;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.newsletter-form {
  display: flex; gap: 0; max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1; padding: 1rem 1.2rem;
  border: 2px solid var(--black); border-right: none;
  background: var(--white);
  font-family: Georgia, serif; font-size: 1rem;
  outline: none;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--cobalt);
}
.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--cobalt); color: var(--white);
  border: 2px solid var(--cobalt);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.15em; cursor: pointer;
  transition: background 0.3s;
  min-height: 44px;
}
.newsletter-form button:hover { background: var(--cobalt-dark); }

@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { border-right: 2px solid var(--black); border-bottom: none; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black); color: var(--ivory);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: start; flex-wrap: wrap; gap: 2rem;
  margin-bottom: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245,240,232,0.15);
}
.footer-brand {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; color: var(--ivory);
}
.footer-links {
  display: flex; gap: 2rem; list-style: none;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-links a { color: var(--gray); }
.footer-links a:hover { color: var(--coral-light); }
.footer-disclaimer {
  font-size: 0.8rem; line-height: 1.7;
  color: var(--gray); max-width: 800px;
}
.footer-copy {
  margin-top: 1.5rem; font-family: 'Courier New', monospace;
  font-size: 0.7rem; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ===== COOKIE BANNER ===== */
.cookie-wrap {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9999; max-width: 380px;
}
.cookie-toggle { display: none; }
.cookie-banner {
  background: var(--black); color: var(--ivory);
  padding: 1.5rem; font-size: 0.85rem; line-height: 1.6;
  border: 1px solid var(--gray);
  display: block;
}
.cookie-toggle:checked ~ .cookie-banner { display: none; }
.cookie-banner p { margin-bottom: 1rem; }
.cookie-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}
.cookie-btn {
  padding: 0.6rem 1.2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; cursor: pointer;
  border: none; min-height: 44px;
  transition: background 0.3s;
}
.cookie-accept { background: var(--cobalt); color: var(--white); }
.cookie-accept:hover { background: var(--cobalt-dark); }
.cookie-reject { background: transparent; color: var(--ivory); border: 1px solid var(--gray); }
.cookie-reject:hover { background: rgba(255,255,255,0.1); }
.cookie-link {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem; color: var(--coral-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

@media (max-width: 480px) {
  .cookie-wrap { bottom: 0; right: 0; left: 0; max-width: 100%; }
}

/* ===== ARTICLE PAGES ===== */
.article-hero {
  max-width: 1400px; margin: 0 auto;
  padding: 4rem 2rem 2rem;
}
.article-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.03em;
  max-width: 800px;
}
.article-meta {
  margin-top: 1rem; font-family: 'Courier New', monospace;
  font-size: 0.75rem; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.1em;
}

.article-body {
  max-width: 780px; margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.article-body h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
  padding-left: 1.5rem;
  position: relative;
}
.article-body h2::before {
  content: ''; position: absolute; left: 0; top: 0.15em;
  width: 4px; height: 1.2em; background: var(--cobalt);
}
.article-body p { margin-bottom: 1.2rem; max-width: 65ch; }
.article-body .inline-highlight {
  margin: 2rem -1rem;
}

/* ===== TIP CARDS ===== */
.tip-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin: 2rem 0;
}
.tip-card {
  background: var(--white);
  padding: 1.5rem; border: 1px solid var(--gray-light);
  transition: transform 0.3s;
}
.tip-card:hover { transform: translateY(-3px); }
.tip-card-num {
  font-family: 'Courier New', monospace;
  font-size: 2rem; color: var(--cobalt);
  font-weight: 700; line-height: 1; margin-bottom: 0.5rem;
}
.tip-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.tip-card p { font-size: 0.9rem; color: var(--gray); }

/* ===== SUCCESS PAGE ===== */
.success-page {
  text-align: center; padding: 8rem 2rem;
  max-width: 600px; margin: 0 auto;
}
.success-page h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.success-page p { color: var(--gray); margin-bottom: 2rem; font-size: 1.1rem; }
.btn-home {
  display: inline-block; padding: 1rem 2.5rem;
  background: var(--cobalt); color: var(--white);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.15em; min-height: 44px;
  transition: background 0.3s;
}
.btn-home:hover { background: var(--cobalt-dark); color: var(--white); }

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 780px; margin: 0 auto;
  padding: 4rem 2rem;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem; letter-spacing: -0.02em;
}
.legal-section {
  margin-bottom: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-light);
}
.legal-section h2 {
  font-size: 1.15rem; margin-bottom: 0.75rem;
  color: var(--cobalt);
}
.legal-section p {
  font-size: 0.95rem; color: var(--gray); line-height: 1.8;
}
.legal-date {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

/* ===== 404 PAGE ===== */
.error-page {
  text-align: center; padding: 8rem 2rem 4rem;
  max-width: 700px; margin: 0 auto;
}
.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700; line-height: 1;
  color: var(--cobalt); letter-spacing: -0.05em;
  opacity: 0.15;
}
.error-page h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: -1rem 0 1rem;
}
.error-page p { color: var(--gray); margin-bottom: 2rem; }
.error-links {
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: center;
}
.error-links a {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.1em; border-bottom: 1px solid var(--cobalt);
  padding-bottom: 2px;
}

/* ===== DIVIDER ===== */
.section-divider {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
}
.section-divider hr {
  border: none; border-top: 1px solid var(--gray-light);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeUp 0.6s ease-out both;
}
.broken-card:nth-child(2) { animation-delay: 0.15s; }
.broken-card:nth-child(3) { animation-delay: 0.3s; }
.broken-card:nth-child(4) { animation-delay: 0.45s; }
