@font-face {
    font-family: 'UnistraA';
    src: url('../fonts/UnistraA-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UnistraA';
    src: url('../fonts/UnistraA-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UnistraA';
    src: url('../fonts/UnistraA-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'UnistraA';
    src: url('../fonts/UnistraA-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'UnistraSymbol';
    src: url('../fonts/UnistraSymbol-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Fallback';
    size-adjust: 75%;
    src: local('Helvetica');
}

@font-face {
    font-family: 'Arial Fallback';
    size-adjust: 75%;
    src: local('Arial');
}

@font-face {
    font-family: 'Liberation Sans Fallback';
    size-adjust: 70%;
    src: local('Liberation Sans');
}

:root {
    --color-primary-dark: #921428;
    --color-primary-light: #a16000;
    --color-text-dark: #333332;
    --color-background-light: #F6F6F6;
    --color-surface-light: #FFFFFF;
    --color-border-light: #CACACA;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'UnistraA', 'Helvetica Fallback', 'Arial Fallback', 'Liberation Sans Fallback', sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
}

header {
    background: var(--color-primary-dark);
    color: var(--color-surface-light);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.5rem;
}


.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-surface-light);
    border-radius: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-5px);
}

.card h2, .charter-section h2 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    font-weight: bold;
    border: 1px solid var(--color-primary-dark);
    padding: 0 1.5rem 0 1.5rem;
    display: block;
    position: relative;
    font-size: 1.5rem;
}

.card h2::before, .charter-section h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.5rem;
    height: 100%;
    width: 4px;
    border-left: 1px solid var(--color-primary-dark);
    border-right: 1px solid var(--color-primary-dark);
}

.card h2::after, .charter-section h2::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0.5rem;
    height: 100%;
    border-right: 1px solid var(--color-primary-dark);
}

.card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark); 
}

.button {
    display: block;
    background-color: var(--color-primary-light);
    color: var(--color-surface-light);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.button:hover {
    background-color: #FFCD00;
    color: var(--color-text-dark);
}

.charter-section {
    padding: 2rem;
    margin-top: 2rem;
    background-color: var(--color-surface-light);
    border-radius: 0;
}

.charter-section p, .charter-section ul {
    text-align: left;
}

.charter-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.charter-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.charter-section li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.charter-section li::before {
    content: "—";
    color: var(--color-primary-dark);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.icon {
    font-family: 'UnistraSymbol';
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text-dark);
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .charter-section {
        padding: 1.5rem;
    }
}

header h1 {
    font-size: 1.5rem;
}

header h1 span {
    display: block;
    border-left: 1px solid var(--color-surface-light);
    border-right: 1px solid var(--color-surface-light);
    border-top: 1px solid var(--color-surface-light);
    box-shadow: 0 1px 0 0 var(--color-surface-light);
    padding: 0 1.5rem;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-weight: normal;
}

header h1 span:nth-child(1) {
    transform: translateX(-10px);
}

header h1 span:nth-child(2) {
    transform: translateX(-20px);
}

header h1 span:nth-child(3) {
    transform: translateX(20px);
}

header h1 span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.5rem;
    height: 100%;
    width: 4px;
    border-right: 1px solid var(--color-surface-light);
}

header h1 span::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0.5rem;
    height: 100%;
    width: 6px;
    border-left: 1px solid var(--color-surface-light);
    border-right: 1px solid var(--color-surface-light);
}


