@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================
   VARIABLES
========================= */

:root {
    --navy: #111653;
    --blue: #07569b;
    --white: #fffbea;
    --orange: #f26a38;
}


/* =========================
   BODY
========================= */

body {
    background-image: url("images/bigbg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    color: var(--white);

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    min-height: 100vh;
}


/* =========================
   HEADINGS
========================= */

h1,
h2,
h3,
.brand-name,
.page-heading h1 {
    font-size: clamp(60px, 9vw, 100px);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -4px;
}

/* =========================
   MAIN WEBSITE FRAME
========================= */

.page {
    width: 88%;
    max-width: 1100px;

    margin: 45px auto 0;

    background-image: url("/images/container-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border: 5px solid var(--navy);

    min-height: calc(100vh - 45px);

    display: flex;
    flex-direction: column;

    min-width: 0;
}


/* =========================
   HEADER
========================= */

.site-header {
    background: var(--navy);
    border-bottom: 5px solid var(--white);
}


.brand {
    min-height: 145px;

    display: flex;
    align-items: center;

    padding: 25px 35px;

    border: 3px solid var(--white);
}


.fish {
    font-size: 45px;
    margin-right: 18px;
}


.brand-name {
    font-size: clamp(42px, 7vw, 75px);

    font-weight: 900;

    line-height: .9;

    letter-spacing: -3px;
}


/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;

    /* SHOW PAGE IMAGE */
    background: transparent;
}


nav a {
    color: var(--white);

    text-decoration: none;

    padding: 18px 28px;

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-size: 18px;

    border-right: 3px solid var(--white);

    transition:
        background .15s ease,
        color .15s ease;
}


nav a:hover {
    background: var(--orange);
}


/* =========================
   HAMBURGER
========================= */

.menu-button {
    display: none;

    background: none;
    border: none;

    color: var(--white);

    font-size: 32px;

    cursor: pointer;
}


/* =========================
   MAIN
========================= */

main {
    padding: 55px;

    flex: 1;

    min-width: 0;

    overflow-x: hidden;

    /* SHOW PAGE IMAGE */
    background: transparent;
}


/* =========================
   PAGE HEADING
========================= */

.page-heading {
    border-bottom: 5px solid var(--white);

    padding-bottom: 25px;

    margin-bottom: 40px;
}


.page-heading h1 {
    font-size: clamp(45px, 6vw, 70px);

    font-weight: 900;

    line-height: .9;

    letter-spacing: -3px;
}

/* =========================
   HOME
========================= */

.home-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
}


.home-content p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 700px;
}

/* =========================
   BLOG GRID
========================= */

.blog-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 35px;
}


.blog-card {
    background: var(--navy);

    border: 4px solid var(--white);

    transition:
        transform .2s ease;

    min-width: 0;
}


.blog-card:hover {
    transform: translateY(-6px);
}


.blog-link {
    display: block;

    color: inherit;

    text-decoration: none;

    height: 100%;
}


.blog-image {
    height: 220px;

    background: #063d70;

    border-bottom: 4px solid var(--white);

    overflow: hidden;
}


.blog-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;

    transition:
        transform .2s ease;
}


.blog-card:hover .blog-image img {
    transform: scale(1.04);
}


.blog-content {
    padding: 22px;

    min-width: 0;
}


.blog-content h2 {
    font-size: 30px;
    margin-bottom: 12px;
}


.blog-content p {
    font-size: 16px;

    line-height: 1.5;

    margin-bottom: 18px;
}


/* =========================================================
   FULL BLOG
========================================================= */

.full-blog {
    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    min-width: 0;

    overflow: hidden;
}


.full-blog h1 {
    font-size: clamp(45px, 7vw, 80px);

    font-weight: 900;

    line-height: .95;

    margin-bottom: 15px;
}


.blog-date {
    font-size: 16px;

    margin-bottom: 35px;
}


/* =========================
   MAIN BLOG IMAGE
========================= */

.full-blog-image {
    display: block !important;

    width: 100% !important;

    max-width: 100% !important;

    height: auto !important;

    box-sizing: border-box !important;

    border: 4px solid var(--white);

    margin-bottom: 30px;
}


/* =========================
   BLOG ARTICLE
========================= */

.blog-article {
    width: 100%;

    max-width: 100%;

    min-width: 0;

    font-size: 18px;

    line-height: 1.7;

    overflow: hidden;
}


.blog-article p {
    margin-bottom: 25px;
}


.blog-article h1 {
    font-size: 45px;

    margin: 40px 0 20px;
}


.blog-article h2 {
    font-size: 35px;

    margin: 35px 0 15px;
}


