/* Odd Fellows Velsen - sitestijl. Geen build-stap nodig. */

:root {
    --red: #bf3124;
    --red-dark: #8f2219;
    --ink: #1f1b18;
    --muted: #6b625b;
    --line: #e6dfd6;
    --paper: #fbf8f3;
    --card: #ffffff;
    --sky: #a9d3dc;
    --radius: 10px;
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.65 var(--sans);
}

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

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .6em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
h4 { font-family: var(--serif); font-size: 1.1rem; margin: 1.4em 0 .3em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
    position: absolute; left: -999px; top: 8px;
    background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 5;
}
.header-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: 72px;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--ink);
}
.brand strong { display: block; white-space: nowrap; font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.brand small { display: block; white-space: nowrap; color: var(--muted); font-size: .8rem; letter-spacing: .04em; }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
    white-space: nowrap;
    color: var(--ink); text-decoration: none;
    padding: 8px 11px; border-radius: 6px; font-size: .95rem;
}
.main-nav a:hover { background: var(--paper); color: var(--red); }
.main-nav a.active { color: var(--red); font-weight: 600; }
.main-nav a.nav-members {
    border: 1px solid var(--red); color: var(--red); margin-left: 6px;
}
.main-nav a.nav-members:hover, .main-nav a.nav-members.active { background: var(--red); color: #fff; }

.menu-toggle {
    display: none;
    font: inherit; background: none; border: 1px solid var(--line);
    border-radius: 6px; padding: 6px 12px; cursor: pointer;
}

@media (max-width: 1180px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; padding: 8px 16px 16px;
    }
    .main-nav.open { display: flex; }
    .main-nav a.nav-members { margin: 6px 0 0; text-align: center; }
}

/* Hero en band */
.hero {
    background-size: cover; background-position: center;
    position: relative; color: #fff;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(25, 14, 10, .82) 0%, rgba(25, 14, 10, .55) 55%, rgba(25, 14, 10, .15) 100%);
}
.hero-inner { position: relative; padding: clamp(56px, 10vw, 120px) 0; max-width: 1120px; }
.hero h1 { color: #fff; max-width: 15em; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero .lead { max-width: 34em; font-size: 1.15rem; opacity: .95; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; opacity: .85; margin: 0 0 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.band {
    height: 10px;
    background: linear-gradient(var(--red), var(--red-dark));
    border-bottom: 4px solid var(--sky);
}

/* Knoppen */
.btn {
    display: inline-block; font: inherit; font-weight: 600;
    background: var(--red); color: #fff; border: 2px solid var(--red);
    padding: 10px 20px; border-radius: 999px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-small { padding: 6px 14px; font-size: .9rem; }

/* Inhoud */
.main { padding: 48px 0 72px; }

.prose { max-width: 720px; margin-inline: auto; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose img { border-radius: var(--radius); display: block; margin: 1.4em 0; }
.prose blockquote {
    margin: 1.4em 0; padding: .2em 0 .2em 1.2em;
    border-left: 4px solid var(--red); color: var(--muted); font-style: italic;
}
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.meta { color: var(--muted); font-size: .95rem; margin-bottom: .4em; }
.post-image img { width: 100%; }

.section { margin-top: 64px; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.section-head h1, .section-head h2 { margin: 0; }
.more { text-decoration: none; font-weight: 600; }

/* Nieuwskaarten */
.cards {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40, 20, 10, .08); color: inherit; }
.card-image { aspect-ratio: 16 / 10; background: #f1ebe3; display: grid; place-items: center; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image img.placeholder { width: 40%; height: auto; opacity: .35; object-fit: contain; }
.card-body { padding: 18px 20px 22px; }
.card-body time { color: var(--muted); font-size: .85rem; }
.card-body h3 { margin: .2em 0 .4em; color: var(--ink); }
.card:hover h3 { color: var(--red); }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }

.post-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    max-width: 720px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.post-nav a { text-decoration: none; }
.post-nav small { display: block; color: var(--muted); }
.post-nav .next { grid-column: 2; text-align: right; }

.pagination {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-top: 40px;
}
.pagination .disabled { color: #b9b0a6; }
.pagination .current { color: var(--muted); font-size: .95rem; }

/* Formulieren */
.form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.form label small { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="password"], .form input[type="file"], .search input {
    width: 100%; font: inherit; padding: 10px 12px;
    border: 1px solid #d3c9bd; border-radius: 8px; background: #fff;
}
.form input:focus, .search input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form .check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.form .btn { margin-top: 20px; }
.hint { color: var(--muted); font-size: .9rem; }

.alert { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; }
.alert p { margin: 0; }
.alert-error { background: #fbe9e7; color: #8a1f15; }
.alert-ok { background: #e8f4ec; color: #1e5a33; }

.login-box {
    max-width: 440px; margin: 0 auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px;
}

/* Ledengedeelte */
.members-grid { display: grid; gap: 32px; grid-template-columns: 1fr 320px; align-items: start; }
@media (max-width: 860px) { .members-grid { grid-template-columns: 1fr; } }

.search { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.search .clear { font-size: .9rem; }

.folder {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 12px;
}
.folder summary {
    cursor: pointer; padding: 14px 18px; font-family: var(--serif);
    font-size: 1.15rem; font-weight: 600; list-style-position: inside;
}
.folder .count {
    font-family: var(--sans); font-size: .8rem; font-weight: 600;
    background: var(--paper); color: var(--muted); border-radius: 999px; padding: 2px 9px; margin-left: 6px;
}
.files { list-style: none; margin: 0; padding: 0 8px 8px; }
.files li {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 8px 10px; border-top: 1px solid var(--paper);
}
.files a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.files a:hover .file-title { color: var(--red); text-decoration: underline; }
.file-meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.ext {
    flex: none; width: 44px; text-align: center; text-transform: uppercase;
    font-size: .7rem; font-weight: 700; padding: 3px 0; border-radius: 4px;
    background: #ece6de; color: var(--muted);
}
.ext-pdf { background: #fbe1dd; color: #a0281c; }
.ext-xls, .ext-xlsx, .ext-csv, .ext-ods { background: #dff1e5; color: #1e6b3a; }
.ext-doc, .ext-docx, .ext-odt, .ext-rtf { background: #dfe9f7; color: #24508f; }
@media (max-width: 560px) { .file-meta { display: none; } }

.upload-box {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; position: sticky; top: 96px;
}
.upload-box h2 { margin: 0; font-size: 1.3rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d1c7; padding: 40px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1.4fr auto; align-items: start; }
.footer-grid p { margin: 0; }
.footer-mark { margin-bottom: 8px; filter: brightness(1.6); }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
