/* Finnish Rally Site - My Summer Car inspired style */
/* Rustic, rural Finland, old cars, gravel roads, summer forests */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto+Mono:wght@400;700&display=swap');

:root {
  --bg-dark: #1a1612;
  --bg-panel: #2a241c;
  --wood: #5c4033;
  --wood-light: #8b6914;
  --accent-green: #3d5c2e;
  --accent-blue: #2c4a6e;
  --text: #e8e0d5;
  --text-dim: #a89f8f;
  --highlight: #d4a017;
  --rust: #a0522d;
  --mud: #4a3728;
  --border: #3d3428;
}

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

body {
  font-family: 'Roboto Mono', 'Courier New', monospace;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  background-image: 
    radial-gradient(ellipse at top, #2a241c 0%, transparent 60%),
    linear-gradient(180deg, #1a1612 0%, #0f0d0a 100%);
  min-height: 100vh;
}

/* Header */
header {
  background: linear-gradient(180deg, var(--wood) 0%, var(--mud) 100%);
  border-bottom: 4px solid var(--highlight);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1rem;
  color: var(--highlight);
  text-shadow: 2px 2px 0 #000;
  text-decoration: none;
}

.logo span {
  color: var(--text);
  font-size: 0.7rem;
  display: block;
  margin-top: 0.3rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border: 2px solid transparent;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  border-color: var(--highlight);
  background: rgba(212, 160, 23, 0.15);
  color: var(--highlight);
}

/* Main */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  background: var(--bg-panel);
  border: 3px solid var(--border);
  border-radius: 4px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}

.hero h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: var(--highlight);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 0 #000;
  line-height: 1.4;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border: 4px solid var(--wood);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
  margin: 1.5rem auto;
  display: block;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1rem;
  color: var(--highlight);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-green);
  text-shadow: 2px 2px 0 #000;
}

h3 {
  color: var(--highlight);
  margin: 1.5rem 0 0.6rem;
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-panel);
  border: 3px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  border-color: var(--highlight);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid var(--wood);
  background: #111;
}

.card-body {
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

/* Content blocks */
.content-block {
  background: var(--bg-panel);
  border: 3px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.content-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border: 3px solid var(--wood);
}

/* Video embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border: 3px solid var(--wood);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
footer {
  background: var(--mud);
  border-top: 4px solid var(--highlight);
  text-align: center;
  padding: 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a {
  color: var(--highlight);
}

/* Utility */
.note {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.5rem;
}

.badge {
  display: inline-block;
  background: var(--accent-green);
  color: #fff;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  margin-right: 0.3rem;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 600px) {
  .logo {
    font-size: 0.9rem;
  }
  nav a {
    font-size: 0.8rem;
  }
  .hero h1 {
    font-size: 1rem;
  }
}