.blog-article h3 {
    font-size: 28px;

    margin: 30px 0 12px;
}


/* =========================
   ALL IMAGES INSIDE BLOG
========================= */

.full-blog img,
.blog-article img,
.article-image {
    display: block !important;

    max-width: 100% !important;

    width: auto !important;

    height: auto !important;

    box-sizing: border-box !important;

    border: 4px solid var(--white);

    margin: 30px 0;
}


/*
   If an image is naturally wider than
   the blog, max-width forces it to shrink.
*/

.full-blog img {
    max-width: 100% !important;
}


/* =========================
   BLOG TEXT
========================= */

.blog-article strong {
    font-weight: 700;
}


.blog-article em {
    font-style: italic;
}


.blog-article ul,
.blog-article ol {
    margin: 20px 0 25px 30px;
}


.blog-article li {
    margin-bottom: 8px;
}


.blog-article a {
    color: var(--white);

    text-decoration: underline;
}


.blog-article blockquote {
    border-left: 5px solid var(--orange);

    padding-left: 20px;

    margin: 30px 0;

    font-style: italic;
}


.blog-article hr {
    border: none;

    border-top: 3px solid var(--white);

    margin: 35px 0;
}


.back-link {
    display: inline-block;

    margin-top: 35px;

    color: var(--white);

    background: var(--orange);

    padding: 12px 20px;

    text-decoration: none;

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-weight: 600;

    transition:
        background .15s ease,
        color .15s ease;
}


.back-link:hover {
    background: var(--white);

    color: var(--navy);
}


/* =========================
   ABOUT
========================= */

.about-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    align-items: center;
}


.about-content h2 {
    font-size: 35px;

    margin-bottom: 20px;
}


.about-content p {
    font-size: 18px;

    line-height: 1.7;
}


.about-image {
    min-height: 300px;

    border: 4px solid var(--white);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 120px;
}


/* =========================
   SUBSCRIBE
========================= */

.subscribe-box {
    background: var(--navy);

    border: 4px solid var(--white);

    padding: 40px;

    max-width: 700px;
}


.subscribe-box h2 {
    font-size: 40px;

    margin-bottom: 15px;
}


.subscribe-box p {
    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 30px;
}


.subscribe-box form {
    display: flex;

    gap: 10px;
}


.subscribe-box input {
    flex: 1;

    padding: 15px;

    border: 3px solid var(--white);

    background: var(--blue);

    color: var(--white);

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-size: 16px;
}


.subscribe-box input::placeholder {
    color: var(--white);
}


.subscribe-box button {
    padding: 15px 25px;

    border: 3px solid var(--white);

    background: var(--orange);

    color: var(--white);

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-weight: 600;

    font-size: 16px;

    cursor: pointer;
}


.subscribe-box button:hover {
    background: var(--white);

    color: var(--navy);
}


/* =========================
   FOOTER
========================= */

footer {
    background: var(--navy);

    border-top: 5px solid var(--white);

    padding: 35px 55px;

    font-size: 20px;
}


/* =========================================================
   ADMIN PANEL
========================================================= */

.admin-wrapper {
    max-width: 1000px;

    margin: 0 auto;
}


.admin-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    margin-bottom: 35px;
}


.admin-top h2 {
    font-size: 38px;
}


.admin-subtitle {
    margin-top: 5px;

    font-size: 16px;

    opacity: .8;
}


.admin-buttons {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


.admin-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 20px;

    background: var(--orange);

    color: var(--white);

    border: 3px solid var(--white);

    text-decoration: none;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}


.admin-button:hover {
    background: var(--white);

    color: var(--navy);

    transform: translateY(-2px);
}


/* =========================
   ADMIN POST LIST
========================= */

.admin-list {
    display: flex;

    flex-direction: column;

    gap: 16px;
}


