/*
theme.css
v1 - Sunday 22 November 2026 - Version notes start here. The shared look for every DadLink
     page: colours, fonts, the header and the footer. A page loads this file first and then
     keeps only its own layout in its own style block. To change a colour or a font across
     the whole site, change it once in the list just below.
*/

:root {
    /* Colours */
    --dl-ink: #0f1a28;                          /* deep evening blue: page base, header, footer */
    --dl-ink-soft: #18263a;                     /* a step lighter: the menu drawer */
    --dl-surface: rgba(255, 255, 255, 0.07);    /* soft card background */
    --dl-surface-strong: rgba(255, 255, 255, 0.11);
    --dl-line: rgba(255, 255, 255, 0.14);       /* thin borders */
    --dl-text: #f6f1e9;                         /* warm white: headings and main text */
    --dl-text-soft: #cfc8bc;                    /* body copy */
    --dl-text-faint: #9aa3ad;                   /* small print */
    --dl-accent: #f2b46a;                       /* warm amber: dad, links, highlights */
    --dl-accent-strong: #e79d45;
    --dl-child: #9fcdea;                        /* soft sky blue: child */

    /* Fonts (already on every device, nothing extra to download) */
    --dl-font-head: Georgia, 'Times New Roman', serif;
    --dl-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --dl-radius: 18px;
}

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

body {
    font-family: var(--dl-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dl-text);
    background-color: var(--dl-ink);
    -webkit-font-smoothing: antialiased;
}

/* Evening-blue wash over whatever background photo the page sets, so text stays readable */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 26, 40, 0.80) 0%, rgba(15, 26, 40, 0.93) 100%);
    pointer-events: none;
    z-index: -1;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--dl-accent);
    outline-offset: 3px;
}

/* ======== HEADER ======== */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 26, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dl-line);
    z-index: 1000;
}

.top-bar {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left,
.top-bar-right {
    min-width: 44px;
    display: flex;
    align-items: center;
}

.top-bar-right {
    justify-content: flex-end;
}

.top-bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    display: block;
    height: 40px;
    width: auto;
}

.top-title {
    font-family: var(--dl-font-head);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: var(--dl-text);
}

/* ======== PAGE HEADINGS ======== */
.section-tag {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dl-accent);
    margin-bottom: 12px;
}

.page-title {
    font-family: var(--dl-font-head);
    font-size: 40px;
    line-height: 1.2;
    font-weight: bold;
    color: var(--dl-text);
    margin-bottom: 16px;
}

.subtitle {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--dl-text-soft);
}

/* ======== FOOTER ======== */
.footer {
    width: 100%;
    padding: 18px 20px 22px;
    background: rgba(15, 26, 40, 0.92);
    border-top: 1px solid var(--dl-line);
    color: var(--dl-text-faint);
    font-size: 13px;
    text-align: center;
}

.footer a {
    color: var(--dl-text-soft);
    text-decoration: none;
    margin: 0 6px;
}

.footer a:hover {
    color: var(--dl-accent);
    text-decoration: underline;
}

.footer-text {
    margin-top: 6px;
    color: var(--dl-text-faint);
}

/* ======== SMALLER SCREENS ======== */
@media (max-width: 768px) {
    .top-title {
        font-size: 20px;
    }

    .logo {
        height: 32px;
    }

    .page-title {
        font-size: 30px;
    }

    .subtitle {
        font-size: 16px;
    }
}
