/* Shared by the calendar and the login page. */

/* Fonts are served from /fonts (SIL Open Font License, see fonts/LICENSE-*.txt). */
@font-face {
    font-family: "Nunito";
    src: url("fonts/nunito.woff2") format("woff2");
    font-weight: 200 1000;
    font-display: swap;
}
@font-face {
    font-family: "Caveat";
    src: url("fonts/caveat.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

/* Colours match the monthly banners in /banners. */
:root {
    --wall: #efe9dd;
    --paper: #fffdf8;
    --ink: #2b2925;
    --muted: #776f63;
    --rule: #e8e1d3;
    --accent: #c8372d;       /* poppy red */
    --accent-soft: #fbe6e2;
    --hover: #f8f3ea;
    --editing: #fff6d6;      /* daisy yellow, softened */
    --saved: #4f7a28;        /* meadow green */
    --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
    --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}
/* Elements with the hidden attribute stay hidden, whatever their display style. */
[hidden] {
    display: none !important;
}
body {
    margin: 0;
    padding: 32px 16px 48px;
    background: var(--wall);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.4;
}

/* The calendar page, hanging on the wall. */
.page {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 44px 40px 36px;
    background: var(--paper);
    border: 1px solid #ddd5c5;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(60, 45, 20, 0.08), 0 12px 32px rgba(60, 45, 20, 0.12);
}
/* Two punched holes near the top edge. */
.page::before,
.page::after {
    content: "";
    position: absolute;
    top: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--wall);
    box-shadow: inset 0 1px 2px rgba(60, 45, 20, 0.35);
}
.page::before { left: 22%; }
.page::after { right: 22%; }

header {
    text-align: center;
}
.eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* EN | NL switch. It never shrinks, so both halves stay visible next to
   longer text on narrow screens. */
.language-toggle {
    flex-shrink: 0;
    display: inline-flex;
    border: 1px solid #d8cfbe;
    border-radius: 999px;
    overflow: hidden;
    vertical-align: middle;
}
.language-toggle button {
    padding: 2px 10px;
    border: none;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
}
.language-toggle button + button {
    border-left: 1px solid #d8cfbe;
}
.language-toggle button[aria-pressed="true"] {
    background: var(--accent);
    color: #ffffff;
}
.language-toggle button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* Long texts (privacy, terms) are written out in both languages; only the
   chosen one is shown. */
html[lang="nl"] [data-lang="en"],
html[lang="en"] [data-lang="nl"] {
    display: none;
}

/* Business name and links under every page. */
.site-footer {
    max-width: 720px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}
.site-footer a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Pages of running text. */
.prose {
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}
.prose h2 {
    margin: 28px 0 8px;
    font-size: 19px;
}
.prose p,
.prose ul {
    margin: 0 0 12px;
}
.prose ul {
    padding-left: 22px;
}
.prose a {
    color: var(--accent);
}
.prose .updated {
    color: var(--muted);
    font-size: 14px;
}
.prose .box {
    padding: 12px 16px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: #ffffff;
}
.prose dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
    margin: 0 0 12px;
}
.prose dt {
    font-weight: 700;
}
.prose dd {
    margin: 0;
}
