/* Explain: Styling for UI components including cards and a lightbox overlay. */
.site-header {
    background: rgba(255, 252, 253, 0.78);
    backdrop-filter: blur(18px);
}

.nav-link {
    color: var(--text-muted);
    transition: color 300ms ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-nav-link {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding: 0 0.25rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 300ms ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

.mobile-nav-link i {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.eyebrow::before {
    display: inline-block;
    width: 1.8rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.hero-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.about-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.profile-row {
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background: var(--surface-color);
    padding: 1rem 1.25rem;
}

.profile-row dt {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profile-row dd {
    margin: 0.35rem 0 0;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.archive-card {
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: #ffffff;
    padding: 1.75rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.archive-card:hover {
    border-color: var(--glass-border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.archive-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--pink-soft);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.goods-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: #ffffff;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.goods-card:hover {
    border-color: var(--glass-border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.goods-tag {
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: #ffffff;
    padding: 1.5rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.card:hover {
    border-color: var(--glass-border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.75rem;
    border-left: 2px solid var(--pink-soft);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    position: absolute;
    top: 0.35rem;
    left: -2.2rem;
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: 0 0 0 0.3rem var(--pink-soft);
    content: "";
}

.timeline-date {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.gallery-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-color);
    border-radius: 1.75rem;
    background: var(--surface-color);
    padding: 0;
    transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.gallery-item:hover {
    border-color: var(--glass-border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.gallery-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(64, 56, 62, 0.72);
    backdrop-filter: blur(6px);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-loader {
    position: absolute;
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: lightbox-spin 0.8s linear infinite;
}

.lightbox.is-loading .lightbox-loader {
    display: block;
}

@keyframes lightbox-spin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox-image {
    width: min(92vw, 68rem);
    height: min(86vh, 52rem);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition: opacity 300ms ease;
}

.lightbox-image.is-ready {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-color);
    transition: background 300ms ease;
}

.lightbox-close:hover {
    background: #ffffff;
}

@media (max-width: 767px) {
    .hero-frame,
    .about-frame {
        aspect-ratio: 3 / 4;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 300ms ease, gap 300ms ease;
}

.back-link:hover {
    gap: 0.75rem;
    color: var(--primary-color);
}

.wing-badge {
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: var(--pink-soft);
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: 2rem;
}

.card-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.card-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.card-link-hint i {
    transition: transform 300ms ease;
}

.archive-card:hover .card-link-hint i {
    transform: translateX(0.25rem);
}

.note-card {
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: #ffffff;
    padding: 1.75rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.note-card:hover {
    border-color: var(--glass-border);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.note-title {
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
}

.note-body {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
    white-space: pre-line;
}

.note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.write-panel {
    border: 1px solid var(--border-color);
    border-radius: 2.5rem;
    background: var(--surface-color);
    padding: 2rem;
}

.note-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.note-field {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--field-bg);
    color: var(--text-color);
    padding: 0.85rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.note-field::placeholder {
    color: var(--text-muted);
}

.note-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--pink-soft);
}

textarea.note-field {
    min-height: 8rem;
    resize: vertical;
}

.note-feedback {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.note-feedback.is-success {
    color: var(--primary-color);
}

.note-feedback.is-error {
    color: var(--pink-dark);
}

.btn-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: var(--shadow-button);
    transition: transform 300ms ease, background 300ms ease;
}

.btn-note:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-note:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.related-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: border-color 300ms ease, color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.related-chip:hover {
    border-color: var(--glass-border);
    color: var(--primary-color);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.related-chip i {
    color: var(--accent-color);
    font-size: 0.8rem;
}