/*
Theme Name: Seagrief Simple
Description: A small, modern theme retaining the original seagrief.co.uk banner and navigation.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
Text Domain: seagrief-simple
*/

:root {
    color-scheme: light;
    --page-width: 1170px;
    --text: #292d32;
    --muted: #687078;
    --link: #1769aa;
    --border: #d9dee3;
    --nav: #24282c;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: #edf0f2;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--link);
}

a:hover,
a:focus {
    color: #0e4774;
}

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

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    background: #fff;
    height: auto;
    left: 1rem;
    padding: .75rem 1rem;
    top: 1rem;
    width: auto;
    z-index: 1000;
}

.site {
    background: #fff;
    box-shadow: 0 1px 8px rgb(0 0 0 / 10%);
    margin: 1.5rem auto;
    max-width: var(--page-width);
}

.site-branding {
    padding: 1.25rem 1.5rem 1rem;
}

.site-title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    line-height: 1.15;
    margin: 0 0 .85rem;
}

.site-title a {
    color: #202428;
    text-decoration: none;
}

.site-banner {
    display: block;
}

.site-banner img {
    aspect-ratio: 1170 / 151;
    display: block;
    object-fit: cover;
    width: 100%;
}

.site-nav {
    align-items: center;
    background: var(--nav);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0 1rem;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: #f8f9fa;
    display: block;
    padding: .8rem 1rem;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a {
    background: #3b4248;
    color: #fff;
}

.nav-search {
    display: flex;
    margin: .45rem 0;
}

.nav-search label {
    margin: 0;
}

.nav-search input[type="search"] {
    border: 1px solid #596168;
    border-radius: 4px 0 0 4px;
    min-width: 10rem;
    padding: .45rem .6rem;
}

.nav-search button {
    background: #f2f4f5;
    border: 1px solid #596168;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    padding: .45rem .7rem;
}

.site-content {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr);
    padding: 2rem 1.5rem 3rem;
}

.entry {
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
}

.entry:last-child {
    margin-bottom: 0;
}

.entry-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.2;
    margin: 0 0 .35rem;
}

.entry-title a {
    color: #252a2f;
    text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
    color: var(--link);
}

.entry-meta,
.entry-footer {
    color: var(--muted);
    font-size: .9rem;
}

.entry-content {
    margin-top: 1.25rem;
}

.entry-content pre {
    background: #f4f5f6;
    border: 1px solid var(--border);
    overflow-x: auto;
    padding: 1rem;
}

.entry-content table {
    border-collapse: collapse;
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.entry-content td,
.entry-content th {
    border: 1px solid var(--border);
    padding: .5rem;
}

.sidebar {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
}

.sidebar h2 {
    font-size: 1.1rem;
    margin: 0 0 .5rem;
}

.sidebar section {
    margin-bottom: 2rem;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin-bottom: .45rem;
}

.pagination {
    margin-top: 2rem;
}

.comments-area {
    margin-top: 2.5rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
}

.comment-list .children {
    list-style: none;
    margin-left: 1.5rem;
}

.comment-meta {
    color: var(--muted);
    font-size: .9rem;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
    border: 1px solid var(--border);
    max-width: 100%;
    padding: .55rem;
    width: 100%;
}

.comment-form input[type="submit"] {
    background: var(--nav);
    border: 0;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    padding: .65rem 1rem;
}

.site-footer {
    background: #f4f5f6;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .9rem;
    padding: 1rem 1.5rem;
}

@media (max-width: 760px) {
    .site {
        margin: 0;
    }

    .site-branding {
        padding: 1rem;
    }

    .site-nav {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: .35rem;
    }

    .site-nav ul {
        flex-direction: column;
    }

    .site-nav a {
        padding: .65rem .75rem;
    }

    .nav-search {
        padding: 0 .4rem .4rem;
    }

    .nav-search input[type="search"] {
        min-width: 0;
        width: 100%;
    }

    .site-content {
        display: block;
        padding: 1.5rem 1rem 2rem;
    }

    .sidebar {
        border-left: 0;
        border-top: 1px solid var(--border);
        margin-top: 2rem;
        padding-left: 0;
        padding-top: 1.5rem;
    }
}