.admin-item {
    background: var(--navy);

    border: 3px solid var(--white);

    padding: 22px 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


.admin-item-info {
    min-width: 0;
}


.admin-item h3 {
    font-size: 28px;

    margin-bottom: 7px;
}


.admin-item-excerpt {
    font-size: 16px;

    line-height: 1.5;

    opacity: .9;

    margin-bottom: 8px;
}


.admin-item-meta {
    font-size: 14px;

    opacity: .75;
}


.status {
    font-weight: 600;
}


.status.published {
    color: #b8e6c1;
}


.status.draft {
    color: #ffd19a;
}


/* =========================
   ADMIN ACTIONS
========================= */

.admin-item-actions {
    display: flex;

    gap: 8px;

    flex-shrink: 0;
}


.admin-action {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 9px 16px;

    background: transparent;

    color: var(--white);

    border: 2px solid var(--white);

    text-decoration: none;

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}


.admin-action:hover {
    background: var(--white);

    color: var(--navy);
}


.admin-action.delete:hover {
    background: var(--orange);

    color: var(--white);

    border-color: var(--orange);
}


/* =========================
   ADMIN EMPTY
========================= */

.admin-empty {
    background: var(--navy);

    border: 3px solid var(--white);

    padding: 45px;

    text-align: center;
}


.admin-empty h2 {
    font-size: 32px;

    margin-bottom: 10px;
}


.admin-empty p {
    font-size: 17px;
}


/* =========================
   ADMIN NOTE
========================= */

.admin-note {
    margin-top: 30px;

    font-size: 15px;

    opacity: .7;
}


/* =========================================================
   ADMIN EDITOR
========================================================= */

.editor {
    max-width: 900px;

    margin: 0 auto;

    background: var(--navy);

    border: 4px solid var(--white);

    padding: 40px;
}


.editor-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 30px;

    margin-bottom: 35px;

    padding-bottom: 25px;

    border-bottom: 3px solid var(--white);
}


.editor-top h2 {
    font-size: 36px;

    margin-bottom: 8px;
}


.editor-top p {
    font-size: 17px;

    opacity: .85;
}


.editor-back {
    display: inline-block;

    flex-shrink: 0;

    color: var(--white);

    background: var(--orange);

    padding: 12px 18px;

    text-decoration: none;

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-weight: 600;

    transition: .2s ease;
}


.editor-back:hover {
    background: var(--white);

    color: var(--navy);
}


/* =========================
   EDITOR FORM
========================= */

.editor-form {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


.field {
    display: flex;

    flex-direction: column;

    gap: 9px;
}


.field label {
    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 22px;

    font-weight: 700;
}


.field input,
.field textarea {
    width: 100%;

    background: var(--blue);

    color: var(--white);

    border: 2px solid rgba(255, 251, 234, 0.6);

    padding: 14px 16px;

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-size: 17px;

    outline: none;

    transition: .2s ease;
}


.field input:focus,
.field textarea:focus {
    border-color: var(--white);

    box-shadow:
        0 0 0 3px rgba(255, 251, 234, 0.12);
}


.field textarea {
    min-height: 400px;

    resize: vertical;

    line-height: 1.6;
}


.field small {
    font-size: 14px;

    opacity: .7;
}


/* =========================
   IMAGE UPLOAD
========================= */

.image-upload {
    border: 2px dashed var(--white);

    padding: 22px;
}


input[type="file"] {
    cursor: pointer;
}


input[type="file"]::file-selector-button {
    background: var(--orange);

    color: var(--white);

    border: 2px solid var(--white);

    padding: 9px 14px;

    margin-right: 12px;

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-weight: 600;

    cursor: pointer;
}


input[type="file"]::file-selector-button:hover {
    background: var(--white);

    color: var(--navy);
}


/* =========================
   PUBLISH BUTTON
========================= */

.publish-button {
    width: 100%;

    min-height: 55px;

    margin-top: 5px;

    padding: 15px;

    border: 3px solid var(--white);

    background: var(--orange);

    color: var(--white);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 21px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}


.publish-button:hover {
    background: var(--white);

    color: var(--navy);

    transform: translateY(-2px);
}


/* =========================
   PUBLISH ROW
========================= */

.publish-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-top: 10px;

    padding-top: 25px;

    border-top:
        2px solid rgba(255, 251, 234, 0.3);
}


.switch-label {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 18px;

    cursor: pointer;
}


.switch-label input {
    width: 18px;

    height: 18px;

    accent-color: var(--orange);
}


/* =========================
   SAVE BUTTON
========================= */

.save-button {
    border: none;

    background: var(--orange);

    color: var(--white);

    padding: 15px 28px;

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;
}


.save-button:hover {
    background: var(--white);

    color: var(--navy);
}


/* =========================
   CANCEL
========================= */

.editor-cancel {
    display: inline-block;

    margin-top: 20px;

    color: var(--white);

    text-decoration: none;

    font-size: 16px;

    opacity: .7;
}


.editor-cancel:hover {
    opacity: 1;

    text-decoration: underline;
}


/* =========================================================
   ADMIN LOGIN
========================================================= */

.admin-box {
    background: var(--navy);

    border: 3px solid var(--white);

    padding: 35px;

    max-width: 550px;

    margin: 0 auto;
}


.admin-box h2 {
    font-size: 38px;

    margin-bottom: 25px;
}


