/* University of Lincoln - Standby / status page styles. */

/* Brand colours are driven from these variables. Replace --brand and --accent
   with the exact hex values from the University brand guidelines (brand@lincoln.ac.uk). */
:root {
    --brand: #0b214a;
    --brand-strong: #14306a;
    --accent: #ffb81c;
    --page-bg: #eef1f8;
    --surface: #ffffff;
    --border: #e1e6f0;
    --text: #182033;
    --text-muted: #59647e;
    --link: #14306a;
    --link-hover: #0b214a;
    --focus-ring: #2563eb;
    --status-bg: #fff4e0;
    --status-fg: #8a5300;
    --status-dot: #f59e0b;
    --shadow: 0 1.25rem 3.5rem rgba(11, 33, 74, 0.14);
    --hover-shadow: 0 0.5rem 1.5rem rgba(11, 33, 74, 0.12);
    --ambient: radial-gradient(circle at 15% -10%, rgba(20, 48, 106, 0.12), transparent 45%), radial-gradient(circle at 100% 0%, rgba(255, 184, 28, 0.1), transparent 40%);
    --crest: #231f20;
    --backdrop-panel: #e1e6f2;
    --backdrop-dot: rgba(20, 48, 106, 0.42);
    --backdrop-bloom: rgba(20, 48, 106, 0.22);
    --backdrop-crest: rgba(20, 48, 106, 0.1);
    --radius: 0.5rem;
    --content-width: 42rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #9db8ff;
        --brand-strong: #c7d6ff;
        --accent: #ffce5c;
        --page-bg: #0a0e18;
        --surface: #141b2c;
        --border: #26304a;
        --text: #eef2fb;
        --text-muted: #9aa6c2;
        --link: #9db8ff;
        --link-hover: #c7d6ff;
        --focus-ring: #7aa2ff;
        --status-bg: #3a2a10;
        --status-fg: #ffd58a;
        --status-dot: #f59e0b;
        --shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.5);
        --hover-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.55);
        --ambient: radial-gradient(circle at 15% -10%, rgba(120, 150, 255, 0.1), transparent 45%), radial-gradient(circle at 100% 0%, rgba(255, 206, 92, 0.05), transparent 40%);
        --crest: #ffffff;
        --backdrop-panel: #171f34;
        --backdrop-dot: rgba(255, 255, 255, 0.3);
        --backdrop-bloom: rgba(120, 150, 255, 0.3);
        --backdrop-crest: rgba(255, 255, 255, 0.085);
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--page-bg);
    background-image: var(--ambient);
}

a {
    color: var(--link);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

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

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 0.35rem;
}

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.backdrop__panel {
    position: absolute;
    inset: 0;
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 78% 100%);
    background-color: var(--backdrop-panel);
}

.backdrop__crest {
    position: absolute;
    top: 50%;
    right: -4vw;
    height: 88vh;
    width: auto;
    fill: var(--backdrop-crest);
    transform: translateY(-50%) rotate(-8deg);
}

/* Generated last so the dots and bloom sit over the crest rather than under it. */
.backdrop__panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 92% 3%, var(--backdrop-bloom), transparent 62%), radial-gradient(var(--backdrop-dot) 1.2px, transparent 1.3px);
    background-size: auto, 1.5rem 1.5rem;
}

@media (max-width: 60rem) {
    .backdrop {
        display: none;
    }
}

.site-header {
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    text-align: center;
}

.crest-link {
    display: inline-block;
    line-height: 0;
}

.crest {
    display: block;
    width: auto;
    height: clamp(1.75rem, 5vw, 2.25rem);
    color: var(--crest);
}

.page {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    /* Without this the card stretches to fill the row, leaving a large empty
       band inside it on tall screens. */
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

.card {
    width: 100%;
    max-width: var(--content-width);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 3vw, 2rem);
    text-align: center;
}

.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
}

.card__status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* .card p sets auto side margins, which would fight the flex centring. */
.card__status .status-pill {
    margin: 0;
}

.card__icon {
    display: inline-grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--status-bg);
    color: var(--status-fg);
    font-size: 1.5rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem;
    border-radius: 2rem;
    background-color: var(--status-bg);
    color: var(--status-fg);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-pill__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: var(--status-dot);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    }

    70% {
        box-shadow: 0 0 0 0.6rem rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

h1 {
    font-family: "Noto Sans Display", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.2;
    margin: 0.9rem 0 0.6rem;
    color: var(--text);
}

.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0 auto 1rem;
    max-width: 34rem;
}

.card p {
    margin: 0 auto 1rem;
    max-width: 34rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.divider {
    height: 1px;
    border: 0;
    background-color: var(--border);
    margin: 1.25rem 0;
}

.section-title {
    font-family: "Noto Sans Display", "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.springboard {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.springboard__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    padding: 0.9rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--page-bg);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.springboard__link:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: var(--hover-shadow);
    color: var(--text);
}

.springboard__link .icon {
    font-size: 1.5rem;
    color: var(--brand);
}

.springboard__link strong {
    font-weight: 600;
}

.springboard__link small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--page-bg);
    margin: 0 auto;
    max-width: 34rem;
}

.contact-note .icon {
    color: var(--brand);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.contact-note p {
    margin: 0;
}

.site-footer {
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--text-muted);
}

.site-footer__links {
    margin-bottom: 0.35rem;
}

.site-footer__links a {
    margin: 0 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .status-pill__dot {
        animation: none;
    }

    .springboard__link {
        transition: none;
    }
}

/* Laptop screens are short rather than narrow. Tighten the vertical rhythm so
   the message fits without scrolling; phones may still scroll. */
@media (max-height: 50rem) {
    .site-header {
        padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
    }

    .page {
        padding: 0.5rem clamp(0.75rem, 2vw, 1.5rem);
    }

    .card {
        padding: 1.1rem 1.5rem;
    }

    .card__icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.3rem;
    }

    .card__status {
        margin-bottom: 0.75rem;
    }

    h1 {
        font-size: clamp(1.35rem, 3.2vw, 1.75rem);
        margin: 0.6rem 0 0.45rem;
    }

    .lead {
        font-size: 1.02rem;
        margin-bottom: 0.75rem;
    }

    .divider {
        margin: 0.9rem 0;
    }

    .springboard__link {
        padding: 0.7rem 0.6rem;
    }

    .site-footer {
        padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
    }
}