/* index.css for /beeblife - Retro Theme */

/* Basic Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Using BBC Micro 8-colour palette approximations */
    --bg-color: #000000;
    --text-main: #ffffff; /* White */
    --text-heading: #ffff00; /* Yellow */
    --action-color: #00ffff; /* Cyan */
    --action-hover: #000000;
    --font-family: "Courier New", Courier, monospace;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Subtle scanline effect */
    background-image: linear-gradient(
        rgba(0, 0, 0, 0) 50%, 
        rgba(255, 255, 255, 0.03) 50%
    );
    background-size: 100% 4px;
}

.container {
    max-width: 640px; /* Classic resolution width feel */
    width: 90%;
    padding: 2rem;
    text-align: center;
    border: 4px solid var(--text-main);
    background-color: var(--bg-color);
    box-shadow: 8px 8px 0px rgba(255, 255, 255, 0.2);
}

header h1 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

main p {
    font-size: 1.2rem;
    margin: 2rem 0;
}

.actions {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--action-color);
    padding: 1rem 2rem;
    border: 2px solid var(--action-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
}

/* Sharp, instant hover state - no modern smooth transitions */
.button:hover, 
.button:focus {
    background-color: var(--action-color);
    color: var(--action-hover);
    outline: none;
}

/* BeebLife: the two editions side by side (append to index.css).
   Uses the theme's colours; the container's 568px leaves each box about 236px inside. */

.editions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

@media (min-width: 40rem) {
    .editions {
        grid-template-columns: 1fr 1fr;
    }
}

.edition {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    border: 2px solid var(--text-main);
}

.edition h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* (main p sets 1.2rem and 2rem margins for the page's text: smaller here) */
.edition .edition-name {
    margin: 0.75rem 0 1rem;
    font-size: 1rem;
    font-weight: bold;
    text-wrap: balance;
}

.edition ul {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.edition li + li {
    margin-top: 0.5rem;
}

/* the buttons at the foot of each box, level with each other */
.edition .actions {
    margin: auto 0 0;
}

.edition .button {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}
