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

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Outfit-Bold.woff2') format('woff2');
    font-display: swap;
}

:root {
    --scaling: 1;
}

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

body {
    align-items: center;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    padding: clamp(0.5rem, 2vw, 1rem);
    text-align: center;
    min-height: 100vh;
    justify-content: center;
    gap: 0.25rem;
}

a {
    background: linear-gradient(to bottom, #0366d6, #005cc5);
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    display: inline-block;
    font-weight: bold;
    padding: 0.4em 1.4em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Focus accessibility */
a:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    a {
        transition: none;
    }

    a:hover {
        transform: none;
    }
}

main {
    flex: 0 0 auto;
}

header {
    margin-bottom: 0.5rem;
}

section:not(.quote) p {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

/* Quote block */
.quote,
.quote p {
    font-style: italic;
    /* force justification across browsers/devices */
    text-align: justify !important;
    -webkit-text-size-adjust: 100%;
    -webkit-text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    hyphens: auto;
    max-width: 600px;
    margin: 0 auto;
}

.quote-date {
    font-size: 0.9em;
    opacity: 0.8;
}

section a {
    font-size: 0.9em;
    margin: 3px;
    text-decoration: none;
}

/* Link layout */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2rem;
}

.links a {
    min-width: 180px;
}

/* Stack links on small screens */
@media (max-width: 480px) {
    .links {
        flex-direction: column;
        align-items: stretch;
    }

    .links a {
        width: 100%;
        padding: 0.6em 1em;
        font-size: 1rem;
    }
}

.worklog {
    font-family: 'Outfit', 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(2rem, 6vw, 3.75rem);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-inline: 1rem;
}

#content>section {
    margin: 0;
}

/* preserve extra spacing for the links section which resets section margins above */
#content>section.links {
    margin-bottom: 2rem;
}

#content img {
    margin-bottom: 0;
    max-width: 100%;
    height: auto;
}