.admin-box form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.admin-box input {
    width: 100%;

    padding: 14px;

    border: 3px solid var(--white);

    background: var(--blue);

    color: var(--white);

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-size: 17px;
}


.admin-box input::placeholder {
    color: var(--white);

    opacity: .7;
}


.admin-box input:focus {
    outline: none;

    border-color: var(--orange);

    box-shadow:
        0 0 0 2px var(--orange);
}


.admin-box button {
    padding: 14px;

    border: 3px solid var(--white);

    background: var(--orange);

    color: var(--white);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 19px;

    font-weight: 700;

    cursor: pointer;
}


.admin-box button:hover {
    background: var(--white);

    color: var(--navy);
}


/* =========================
   ADMIN ERROR
========================= */

.admin-error {
    background: var(--orange);

    border: 3px solid var(--white);

    padding: 14px;

    margin-bottom: 20px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .page {
        width: 100%;

        margin: 0;

        border: none;

        min-height: 100vh;
    }


    .brand {
        min-height: 110px;

        padding: 20px;
    }


    .fish {
        font-size: 30px;

        margin-right: 10px;
    }


    .brand-name {
        font-size: 40px;

        letter-spacing: -2px;
    }


    .menu-button {
        display: block;

        position: absolute;

        top: 32px;

        right: 20px;
    }


    nav {
        display: none;

        flex-direction: column;

        border-top: 3px solid var(--white);

        background: transparent;
    }


    nav.open {
        display: flex;
    }


    nav a {
        border-right: none;

        border-bottom: 2px solid var(--white);

        padding: 16px 20px;
    }


    main {
        padding: 25px 20px;

        min-width: 0;

        background: transparent;
    }


    .page-heading h1 {
        font-size: 65px;
    }


    .blog-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .blog-image {
        height: 200px;
    }


    .about-content {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .about-image {
        min-height: 220px;

        font-size: 90px;
    }


    .full-blog {
        width: 100%;

        max-width: 100%;
    }


    .full-blog-image {
        max-height: 300px;

        width: 100% !important;

        max-width: 100% !important;
    }


    .subscribe-box {
        padding: 25px;
    }


    .subscribe-box form {
        flex-direction: column;
    }


    footer {
        padding: 30px 20px;
    }


    .admin-top {
        align-items: stretch;

        flex-direction: column;
    }


    .admin-buttons {
        flex-direction: column;

        width: 100%;
    }


    .admin-button {
        width: 100%;

        text-align: center;
    }


    .admin-item {
        flex-direction: column;

        align-items: stretch;

        padding: 20px;
    }


    .admin-item-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;

        width: 100%;
    }


    .admin-action {
        width: 100%;

        text-align: center;
    }


    .editor {
        padding: 25px 20px;
    }


    .editor-top {
        flex-direction: column;
    }


    .editor-top h2 {
        font-size: 30px;
    }


    .publish-row {
        flex-direction: column;

        align-items: stretch;
    }


    .save-button {
        width: 100%;
    }


    .admin-box {
        padding: 25px;
    }


    /* MOBILE BLOG IMAGES */

    .full-blog img,
    .blog-article img,
    .article-image {
        max-width: 100% !important;

        width: auto !important;

        height: auto !important;
    }
}


/* =========================================================
   BLOG IMAGE CONTAINMENT FIX
========================================================= */

.full-blog,
.blog-article {
    width: 100%;

    max-width: 900px;

    min-width: 0;

    overflow: hidden;
}


.blog-article img {
    display: block;

    width: 100% !important;

    max-width: 100% !important;

    height: auto !important;

    box-sizing: border-box;

    object-fit: contain;
}
.latest-blog-link {
    display: inline-block;

    margin-top: 15px;

    color: var(--white);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 22px;

    font-weight: 700;

    text-decoration: none;

    border-bottom: 3px solid var(--white);

    padding-bottom: 4px;

    transition:
        color .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.latest-blog-link:hover {
    color: var(--orange);

    border-color: var(--orange);

    transform: translateX(5px);
}
.latest-blog-text {
    display: block;

    margin-top: 12px;

    font-family:
        "Source Serif 4",
        Georgia,
        serif;

    font-size: 20px;
}

.latest-blog-link {
    color: var(--white) !important;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-weight: 700;

    text-decoration: underline;

    transition: color .15s ease;
}

.latest-blog-link:visited {
    color: var(--white) !important;
}

.latest-blog-link:hover {
    color: var(--orange) !important;
}
.page-heading h1 {
    font-size: 40px !important;
    font-weight: 900 !important;
    line-height: 0.9 !important;
    letter-spacing: -2px !important;
}