/*
Theme Name: TripSitter Basic
Theme URI: https://tripsitter.cc/blog
Author: TripSitter
Description: A minimal TripSitter blog theme with a soft green-blue palette and serif headings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: tripsitter-basic
*/

:root {
    --ts-ink: #12343b;
    --ts-muted: #527079;
    --ts-teal: #1f6f78;
    --ts-green: #2f7d6f;
    --ts-line: rgba(47, 125, 111, 0.18);
    --ts-paper: #fbfefd;
    --ts-soft: #e8f5f4;
    --ts-blue: #dfeff4;
    --ts-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    --ts-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top left, rgba(72, 165, 157, 0.18), transparent 34rem),
        linear-gradient(180deg, #f4fbfa 0%, var(--ts-soft) 48%, var(--ts-blue) 100%);
    color: var(--ts-ink);
    font-family: var(--ts-sans);
    margin: 0;
    min-height: 100vh;
}

a {
    color: var(--ts-teal);
    text-decoration: none;
}

a:hover {
    color: var(--ts-ink);
}

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

.site-nav {
    background: rgba(248, 253, 252, 0.92);
    border-bottom: 1px solid var(--ts-line);
    box-shadow: 0 18px 40px rgba(18, 52, 59, 0.07);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-inner {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 76rem;
    min-height: 4rem;
    padding: 0 1rem;
}

.brand-mark {
    align-items: center;
    color: var(--ts-teal);
    display: inline-flex;
    font-family: var(--ts-serif);
    font-size: 1.45rem;
    gap: 0.55rem;
    font-weight: 700;
}

.brand-mark-image {
    display: block;
    height: 2.25rem;
    width: 2.25rem;
}

.nav-links {
    align-items: center;
    display: none;
    gap: 1rem;
}

.nav-link {
    color: #3f6670;
    font-weight: 700;
}

.btn-primary,
.btn-secondary {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 0.72rem 1.05rem;
}

.btn-primary {
    background: var(--ts-teal);
    border: 1px solid var(--ts-teal);
    color: #f8fdfc;
}

.btn-secondary {
    background: var(--ts-paper);
    border: 1px solid rgba(31, 111, 120, 0.35);
    color: var(--ts-teal);
}

.mobile-menu {
    position: relative;
}

.mobile-menu summary {
    align-items: center;
    background: var(--ts-paper);
    border: 1px solid rgba(31, 111, 120, 0.35);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 0.22rem;
    height: 2.5rem;
    justify-content: center;
    list-style: none;
    width: 2.5rem;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary span {
    background: var(--ts-teal);
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 1.1rem;
}

.mobile-menu-panel {
    background: rgba(251, 254, 253, 0.98);
    border: 1px solid var(--ts-line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(18, 52, 59, 0.16);
    display: grid;
    gap: 0.25rem;
    min-width: min(18rem, calc(100vw - 2rem));
    padding: 0.75rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
}

.mobile-menu-panel a {
    border-radius: 8px;
    color: #3f6670;
    display: block;
    font-weight: 800;
    padding: 0.8rem 0.9rem;
}

.blog-hero,
.content-wrap {
    margin: 0 auto;
    max-width: 76rem;
    padding: 2.5rem 1rem;
}

.blog-hero h1,
.entry-title,
.section-title {
    color: var(--ts-ink);
    font-family: var(--ts-serif);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.blog-hero h1 {
    font-size: clamp(3rem, 8vw, 5.8rem);
    margin: 0;
    max-width: 11ch;
}

.blog-hero p {
    color: var(--ts-muted);
    font-size: 1.2rem;
    line-height: 1.75;
    max-width: 42rem;
}

.content-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr);
}

.post-card,
.entry-panel,
.sidebar-panel {
    background: rgba(251, 254, 253, 0.9);
    border: 1px solid var(--ts-line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(18, 52, 59, 0.10);
}

.post-card {
    padding: 1.35rem;
}

.entry-panel {
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

.entry-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin: 0 0 0.75rem;
}

.entry-meta {
    color: var(--ts-muted);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.entry-content {
    color: #344f56;
    font-size: 1.06rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    color: var(--ts-ink);
    font-family: var(--ts-serif);
    line-height: 1.1;
}

.read-more {
    font-weight: 800;
}

.sidebar-panel {
    padding: 1.25rem;
}

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

.sidebar-panel li + li {
    border-top: 1px solid var(--ts-line);
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.site-footer {
    color: var(--ts-muted);
    margin: 0 auto;
    max-width: 76rem;
    padding: 2rem 1rem 3rem;
}

.footer-brand {
    align-items: center;
    color: var(--ts-teal);
    display: inline-flex;
    font-family: var(--ts-serif);
    font-size: 1.25rem;
    gap: 0.5rem;
    font-weight: 700;
}

.footer-brand-image {
    display: block;
    height: 2rem;
    width: 2rem;
}

.nav-previous,
.nav-next {
    font-weight: 800;
}

@media (min-width: 760px) {
    .nav-links {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 20rem;
    }
}
