/* ============================================
   mybadge.id — Muji-Minimal Badge Workshop
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #F6F2EA;
    color: #5A5848;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    overflow-x: hidden;
}

/* --- Floating Geometric Accents --- */
.floaters {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floater {
    position: absolute;
    background: #C0B8A8;
    opacity: 0.08;
}

.floater--circle {
    border-radius: 50%;
}

.floater--rect {
    border-radius: 2px;
}

.floater--rounded {
    border-radius: 8px;
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 160px;
    height: 100vh;
    background: #F6F2EA;
    border-right: 1px solid #E0D8CC;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 1.25rem;
    z-index: 100;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.sidebar.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.sidebar__brand {
    margin-bottom: 3rem;
}

.sidebar__logo {
    font-family: 'Righteous', sans-serif;
    font-size: 1.15rem;
    color: #2A2820;
    letter-spacing: 0.02em;
}

.sidebar__nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.sidebar__link {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #5A5848;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background-image: linear-gradient(#2A2820, #2A2820);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.2s ease;
    padding-bottom: 2px;
}

.sidebar__link:hover {
    background-size: 100% 1px;
    color: #2A2820;
}

.sidebar__footer {
    margin-top: auto;
}

.sidebar__footnote {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #C0B8A8;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* --- Main Content --- */
.content {
    margin-left: 160px;
    position: relative;
    z-index: 1;
}

/* --- Workshop (Hero) --- */
.workshop {
    min-height: 100vh;
    display: flex;
    padding: 6rem 4rem 4rem 5rem;
    gap: 4rem;
}

.workshop__intro {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.workshop__title {
    font-family: 'Righteous', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2A2820;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.workshop__title.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.workshop__subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: #8A8878;
    line-height: 1.85;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease 0.6s, transform 0.7s ease 0.6s;
}

.workshop__subtitle.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.workshop__featured-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
}

/* --- Badge Panels --- */
.badge-panel {
    background: #FEFCF6;
    border: 1px solid #E0D8CC;
    padding: 2.5rem 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.badge-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.badge-panel:hover {
    box-shadow: 0 2px 20px rgba(42, 40, 32, 0.04);
}

.badge-panel--featured {
    padding: 3rem 2.8rem;
    max-width: 520px;
}

.badge-panel--featured .badge-svg--primary {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}

.badge-panel--standard {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.6rem 1.8rem;
}

.badge-panel--standard .badge-svg {
    width: 80px;
    height: auto;
}

.badge-panel--accent {
    border-color: #D07060;
    border-width: 1px;
}

.badge-panel__shield {
    flex-shrink: 0;
}

.badge-panel__label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #8A8878;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.4rem;
}

.badge-panel__label--accent {
    color: #D07060;
}

.badge-panel__name {
    font-family: 'Righteous', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #2A2820;
    margin-bottom: 0.5rem;
}

.badge-panel__detail,
.badge-panel__meta {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #8A8878;
    line-height: 1.7;
}

/* --- Collection --- */
.collection {
    padding: 6rem 4rem 6rem 5rem;
}

.collection__header {
    margin-bottom: 3.5rem;
    max-width: 460px;
}

.collection__title {
    font-family: 'Righteous', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #2A2820;
    margin-bottom: 0.6rem;
}

.collection__desc {
    font-weight: 300;
    color: #8A8878;
    font-size: 0.92rem;
}

.collection__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
}

/* Off-center the grid: push it left, leave whitespace on right */
.collection__grid {
    margin-right: 10%;
}

/* --- Craft --- */
.craft {
    padding: 6rem 4rem 6rem 5rem;
    border-top: 1px solid #E0D8CC;
}

.craft__content {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.craft__text {
    flex: 0 0 50%;
    padding-right: 2rem;
}

.craft__title {
    font-family: 'Righteous', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #2A2820;
    margin-bottom: 1.5rem;
}

.craft__body {
    font-weight: 300;
    color: #5A5848;
    margin-bottom: 1.2rem;
    max-width: 420px;
}

.craft__specimen {
    flex: 1;
    padding-top: 0.5rem;
}

/* --- Specimen Card --- */
.specimen {
    background: #FEFCF6;
    border: 1px solid #E0D8CC;
    padding: 2rem 1.8rem;
}

.specimen__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #F6F2EA;
}

.specimen__row:last-of-type {
    border-bottom: none;
}

.specimen__label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #C0B8A8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.specimen__sample--display {
    font-family: 'Righteous', sans-serif;
    font-size: 1.3rem;
    color: #2A2820;
}

.specimen__sample--body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #5A5848;
}

.specimen__sample--mono {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #8A8878;
}

.specimen__divider {
    height: 1px;
    background: #E0D8CC;
    margin: 1.2rem 0;
}

.specimen__colors {
    display: flex;
    gap: 0.6rem;
}

.specimen__swatch {
    width: 28px;
    height: 28px;
    border-radius: 2px;
    border: 1px solid #E0D8CC;
}

/* --- About --- */
.about {
    padding: 6rem 4rem 5rem 5rem;
    border-top: 1px solid #E0D8CC;
}

.about__inner {
    max-width: 440px;
}

.about__title {
    font-family: 'Righteous', sans-serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #2A2820;
    margin-bottom: 1.2rem;
}

.about__text {
    font-weight: 300;
    color: #5A5848;
    margin-bottom: 2rem;
    max-width: 400px;
}

.about__mark {
    margin-bottom: 1.5rem;
}

.about__shield {
    width: 48px;
    height: auto;
}

.about__footnote {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #C0B8A8;
    letter-spacing: 0.08em;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .collection__grid {
        grid-template-columns: repeat(2, 1fr);
        margin-right: 0;
    }

    .craft__content {
        flex-direction: column;
        gap: 3rem;
    }

    .craft__text {
        flex: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: 1rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid #E0D8CC;
        transform: translateX(0);
        opacity: 1;
    }

    .sidebar.is-visible {
        transform: translateX(0);
    }

    .sidebar__nav {
        flex-direction: row;
        gap: 1.2rem;
    }

    .sidebar__footer {
        display: none;
    }

    .sidebar__brand {
        margin-bottom: 0;
        margin-right: 2rem;
    }

    .content {
        margin-left: 0;
    }

    .workshop {
        flex-direction: column;
        padding: 4rem 1.5rem 3rem;
        gap: 2.5rem;
        min-height: auto;
    }

    .workshop__intro {
        flex: none;
        padding-right: 0;
    }

    .collection {
        padding: 4rem 1.5rem;
    }

    .collection__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .craft {
        padding: 4rem 1.5rem;
    }

    .about {
        padding: 4rem 1.5rem 3rem;
    }
}

@media (max-width: 480px) {
    .collection__grid {
        grid-template-columns: 1fr;
    }
}
