:root {
    color-scheme: light;
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #18202e;
    --muted: #6b7280;
    --line: #e7e9ee;
    --purple: #6a28b6;
    --shadow-soft: 0 6px 18px rgba(24, 32, 46, 0.08);
    --radius: 18px;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
}

.page-shell {
    background: radial-gradient(circle at 15% 0%, rgba(142, 76, 255, 0.12), transparent 45%), radial-gradient(circle at 90% 25%, rgba(255, 141, 64, 0.12), transparent 50%), var(--bg);
}

.container {
    width: min(1000px, 92vw);
    margin: 0 auto;
}

.hero {
    background: linear-gradient(120deg, #542099 0%, #7325a3 35%, #b5465a 70%, #d06a34 100%);
    padding: 32px 0 48px;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero .brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero .logo {
    width: 66px;
    height: 66px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero .logo svg {
    width: 54px;
    height: 54px;
}

.hero .brand-title {
    margin: 0 0 6px;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.hero .brand-subtitle {
    margin: 0;
    opacity: 0.85;
    font-size: 0.98rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: -30px;
    padding-bottom: 70px;
    position: relative;
    z-index: 2;
}

.history-card {
    display: block;
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.history-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--purple);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 32, 46, 0.12);
    border-color: rgba(106, 40, 182, 0.3);
}

.history-card:hover::after {
    opacity: 1;
}

.history-card h2 {
    font-family: "Sora", sans-serif;
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.history-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 12px;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-tag {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f2f6;
    color: #5c6470;
}

.history-tag.active {
    background: #e8f6ee;
    color: #1c7b49;
}

.history-tag.base {
    background: #fff1e6;
    color: #d75413;
}

@media (max-width: 640px) {
    .hero .brand {
        flex-direction: column;
        align-items: flex-start;
    }
}