/* Generic site stylesheet. Brand values arrive as CSS custom properties:
   --bg / --text / --accent are set from site.yml in base.html,
   --nav-color is set per nav link. */

/* Slide animation between pages where the browser supports
   cross-document view transitions; plain navigation elsewhere. */
@view-transition {
    navigation: auto;
}

body {
    background: var(--bg, #fff);
    color: var(--text, #222);
    font-family: monospace;
    margin: 0;
    padding: 0;
}

.logo {
    display: block;
    margin: 32px auto 16px auto;
    max-width: min(33vw, 240px);
    height: auto;
}

nav {
    display: flex;
    gap: 2em;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2em;
    font-size: 1em;
}

.nav-link {
    color: var(--nav-color, var(--accent));
    text-decoration: none;
    font-weight: normal;
}

.nav-link.active {
    text-decoration: underline;
    font-weight: bold;
}

.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1em 2em 1em;
}

.content a {
    color: var(--accent, #ff7a1a);
    text-decoration: underline;
}

.content img {
    max-width: 100%;
    height: auto;
}
