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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #FFF9F0;
  --ink: #222222;
  --accent: #C0392B;
  --cream: #F5EDD8;
  --border: #D4C4A8;
  --radius: 20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'EB Garamond', Georgia, serif; font-size: 19px; line-height: 1.75; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }

/* HEADER */
header { border-bottom: 2px solid var(--ink); padding: 0 2rem; position: sticky; top: 0; background: var(--bg); z-index: 100; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.1rem 0; max-width: 1280px; margin: 0 auto; gap: 1rem; }
.site-logo { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; grid-column: 2; text-align: center; color: var(--ink); }
nav { display: flex; gap: 1.8rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
nav.nav-left { justify-content: flex-start; }
nav.nav-right { justify-content: flex-end; }
nav a { position: relative; padding-bottom: 3px; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s ease; }
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--accent); }

/* HERO */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 88vh; border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-text { padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; border-right: 2px solid var(--ink); background: var(--bg); }
.hero-kicker { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.8rem; }
.hero h1 { font-size: clamp(2.2rem, 3.8vw, 4.2rem); line-height: 1.03; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.05rem; color: #666; margin-bottom: 2.8rem; line-height: 1.65; max-width: 480px; }
.btn-primary { display: inline-block; background: var(--ink); color: var(--bg); padding: 0.9rem 2.6rem; font-family: 'Playfair Display', serif; font-size: 0.92rem; letter-spacing: 0.07em; border-radius: var(--radius); transition: background 0.3s, transform 0.2s; width: fit-content; }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.hero-image { overflow: hidden; position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.hero-image:hover img { transform: scale(1.04); }

/* CONTENT WRAP */
.content-wrap { max-width: 1280px; margin: 0 auto; padding: 5rem 2rem; display: grid; grid-template-columns: 62fr 38fr; gap: 5rem; border-bottom: 1px solid var(--border); }
.section-label { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block; }
.article-tag { display: inline-block; font-size: 0.67rem; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--ink); padding: 0.22rem 0.75rem; border-radius: 30px; margin-bottom: 1.2rem; }
.main-article h2 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); margin-bottom: 1rem; line-height: 1.1; }
.article-excerpt { font-size: 1.05rem; color: #555; margin-bottom: 0.8rem; line-height: 1.65; }
.article-author { font-size: 0.8rem; letter-spacing: 0.04em; color: #999; border-top: 1px solid var(--border); padding-top: 1rem; margin-bottom: 1.5rem; }
.article-img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.8rem; }
.drop-cap p::first-letter { font-family: 'Playfair Display', serif; font-size: 5.5rem; font-weight: 900; float: left; line-height: 0.72; margin: 0.06em 0.12em 0 0; color: var(--accent); }

/* SIDEBAR */
.sidebar { border-left: 1px solid var(--border); padding-left: 3rem; }
.sidebar-title { font-size: 0.65rem; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 2.2rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); display: block; }
.sidebar-card { margin-bottom: 2.2rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--border); }
.sidebar-card:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; line-height: 1.3; }
.sidebar-card p { font-size: 0.88rem; color: #666; margin-bottom: 0.8rem; line-height: 1.55; }
.read-more { font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); transition: letter-spacing 0.2s; }
.read-more:hover { letter-spacing: 0.2em; }

/* ABOUT */
.about-section { background: var(--ink); color: var(--bg); padding: 7rem 2rem; text-align: center; }
.about-section .section-label { color: rgba(192,57,43,0.8); }
.about-section h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); margin-bottom: 1.8rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.about-section p { max-width: 640px; margin: 0 auto 1.1rem; font-size: 1.05rem; opacity: 0.8; line-height: 1.75; }

