@layer base, utils, components;

@import "https://cdn.jsdelivr.net/npm/@webtui/css@latest/dist/base.css";
@import "https://cdn.jsdelivr.net/npm/@webtui/css@latest/dist/utils/box.css";
@import "https://cdn.jsdelivr.net/npm/@webtui/css@latest/dist/components/button.css";
@import "https://cdn.jsdelivr.net/npm/@webtui/css@latest/dist/components/typography.css";
@import "https://cdn.jsdelivr.net/npm/@webtui/css@latest/dist/components/badge.css";
@import "https://cdn.jsdelivr.net/npm/@webtui/theme-gruvbox@latest/dist/index.css";

@layer base {
    body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
    *::-webkit-scrollbar { display: none; }
    html { scroll-behavior: smooth; }
}

@layer utils {
    column, [is-~="column"] { display: flex; flex-direction: column; }
    row, [is-~="row"] { display: flex; flex-direction: row; }
    [gap-~="1"] { gap: 1lh 1ch; }
    [gap-~="2"] { gap: 2lh 2ch; }
    [align-^="center"] { align-items: center; }
    [align-$="between"] { justify-content: space-between; }
    [align-$="center"] { justify-content: center; }
    [space-~="px:1"] { padding-left: 1ch; padding-right: 1ch; }
    [space-~="px:2"] { padding-left: 2ch; padding-right: 2ch; }
    [space-~="py:1"] { padding-top: 1lh; padding-bottom: 1lh; }
    [space-~="py:2"] { padding-top: 2lh; padding-bottom: 2lh; }
    [space-~="py:4"] { padding-top: 4lh; padding-bottom: 4lh; }
    [space-~="pb:1"] { padding-bottom: 1lh; }
}

@layer components {
    column[box][variant~="background0"] { background-color: var(--webtui-background0); }
    footer > row { padding-top: 1lh; padding-bottom: 0; }
    nav > row { padding-top: 0; padding-bottom: 1lh; }
    main { flex: 1; width: 100%; max-width: 80ch; margin: 0 auto; padding: 2lh 2ch; }
    .section { width: 100%; display: none; }
    .section.active { display: block; }
    .ascii-art { color: var(--green); font-size: 14px; line-height: 1.2; margin: 0; }
    .bio-box { max-width: 60ch; text-align: center; }
    .hero-actions button { min-width: 15ch; }
    nav { margin: auto 6px 0; --box-border-color: var(--background2); }
    .nav-btn.active { font-weight: bold; text-decoration: underline; }
    footer { margin: auto 6px 0; --box-border-color: var(--background2); }
    .skill-tags { flex-wrap: wrap; }
    h1 { margin: 0; font-size: 1.5em; }
    h2 { margin: 0 0 1lh; color: var(--green); }
    p { margin: 0; }
    a { color: var(--webtui-foreground); text-decoration: none; border-bottom: 1px dashed; transition: 0.2s; }
    a:hover { color: var(--webtui-yellow); border-bottom-color: var(--webtui-yellow); }
    a:visited { color: var(--webtui-foreground); }
}

@media (max-width: 768px) {
    main { padding: 1lh 1ch; }
    .ascii-art { font-size: 10px; }
    nav row, .skill-tags { flex-wrap: wrap; gap: 0.5lh 0.5ch; }
} 