/* Petri Räikkönen – petriraikkonen.fi */

:root {
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --ink: #16151a;
  --ink-soft: #4a4740;
  --muted: #7d786d;
  --line: rgba(22, 21, 26, 0.12);
  --night: #131216;
  --night-2: #1c1b20;
  --night-text: #e9e5dc;
  --night-muted: #a39e93;
  --night-line: rgba(233, 229, 220, 0.14);
  --accent: #c8743f;
  --accent-soft: #e4a272;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 0.6em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow { max-width: 860px; }

.eyebrow {
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4em;
}

/* Painikkeet */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.7em;
  font: 500 0.82rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.section-dark .btn-solid { background: var(--night-text); color: var(--night); }
.section-dark .btn-solid:hover { background: var(--accent-soft); }

/* Ylätunniste */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled,
.site-header.nav-open {
  background: rgba(245, 242, 236, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }
.nav-sep { width: 1px; height: 18px; background: var(--line); }
.site-nav .nav-ext { color: var(--muted); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, top 0.3s;
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Hero */
.hero {
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(24px, 4vw, 48px);
  background: linear-gradient(180deg, #fbfaf7 0%, var(--paper) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}
.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 0.4em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-portrait { margin: 0; }
.hero-portrait img {
  width: 100%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 66% 70% at 54% 44%, #000 55%, transparent 92%);
  mask-image: radial-gradient(ellipse 66% 70% at 54% 44%, #000 55%, transparent 92%);
}

/* Osiot */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-dark {
  background: var(--night);
  color: var(--night-text);
}
.section-dark p { color: var(--night-muted); }
.section-dark .eyebrow { color: var(--accent-soft); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p:last-child { color: var(--ink-soft); }

/* Kokoonpanot */
.acts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 32px);
}
.act { text-decoration: none; display: block; }
.act-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  margin-bottom: 18px;
}
.act-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.6s;
}
.act:hover .act-img img { transform: scale(1.04); filter: grayscale(0); }
.act h3 { font-size: 1.35rem; margin-bottom: 0.3em; transition: color 0.2s; }
.act:hover h3 { color: var(--accent); }
.act h3 span { font-size: 0.8em; color: var(--muted); }
.act-static:hover .act-img img { transform: none; filter: grayscale(1) contrast(1.05); }
.act-static:hover h3 { color: inherit; }
.act p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.listen {
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.listen iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 12px;
}

/* Kuva + teksti */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
#amanda-petri .split-media img { object-position: 60% center; }
#kollektiivi .split-media img { object-position: 45% center; }
.split-copy .big {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
}
.section-dark .split-copy .big { color: var(--night-text); }
.split-copy p:not(.big):not(.eyebrow) { color: var(--ink-soft); }
.section-dark .split-copy p:not(.big):not(.eyebrow) { color: var(--night-muted); }

.features { margin: 0; }
.features dt {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--night-text);
  padding-top: 1.1em;
  border-top: 1px solid var(--night-line);
}
.features dd { margin: 0.35em 0 1.4em; color: var(--night-muted); }

.video {
  margin-top: clamp(48px, 7vw, 96px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* DJ / Biisibuffetti */
.dj {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.dj-media { position: sticky; top: calc(var(--header-h) + 32px); }
.dj-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 62% center;
  border-radius: var(--radius);
}
.dj-copy { max-width: 620px; }
.concept {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
  color: var(--accent-soft) !important;
  margin-bottom: 1.4em;
}
.concept span { color: var(--night-text); font-style: italic; font-weight: 300; }
.dj-copy h3 {
  color: var(--night-text);
  margin: 2.2em 0 0.7em;
}
.dj-copy blockquote {
  margin: 2.4em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  color: var(--night-text);
}
.dj-copy .btn { margin-top: 1.4em; }

/* Keikat */
.gig-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  font: 500 0.8rem/1 var(--sans);
  padding: 0.7em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gig-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.gig-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.gig-date { display: flex; flex-direction: column; }
.gig-day {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 300;
}
.gig-day-text { font-size: 1.15rem; line-height: 1.3; }
.gig-month {
  margin-top: 6px;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.gig-meta { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.gig-artist {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45em 0.85em;
  border-radius: 999px;
  margin-bottom: 10px;
  background: var(--paper-2);
  color: var(--ink-soft);
}
.artist-disco-koira { background: #f3dcef; color: #8a2b7c; }
.artist-amanda-petri { background: #f1e2d3; color: #8b4a1c; }
.artist-trubaduuri-petri-raikkonen { background: #e3e8dc; color: #45582f; }
.artist-petri-raikkonen-kollektiivi { background: #dfe3ea; color: #34445e; }
.artist-dj-petri-raikkonen { background: #e8e1f1; color: #4f3a78; }
.gig-venue { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.gig-city { color: var(--ink-soft); }
.gig-note { color: var(--muted); font-size: 0.92rem; }
.gig-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85em 1.3em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.gig-link:hover { background: var(--ink); color: var(--paper); }
.gig-empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}

/* Yhteys */
.contact { text-align: center; }
.contact h2 { max-width: 15em; margin-left: auto; margin-right: auto; }
.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--night-line);
}
.contact-links a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 16px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--night-text);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.contact-links a + a { border-left: 1px solid var(--night-line); }
.contact-links a:hover { color: var(--accent-soft); }
.contact-links span {
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night-muted);
}

/* Alatunniste */
.site-footer {
  background: var(--night);
  color: var(--night-muted);
  border-top: 1px solid var(--night-line);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--night-text); }

/* Tabletti */
@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(245, 242, 236, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-sep { display: none; }
  .nav-toggle { display: block; }

  .acts { grid-template-columns: repeat(2, 1fr); }
  .dj { grid-template-columns: 1fr; }
  .dj-media { position: static; }
  .dj-media img { aspect-ratio: 16 / 10; }
}

/* Puhelin */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 340px; margin: 0 auto -12px; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .acts { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }

  .gig-row { grid-template-columns: 96px 1fr; gap: 6px 16px; align-items: start; }
  .gig-day { font-size: 2rem; }
  .gig-month { white-space: normal; }
  .gig-link { grid-column: 2; justify-self: start; margin-top: 10px; }

  .contact-links { grid-template-columns: 1fr; }
  .contact-links a + a { border-left: 0; border-top: 1px solid var(--night-line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
