/* =========================================================
   German Auto Magazine — homepage styles
   ========================================================= */

:root {
  --ink: #0E0E0E;
  --paper: #FFFFFF;
  --bone: #F4F2EE;
  --graphite: #5A5A5A;
  --rule: #E5E2DC;
  --accent: #C8102E;
  --accent-hover: #A00C24;
  --accent-ink: #1A1A1A;
  --max: 1200px;
  --gutter: 24px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}

.meta {
  font-size: 12px;
  color: var(--graphite);
  font-weight: 500;
}

.section-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--bone { background: var(--bone); }
.section--ink { background: var(--accent-ink); color: #fff; }
.section--ink h2,
.section--ink h3 { color: #fff; }

/* =========================================================
   Top utility strip
   ========================================================= */
.utility {
  background: var(--ink);
  color: #d8d8d8;
  font-size: 12px;
}
.utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.utility a { color: #fff; font-weight: 600; }
.utility a:hover { color: var(--accent); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .25em;
  color: var(--graphite);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav .icon-search {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
}
.nav .icon-search::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 7px;
  background: var(--ink);
  bottom: -6px;
  right: -1px;
  transform: rotate(-45deg);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
.hero-feature .hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 30% 60%, #2a2a2a 0%, #0c0c0c 70%),
    linear-gradient(135deg, #1a1a1a, #0a0a0a);
  background-blend-mode: overlay;
  border-radius: 4px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-feature .hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(200,16,46,.18) 70%, transparent 95%);
}
.hero-feature h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 16px;
}
.hero-feature .dek {
  font-size: 18px;
  color: var(--graphite);
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 16px;
}
.hero-side {
  border-left: 1px solid var(--rule);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
}
.editor-card {
  background: var(--bone);
  padding: 28px;
  border-top: 4px solid var(--accent);
}
.editor-card .quote-mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: .6;
  color: var(--accent);
  margin-bottom: 8px;
}
.editor-card p {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.editor-card .signoff {
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  color: var(--graphite);
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-side-list { margin-top: 28px; }
.hero-side-list a {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}
.hero-side-list a:last-child { border-bottom: 1px solid var(--rule); }

/* =========================================================
   CTA strip
   ========================================================= */
.cta-strip {
  background: var(--accent);
  color: #fff;
  padding: 28px 0;
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  color: #fff;
  font-size: 22px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
}
.cta-strip .btn {
  background: #fff;
  color: var(--accent);
  padding: 12px 22px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 2px;
  transition: background .15s ease, color .15s ease;
}
.cta-strip .btn:hover { background: var(--ink); color: #fff; }

/* =========================================================
   Trending row
   ========================================================= */
.trending {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trend-card {
  border: 1px solid var(--rule);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  transition: border-color .15s ease, transform .15s ease;
}
.trend-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.trend-card .badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.trend-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0 4px;
  letter-spacing: -0.005em;
}
.trend-card .more {
  font-size: 12px;
  font-weight: 600;
  color: var(--graphite);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* =========================================================
   Triptych (3 category columns)
   ========================================================= */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.tri-col h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
}
.story-list .item {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  display: block;
}
.story-list .item:first-child { border-top: 0; padding-top: 0; }
.story-list .item h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
}
.story-list .item .meta { display: block; }

/* =========================================================
   Special-report banner
   ========================================================= */
.report {
  background:
    linear-gradient(120deg, rgba(200,16,46,.85), rgba(0,0,0,.7)),
    repeating-linear-gradient(45deg, #1a1a1a 0 12px, #111 12px 24px);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.report .eyebrow { color: #fff; opacity: .85; }
.report h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  max-width: 800px;
  margin: 0 auto 16px;
}
.report p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,.85);
  font-size: 17px;
}
.btn-light {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-radius: 2px;
}
.btn-light:hover { background: var(--accent); color: #fff; }

/* =========================================================
   Article grids
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
}
.card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bone);
  border-radius: 2px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.05), rgba(0,0,0,.18));
}
/* placeholder thumb variants */
.thumb--1 { background: linear-gradient(135deg, #2a2a2a, #0a0a0a); }
.thumb--2 { background: linear-gradient(135deg, #4a1a1f, #1a0a0c); }
.thumb--3 { background: linear-gradient(135deg, #c8102e, #5a0a18); }
.thumb--4 { background: linear-gradient(135deg, #353535, #111); }
.thumb--5 { background: linear-gradient(135deg, #1a3a4a, #0a1418); }
.thumb--6 { background: linear-gradient(135deg, #5a4a3a, #2a1a14); }
.thumb--7 { background: linear-gradient(135deg, #2a2a3a, #0a0a14); }
.thumb--8 { background: linear-gradient(135deg, #c8102e, #1a1a1a); }

.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.grid-4 .card h3 { font-size: 17px; }
.card .meta { margin-top: auto; padding-top: 8px; }

/* =========================================================
   Marketplace strip
   ========================================================= */
.marketplace {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.market-col h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.listing {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.listing:first-of-type { border-top: 0; padding-top: 4px; }
.listing .yr-model {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
  line-height: 1.2;
}
.listing .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.listing .loc {
  font-size: 12px;
  color: var(--graphite);
  margin-left: 8px;
}
.market-col .browse {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter {
  background: linear-gradient(135deg, var(--accent) 0%, #8a0a1f 100%);
  color: #fff;
  padding: 64px 0;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 12px;
}
.newsletter p {
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
  font-size: 16px;
  max-width: 50ch;
}
.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
}
.subscribe-form input {
  flex: 1;
  border: 0;
  padding: 14px 18px;
  font-size: 14px;
  font-family: inherit;
}
.subscribe-form button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0 24px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .15s ease;
}
.subscribe-form button:hover { background: var(--accent-hover); }

/* phone mockup, pure CSS */
.phone {
  width: 240px;
  height: 480px;
  background: #0a0a0a;
  border-radius: 32px;
  padding: 12px;
  margin: 0 auto;
  box-shadow: 0 24px 48px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.06);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 4px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 30%, var(--bone) 30%, var(--bone) 100%);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.phone-screen::before {
  content: "GAM";
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: .04em;
}
.phone-screen::after {
  content: "";
  position: absolute;
  top: 110px;
  left: 16px;
  right: 16px;
  height: 120px;
  background: linear-gradient(135deg, #2a2a2a, #0a0a0a);
  border-radius: 6px;
}
.phone-lines {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-lines span {
  display: block;
  height: 8px;
  background: #d8d4cc;
  border-radius: 2px;
}
.phone-lines span:nth-child(1) { width: 90%; }
.phone-lines span:nth-child(2) { width: 70%; }
.phone-lines span:nth-child(3) { width: 80%; background: var(--accent); opacity: .7; }
.phone-lines span:nth-child(4) { width: 60%; }

/* =========================================================
   Events
   ========================================================= */
.events {
  display: flex;
  flex-direction: column;
}
.event-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.event-row:last-child { border-bottom: 1px solid var(--rule); }
.event-date {
  font-family: var(--serif);
  font-weight: 800;
  text-align: center;
  line-height: 1;
}
.event-date .d {
  display: block;
  font-size: 36px;
  color: var(--accent);
}
.event-date .m {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--graphite);
}
.event-info h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 4px;
}
.event-info .where {
  font-size: 13px;
  color: var(--graphite);
}
.event-cta {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--accent-ink);
  color: #c8c8c8;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c8c8c8; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand span { color: var(--accent); }
.footer-tag {
  font-size: 13px;
  color: #888;
  max-width: 36ch;
}
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .marketplace { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .trending { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 18px; }
  .section { padding: 48px 0; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  .nav.is-open { display: flex; }
  .nav a {
    width: 100%;
    padding: 14px var(--gutter);
    border-top: 1px solid var(--rule);
  }
  .nav .icon-search { margin: 14px var(--gutter); }
  .triptych { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-feature h1 { font-size: 32px; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 32px; }
  .phone { width: 200px; height: 400px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .event-row { grid-template-columns: 64px 1fr; }
  .event-cta { grid-column: 2; justify-self: start; padding-top: 4px; }
}

@media (max-width: 480px) {
  .trending { grid-template-columns: 1fr; }
  .marketplace { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .utility .container { font-size: 11px; }
}
