/* Home-only styles. Common site styles live in shared.css. */
/* Grid creates two flexible columns without fixing the page width. */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero p:not(.eyebrow) { max-width: 480px; }
.car-photo { margin: 0; border: 1px solid var(--ink); transform: rotate(1deg); }
/* Fill the photo column and preserve the image's original proportions. */
.car-photo img { display: block; width: 100%; height: auto; }
.car-photo figcaption { padding: 14px 18px; font-size: 12px; background: var(--ink); color: var(--background); }
.car-photo figcaption span { display: block; color: var(--alabaster-silver); }

/* Spending statistics belong to Home, including the large values. */
.stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; margin: 0; border: 1px solid var(--ink); }
.stat { padding: 24px 20px; }
.stat + .stat { border-left: 1px solid var(--ink); }
.headline-stat { background: var(--brand-accent); color: var(--on-brand); }
.stat dd { margin: 12px 0; font-size: clamp(24px, 2.7vw, 34px); font-weight: 800; letter-spacing: -1px; }
.stat p { font-size: 12px; margin: 0; }

/* Home's featured build updates and ideas. */
.featured { margin-top: 52px; }
.complete { align-self: flex-start; background: var(--status-background); color: var(--on-status); padding: 4px 8px; }
.card-detail { border-top: 1px solid var(--line); padding-top: 16px; }
.card-detail strong { display: block; font-size: 22px; }
/* Media queries adjust the same content for smaller screens. */
@media (max-width: 1000px) {
    .hero { gap: 30px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--ink); }
}
@media (max-width: 650px) {
    .hero, .stats { grid-template-columns: 1fr; }
    .car-photo { transform: none; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--ink); }
}
