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

:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-strong: #eef2f8;
    --text: #1f2937;
    --text-muted: #475569;
    --accent: #0f766e;
    --accent-strong: #0d5f58;
    --line: #d7dfeb;
    --hero-gradient: linear-gradient(125deg, #e8eef8 0%, #dbe9ff 42%, #f3f6fb 100%);
    --cat-ai: #0f766e;
    --cat-ai-soft: #ecf7f5;
    --cat-music: #9a3412;
    --cat-music-soft: #fff3ec;
    --cat-fun: #3f6212;
    --cat-fun-soft: #f3f9e9;
}

html, body {
    background: var(--bg) !important;
}

body, input, select, textarea {
    color: var(--text);
    font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 16px;
}

p {
    color: var(--text-muted);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 600;
    letter-spacing: normal;
}

strong, b {
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration-color: rgba(15, 118, 110, 0.35);
    text-underline-offset: 0.14em;
}

a:hover {
    color: var(--accent-strong) !important;
}

#header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.06);
}

#header #logo {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    margin-left: 1rem;
}

#header #logo .logo {
    color: var(--text);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#header #logo .site-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#header nav ul li a {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#header nav ul li a:hover {
    color: var(--accent) !important;
}

#header nav ul li.current a {
    color: var(--accent) !important;
}

#banner {
    background: var(--hero-gradient);
    border-bottom: 1px solid var(--line);
    min-height: 48vh;
    padding: 6.5rem 0 4.5rem;
}

#banner .content {
    align-items: center;
    gap: 2.2rem;
}

#banner .content header p {
    color: #5e6b7d;
    margin-top: 0.7rem;
}

#banner .content header h1 {
    color: #2f3d4f;
}

#banner .image img {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

#banner .image .home-hero-photo {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 58% 34%;
    width: min(100%, 520px);
}

#banner.home-banner-wide {
    background: var(--hero-gradient);
    min-height: auto;
    overflow: hidden;
    padding-bottom: 3.3rem;
    position: relative;
}

#banner.home-banner-wide:before,
#banner.home-banner-wide:after {
    display: none !important;
}

#banner.home-banner-wide .content {
    display: block;
    margin: 0 auto;
    max-width: 1060px;
    padding: 0 1.5rem;
    position: relative;
    text-align: left;
    z-index: 2;
}

#banner.home-banner-wide .content header {
    max-width: 760px;
}

#banner.home-banner-wide .home-text-band {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 300px;
    padding: 5.2rem 0 1.4rem;
    position: relative;
    width: 100vw;
}

#banner.home-banner-wide .home-hero-strip {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    overflow: hidden;
    position: relative;
    width: 100vw;
    z-index: 0;
}

#banner.home-banner-wide .home-hero-strip:before {
    background:
        radial-gradient(110% 120% at 80% 30%, rgba(8, 47, 73, 0.42) 0%, rgba(8, 47, 73, 0.18) 42%, rgba(8, 47, 73, 0.06) 70%, rgba(8, 47, 73, 0) 100%),
        linear-gradient(96deg, rgba(243, 246, 251, 0.03) 0%, rgba(15, 46, 84, 0.20) 46%, rgba(6, 24, 44, 0.36) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

#banner.home-banner-wide .home-hero-strip:after {
    background: linear-gradient(180deg, rgba(6, 22, 41, 0.08) 0%, rgba(6, 22, 41, 0) 18%, rgba(6, 22, 41, 0.22) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

#banner.home-banner-wide .home-hero-strip .home-hero-photo {
    border-radius: 0;
    box-shadow: none;
    display: block;
    filter: saturate(0.78) contrast(1.03) brightness(0.9);
    height: clamp(320px, 54vh, 640px);
    object-fit: cover;
    object-position: 52% 36%;
    width: 100%;
}

#banner.home-banner-wide .home-text-band .home-code-fade {
    background-image: url("https://cameronsummers.s3.us-east-1.amazonaws.com/Images/code_texture_home.png");
    background-position: 60% 12%;
    background-repeat: no-repeat;
    background-size: cover;
    filter: saturate(0.94) contrast(1.14) brightness(0.92);
    inset: 0 0 0 auto;
    opacity: 0.98;
    width: 50vw;
    pointer-events: none;
    position: absolute;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.56) 22%, #000000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.56) 22%, #000000 100%);
    z-index: 0;
}

#banner.home-banner-wide .home-text-band .home-code-fade:after {
    background:
        linear-gradient(94deg, rgba(248, 251, 255, 0.985) 0%, rgba(248, 251, 255, 0.90) 30%, rgba(248, 251, 255, 0.52) 60%, rgba(248, 251, 255, 0.16) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

#banner.home-banner-wide .content header {
    position: relative;
    z-index: 1;
}

.content-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
}

.home-tech-overlay {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 2.1rem;
    overflow: hidden;
    padding: 1.4rem;
    position: relative;
}

.home-tech-overlay:before {
    content: none;
}

.home-tech-overlay > * {
    position: relative;
    z-index: 1;
}

