@import url("components/card.css");

:root {
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bg-color: #000000;
    --text-color: #f1f1f1;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --link-color: #ffffff;
    --header-bg: #000000;
    --card-bg: #111111;
    --radius: 6px;
    --spacing: 1.5rem;
    --blur-bg: #000000;
    --blur-amount: 0px;
    --footer-ui-height: 73px;
}

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

html,
body {
    font-family: var(--font-family-base);
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    border: none;
    border-radius: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topLeft {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Main */
.middle {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: calc(4.5rem + 41px) 2rem calc(2.5rem + var(--footer-ui-height) + env(safe-area-inset-bottom, 0px));
    background-color: transparent;
}

article {
    display: flex;
    flex-direction: column;
    gap: 1.10rem;
}

section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 9999px;
}

article h2:first-of-type {
    margin-top: 0;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--link-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.1rem 0.3rem;
    margin: -0.1rem -0.3rem;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* Footer */
.bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    min-height: var(--footer-ui-height);
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem calc(1rem + env(safe-area-inset-bottom, 0px));
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-bg);
}

@media (max-width: 768px) {
    .top {
        padding: 1rem 1.5rem;
    }

    .bottom {
        padding: 1rem 1.5rem;
    }

    .middle {
        padding: calc(4.5rem + 41px) 1.5rem calc(2.5rem + var(--footer-ui-height) + env(safe-area-inset-bottom, 0px));
    }

    h2 {
        font-size: 1.5rem;
    }
}