/* ============================================================
   hangul.name — Soft Serif Editorial Blog
   Colors: #fdfbf7, #1a1613, #8c8279, #9f1239, #2c2521, #d6cfc7, #c084fc
   Fonts: Cormorant (display), Lato (body), Inter (labels)
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.9;
    color: #2c2521;
    background-color: #fdfbf7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   SECTION 1: INVITE / HERO
   ============================================================ */

.invite {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdfbf7;
    text-align: center;
    padding: 60px 24px;
}

.invite-inner {
    max-width: 600px;
}

.brand-name {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 56px;
    color: #1a1613;
    letter-spacing: 0.02em;
    margin-bottom: 48px;
}

.specimen-display {
    margin-bottom: 40px;
}

.specimen-char {
    font-size: 120px;
    line-height: 1;
    color: #1a1613;
    display: block;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.specimen-char.visible {
    opacity: 1;
    transform: translateY(0);
}

.tagline {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    color: #8c8279;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

.tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

.flourish {
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease 0.8s;
}

.flourish.visible {
    opacity: 1;
}

.flourish-svg {
    width: 120px;
    height: 24px;
}

/* ============================================================
   SECTION 2: NAME STORIES
   ============================================================ */

.stories {
    padding: 80px 24px 100px;
    background-color: #fdfbf7;
}

.name-story {
    max-width: 640px;
    margin: 0 auto 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.name-story.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-header {
    text-align: center;
    margin-bottom: 36px;
}

.story-number {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #8c8279;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 16px;
}

.story-name-korean {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 60px;
    color: #1a1613;
    line-height: 1.1;
    margin-bottom: 8px;
}

.story-name-roman {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #8c8279;
    letter-spacing: 0.1em;
}

.story-body p {
    margin-bottom: 24px;
    color: #2c2521;
}

.story-body p:last-child {
    margin-bottom: 0;
}

.story-body em {
    font-style: italic;
    color: #1a1613;
}

/* Drop Cap */
.drop-cap {
    float: left;
    font-family: 'Cormorant', serif;
    font-size: 48px;
    color: #9f1239;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
    font-weight: 400;
}

/* Story Divider with Diamond */
.story-divider {
    max-width: 640px;
    margin: 56px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1px;
    background-color: #d6cfc7;
}

.diamond {
    width: 8px;
    height: 8px;
    background-color: #d6cfc7;
    transform: rotate(45deg);
    position: absolute;
    border: none;
}

.diamond::before {
    content: '';
    position: absolute;
    inset: -3px;
    background-color: #fdfbf7;
    z-index: -1;
}

/* ============================================================
   SECTION 3: NAME GALLERY
   ============================================================ */

.gallery {
    padding: 100px 24px 120px;
    background-color: #fdfbf7;
    overflow: hidden;
}

.gallery-title {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 44px;
    color: #1a1613;
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-scroll {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 20px 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.name-specimen {
    flex: 0 0 auto;
    width: 180px;
    padding: 40px 24px 28px;
    border: 1px solid #d6cfc7;
    text-align: center;
    scroll-snap-align: center;
    background-color: #fdfbf7;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.name-specimen.visible {
    opacity: 1;
    transform: translateY(0);
}

.name-specimen:hover {
    border-color: #9f1239;
}

.specimen-hangul {
    display: block;
    font-size: 48px;
    color: #1a1613;
    line-height: 1.2;
    margin-bottom: 12px;
}

.specimen-romanization {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #8c8279;
    letter-spacing: 0.1em;
    text-transform: capitalize;
}

/* ============================================================
   SECTION 4: COLOPHON / FOOTER
   ============================================================ */

.colophon {
    padding: 100px 24px 80px;
    background-color: #fdfbf7;
    text-align: center;
}

.colophon-inner {
    max-width: 480px;
    margin: 0 auto;
}

.flourish-footer {
    margin-bottom: 40px;
}

.colophon-text {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 32px;
    color: #1a1613;
    margin-bottom: 16px;
}

.colophon-subtitle {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: #8c8279;
    line-height: 1.8;
    margin-bottom: 24px;
}

.colophon-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: #d6cfc7;
    letter-spacing: 0.08em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .brand-name {
        font-size: 40px;
    }

    .specimen-char {
        font-size: 80px;
    }

    .story-name-korean {
        font-size: 44px;
    }

    .gallery-title {
        font-size: 32px;
    }

    .name-specimen {
        width: 150px;
        padding: 32px 16px 24px;
    }

    .specimen-hangul {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 32px;
    }

    .specimen-char {
        font-size: 64px;
    }

    body {
        font-size: 16px;
    }

    .story-name-korean {
        font-size: 36px;
    }

    .drop-cap {
        font-size: 40px;
    }
}