.home-tech-overlay .section-intro {
    margin-bottom: 1.15rem;
}

.home-tech-overlay .card-grid {
    margin: 0;
}

.section-intro {
    margin-bottom: 1.5rem;
}

.section-kicker {
    color: var(--accent);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.section-intro h1,
.section-intro h2 {
    position: relative;
}

.section-intro h1:after,
.section-intro h2:after {
    background: var(--accent);
    content: "";
    display: block;
    height: 2px;
    margin-top: 0.45rem;
    width: 68px;
}

.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 1.1rem 0 2.2rem;
}

.site-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid rgba(15, 118, 110, 0.65);
    border-radius: 6px;
    min-height: 100%;
    padding: 1.2rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-card:hover {
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.site-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

.site-card p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.site-card .link-list {
    margin-bottom: 0;
}

.category-pill {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
    padding: 0.2rem 0.55rem;
    text-transform: uppercase;
}

.site-card.category-ai .category-pill {
    background: rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.32);
    color: #0d5f58;
}

.site-card.category-music .category-pill {
    background: rgba(154, 52, 18, 0.1);
    border-color: rgba(154, 52, 18, 0.3);
    color: #7a2d11;
}

.site-card.category-fun .category-pill {
    background: rgba(63, 98, 18, 0.12);
    border-color: rgba(63, 98, 18, 0.3);
    color: #355011;
}

.link-list li {
    margin-bottom: 0.55rem;
}

.link-list li:last-child {
    margin-bottom: 0;
}

.split-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.highlight-panel {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-left: 3px solid rgba(15, 118, 110, 0.58);
    border-radius: 6px;
    padding: 1.1rem 1.2rem;
}

.entry-list {
    margin: 1rem 0 2rem;
}

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

.entry-item:last-child {
    border-bottom: 0;
}

.entry-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
    color: #1d4f4a;
}

.entry-item p {
    margin-bottom: 0;
}

.cta-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid rgba(15, 118, 110, 0.7);
    border-radius: 6px;
    margin-top: 0.5rem;
    padding: 1.4rem;
}

.button-link {
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: var(--accent);
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.4rem 0.85rem;
    text-transform: uppercase;
}

.button-link:hover {
    background: var(--accent);
    color: #fff !important;
}

#footer {
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    margin-top: 3rem;
    padding: 2rem 1rem;
}

#footer .footer-intro {
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

#footer .icons a {
    border-bottom: 0;
    color: var(--text-muted);
}

#footer .icons a:hover {
    color: var(--accent) !important;
}

#footer .icons a {
    border-radius: 999px;
    padding: 0.15rem;
}

#footer .icons a:hover {
    background: rgba(15, 118, 110, 0.08);
}

table th {
    color: var(--text);
    font-weight: 600;
}

table tbody tr {
    border-color: var(--line);
}

table tbody tr:nth-child(2n + 1) {
    background-color: rgba(15, 23, 42, 0.02);
}

table thead,
table tfoot {
    border-color: var(--line);
}

#footer .copyright {
    font-size: 0.8rem;
    margin-top: 1rem;
}

@media screen and (max-width: 980px) {
    #header #logo {
        justify-content: center;
        margin-left: 0;
    }

    #header #logo .site-tagline {
        display: none;
    }

    #banner .image .home-hero-photo {
        aspect-ratio: 5 / 6;
        object-position: 56% 32%;
        width: min(100%, 440px);
    }

    #banner.home-banner-wide {
        padding-bottom: 2.4rem;
    }

    #banner.home-banner-wide .content {
        padding: 0 1rem;
        text-align: left;
    }

    #banner.home-banner-wide .home-hero-strip .home-hero-photo {
        height: clamp(260px, 42vh, 420px);
        object-position: 50% 34%;
    }

    #banner.home-banner-wide .home-text-band {
        min-height: 250px;
        padding: 4.2rem 0 1rem;
    }

    #banner.home-banner-wide .home-text-band .home-code-fade {
        background-position: 62% 10%;
        background-size: cover;
        inset: 0 0 0 auto;
        width: 50vw;
    }

    .home-tech-overlay {
        padding: 1rem;
    }
}

/* Legacy theme color cleanup: replace leftover pink accents from main.css */
b.highlight,
h3.highlight {
    color: var(--accent) !important;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:hover,
input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
.button:active {
    box-shadow: inset 0 0 0 1px var(--accent) !important;
    color: var(--accent) !important;
}

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
.button.primary {
    background-color: var(--accent) !important;
}

.wrapper.style2 {
    background: var(--surface-strong) !important;
}

.wrapper.style2 input[type="submit"].primary,
.wrapper.style2 input[type="reset"].primary,
.wrapper.style2 input[type="button"].primary,
.wrapper.style2 .button.primary {
    color: var(--accent) !important;
}

/* Mobile nav overrides (HTML5UP title bar/nav panel) */
#titleBar {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
}

#titleBar .title {
    color: var(--text) !important;
    font-weight: 500 !important;
}

#titleBar .toggle:before {
    background: var(--accent) !important;
    color: #ffffff !important;
}

