* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    border-radius: 0;
    background: none;
}

@font-face {
    font-family: 'LF';
    src: url('../assets/LF-Serif-Roman-Var.woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'LF';
    src: url('../assets/LF-Serif-Italic-VF.woff2');
    font-weight: 400;
    font-style: italic;
}

:root {
    --font-serif: 'LF', serif;
    --padding-block: 2rem;
    --width: 400px;
    font-family: var(--font-serif);
    font-size: 14px;
    --bg: #fff;
    --badge-bg: rgba(0,0,0,.13);
    --text: #000;
    --border: #000;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000;
        --badge-bg: rgba(255,255,255,.13);
        --text: #fff;
        --border: #fff;
    }
}

[data-theme="light"] {
    --bg: #fff;
    --badge-bg: rgba(0,0,0,.13);
    --text: #000;
    --border: #000;
}

[data-theme="dark"] {
    --bg: #000;
    --badge-bg: rgba(255,255,255,.13);
    --text: #fff;
    --border: #fff;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100dvh;
    background: var(--bg);
    color: var(--text);
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100dvh;
    width: min(90%, var(--width));
    padding-block: var(--padding-block);
}

h1::before {
    content: attr(data-label);
}

.visuallyhidden {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(0px 0px 99.9% 99.9%);
    clip-path: inset(0px 0px 99.9% 99.9%);
    overflow: hidden;
    height: 1px;
    width: 1px;
    padding: 0;
    border: 0;
}

p + p {
    margin-top: 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header nav {
    display: flex;
    align-items: center;
}

.github-icon {
    width: 20px;
    height: 20px;
    color: var(--text);
    display: block;
}

.accordion {
    width: 100%;
}

.accordion-item:not(:last-child) {
    box-shadow: inset 0 -.5px 0 var(--border);
}

.accordion-header {
    background: none;
    border: none;
    width: 100%;
    padding: 1rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.2s ease;
}

.accordion-icon {
    position: relative;
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    width: 8px;
    height: 1px;
    top: 5.5px;
    left: 2px;
}

.accordion-icon::after {
    width: 1px;
    height: 8px;
    top: 2px;
    left: 5.5px;
    opacity: 1;
}

.accordion-item.active .accordion-icon::after {
    opacity: 0;
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
}

.accordion-content-inner {
    padding: 0 0 1rem 0;
    line-height: 1.6;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.badge {
    border-radius: .25rem;
    padding-inline: 0.5rem;
    font-family: 'Geist Mono', monospace;
    font-size: .8rem;
    line-height: 2;
    white-space: nowrap;
    color: var(--text);
    background: var(--badge-bg);
}

.tech-category {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.tech-category:first-child {
    margin-top: 0;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.theme-toggle {
    width: 16px;
    height: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

a[href="#"] {
    cursor: pointer;
    text-decoration: underline;
}
a[href="#"]::before {
    content: attr(data-label);
}
#email-feedback {
   display: none;
   font-family: 'Geist Mono', monospace;
   font-size: .8rem;
   line-height: 1;
   white-space: nowrap;
   color: var(--text);
   pointer-events: none;
   margin-left: 0.5rem;
}