/* CSS custom properties */
:root {
    --color-bg: #1a1a1a;
    --color-surface: #242424;
    --color-accent: #e8601c;
    --color-text: #e0e0e0;
    --color-text-muted: #555;
}

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

/* Base */
body {
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    /* https://css-tricks.com/preventing-a-grid-blowout/ */
    grid-template-columns: minmax(0, 1fr);
    display: box;
}

/* Hero */
.hero {
    overflow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:
        url("/img/rahvas2.png") no-repeat bottom center/contain,
        url("/img/ttp-logo.png") no-repeat top 10vw right 10% /20%,
        url("/img/splatter-background.png") no-repeat fixed center/cover,
        #ff6600;
    max-width: 100ch;
    margin: auto;
}

.hero__title {
    width: 100%;
    /*position: sticky;*/
    top: 0;
}

/* TEKSTI KUJUL JAOKS
.hero__title {

  margin: 0;
  font-size: 1.75rem;
  font-family: "Impact", "Anton";
  line-height: 0.75;
  text-transform: uppercase;
  text-align: center;

}
.hero_title, span:first-child {
    color: #ffba8f;
    z-index: 1;
    position: relative;
}
.hero_title, span:last-child {
    color: #191919;
    font-size: 5rem;*/

/* Songbook */
.songbook {
    width: 100%;
    max-width: 80ch;
    margin: 0 auto;
    padding: 1rem;
}

/* Song (details element) */
.song {
    background-color: #e0e2db;
    border-radius: 6px;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: #000;
}

/* Song toggle (summary element) */
.song__toggle {
    /*cursor: pointer;*/
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    /*list-style: none;*/
    display: list-item;
    align-items: center;
    gap: 0.5rem;
    overflow-wrap: anywhere;
    word-wrap: break-all;
}

.song:open > .song__toggle {
    font-weight: bold;
}
/*.song__toggle::-webkit-details-marker {
  display: none;
}*/

/*.song__toggle::marker {
  content: "+";
}*/

/*.song__toggle:hover {
    color: var(--color-accent);
}*/

/* Song title */
.song__title {
    color: var(--color-accent);
    padding: 0 1rem;
    font-family: "Impact", "Anton";
    text-transform: uppercase;
    overflow-wrap: anywhere;
    word-wrap: break-all;
}

/* Song author */
.song__author {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    padding: 0 1rem;
}

/* Song lyrics */
.song__lyrics {
    padding: 0rem 1rem 1rem;
}

/* Responsive: tablet/desktop */
@media (min-width: 768px) {
    .hero {
        padding: 2.5rem 0 1.5rem;
    }

    .hero__image {
        max-width: 600px;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .songbook {
        padding: 1.5rem 2rem;
    }

    .song__toggle {
        padding: 1rem 1.25rem;
        font-size: 1.15rem;
    }

    .song__lyrics {
        padding: 0 1.25rem 1.25rem;
        font-size: 1.05rem;
    }
}
