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

:root {
    --bg:             #FBF6EE;
    --text:           #2843A8;
    --text-secondary: #5062A0;
    --accent:         #B0845E;
}

html, body {
    height: 100%;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%232843A8'/%3E%3C/svg%3E") 6 6, auto;
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    justify-content: center;
    column-gap: 8rem;
    padding: 3rem;
}

.side-left  { grid-column: 1; grid-row: 1; }
h1          { grid-column: 2; grid-row: 1; }
.side-right { grid-column: 3; grid-row: 1; }
.links-row  { grid-column: 2; grid-row: 2; }

/* Staggered fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes growFromCenter {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

h1          { opacity: 0; animation: fadeIn 0.7s ease 0.0s forwards; }
.links-row  { opacity: 0; animation: fadeIn 0.7s ease 0.0s forwards; }
.side-left  { opacity: 0; animation: fadeIn 0.7s ease 0.1s forwards; }
.side-right { opacity: 0; animation: fadeIn 0.7s ease 0.2s forwards; }

.links-row {
    text-align: center;
}

.divider {
    width: 2rem;
    height: 1px;
    background-color: var(--accent);
    opacity: 0.6;
    margin: 0 auto 2rem;
    transform: scaleX(0);
    animation: growFromCenter 0.5s ease 0.3s forwards;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.0;
    text-align: center;
    margin-bottom: 2.4rem;
}

nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    white-space: nowrap;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%232843A8'/%3E%3C/svg%3E") 8 8, pointer;
}

a::before {
    content: '[';
    padding-right: 0.3em;
    display: inline-block;
    transition: padding-right 0.2s ease;
}

a::after {
    content: ']';
    padding-left: 0.3em;
    display: inline-block;
    transition: padding-left 0.2s ease;
}

a:hover::before {
    padding-right: 0.5em;
}

a:hover::after {
    padding-left: 0.5em;
}

a:hover {
    color: var(--accent);
}

/* Side text */
.side-left,
.side-right {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 2.2;
    color: var(--text);
    text-align: center;
}

/* Tablet: tighten the 3-column layout */
@media (max-width: 960px) {
    body {
        column-gap: 3rem;
        padding: 3rem 2rem;
    }

    .side-left,
    .side-right {
        font-size: 0.95rem;
    }

    nav {
        gap: 1.2rem;
        font-size: 1rem;
    }

}

/* Mobile: stack vertically */
@media (max-width: 640px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        justify-items: center;
        column-gap: 0;
        row-gap: 1.5rem;
        padding: 3rem 2rem;
    }

    .side-left  { grid-column: 1; grid-row: 1; }
    h1          { grid-column: 1; grid-row: 2; }
    .side-right { grid-column: 1; grid-row: 3; }
    .links-row  { grid-column: 1; grid-row: 4; }

    h1 {
        font-size: clamp(3.2rem, 9vw, 6.5rem);
        margin-bottom: 0;
    }

    nav {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}
