/* Innocent Baby Style
 * (c) Johannes Schmidt 2025 */

:root {
  color-scheme: light dark;
  --line-height: 3ex;
}

@media (prefers-color-scheme: light) {
  :root {
    --background-color: #fefefe;
    --text-color: #122111;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #000;
    --text-color: #efe;
  }
}

html {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  line-height: var(--line-height);
  color: var(--text-color);
  background-color: var(--background-color);
  height: 100%;
}
body {
  margin: 0;
}
.columns {
  margin: 6ex auto;
  max-width: 1600px;
}
@media (min-width: 84em) {
  .columns {
    column-count: 2;
  }
}
.banner {
  margin: 0 auto;
  display: block;
  width: 100%;
  max-width: 1600px;
}
.banner.full {
  max-width: none;
}
.center {
  margin: 6ex auto;
  max-width: 50em;
}
@media (max-width: 800px) {
  .center {
    margin: 0;
  }
}
p {
  margin: 0;
  max-width: 42em;
  padding: 3ex 3vw;
}
strong {
  font-size: 2em;
}
nav {
  position: absolute;
  top: 0.5ex;
  left: 0.5em;
  z-index: 1;
  font-size: 0.8em;
}
#ib {
  position: fixed;
  bottom: 1ex;
  right: 1em;
  cursor: pointer;
}
.song article {
  padding: 3ex 0;
}
.song header {
  display: flex;
  background-color: var(--text-color);
  color: var(--background-color);
}
@media (max-width: 800px) {
  .song header {
    flex-direction: column;
  }
}
.song header > div {
  display: flex;
}
.song header h1 {
  flex: 1;
}
.song header a {
  color: white;
  text-decoration: none;
}
.song header a:hover {
  color: lightblue;
}
.song header h1 {
  margin: 0;
  padding: 0 1em;
  font-size: 1em;
  line-height: 40px;
}
.song header button {
  padding: 0 1em;
}
.song header audio {
  flex: 1;
  object-fit: contain;
}
.song .formatted-tab {
  line-height: var(--line-height);
  columns: 36em;
  column-rule: solid 1px;
  column-gap: 0;
  column-fill: balance;
  margin: 6ex 0 3ex 0;
  font-size: 1.1em;
}
.song .formatted-tab p {
  border-left: 0.5em solid transparent;
  font-size: 0.9em;
  white-space: pre;
  min-height: var(--line-height);
  margin: 0;
  padding: 0 1em;
}
@media (min-width: 1200px) {
  .song .formatted-tab p {
    font-size: 1.1em;
  }
}
.song .formatted-tab .chords {
  color: red;
  font-weight: 100;
  counter-increment: section;
  cursor: default;
}
.song .formatted-tab .chords::before {
  content: counter(section);
  padding-right: 4em;
}
.song .formatted-tab .chords:focus,
.song .formatted-tab .chords:focus + .lyrics {
  outline: none;
  font-weight: bold;
  border-left-color: red;
}
#metronome {
  background: none;
  border: none;
  color: white;
}
#metronome:hover {
  color: lightblue;
}
