/* Reset & box model */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background);
    color: var(--bodyText);
}

body {
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    max-width: 900px;
}


.header {
    display: flex;
    align-items: center;
    /* Center items vertically */
    gap: 1rem;
    /* Optional: space between items */
    padding: 1rem;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    span[type="clickableTitle"] {
        font-size: 2rem;
    }

    .header {
        flex-direction: column;
        /* Stack items vertically on small screens */
        align-items: flex-start;
        /* Align items to the start */
    }
}

img.dithered {
    mix-blend-mode: var(--imageBlendMode);
    filter: invert(var(--invertAmount)) opacity(0.85);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--headlineText);
}

h6 {
    font-weight: 600;
    margin: 0 0;
    padding: 0;
    color: var(--descriptionText);
}

span[type="clickableTitle"] {
    font-family: Helvetica, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--headlineText);
    padding: 0.25rem;
    text-transform: lowercase;
    letter-spacing: 0.1rem;
    display: inline-block;
    text-overflow: ellipsis;
    font-variant-caps: titling-caps;

}



p,
ul,
ol,
pre,
blockquote {
    margin-bottom: 1rem;
}

ul,
ol {
    padding-left: 1.25rem;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:hover:has(span) {
    text-decoration: none;
}

/* Buttons & inputs */
.round-button {
    background: var(--accent);
    border: 1px solid var(--stroke);
    color: var(--headlineText);
    border-radius: 50%;
    cursor: pointer;
    padding: 1rem;
    margin: 0 0.5rem 0 0.5rem;
    height: 2.25rem;
    width: 2.25rem;
    transition: border-color 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

a.round-button {
    vertical-align: middle;
}

.round-button.green {
    background-color: var(--green);
}

.round-button.theme-mode {
    background-color: var(--headlineText);
}

.round-button.logged-out {
    background-color: var(--danger);
}

.round-button.logged-in {
    background-color: var(--green);
}

.round-button-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--headlineText);
    letter-spacing: 0.025rem;
}

button,
input[type="submit"] {
    background: var(--backgroundAlt);
    border: 1px solid var(--stroke);
    padding: 0.5rem 1rem;
    color: var(--bodyText);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
    border-color: var(--accent);
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    background: var(--backgroundAlt);
    border: 1px solid var(--stroke);
    color: var(--bodyText);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

textarea {
    min-height: 100px;
    max-width: 100%;
    min-width: 100%;
    font-family: monospace;
}

/* Lists */
ul li {
    margin-bottom: 0.5rem;
}

/* Article */
article {
    word-wrap: break-word;
}

article p {
    text-indent: 2em;
    /* Adjust the value as needed */
}

excerpt {
    font-style: italic;
    color: var(--descriptionText);
    margin-bottom: 1rem;
}

/* Code */
code,
pre {
    background: var(--background);
    border: 1px solid var(--stroke);
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
}

pre {
    overflow: auto;
    padding: 0.75rem 1rem;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--stroke);
    padding-left: 1rem;
    color: var(--descriptionText);
}

hr {
    border: 0;
    border-top: 2px solid var(--stroke);
    background: transparent;
}