/**
 * Base styles - Reset and fundamental styles
 */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: #1a1a1a;
    background: #fcf5e5; /* Parchment */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    border-left: 1px dashed #e5dcc8;
    border-right: 1px dashed #e5dcc8;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive max-widths to match containers */
@media (min-width: 768px) {
    main {
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    main {
        max-width: 960px;
    }
}

@media (min-width: 1440px) {
    main {
        max-width: 1200px;
    }
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility - Skip to main content link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 1rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}
