@charset "utf-8";
/* CSS Document */
/* =====================================================
   Saint Cricq Research Website
   Author: Gert Nieveld
   ===================================================== */

/* Smooth scroll for footnotes */

html {
    scroll-behavior: smooth;
}

/* =====================================================
   General
   ===================================================== */

body {
    margin: 0;

    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222;

    background-image:
        linear-gradient(
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.35)
        ),
        url("/saintcricq_images/languedocien2.jpg");

    background-attachment: fixed;
/*    background-repeat: repeat-y; */
    background-repeat: repeat;
    background-position: left top;
    background-size: 1950px auto;
}

/* =====================================================
   Main Layout
   ===================================================== */

.layout {
    max-width: 1150px;

    margin: 30px auto;

    display: flex;
    gap: 30px;

    align-items: flex-start;
}

/* =====================================================
   Navigation
   ===================================================== */

nav {
    width: 170px;
    flex-shrink: 0;
	
	font-size: 0.90em;

    background: rgba(254,253,252,0.98);

    padding: 20px;

    border-radius: 10px;

    box-shadow: 0 0 15px rgba(0,0,0,0.15);

    position: sticky;
    top: 20px;
}

nav img {
    display: block;
    max-width: 100%;
    height: auto;

    margin-bottom: 15px;
}

nav a {
    display: block;

    padding: 7px 0;

    color: #333;
    text-decoration: none;
}

nav a:hover {
    color: #7d4e1d;
    text-decoration: underline;
}

nav a.current {
    font-weight: bold;
    color: #5b4026;
}

/* =====================================================
   Content
   ===================================================== */

main {
    width: 950px;
	width: 100%;
    background: rgba(254,253,252,0.98);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.20);
    box-sizing: border-box;
}

h1 {
    margin-top: 0;
    color: #4a3117;
}

h2 {
    color: #5b4026;
}

h3 {
    color: #6d4d2f;
}

p {
    margin-bottom: 1em;
}

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

/* =====================================================
   Links
   ===================================================== */

a {
    color: #6b3f18;
}

a:hover {
    color: #8f5a2a;
}

/* =====================================================
   Footnotes / References
   ===================================================== */

.references {
    margin-top: 60px;

    padding-top: 20px;

    border-top: 1px solid #bbb;

    font-size: 0.95em;
}

.references h2 {
    margin-top: 0;
}

.references p {
    margin-bottom: 15px;
}

sup a {
    text-decoration: none;
    font-weight: bold;
}

.backlink {
    text-decoration: none;
    font-weight: bold;

    margin-left: 6px;
}

/* =====================================================
   Quotations
   ===================================================== */

blockquote {
    margin: 20px 40px;
    padding-left: 20px;

    border-left: 4px solid #ccb690;

    font-style: italic;
}

/* =====================================================
   Tables
   ===================================================== */

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border: 1px solid #ccc;
    padding: 8px;
}

th {
    background: #f5f2ed;
}

/* =====================================================
   Footer
   ===================================================== */

footer {
    margin-top: 50px;

    font-size: 0.9em;
    color: #666;
}


/* =====================================================
   Mobile
   ===================================================== */
   
.menu-toggle {
    display: none;
    width: 170px;          /* vaste breedte */
    max-width: 80vw;       /* nooit breder dan scherm */
    padding: 12px;
    font-size: 18px;
    background: rgba(254,253,252,0.98);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/* Tablets en desktop */

@media (max-width: 800px) {

    .menu-toggle {
        display: block;
    }

    .layout {
        display: block;
    }

    nav {
        display: none;
		max-width: 80vw;
    }

    main {
        width: auto;
        max-width: none;
    }
}
