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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) var(--bg-0);
}

body {
    font-family: var(--sans);
    font-size: 1.5rem;
    line-height: 1.65;
    color: var(--text-0);
    background: var(--bg-0);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--blue-dim); }

img { display: block; max-width: 100%; }

.wrap {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.sec {
    padding: 9rem 0;
    border-bottom: 1px solid var(--border);
}

.sec:last-of-type {
    border-bottom: none;
}

.sec-head {
    margin-bottom: 3.6rem;
}

.sec-tag {
    font-family: var(--mono);
    font-size: 1.15rem;
    color: var(--blue);
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    display: block;
}

.sec-tag::before {
    content: '// ';
    opacity: 0.4;
}

.sec-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-0);
    line-height: 1.2;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal].visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 640px) {
    .wrap { padding: 0 1.4rem; }
    .sec { padding: 6rem 0; }
    .sec-title { font-size: 2rem; }
}

@media (min-width: 1921px) {
    html { font-size: 66%; }
}

@media (min-width: 2560px) {
    html { font-size: 70%; }
}