/* SUBSCRIBE */
.subscribe-section { border-bottom: 1px solid var(--border); padding: 6rem 2rem; }
.subscribe-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.subscribe-inner h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: 0.6rem; }
.subscribe-inner > p { color: #666; margin-bottom: 2.5rem; font-size: 1rem; }
.subscribe-form { display: grid; gap: 1.1rem; text-align: left; }
.form-field { display: flex; flex-direction: column; }
.form-field label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.4rem; color: #777; }
.form-field input { border: 1px solid var(--border); background: transparent; padding: 0.9rem 1.2rem; font-family: 'EB Garamond', serif; font-size: 1rem; border-radius: 12px; outline: none; transition: border-color 0.3s, box-shadow 0.3s; color: var(--ink); }
.form-field input::placeholder { color: #bbb; }
.form-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }
.subscribe-form button { background: var(--accent); color: #fff; border: none; padding: 1rem 2rem; font-family: 'Playfair Display', serif; font-size: 1rem; letter-spacing: 0.06em; border-radius: var(--radius); cursor: pointer; transition: background 0.3s, transform 0.2s; margin-top: 0.4rem; }
.subscribe-form button:hover { background: var(--ink); transform: translateY(-2px); }

/* FOOTER */
footer { border-top: 2px solid var(--ink); padding: 4rem 2rem 2.5rem; background: var(--ink); color: var(--bg); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 2.5rem; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 900; color: var(--bg); margin-bottom: 1rem; display: block; letter-spacing: -0.02em; }
.footer-desc { font-size: 0.85rem; opacity: 0.6; line-height: 1.65; }
.footer-col h4 { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1.2rem; opacity: 0.45; font-family: 'EB Garamond', serif; }
.footer-col a { display: block; color: rgba(255,249,240,0.68); font-size: 0.87rem; margin-bottom: 0.6rem; transition: color 0.2s, padding-left 0.2s; }
.footer-col a:hover { color: var(--bg); padding-left: 4px; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 1.8rem; border-top: 1px solid rgba(255,249,240,0.12); font-size: 0.75rem; color: rgba(255,249,240,0.38); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* ARTICLE HERO */
.article-hero { text-align: center; padding: 4.5rem 2rem 3rem; border-bottom: 1px solid var(--border); max-width: 900px; margin: 0 auto; }
.article-kicker { font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; display: block; }
.article-hero h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); max-width: 800px; margin: 0 auto 1.2rem; line-height: 1.08; }
.article-meta { font-size: 0.8rem; color: #aaa; }

/* ARTICLE CONTENT */
.article-content { max-width: 760px; margin: 4rem auto; padding: 0 2rem 5rem; }
.article-content h2 { font-size: 1.75rem; margin: 3rem 0 1.1rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.article-content p { margin-bottom: 1.3rem; }
.article-content strong { font-weight: 700; }
.highlight { background: var(--cream); border-left: 4px solid var(--accent); padding: 1.1rem 1.6rem; border-radius: 0 14px 14px 0; margin: 2.2rem 0; font-style: italic; font-size: 1.08rem; line-height: 1.6; }
.full-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); margin: 2.8rem 0; }
.drop-cap p::first-letter { font-family: 'Playfair Display', serif; font-size: 5.5rem; font-weight: 900; float: left; line-height: 0.72; margin: 0.06em 0.13em 0 0; color: var(--accent); }

/* DISCLAIMER */
.disclaimer-box { border: 2px solid var(--accent); border-radius: var(--radius); padding: 1.6rem 2rem; margin: 3.5rem 0 2rem; background: rgba(192,57,43,0.04); }
.disclaimer-box strong { color: var(--accent); font-family: 'Playfair Display', serif; font-size: 1.08rem; display: block; margin-bottom: 0.6rem; }
.disclaimer-box p { font-size: 0.9rem; margin: 0; line-height: 1.6; color: #555; }

/* POLICY */
.policy-content { max-width: 820px; margin: 0 auto; padding: 4.5rem 2rem 6rem; }
.policy-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.6rem; }
.policy-date { font-size: 0.8rem; color: #aaa; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); display: block; }
.policy-content h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
.policy-content p { margin-bottom: 1rem; font-size: 0.96rem; line-height: 1.72; }
.policy-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content li { font-size: 0.96rem; margin-bottom: 0.45rem; line-height: 1.6; }
.policy-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.policy-content a:hover { color: var(--ink); }

/* SUCCESS */
.success-page { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }
.success-icon { width: 84px; height: 84px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; font-size: 2.4rem; color: #fff; }
.success-page h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1rem; }
.success-page p { color: #666; max-width: 500px; margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.65; }

/* 404 */
.page-404 { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }
.error-num { font-size: 10rem; font-weight: 900; line-height: 0.9; color: var(--accent); font-family: 'Playfair Display', serif; margin-bottom: 1rem; }
.page-404 h2 { font-size: 2rem; margin-bottom: 1rem; }
.page-404 p { color: #666; max-width: 420px; margin-bottom: 2.5rem; font-size: 1rem; }

/* COOKIE MODAL — CSS ONLY */
#cookie-check { display: none; }
#cookie-modal { position: fixed; bottom: 2rem; right: 2rem; width: 330px; background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.6rem; z-index: 9999; box-shadow: 7px 7px 0 var(--ink); }
#cookie-check:checked ~ #cookie-modal { display: none; }
.cookie-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.65rem; }
.cookie-text { font-size: 0.82rem; color: #666; margin-bottom: 1.3rem; line-height: 1.55; }
.cookie-actions { display: flex; gap: 0.7rem; }
.cookie-accept { flex: 1; display: block; background: var(--ink); color: var(--bg); border: none; padding: 0.68rem; border-radius: 12px; font-family: 'Playfair Display', serif; font-size: 0.88rem; cursor: pointer; text-align: center; transition: background 0.2s; }
.cookie-accept:hover { background: var(--accent); color: #fff; }
.cookie-more { flex: 1; display: block; border: 1px solid var(--border); padding: 0.68rem; border-radius: 12px; font-size: 0.82rem; text-align: center; color: var(--ink); font-family: 'EB Garamond', serif; transition: border-color 0.2s; }
.cookie-more:hover { border-color: var(--ink); }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { height: 320px; }
  .content-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .sidebar { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  .header-inner { grid-template-columns: 1fr; justify-items: center; gap: 0.6rem; }
  nav.nav-left, nav.nav-right { display: none; }
  .hero-text { padding: 3rem 1.5rem; }
  .article-hero { padding: 3rem 1.5rem 2rem; }
  .article-content { padding: 0 1.5rem 4rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  #cookie-modal { width: calc(100% - 2rem); left: 1rem; right: 1rem; }
  .error-num { font-size: 7rem; }
}
