/* jussiautio.com – yhteinen tyylitiedosto */

:root {
  --bg: #0e1014;
  --surface: #171a21;
  --surface-2: #1f232c;
  --border: #2a2f3a;
  --text: #eceef2;
  --muted: #9aa1ad;
  --accent: #e8452c;
  --accent-hover: #ff5b40;
  --radius: 14px;
  --max: 1120px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 88px 0; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.muted { color: var(--muted); }

/* Painikkeet */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* Yläpalkki */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 16, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: 10px 20px; color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; }
  .nav .btn { margin-top: 10px; }
}

/* Hero */

.hero { padding: 96px 0 72px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero .lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  max-width: 34ch;
}

.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.portrait {
  justify-self: center;
  width: min(360px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 200deg, var(--accent), #7a1a10, var(--accent));
  box-shadow: 0 0 80px rgba(232, 69, 44, 0.25);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@media (max-width: 800px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .portrait { grid-row: 1; width: 200px; }
}

/* Luvut */

.stats {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats ul {
  list-style: none;
  margin: 0 auto;
  padding: 36px 20px;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1.1;
}
.stats span { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 800px) {
  .stats ul { grid-template-columns: repeat(2, 1fr); }
}

/* Kortit */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-family: var(--font-head); font-weight: 600; }

a.card { color: inherit; }
a.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card-path { border-top: 3px solid var(--accent); }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Aikajana (Recent & upcoming) */

.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.timeline { list-style: none; margin: 32px 0 0; padding: 0; }

.timeline li {
  display: grid;
  grid-template-columns: 130px 120px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.timeline time { font-family: var(--font-head); font-weight: 600; }
.timeline .type { color: var(--muted); font-size: 0.9rem; }
.timeline .where { color: var(--muted); }

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(232, 69, 44, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

@media (max-width: 700px) {
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* Suositus */

.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.4;
}
.quote blockquote::before {
  content: "“";
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
}
.quote cite { display: block; margin-top: 18px; color: var(--muted); font-style: normal; }

/* Yhteydenottokehotus */

.cta {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(232, 69, 44, 0.18), transparent 70%),
    var(--bg);
}
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }

/* Alapalkki */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Sivun otsikkoalue (alasivut) */

.page-head { padding: 72px 0 32px; }
.page-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* Talks & Engagements */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }

.filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 16px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.year-group { margin-top: 44px; }
.year-group > h2 {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.year-group > h2::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.year-group .timeline { margin-top: 8px; }

.timeline .video { margin-left: 10px; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }

.show-earlier { margin-top: 40px; text-align: center; }
.show-earlier .btn { font: inherit; border: 1px solid var(--border); cursor: pointer; }

/* Alasivujen yhteiset osat */

.page-head .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.section-intro { color: var(--muted); max-width: 64ch; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 36px;
}
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

.facts { list-style: none; padding: 0; margin: 24px 0 0; }
.facts li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--border); }
.facts li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.facts ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.big-number { font-family: var(--font-head); font-size: 2.6rem; color: var(--accent); line-height: 1; }

/* Vaiheet */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(232, 69, 44, 0.15);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); }

.note {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note p:last-child { margin: 0; }

/* Case-kortit */

.case { gap: 6px; }
.case dl { margin: 10px 0 0; }
.case dt { font-family: var(--font-head); font-weight: 600; color: var(--text); margin-top: 12px; }
.case dd { margin: 4px 0 0; color: var(--muted); }

/* Avattavat listat (luentoaiheet) */

.topics { margin-top: 32px; display: grid; gap: 12px; }
.topics details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
}
.topics summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.topics summary::-webkit-details-marker { display: none; }
.topics summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.topics details[open] summary::after { content: "–"; }
.topics summary small { color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.topics ul { list-style: none; margin: 0 0 18px; padding: 0; }
.topics li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--border); }
.topics li span:last-child { color: var(--muted); white-space: nowrap; }

/* Videot */

.video-card { padding: 0; overflow: hidden; }
.video-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
}
.video-card .body { padding: 20px 22px 24px; }
.video-card h3 { font-size: 1.08rem; }
.video-card p { margin: 0; font-size: 0.92rem; }

/* Pelit */

.game { padding: 0; overflow: hidden; }
.game .cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(232, 69, 44, 0.25), transparent 60%),
    var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.game .cover img { width: 100%; height: 100%; object-fit: cover; }
.game .body { padding: 24px 26px 28px; }
.game .role { font-family: var(--font-head); font-weight: 600; color: var(--text); margin-bottom: 8px; }
.game .award { color: var(--text); font-size: 0.92rem; margin: 6px 0 0; }
.game .award::before { content: "★ "; color: var(--accent); }

.games-small .card h3 { margin-bottom: 4px; }

/* Uratarina */

.career { list-style: none; padding: 0; margin: 32px 0 0; border-left: 2px solid var(--border); }
.career li { position: relative; padding: 0 0 32px 28px; }
.career li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.career .years { font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: 0.9rem; }
.career h3 { margin: 2px 0 6px; }
.career p { color: var(--muted); margin: 0; }

/* Esittelyteksti */

.bio { position: relative; }
.bio p { color: var(--text); }
.copy-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  align-self: flex-start;
}
.copy-btn:hover { border-color: var(--accent); }

/* Lomake */

.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.form label span small { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { border: 0; cursor: pointer; font: inherit; font-family: var(--font-head); font-weight: 600; justify-self: start; }
.form .privacy { color: var(--muted); font-size: 0.85rem; margin: 0; }

.form-status { padding: 16px 18px; border-radius: 10px; margin: 0; }
.form-status.ok { background: rgba(60, 180, 110, 0.15); color: #8fe0b0; }
.form-status.error { background: rgba(232, 69, 44, 0.15); color: #ff9a86; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list a, .contact-list .value { font-size: 1.1rem; color: var(--text); }
.contact-list a:hover { color: var(--accent); }

.small-print { color: var(--muted); font-size: 0.88rem; margin-top: 32px; }

/* Kuvat */

.photo-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 72px;
}
.photo-strip img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 800px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img:first-child { grid-column: 1 / -1; }
}

.poster { margin: 0; justify-self: center; max-width: 380px; }
.poster img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.poster figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 10px; text-align: center; }

.wide-photo { margin-top: 0; margin-bottom: 72px; }
.wide-photo img { width: 100%; border-radius: var(--radius); }
.wide-photo figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

.case-img { margin: -30px -30px 18px; width: calc(100% + 60px); max-width: none; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 4 / 3; object-fit: cover; }
