/* =========================================================
   PROMPT ARCHIVE
   Global stylesheet
   - Shared styles
   - Top page (.top-page)
   - Detail pages (.detail-page)
   ========================================================= */

/* ===== Base / Common ===== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #2E2E2E;
    color: #F8F0FB;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ===== Header / Common ===== */

header {
    border-bottom: 1px solid rgba(248, 240, 251, 0.15);
    padding: 28px 5%;
}

.header-inner {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-title {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    font-weight: 700;
}

.site-mark {
    color: #8075FF;
}

nav {
    display: flex;
    gap: 24px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

nav a {
    opacity: 0.7;
    transition: 0.2s;
}

nav a:hover {
    opacity: 1;
    color: #8075FF;
}


/* =========================================================
   TOP PAGE
   ========================================================= */

.top-page {
    line-height: 1.7;
}

.top-page .header-inner {
    max-width: 1200px;
}


/* ===== Hero ===== */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 5% 90px;
}

.eyebrow {
    color: #F6BD60;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero h1 span {
    color: #8075FF;
}

.hero-description {
    max-width: 650px;
    margin-top: 30px;
    color: rgba(248, 240, 251, 0.7);
    font-size: 0.95rem;
}


/* ===== Archive ===== */

.archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 100px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(248, 240, 251, 0.15);
    padding-bottom: 15px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.15em;
}

.section-number {
    color: rgba(248, 240, 251, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.prompt-card {
    position: relative;
    display: block;
    padding: 28px;
    background: #2D3A3A;
    border: 1px solid rgba(248, 240, 251, 0.08);
    overflow: hidden;
    transition: 0.25s;
}

.prompt-card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #8075FF;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.25s;
}

.prompt-card:hover {
    transform: translateY(-3px);
    border-color: rgba(128, 117, 255, 0.5);
}

.prompt-card:hover::before {
    transform: scaleX(1);
}

.card-number {
    color: #F6BD60;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.card-type {
    display: inline-block;
    margin-left: 10px;
    color: #8075FF;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.prompt-card h3 {
    margin: 22px 0 12px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.prompt-card p {
    margin: 0;
    color: rgba(248, 240, 251, 0.65);
    font-size: 0.85rem;
}

.card-arrow {
    display: block;
    margin-top: 25px;
    color: rgba(248, 240, 251, 0.35);
    font-size: 0.8rem;
    transition: 0.2s;
}

.prompt-card:hover .card-arrow {
    color: #8075FF;
}


/* =========================================================
   DETAIL PAGES
   ========================================================= */

.detail-page {
    line-height: 1.8;
}

.detail-page .header-inner {
    max-width: 1000px;
}


/* ===== Main ===== */

.detail-page main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 5% 100px;
}


/* ===== Back ===== */

.back-link {
    display: inline-block;
    margin-bottom: 45px;
    color: rgba(248, 240, 251, 0.55);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.back-link:hover {
    color: #8075FF;
}


/* ===== Title ===== */

.meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.number {
    color: #F6BD60;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
}

.type {
    border: 1px solid #8075FF;
    color: #8075FF;
    padding: 3px 9px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.detail-page h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.description {
    max-width: 700px;
    margin: 30px 0 70px;
    color: rgba(248, 240, 251, 0.7);
}


/* ===== Sections ===== */

.section {
    margin-top: 65px;
}

.section-label {
    color: #F6BD60;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    margin-bottom: 20px;
}

.content-box {
    background: #2D3A3A;
    border: 1px solid rgba(248, 240, 251, 0.08);
    padding: 30px;
}

.content-box h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.content-box h3 {
    margin-top: 35px;
    color: #8075FF;
    font-size: 1rem;
}

.content-box ul {
    padding-left: 1.4em;
}

.content-box li {
    margin-bottom: 10px;
}


/* ===== Download ===== */

.download {
    margin-top: 80px;
    padding: 35px;
    border: 1px solid #8075FF;
    text-align: center;
}

.download p {
    margin-top: 0;
    color: rgba(248, 240, 251, 0.6);
    font-size: 0.8rem;
}

.download-button {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 28px;
    background: #8075FF;
    color: #F8F0FB;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    transition: 0.2s;
}

.download-button:hover {
    background: #F6BD60;
    color: #2E2E2E;
}


/* ===== Sample Output ===== */

.sample-box {
    position: relative;
    margin-top: 45px;
    padding: 32px 34px 36px;
    background: #2D3A3A;
    border: 1px solid rgba(248, 240, 251, 0.12);
    border-left: 4px solid #8075FF;
}

.sample-label {
    margin-bottom: 28px;
    color: #F6BD60;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.sample-text {
    color: rgba(248, 240, 251, 0.92);
    font-family:
        "Hiragino Mincho ProN",
        "Yu Mincho",
        "YuMincho",
        serif;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.025em;
}


/* ===== UPDATE ===== */

.update::before {
    content: "UPDATE //";
    color: #F6BD60;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-right: 0.8em;
    vertical-align: 0.08em;
}


/* ===== Archive Divider ===== */

.archive-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 55px 0;
    color: #8075FF;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.archive-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(248, 240, 251, 0.15);
}


/* ===== Footer ===== */

footer {
    border-top: 1px solid rgba(248, 240, 251, 0.15);
    padding: 30px 5%;
    color: rgba(248, 240, 251, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .prompt-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 80px;
    }

}

@media (max-width: 600px) {

    .hero {
        padding: 70px 5% 60px;
    }

    .archive {
        padding-bottom: 70px;
    }

    .prompt-card {
        padding: 24px;
    }

    .detail-page main {
        padding-top: 45px;
    }

    .content-box {
        padding: 22px;
    }

    .download {
        padding: 25px 18px;
    }

    .sample-box {
        padding: 25px 22px 28px;
    }

    .sample-text {
        font-size: 14px;
        line-height: 2;
    }

}
