@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700&family=Spline+Sans:wght@400;500;600&display=swap");

:root {
    --ink: #2d4a53;
    --mist: #afb3b7;
    --paper: #f5f4f1;
    --surface: #ffffff;
    --accent: #3f6b73;
    --shadow: 0 20px 50px rgba(29, 46, 52, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Spline Sans", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, rgba(45, 74, 83, 0.12), rgba(175, 179, 183, 0.35)),
        radial-gradient(circle at top left, rgba(45, 74, 83, 0.18), transparent 55%),
        var(--paper);
    color: var(--ink);
    padding: 48px 24px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.65) 0%, transparent 45%),
        repeating-linear-gradient(45deg, rgba(45, 74, 83, 0.06) 0 2px, transparent 2px 10px);
    opacity: 0.25;
    pointer-events: none;
}

.container {
    max-width: 1020px;
    width: 100%;
    margin: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
    padding: 36px 32px 42px;
    border-radius: 18px;
    border: 1px solid rgba(45, 74, 83, 0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.container::after {
    content: "";
    position: absolute;
    inset: auto -25% -45% -25%;
    height: 60%;
    background: radial-gradient(circle at center, rgba(175, 179, 183, 0.35), transparent 70%);
    z-index: -1;
}

h1 {
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: clamp(2rem, 2.4vw + 1.5rem, 3rem);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--ink);
}

p {
    color: rgba(45, 74, 83, 0.75);
    margin-top: 0;
    margin-bottom: 26px;
    font-size: 1rem;
}

.search-area {
    margin: 20px 0 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#keyword {
    flex: 1 1 260px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(45, 74, 83, 0.25);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#keyword:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 74, 83, 0.12);
}

#searchBtn {
    padding: 12px 22px;
    background: var(--ink);
    color: #f5f4f1;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 12px 22px rgba(45, 74, 83, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

#searchBtn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    border-bottom: 1px solid rgba(45, 74, 83, 0.12);
    padding: 12px 14px;
    font-size: 0.9rem;
}

th {
    background: var(--ink);
    color: #f5f4f1;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
}

tbody tr:nth-child(even) {
    background: rgba(175, 179, 183, 0.12);
}

tbody tr:hover {
    background: rgba(45, 74, 83, 0.1);
}

.container > * {
    animation: fadeUp 0.6s ease both;
}

.container > *:nth-child(1) {
    animation-delay: 0.05s;
}

.container > *:nth-child(2) {
    animation-delay: 0.12s;
}

.container > *:nth-child(3) {
    animation-delay: 0.2s;
}

.container > *:nth-child(4) {
    animation-delay: 0.28s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    body {
        padding: 32px 16px;
    }

    .container {
        padding: 28px 20px 34px;
    }

    th,
    td {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}
