<!DOCTYPE html>
<html lang="<%= site.language %>">

<head>
    <meta charset="UTF-8">
    <meta name="description" content="<%= site.description %>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>
        <%= pageTitle %>
    </title>
    <style>
        body {
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            background-color: rgb(200, 241, 253);
            color: rgb(42, 74, 141);
            margin: 0;
        }

        div.splash {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }

        main.content {
            width: 800px;
            max-width: 90%;
            margin: 20px auto 50px;
        }

        nav.menu {
            display: flex;
            flex-direction: row;
            gap: 20px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        a {
            color: rgb(65, 99, 172);
        }
    </style>
</head>

<body>
    <div class="splash">
        <main class="content">
            <h1>
                <%= site.title %>
            </h1>
            <% if (pages.length > 1) { %>
                <nav class="menu">
                    <% for (const singlePage of pages) { %>
                        <a href="<%= singlePage.path %>">
                            <%= singlePage.title %>
                        </a>
                    <% } %>
                </nav>
            <% } %>
            <h2>
                <%= page.title %>
            </h2>
            <div>
                <%- page.content %>
            </div>
        </main>
    </div>
</body>

</html>