/* Layout & Typography */
html { 
    margin: 1em auto; 
    max-width: 42em; 
    font-family: sans-serif; 
    line-height: 1.5;
}
body { 
    margin: auto 8px 20px 8px; 
    background: #fff; 
    color: #000;
}

/* Header and Navigation (Table-based) */
header nav table { width: 100%; border-collapse: collapse; border}
.logo img { max-width: 3em; margin: 0; }
.logo pre { background-color: transparent; border: none; padding: 0; margin: 0;
    overflow: hidden; height: auto; width: auto; line-height: 1; letter-spacing: 0;
    font-family: monospace; display: inline-block; vertical-align: middle; }
.logo a { color: #000 !important; text-decoration: none; display: inline-block; }
.logo a:hover { color: #000; background-color: yellow; text-decoration: none; }
.links { text-align: right; font-weight: bold; }
.links a { font-weight: bold; color: black; margin-left: 10px; }


/* Content Headers */
h1 { font-size: 1.8em; text-align: center; margin: 1em 0; }
h2 { font-size: 1.6em; margin-top: 1.5em; }
h3 { font-size: 1.05em; }

/* Metadata line */
.meta { 
    text-align: center; 
    font-style: italic; 
    color: #555; 
    margin-bottom: 2em; 
}

/* Links */
a { color: #000; text-decoration: underline; }
a:hover { background-color: yellow; }

/* Code Blocks */
pre {  
    background-color: #eeeeee; 
    border: 2px solid #000;
    padding: 6px; 
    overflow-x: auto; 
}
code { background-color: #eeeeee; padding: 2px; font-family: monospace; }
pre code { padding: 0px; background: none; }

/* Tables (Post lists/File lists) */
table { width: 100%; border-collapse: collapse; }
#log tr:hover td, #files tr:hover td { background-color: #eeeeee; }
#files td { font-family: monospace; font-size: 1.1em; padding: 4px 0; }

/* Footer */
footer { margin-top: 2em; border-top: 1px solid #ccc; padding-top: 1em; }
footer table { font-style: italic; width: 100%; }
.hosted { text-align: right; }

/* Print settings */
@media print {
  .page-break { break-before: always; }
  img, p { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
}

/* Song Gallery Stuff */
.song-gallery {
    display: grid;
    /* Fits roughly 3 columns in your 42em max-width */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1em;
    margin: 2em 0;
}

.song-card {
    background: #fff;
    border: 2px solid #000; /* Match pre block border */
    padding: 8px; /* Give it that nested border look */
    display: flex;
    flex-direction: column;
}

.song-card:hover {
    background-color: #eeeeee; /* Match table hover effect */
    outline: 2px solid yellow; /* Hint at the link hover style */
}

.song-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 1px solid #000; /* Hard edge on art */
    margin-bottom: 8px;
}

.song-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.song-title {
    font-weight: bold;
    font-size: 1em;
    line-height: 1.2;
    display: block;
}

.artist-name {
    color: #555; /* Match .meta color */
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 12px;
}

.song-link {
    margin-top: auto;
    text-align: center;
    font-weight: bold;
    font-family: monospace; /* Match your logo/code style */
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #000;
    padding: 4px;
    background: #fff;
    color: #000;
}

.song-link:hover {
    background-color: yellow; /* The classic Verso 2 hover */
}
