@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&display=swap');

:root {
    --primary-colour: hsl(334, 100%, 32%);
    --white: hsl(0, 0%, 100%);
    --black: hsl(0, 0%, 0%);
    --text: hsl(from var(--black));
    --primary-dark: color-mix(in hsl, var(--primary-colour), black 20%);
    --primary-light: color-mix(in hsl, var(--primary-colour), white 30%);
    --primary-muted: color-mix(in hsl, var(--primary-colour), gray 40%);
    --primary-shadow: color-mix(in hsl, var(--primary-colour), black 80%);
    --hover-opacity: 0.1;
    --active-opacity: 0.2;
    --active-hover-opacity: 0.3;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.page-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .page-section {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
}

.page-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.text-block {
    text-align: center;
}

.page-section {
    background: var(--white);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px color-mix(in hsl, var(--primary-shadow), transparent 85%);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.page-section h2 {
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-align: center;
}
.page-section h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    background: var(--primary-colour);
    border-radius: 2px;
    margin: 0.5rem auto 1rem;
    opacity: 0.3;
}

.page-section .text-block {
    text-align: left;
}

.page-section .text-block .text {
    color: color-mix(in hsl, var(--text), white 10%);
    font-size: 1.06rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}
.page-section .text-block .text p {
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .page-section {
        margin-top: 1.25rem;
    }
    .page-section .text-block .text {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }
}

.button-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #9b0047; /* burgundy border */
    background: #ffffff;
    color: #9b0047;
    padding: 10px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease, transform 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

/* Hover/focus */
.button:hover,
.button:focus {
    background-color: rgba(155, 0, 71, 0.04);
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 6px 20px rgba(155, 0, 71, 0.06);
}

/* Active/pressed */
.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Selected tab state (aria-selected="true") */
.button[aria-selected="true"] {
    background-color: rgba(155, 0, 71, 0.06);
    box-shadow: 0 4px 10px rgba(155, 0, 71, 0.05);
}

/* Ensure focus visible for keyboard users */
.button:focus-visible {
    outline: 3px solid rgba(155, 0, 71, 0.18);
    outline-offset: 2px;
}
