/* ----------------------------------------------------
   GLOBAL BASE (inherits from home.css)
---------------------------------------------------- */

body {
    background: #111;
    color: #eee;
    font-family: "Space Grotesk", sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 4rem;
}

/* ----------------------------------------------------
   PAGE HEADER
---------------------------------------------------- */

.letters-header {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.letters-header .eyebrow {
    font-family: var(--font-mono, monospace);
    font-size: 0.9rem;
    color: #ccc;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.letters-header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0.4rem;
}

.letters-header .subhead {
    font-size: 1.1rem;
    color: #bbb;
    margin-top: 0.6rem;
}

/* ----------------------------------------------------
   A–Z GRID
---------------------------------------------------- */

.letters-grid {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 18px;
}

.letter-card {
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 8px;

    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.8rem;
    font-weight: 700;
    color: #eee;
    text-decoration: none;

    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.letter-card:hover {
    background: #222;
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(255, 0, 120, 0.45);
}

/* ----------------------------------------------------
   A–Z GRID (used by letters.html)
---------------------------------------------------- */

.history-block {
    margin-top: 2rem;
}

.history-heading {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.az-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 14px;
}

.az-card {
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 8px;

    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    text-decoration: none;
    color: #eee;

    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.az-card:hover {
    background: #222;
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(255, 0, 120, 0.45);
}

.az-letter {
    font-size: 1.8rem;
    font-weight: 700;
}

.az-meta {
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------
   LETTER DETAIL PAGE (optional)
---------------------------------------------------- */

.letter-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.letter-section h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.letter-section p {
    font-size: 1.1rem;
    color: #ccc;
    text-align: center;
    margin-bottom: 2rem;
}

/* ----------------------------------------------------
   TRACKLIST (optional for A–Z pages)
---------------------------------------------------- */

.tracklist {
    margin-top: 2rem;
    border-top: 1px solid #222;
}

.track-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #222;
}

.track-row span {
    font-family: var(--font-mono, monospace);
    font-size: 0.95rem;
    color: #ddd;
}

/* ----------------------------------------------------
   BACK LINK
---------------------------------------------------- */

.letters-back {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;

    display: flex;
    align-items: center;
    justify-content: center;
}

.letters-back a {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #eee;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;

    border: 1px solid #222;
    border-radius: 6px;
    background: #1a1a1a;

    transition: background 0.2s ease, transform 0.2s ease;
}

.letters-back a:hover {
    background: #222;
    transform: translateY(-3px);
}
