:root {
    --sand: #f4e2be;
    --sunset: #ff6f61;
    --midnight: #1f1b2c;
    --mirage: #3a264a;
    --mint: #88ffd6;
    --text: #201b2d;
    --panel: #ffffffee;
    --panel-alt: #271f35e0;
    --panel-alt-text: #f4e2be;
    --border: rgba(32, 27, 45, 0.15);
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #fcd9c0 0%, #f1b18a 30%, #1f1b2c 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem clamp(1.5rem, 5vw, 6rem);
    color: #fff;
}

.hero__text h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin: 0.2em 0;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.hero__pretitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero__lead {
    max-width: 32rem;
}

.hero__sigil {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(3rem, 10vw, 6rem);
    opacity: 0.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1.6rem;
    background: var(--mint);
    color: #142018;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

main {
    padding: 0 clamp(1.5rem, 5vw, 6rem) 4rem;
}

.panel {
    background: var(--panel);
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.panel--alt {
    background: var(--panel-alt);
    color: var(--panel-alt-text);
}

.panel__lead {
    margin-top: -0.5rem;
    opacity: 0.8;
}

h2 {
    margin-top: 0;
    font-family: 'Spectral', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.vibes article {
    padding: 1.6rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.vibes article {
    background: rgba(255, 255, 255, 0.8);
}

.subject-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.8rem;
    border-radius: 1.2rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-card:hover,
.subject-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.subject-card h3 {
    margin-top: 0;
}

.subject-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.subject-card li {
    margin-bottom: 0.4rem;
}

.subject-card__cta {
    font-weight: 600;
    color: var(--sunset);
}

ol {
    margin: 0;
    padding-left: 1.3rem;
}

.footer {
    padding: 2rem;
    text-align: center;
    color: #f4e2be;
    background: rgba(10, 8, 18, 0.8);
}

.footer a {
    color: var(--mint);
}

.subject-body {
    background: linear-gradient(135deg, #150f24 0%, #431a2f 45%, #f1b18a 100%);
    color: #fdf8f1;
}

.subject-body .panel {
    color: var(--text);
}

.subject-body .panel.panel--alt {
    color: var(--panel-alt-text);
}

.subject-hero {
    padding: 3rem clamp(1.5rem, 6vw, 6rem) 2rem;
}

.subject-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 0.3em;
}

.crumb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--mint);
    font-weight: 600;
    margin-bottom: 1rem;
}

.subject-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    opacity: 0.8;
}

.board {
    margin-top: -2rem;
}

.board__header {
    margin-bottom: 1.5rem;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.post {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    padding: 1.8rem;
    border-radius: 1.2rem;
    border: 1px solid var(--border);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.post header h3 {
    margin: 0.2rem 0 0.5rem;
}

.post__tag {
    display: inline-flex;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sunset);
}

.post__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #5c536c;
}

.edit-helper details {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
}

.edit-helper summary {
    cursor: pointer;
    font-weight: 600;
}

.edit-helper pre {
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.35);
    color: var(--mint);
    padding: 1rem;
    border-radius: 0.8rem;
}

.edit-helper code {
    font-family: 'Space Grotesk', Consolas, monospace;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .panel {
        padding: 1.8rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }
}
