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

:root {

    --color-brand-50:  #cad2c5;
    --color-brand-100: #a4bfa1;
    --color-brand-500: #4a6d56;
    --color-brand-700: #354f52;
    --color-brand-900: #2f3e46;

    /* Accent Palette */
    --color-accent-blue:   #a1b3bf;
    --color-accent-purple: #bca1bf;
    --color-accent-warm:   #bfada1;

    /* Surface */
    --surface-1: #ffffff;
    --surface-2: #f8f9fa;
    --surface-3: #eef1ee;
    --surface-dark: #212529;

    /* Text */
    --text-1: #2f3e46;
    --text-2: #5c6b73;
    --text-inverse: #ffffff;

    /* Semantic */
    --primary: var(--color-brand-500);
    --primary-hover: var(--color-brand-700);
    --primary-subtle: var(--color-brand-50);
    --background: var(--surface-1);
    --foreground: var(--text-1);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;

    /* Shadow */
    --shadow-sm: 0 2px 8px rgb(0 0 0 / 0.08);
    --shadow-md: 0 8px 24px rgb(0 0 0 / 0.12);
    --shadow-lg: 0 16px 48px rgb(0 0 0 / 0.18);

}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif, Apple Color Emoji, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    display: grid;
    gap: 3vw;
    grid-template-rows: min-content 1fr min-content;
    background-color: var(--color-brand-100);
    word-break: break-word;

}

portfolio {
    padding: 10px;
}

a {
    color: var(--text-1);

}

footer {
    border-top: 2px dotted;
    border-style: inset;
}

header {
    border-bottom: 2px dotted;
}

.article {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

}

article:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.template-homepage main {
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0 auto;

}

.skip-link {
    position: absolute;
    top: -30px;
}

.skip-link:focus-visible {
    top: 5px;
}

.page-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align:justify

}

.page-form :is(textarea, input, select) {
    width: 100%;
    max-width: 500px;
    min-height: 40px;
    margin-top: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}

.page-form .helptext {
    font-style: italic;
}


.template-portfolio .container,
.template-portfolio .container * {
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-x: hidden;
}
