/* kimmoihanus.com - plain HTML prototype. One file, no build step. */
:root {
  --bg: #0a0a0a; --panel: #141414; --line: #262626;
  --text: #ededed; --muted: #9a9a9a; --accent: #e8622c;
  --max: 1200px; --gap: clamp(12px, 2vw, 24px);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

/* header / footer */
.top { max-width: var(--max); margin: 0 auto; padding: 22px var(--gap); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top .name { font-weight: 900; letter-spacing: -.02em; text-decoration: none; font-size: 18px; }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.foot { max-width: var(--max); margin: 96px auto 0; padding: 32px var(--gap) 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--text); }

/* type */
h1 { font-size: clamp(40px, 7vw, 88px); line-height: .95; letter-spacing: -.035em; font-weight: 900; margin: 8px 0 20px; }
h2 { font-size: 24px; letter-spacing: -.01em; margin: 40px 0 12px; }
.kicker, .label { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0; }
.label { color: var(--muted); margin-bottom: 18px; }
.lede { font-size: 19px; color: #cfcfcf; max-width: 62ch; }
.more { margin-top: 16px; font-size: 14px; display: flex; gap: 20px; }
.more a { text-decoration: none; color: var(--muted); } .more a:hover { color: var(--text); }

/* hero: moving clip + latest release */
.hero { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 24px 0 40px; }
.hero-media img.hero-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.hero-media video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 6px; background: var(--panel); }
.hero .next { color: var(--muted); font-size: 14px; margin-top: 14px; }
.sp { width: 100%; border: 0; border-radius: 12px; margin-top: 8px; }

.band { padding: 40px 0; border-top: 1px solid var(--line); }

/* grids */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.covers.small { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.videos.two { grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap); }
.scores.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.project, .cover, .score { display: block; text-decoration: none; }
.project img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; filter: saturate(.9); transition: filter .2s, transform .2s; }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; transition: transform .2s; }
.score img { width: 100%; aspect-ratio: 612/792; object-fit: cover; object-position: top; background: #fff; border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s; }
.project:hover img, .cover:hover img, .score:hover img { transform: translateY(-3px); }
.cap { display: flex; flex-direction: column; margin-top: 10px; }
.cap b { font-weight: 700; } .cap i { font-style: normal; color: var(--muted); font-size: 13px; }
.covers.small .cap b { font-size: 13px; } .covers.small .cap i { display: none; }

/* click-to-play youtube */
.yt { margin: 0; }
.yt-play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt-play:hover img { opacity: 1; }
.yt-btn { position: absolute; inset: 50% auto auto 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); background: rgba(0,0,0,.7); border-radius: 12px; }
.yt-btn::after { content: ""; position: absolute; left: 26px; top: 13px; border: 9px solid transparent; border-left: 15px solid #fff; }
.yt iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 6px; }
.yt figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* music hub */
.page-head { padding: 32px 0 24px; }
.artist-row { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.artist-head h2 { margin: 0 0 8px; font-size: 30px; font-weight: 900; } .artist-head h2 a { text-decoration: none; }
.artist-head p { color: var(--muted); margin: 0 0 8px; }

/* text pages */
.text { max-width: 760px; }
.prose { max-width: 720px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li i { font-style: normal; color: var(--muted); font-size: 14px; }
.list time { color: var(--muted); font: 13px var(--mono); white-space: nowrap; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 24px 0; font-size: 15px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.disco { width: 100%; border-collapse: collapse; font-size: 15px; }
.disco th, .disco td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); }
.disco th { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* score detail */
.score-page { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: clamp(24px, 4vw, 56px); padding: 24px 0; align-items: start; }
.score-preview img { width: 100%; background: #fff; border-radius: 3px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.score-page h1 { font-size: clamp(36px, 5vw, 64px); }
.actions { display: flex; gap: 12px; margin: 24px 0; }
.btn { display: inline-block; padding: 12px 20px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; border-radius: 6px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.score-page .yt, .score-page .sp { margin-top: 24px; }

@media (max-width: 820px) {
  .hero, .score-page, .artist-row { grid-template-columns: 1fr; }
  .hero-media { max-width: 280px; }
  .projects, .videos, .videos.two { grid-template-columns: 1fr; }
  .covers { grid-template-columns: repeat(2, 1fr); }
  .covers.small { grid-template-columns: repeat(3, 1fr); }
  .top nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }

/* ported text pages (about, work, tools, archive, graphics, posts) */
.legacy { max-width: 760px; }
.legacy img { height: auto; border-radius: 6px; }
.legacy h1 { font-size: 36px; margin: 8px 0 16px; }
.legacy h2 { margin-top: 40px; }
.legacy a { text-decoration: underline; text-underline-offset: 3px; }
.legacy .flex { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.legacy .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.legacy pre, .post pre { overflow-x: auto; padding: 12px; background: #111; border-radius: 6px; font-size: 13px; }
.post img { height: auto; border-radius: 6px; margin: 16px 0; }
.post h2 { margin-top: 40px; }
.post blockquote { border-left: 3px solid var(--line); margin: 16px 0; padding-left: 16px; color: #cfcfcf; }