#titleBar .title {
    align-items: center;
    display: flex !important;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.03rem;
    font-weight: 600 !important;
    justify-content: center;
    line-height: 1.1 !important;
    overflow: hidden;
    padding: 0 0.9rem 0 3.6rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#titleBar .title .site-tagline {
    display: none !important;
}

#titleBar .title .logo {
    color: var(--text) !important;
    text-decoration: none;
}

#navPanel {
    background: var(--surface) !important;
    border-right: 1px solid var(--line);
}

#navPanel .link {
    border-top: 1px solid var(--line) !important;
    color: var(--text-muted) !important;
}

#navPanel .link.depth-0 {
    color: var(--text) !important;
    font-weight: 500 !important;
}

#navPanel .link.depth-0:hover {
    color: var(--accent) !important;
}

/* Legacy template normalization for older blog/project pages */
#main.wrapper {
    padding: 2.5rem 0 2rem;
}

#main.wrapper > .container {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    max-width: 1060px;
    padding: 1.8rem clamp(1rem, 2.4vw, 2.2rem);
}

#main.wrapper .wrapper.style2 {
    background: transparent !important;
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}

#main.wrapper .wrapper.style2 .header,
#main.wrapper .wrapper.style2 h1,
#main.wrapper .wrapper.style2 h2 {
    background: var(--surface-strong);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    color: var(--text);
    margin: 0;
    padding: 0.75rem 1rem;
}

#main.wrapper .style1,
#main.wrapper .style1 p,
#main.wrapper .style1 li,
#main.wrapper .style1 td,
#main.wrapper .style1 th {
    color: var(--text-muted);
}

#main.wrapper .style1 h2,
#main.wrapper .style1 h3,
#main.wrapper .style1 h4,
#main.wrapper .major h2,
#main.wrapper .major h3 {
    color: var(--text);
}

#main.wrapper a {
    color: var(--accent-strong);
}

#main.wrapper hr {
    border-bottom-color: var(--line);
    margin: 1.15rem 0;
}

#main.wrapper .align-center p {
    color: var(--text-muted);
}

#main.wrapper .image img,
#main.wrapper img.image {
    border: 1px solid var(--line);
    border-radius: 6px;
}

#main.wrapper iframe {
    border: 1px solid var(--line);
    border-radius: 8px;
}

#main.wrapper input[type="text"],
#main.wrapper input[type="password"],
#main.wrapper input[type="email"],
#main.wrapper select,
#main.wrapper textarea {
    background: #ffffff;
    border-color: var(--line);
    color: var(--text);
}

#main.wrapper input::placeholder,
#main.wrapper textarea::placeholder {
    color: #7b8797;
    opacity: 1;
}

#main.wrapper pre,
#main.wrapper code {
    background: #f6f9fc;
    border-color: var(--line);
    color: #233041;
}

#main.wrapper blockquote {
    border-left-color: var(--accent);
    color: var(--text-muted);
}

#main.wrapper .standouts li {
    margin-bottom: 0.65rem;
}

@media screen and (max-width: 736px) {
    #main.wrapper > .container {
        border-radius: 0;
        box-shadow: none;
        padding: 1.15rem 1rem;
    }
}

.prvis-canvas {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 0 2em 0;
    max-width: 840px;
    width: 78%;
}

@media screen and (max-width: 980px) {
    .prvis-canvas {
        width: 96%;
    }
}

.drag-hint {
    align-items: center;
    color: var(--accent-strong);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.drag-text {
    border-bottom: 1px dashed rgba(15, 118, 110, 0.45);
    padding-bottom: 1px;
}

.drag-arrow {
    animation: drag-nudge 1.1s ease-in-out infinite;
    display: inline-block;
    font-size: 0.85rem;
}

.drag-arrow:last-child {
    animation-delay: 0.18s;
}

@keyframes drag-nudge {
    0%, 100% {
        opacity: 0.55;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(3px);
    }
}

.prvis-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    cursor: pointer;
    height: 2rem;
    margin: 0 0.35rem;
    vertical-align: middle;
    width: min(560px, 72vw);
}

.prvis-slider:focus {
    outline: none;
}

.prvis-slider::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, #dce8e6 0%, #a7d5cf 100%);
    border: 1px solid #94c7bf;
    border-radius: 999px;
    height: 0.6rem;
}

.prvis-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #0f766e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.35);
    height: 1.05rem;
    margin-top: -0.24rem;
    width: 1.05rem;
}

.prvis-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.22);
}

.prvis-slider::-moz-range-track {
    background: linear-gradient(90deg, #dce8e6 0%, #a7d5cf 100%);
    border: 1px solid #94c7bf;
    border-radius: 999px;
    height: 0.6rem;
}

.prvis-slider::-moz-range-thumb {
    background: #0f766e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.35);
    height: 1.05rem;
    width: 1.05rem;
}

.prvis-slider::-moz-focus-outer {
    border: 0;
}

@media screen and (max-width: 980px) {
    .prvis-slider {
        width: min(560px, 86vw);
    }
}
