@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-base: #121018;
    --bg-panel: #1a1724;
    --bg-card: #211d2e;
    --border: #322c45;
    --text-primary: #f7f3ff;
    --text-muted: #b6a9cb;
    --accent: #a33cad;
    --accent-soft: rgba(163, 60, 173, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

#container {
    width: min(1200px, calc(100% - 2rem));
    margin: 1.5rem auto;
    padding: 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
}

#topContent {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1rem 1.5rem;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
}

#pageTitle {
    margin: 0.3rem 0;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.1;
}

.introText {
    margin: 0.4rem auto 0;
    max-width: 720px;
    color: var(--text-muted);
}

.mainContent {
    margin-top: 1.2rem;
}

.socialSection {
    margin-bottom: 1.4rem;
}

.sectionHeading {
    margin: 0 0 0.85rem;
    color: var(--accent);
    font-size: clamp(1.1rem, 2.5vw, 1.65rem);
    letter-spacing: 0.02em;
    font-weight: 600;
}

#socialPills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tile-bg, #211d2e) 18%, var(--bg-card));
    color: var(--tile-text, var(--text-primary));
    font-size: 0.95rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pill:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #cb79d4;
}

.jsWarning {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #5a3a29;
    background: #2e2019;
}

.jsWarning h2 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.jsWarning.is-hidden {
    display: none;
}

.category {
    margin-bottom: 1.2rem;
}

.mainContent .tileContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
}

.mainContent .tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
}

.mainContent .tile.fullRow {
    grid-column: 1 / -1;
}

.mainContent .tile p {
    margin: 0.6rem 0;
}

.mainContent .tile img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.mainContent .tileButton {
    display: block;
    background: color-mix(in srgb, var(--tile-bg, #211d2e) 22%, #1a1724);
    border: 1px solid color-mix(in srgb, var(--tile-bg, #322c45) 35%, var(--accent));
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    color: var(--tile-text, var(--text-primary));
    position: relative;
}

.mainContent .tile header h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 600;
    color: #f2f4f8;
}

.mainContent .tile .tileLanguages {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mainContent header time {
    position: absolute;
    top: 0.6rem;
    right: 0.65rem;
    color: #d5a1de;
    font-size: 0.73rem;
}

.tileHeaderNote {
    color: var(--text-muted);
}

ul.tileLinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0 0;
    padding: 0.8rem 0 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

ul.tileLinks li {
    margin: 0;
}

.tileLinkButton {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--tile-bg, #191624) 20%, #171420);
    color: var(--tile-text, var(--text-primary));
    font-size: 0.88rem;
}

.tileLinkButton:hover {
    border-color: var(--accent);
}

.tileLinkButton.is-static {
    cursor: default;
    border-style: dashed;
}

.tileLinkButton.is-static:hover {
    transform: none;
}

.tileLinkNote {
    color: var(--text-muted);
    font-size: 0.8rem;
}

#footCenter {
    text-align: center;
    display: block;
    margin-top: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Tile color utility classes (non-green palette) */
.tile-tone-01 { --tile-bg: #f6adb6; --tile-text: #f2f4f8; }
.tile-tone-02 { --tile-bg: #f4c8d8; --tile-text: #f2f4f8; }
.tile-tone-03 { --tile-bg: #ef9ab4; --tile-text: #f2f4f8; }
.tile-tone-04 { --tile-bg: #e58aac; --tile-text: #f2f4f8; }
.tile-tone-05 { --tile-bg: #d572a3; --tile-text: #f2f4f8; }
.tile-tone-06 { --tile-bg: #c95a9a; --tile-text: #f2f4f8; }
.tile-tone-07 { --tile-bg: #b94f93; --tile-text: #f2f4f8; }
.tile-tone-08 { --tile-bg: #a847a8; --tile-text: #f2f4f8; }
.tile-tone-09 { --tile-bg: #9645b6; --tile-text: #f2f4f8; }
.tile-tone-10 { --tile-bg: #8250c9; --tile-text: #f2f4f8; }
.tile-tone-11 { --tile-bg: #6f58d3; --tile-text: #f2f4f8; }
.tile-tone-12 { --tile-bg: #5f67dc; --tile-text: #f2f4f8; }
.tile-tone-13 { --tile-bg: #5576de; --tile-text: #f2f4f8; }
.tile-tone-14 { --tile-bg: #4d85d8; --tile-text: #f2f4f8; }
.tile-tone-15 { --tile-bg: #4f93cf; --tile-text: #f2f4f8; }
.tile-tone-16 { --tile-bg: #5aa1c3; --tile-text: #f2f4f8; }
.tile-tone-17 { --tile-bg: #66adc0; --tile-text: #f2f4f8; }
.tile-tone-18 { --tile-bg: #74b8cc; --tile-text: #f2f4f8; }
.tile-tone-19 { --tile-bg: #8ec1d6; --tile-text: #f2f4f8; }
.tile-tone-20 { --tile-bg: #a7cae0; --tile-text: #f2f4f8; }
.tile-tone-21 { --tile-bg: #d9b0f2; --tile-text: #f2f4f8; }
.tile-tone-22 { --tile-bg: #c89ae7; --tile-text: #f2f4f8; }
.tile-tone-23 { --tile-bg: #b682dc; --tile-text: #f2f4f8; }
.tile-tone-24 { --tile-bg: #a26ad1; --tile-text: #f2f4f8; }
.tile-tone-25 { --tile-bg: #8f56c2; --tile-text: #f2f4f8; }
.tile-tone-26 { --tile-bg: #7f49b4; --tile-text: #f2f4f8; }
.tile-tone-27 { --tile-bg: #f0b9a0; --tile-text: #f2f4f8; }
.tile-tone-28 { --tile-bg: #e39b7f; --tile-text: #f2f4f8; }
.tile-tone-29 { --tile-bg: #d48269; --tile-text: #f2f4f8; }
.tile-tone-30 { --tile-bg: #c56d63; --tile-text: #f2f4f8; }

@media (max-width: 700px) {
    #container {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        padding: 0.8rem;
    }

    .mainContent .tileContainer {
        grid-template-columns: 1fr;
    }
}
