:root {
    --bg-color: #fff;
    --text-color: #000;
    --heading-color: #000;
    --accent-color: #000;
    --link-color: #f00;
    --link-hover-color: #111;
    --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    color: var(--heading-color);
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    font-size: 1.25rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    cursor: pointer !important;
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: border-color 0.1s ease, color 0.1s ease;
}

a:hover {
    color: var(--link-hover-color);
    border-bottom-color: var(--link-hover-color);
}

ol {
    list-style: none;
    margin-bottom: 2rem;
    
    li::before {
        content: "•";
    }
}

li {
    cursor: pointer !important;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
}

li::before {
    color: #444;
    margin-right: 0.75rem;
    font-size: 0.8em;
}


/* Specific tweaks for the header section */
body>p:first-of-type {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Adjusting the "text" tag usage to be block level or replacing it in HTML would be better, 
   but for now we style it to look like a sub-header or description */
text {
    display: block;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Tabs */
.tabs {
    cursor: pointer !important;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5rem;
    cursor: pointer;
}

.tab-btn {
    background: none;
    border: none;
    color: #666;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.1s ease;
    position: relative;
}

.tab-btn:hover {
    color: #bbb;
}

.tab-btn.active {
    color: var(--accent-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    /* Match parent padding-bottom */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sub-tabs */
.sub-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 0.25rem;
}

.sub-tab-btn {
    background: none;
    border: none;
    color: #666;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.1s ease;
    position: relative;
}

.sub-tab-btn:hover {
    color: #bbb;
}

.sub-tab-btn.active {
    color: var(--accent-color);
}

.sub-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sub-tab-content.active {
    display: block;
}