/* Catppuccin Mocha Theme */
:root {
    /* Base */
    --rosewater: #f5e0dc;
    --flamingo: #f2cdcd;
    --pink: #f5c2e7;
    --mauve: #cba6f7;
    --red: #f38ba8;
    --maroon: #eba0ac;
    --peach: #fab387;
    --yellow: #f9e2af;
    --green: #a6e3a1;
    --teal: #94e2d5;
    --sky: #89dceb;
    --sapphire: #74c7ec;
    --blue: #89b4fa;
    --lavender: #b4befe;
    
    /* Surface */
    --text: #cdd6f4;
    --subtext1: #bac2de;
    --subtext0: #a6adc8;
    --overlay2: #9399b2;
    --overlay1: #7f849c;
    --overlay0: #6c7086;
    --surface2: #585b70;
    --surface1: #45475a;
    --surface0: #313244;
    --base: #1e1e2e;
    --mantle: #181825;
    --crust: #11111b;
}

/* Base responsive styles */
html {
    font-size: 16px;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--base);
    color: var(--text);
    font-family: 'Fauna One', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
    max-width: 100%;
    overflow-x: hidden;
}

header {
    background-color: var(--surface0);
    padding: 0.625rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-name {
    font-size: 2.25rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    flex-grow: 1;
    text-align: center;
    padding: 0.5rem 0;
}

.site-name a {
    color: var(--mauve);
    text-decoration: none;
    transition: color 0.2s;
}

.site-name a:hover {
    color: var(--pink);
    text-decoration: none;
}

footer {
    background-color: var(--surface0);
    padding: 0.625rem 1.25rem;
    margin-top: 1.25rem;
    border-radius: 0.5rem;
    color: var(--subtext0);
    text-align: center;
}

main {
    padding: 1.25rem;
    background-color: var(--mantle);
    border-radius: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

h1 {
    color: var(--mauve);
}

h2, h3 {
    color: var(--blue);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--sapphire);
    text-decoration: underline;
}

blockquote {
    border-left: 0.25rem solid var(--lavender);
    padding-left: 0.9375rem;
    color: var(--subtext0);
    margin-left: 0;
    margin-right: 0;
}

code {
    background-color: var(--surface0);
    padding: 0.125rem 0.3125rem;
    border-radius: 0.1875rem;
    font-family: monospace;
    word-break: break-word;
}

pre {
    background-color: var(--surface0);
    padding: 0.9375rem;
    border-radius: 0.3125rem;
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text);
}

input:checked + .slider {
    background-color: var(--mauve);
}

input:checked + .slider:before {
    background-color: var(--crust);
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

ul {
    list-style-type: disc;
    padding-left: 2rem;
}

ul li {
    margin-bottom: 1rem;
    padding: 0.25rem;
    word-wrap: break-word;
}

/* Post description */
ul li p {
    color: var(--subtext1);
    margin-top: 0.3125rem;
}

/* Post date */
ul li p.date {
    color: var(--subtext0);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.1875rem;
    margin-bottom: 0.1875rem;
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        padding: 0.5rem;
    }
    
    .site-name {
        text-align: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    header {
        justify-content: center;
    }
    
    main {
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    ul li {
        padding: 0.75rem;
    }
    
    pre {
        padding: 0.75rem;
    }
}