/* Cardinalspeed — style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Big+Shoulders+Display:wght@700&display=swap');

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

html { height: 100%; overflow-y: scroll; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: #111;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: #368AFF; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Type scale */
.t-page-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #111;
}

.t-post-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #111;
}

.t-section-head {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #111;
}

.t-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

.t-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

.t-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: #111;
}

.t-caption {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: #666;
}

/* Layout */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Nav */
.site-nav {
  border-bottom: 0.5px solid #e0e0e0;
  background: #E4E2DE;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: transform 0.3s ease;
}
.site-nav.nav-hidden {
  transform: translateY(-100%);
}
.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 93px;
  width: auto;
  max-width: none;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #666;
}
.nav-links a:hover { color: #111; text-decoration: none; }

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 1.5rem;
  border-top: 0.5px solid #e0e0e0;
  background: #E4E2DE;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-links a {
  color: #999;
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 0;
  border: none;
  outline: none;
}
.footer-links a:hover { text-decoration: none; }
.footer-links a:hover .footer-icon { fill: #555; }
.footer-icon {
  width: 24px;
  height: 24px;
  fill: #aaa;
  transition: fill 0.15s;
  display: block;
}
.footer-copy { color: #bbb; }

/* Page header */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 0.5px solid #e0e0e0;
  margin-bottom: 2.5rem;
}
.page-header h1 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #111;
  margin-bottom: 0.5rem;
}
.page-header p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* Post list */
.post-list { display: flex; flex-direction: column; }
.post-card {
  padding: 1.5rem 0;
  border-bottom: 0.5px solid #e0e0e0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}
.post-card-content { display: flex; flex-direction: column; gap: 0.3rem; }
.post-meta {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.post-cat {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.cat-cars     { background: #E6F1FB; color: #0C447C; }
.cat-moto     { background: #FAECE7; color: #993C1D; }
.cat-bikes    { background: #EAF3DE; color: #3B6D11; }
.cat-culture  { background: #EEEDFE; color: #3C3489; }

.post-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}
.post-card h2 a { text-decoration: none; color: #111; }
.post-card h2 a:hover { color: #555; text-decoration: none; }
.post-card .post-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.post-arrow { color: #ccc; font-size: 16px; }

/* Post page */
.post {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid #e0e0e0;
}
.post-header .post-meta { margin-bottom: 0.75rem; }
.post-header h1 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #111;
  margin-bottom: 1rem;
}
.post-intro {
  font-size: 18px;
  color: #444;
  line-height: 1.65;
}
.post-body p {
  font-size: 16px;
  line-height: 1.75;
  color: #111;
  margin-bottom: 1.5rem;
}
.post-body img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 4px;
}
.post-image {
  margin: 2rem 0;
}
.post-image img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
  display: block;
}
.post-image figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: #888;
  margin-top: 0.5rem;
}
.js .post-image {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js .post-image.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .post-image {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.post-body hr {
  border: none;
  border-top: 0.5px solid #e0e0e0;
  margin: 2.5rem 0;
}
.post-comments {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 0.5px solid #e0e0e0;
}
.post-comments h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.25rem;
}
#cusdis_thread iframe {
  display: block;
  overflow: hidden;
}

/* Home */
.home-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center 60%;
  z-index: 0;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}
.home-hero-eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; }
.home-hero-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: 620px;
  margin-bottom: 1.5rem;
}
.home-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
  letter-spacing: 0.04em;
}
.home-hero-cta:hover { border-color: #fff; text-decoration: none; }
.home-latest { padding-top: 3rem; }
.home-latest-head { margin-bottom: 1rem; }

/* About */
.about-content h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin: 2.5rem 0 0.5rem;
}
.about-content p {
  font-size: 16px;
  line-height: 1.75;
  color: #111;
}

@media (max-width: 420px) {
  .home-hero-title {
    font-size: 32px;
  }
  .nav-logo img {
    height: 70px;
  }
  .nav-inner {
    padding: 15px 1.5rem 21px;
  }
}
