/* TemplOS vibe: raw, minimal, beautiful in its austerity */

@font-face {
    font-family: "Terminal";
    src: local("Courier New"), local("Consolas"), local("monospace");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: #000;
    color: #fff;
    font-family: "Terminal", monospace;
    font-size: 16px;
    line-height: 1.4;
}

.page {
    width: auto;
    margin: 0 auto;
    padding: 32px 16px;
    min-height: 100vh;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
}

.tanka-header {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

a.media-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.media-row:hover {
    opacity: 0.85;
}

.media-row > * {
    flex: 1;
    min-width: 0;
}

.qr-code {
    display: flex;
    justify-content: center;
}

.qr-code img {
    width: 100%;
    max-width: 128px;
    height: auto;
    aspect-ratio: 1;
    image-rendering: pixelated;
}

.album-art {
    display: flex;
    justify-content: center;
}

.album-art img {
    width: 100%;
    max-width: 180px;
    height: auto;
    aspect-ratio: 1;
    border: 1px solid #fff;
}

.pairing {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.pairing .track {
    color: #fff;
    display: block;
}
.pairing .album {
    color: #fff;
    display: block;
}

.pairing .artist {
    color: #fff;
    display: block;
}
.pairing .volume {
    color: #f00;
    display: block;
}

.bandcamp-player {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.bandcamp-player iframe {
    border: 0;
    width: 100%;
    max-width: 400px;
    height: 120px;
}

.bandcamp-player .private-notice {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 12px;
    border: 1px solid #333;
    width: 100%;
    max-width: 400px;
}

.tanka-body {
    margin: 48px 0;
    text-align: center;
}

.tanka-verse {
    font-size: 24px;
    margin: 8px 0;
    color: #fff;
}

.tanka-verse:nth-child(1) {
    color: #ff6b6b;
}
.tanka-verse:nth-child(2) {
    color: #ffd93d;
}
.tanka-verse:nth-child(3) {
    color: #6bcb77;
}
.tanka-verse:nth-child(4) {
    color: #4d96ff;
}
.tanka-verse:nth-child(5) {
    color: #9b59b6;
}

.commentary {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #aaa;
}

.commentary p {
    margin-bottom: 16px;
}

.commentary .about-tanka {
    /* about the tanka itself */
}

.commentary .about-song {
    /* about listening to the paired song */
}

/* navigation between tankas */
.nav {
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.nav a {
    color: #666;
    text-decoration: none;
}

.nav a:hover {
    color: #fff;
}

/* terminal index page */
.terminal {
    padding: 24px 0;
}

.terminal .prompt {
    color: #0f0;
    margin-bottom: 16px;
}

.ls-output {
    font-size: 14px;
}

.ls-header {
    color: #666;
    margin-bottom: 8px;
}

a.ls-row {
    display: flex;
    gap: 16px;
    padding: 4px 0;
    text-decoration: none;
    color: inherit;
}

a.ls-row:hover {
    background: #111;
}

a.ls-row:hover .ls-name {
    color: #fff;
}

.ls-perms {
    color: #666;
}

.ls-user {
    color: #888;
    min-width: 60px;
}

.ls-date {
    color: #666;
    min-width: 90px;
}

.ls-name {
    color: #4d96ff;
}

/* tanka page navigation */
.tanka-nav {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tanka-nav a {
    color: #666;
    text-decoration: none;
}

.tanka-nav a:hover {
    color: #fff;
}

.nav-prev,
.nav-next {
    min-width: 80px;
}

.nav-prev {
    text-align: left;
}

.nav-index {
    text-align: center;
}

.nav-next {
    text-align: right;
}

/* fragmented poem index color */
.ls-name-poem {
    color: #6bcb77;
}

/* fragmented poem page */
.poem-filename {
    font-size: 11px;
    color: #444;
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.poem-body {
    margin: 0 auto;
    max-width: 480px;
}

.poem-fragment {
    margin-bottom: 48px;
}

.poem-line {
    font-size: 18px;
    color: #ccc;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* error page */
.error {
    color: #f00;
    margin-bottom: 16px;
}

/* age gate overlay */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.age-gate-content {
    max-width: 600px;
    text-align: center;
}

.age-gate-warning {
    color: #f00;
    font-size: 32px;
    margin-bottom: 24px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.age-gate-title {
    font-size: 24px;
    margin-bottom: 32px;
    color: #fff;
}

.age-gate-message {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 32px;
    line-height: 1.6;
}

.age-gate-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.age-gate-button {
    padding: 12px 24px;
    font-family: "Terminal", monospace;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #333;
    background: #111;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.1s;
}

.age-gate-button:hover {
    background: #222;
    color: #fff;
}

.age-gate-button.enter {
    border-color: #4d96ff;
    color: #4d96ff;
}

.age-gate-button.enter:hover {
    background: #4d96ff;
    color: #000;
}

.age-gate-button.exit {
    border-color: #f00;
    color: #f00;
}

.age-gate-button.exit:hover {
    background: #f00;
    color: #000;
}
