@font-face {
    font-family: 'NotesESA';
    src: url('./NotesESA.woff');
    font-display: swap;
}
body {
    background-color: #e8e8e4;
    color: #000000;
    font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
    font-size: 16pt;
    line-height: 21pt;
    padding: 0;
    margin: 0;
}
header {
    display: block;
    width: 100vw;
    height: 5em;
    margin: 0;
    padding: 0;
    background-color: #003247;
    color: #ffffff;
    border-bottom: 4px #f47920 solid;
}
header > nav {
    max-width: min(70ch, 96%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}
header h1 {
    font-family: NotesESA, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    justify-self: start;
    align-self: center;
    font-size: 22pt;
}
header h1 a {
    text-decoration: none;
    color: #ffffff;
}
header img {
    width: 5em;
    height: 5em;
    display: block;
    margin: 0 1em;
}
header > nav > div {
    justify-self: end;
    align-self: center;
}
header > nav > ul {
    margin: 0;
    padding: 0;
    font-family: NotesESA, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    justify-self: end;
    align-self: center;
    text-align: right;
}
header > nav ul li {
    font-family: NotesESA, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
    list-style: none;
    margin: 0;
    margin-left: 1em;
    padding: 0;
    display: inline;
    white-space: nowrap;
}
header > nav ul li a {
    color: #ffffff;
    text-decoration: none;
}
header nav ul li a:hover,
header nav ul li.active a {
    text-decoration: underline;
}
#hamburger,
#hamburger-state {
    display:none;
}
#sidebar {
    visibility: hidden;
    position: fixed;
    top: 10px;
    right: -60vw;
    width: 60vw;
    z-index: 3;
    transition: 0.3s;
    padding: 1em;
    box-sizing: border-box;
}
#sidebar h2 {
    font-family: NotesESA, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: block;
    margin-top: 0px;
}
#sidebar ul,
#sidebar ul li {
    display: block;
    padding: 0;
    margin: 0;
}
#sidebar ul li {
    margin-bottom: 0.6em;
}
#overlay {
    background-color: #003247;
    position: fixed;
    display: block;
    visibility: hidden;
    height: 100vh;
    width: 60vw;
    top: 0px;
    opacity: 0.99;
    z-index: 2;
    right: -60vw;
    transition: 0.3s;
}
main {
    display: grid;
    grid-template-columns: 1fr min(70ch, 96%) 1fr;
    margin: 0;
    padding: 0;
}
main > * {
    grid-column: 2;
}
main h1 {
    line-height: 1.2em;
}
main ul.cards {
    margin: 0;
    margin-bottom: 3em;
    padding: 0;
}
main ul.cards li {
    display: inline-block;
    width: 19ch;
    height: 8ch;
    margin-right: 1em;
    margin-bottom: 1em;
    list-style: none;
}
main ul.cards li a {
    text-decoration: none;
}
main ul.cards li h3 {
    margin-bottom: 0;
    color: #000000;
    font-size: smaller;
}
main ul.cards li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
a {
    color: #003247;
}
p.more a,
main nav.prevnext ul li.cruise a {
    font-family: NotesESA, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.2em;
    text-decoration: none;
    background-color: #335e6f;
    color: #ffffff;
    padding: 4px;
    border-radius: 4px;
}
p.more a:hover,
main nav.prevnext ul li.cruise a:hover {
    text-decoration: underline;
}

body.recipe main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.recipe main ol li {
    margin-bottom: 1em;
}
body.recipe .task-list-item {
    list-style: square;
    margin-bottom: 1em;
}
body.recipe .task-list-item input {
    display: none;
}
main hr {
    height: 80px;
    background-image: url('./boat.png');
    background-size: 89px 80px;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    margin-bottom: 1em;
    border: none;
}

@media (max-width: 900px) {
    #menu {
        display: none;
    }
    #hamburger {
        display: block;
        width: 50px;
        height: 50px;
        box-sizing: border-box;
        border: 15px solid #003247;
        border-right: 0px;
        border-left: 30px solid #003247;
        background: linear-gradient(
        to bottom,
        white, white 20%,
        transparent 20%, transparent 40%,
        white 40%, white 60%,
        transparent 60%, transparent 80%,
        white 80%, white 100%
        );
    }
    #hamburger-state:checked + #hamburger #sidebar,
    #hamburger-state:checked ~ #overlay {
        visibility: visible;
        right: 0px;
    }
}
