:root {
    --bg: #f7f9fc;
    --surface: #fff;
    --text: #111827;
    --muted: #5b6472;
    --line: #e5e7eb;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --footer: #071426;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15,23,42,.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1120px,calc(100% - 40px));
    margin-inline: auto;
}

.narrow {
    width: min(780px,calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

/* Header */
.header-inner {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.site-branding {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-title {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 900;
    letter-spacing: .12em;
    font-size: 1.25rem;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
}

.custom-logo {
    display: block;
    max-height: 72px;
    max-width: 320px;
    width: auto;
    height: auto;
}

.primary-nav {
    grid-column: 3;
    justify-self: end;
}

.primary-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-weight: 700;
    font-size: .92rem;
}

.primary-nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    justify-self: end;
}

.hero {
    padding: 70px 0 45px;
    background: linear-gradient(135deg,#fff 0%,#f7fbff 55%,#eef5ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.kicker {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
}

.hero h1 {
    font-size: clamp(3rem,7vw,5.25rem);
    line-height: .94;
    margin: 0 0 24px;
    letter-spacing: -.065em;
}

.hero h1::after {
    content: "";
    display: inline-block;
    width: .13em;
    height: .13em;
    background: var(--accent);
    border-radius: 99px;
    margin-left: .08em;
}

.hero-copy>p:not(.kicker) {
    font-size: 1.2rem;
    color: #334155;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 800;
    border: 1px solid var(--line);
}

.button.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(37,99,235,.22);
}

.button.secondary {
    background: white;
}

.hero-visual {
    min-height: 370px;
    border-radius: 0 0 0 70px;
    background: radial-gradient(circle at 30% 20%,#dbeafe,transparent 30%),linear-gradient(135deg,#e2e8f0,#fff);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-visual.has-image {
    background: #e2e8f0;
}

.hero-visual.has-image img {
    width: 100%;
    height: 100%;
    min-height: 370px;
    object-fit: cover;
    display: block;
}

.hero-visual.has-placeholder::before {
    content: "";
    position: absolute;
    inset: 55px 45px;
    background: linear-gradient(135deg,#0f172a,#1e293b);
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(15,23,42,.18);
}

.hero-visual.has-placeholder::after {
    content: "Radio + Mac + Projects";
    position: absolute;
    left: 70px;
    top: 85px;
    color: #93c5fd;
    font-family: ui-monospace,Menlo,monospace;
    font-size: 1.1rem;
}

.desk-card {
    position: absolute;
    right: 55px;
    bottom: 55px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 10px;
    box-shadow: var(--shadow);
}

.desk-card span {
    font-weight: 800;
    color: #334155;
}

.featured-wrap {
    margin-top: 10px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 30px;
    align-items: center;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 46px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.badge {
    display: inline-flex;
    background: #dbeafe;
    color: var(--accent-dark);
    text-transform: uppercase;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: .72rem;
    font-weight: 900;
}

.featured-card h2,.section h2 {
    font-size: clamp(1.55rem,3vw,2.3rem);
    line-height: 1.08;
    margin: 18px 0 12px;
    letter-spacing: -.04em;
}

.featured-card p,.card-body p,.project-card p,.about-card p {
    color: var(--muted);
}

.featured-image img {
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15,23,42,.16);
}

.section {
    padding: 46px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-heading a,.read-link {
    color: var(--accent);
    font-weight: 800;
}

.card-grid {
    display: grid;
    gap: 26px;
}

.articles-grid {
    grid-template-columns: repeat(4,1fr);
}

.projects-grid {
    grid-template-columns: repeat(4,1fr);
}

.post-card,.project-card,.about-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
    overflow: hidden;
}

.card-image {
    display: block;
    aspect-ratio: 16/9;
    background: #e2e8f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body,.project-card {
    padding: 20px;
}

.card-body h3,.project-card h3 {
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0 0 9px;
}

.meta {
    color: #64748b;
    font-size: .86rem;
}

.project-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
    overflow: hidden;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.topic-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.topic-pills a {
    display: inline-flex;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    color: #334155;
}

.about-card {
    padding: 28px;
}

.site-footer {
    background: var(--footer);
    color: #dbeafe;
    margin-top: 40px;
    padding: 55px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr 1.2fr;
    gap: 40px;
}

.footer-grid h3 {
    color: #fff;
}

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

.footer-grid a {
    color: #dbeafe;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.footer-logo img {
    max-width: 150px;
    max-height: 70px;
    width: auto;
    height: auto;
}

.footer-logo span {
    width: 54px;
    height: 54px;
    border: 2px solid #e0f2fe;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.2rem;
}

.footer-button {
    display: inline-flex;
    background: var(--accent);
    color: #fff!important;
    padding: 10px 16px;
    border-radius: 9px;
    font-weight: 800;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 38px;
    padding-top: 20px;
    color: #94a3b8;
    font-size: .9rem;
}

.page-hero {
    padding: 70px 0 30px;
}

.page-hero h1,.single-header h1 {
    font-size: clamp(2.5rem,6vw,4.5rem);
    line-height: 1;
    letter-spacing: -.06em;
}

.single-header {
    padding: 70px 0 24px;
}

.single-featured img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 24px;
}

.content-body {
    font-size: 1.13rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 42px;
    margin-bottom: 50px;
}

.content-body h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin-top: 2em;
}

.content-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px;
    border-radius: 12px;
    overflow: auto;
}

.content-body a {
    color: var(--accent);
    font-weight: 700;
}

.pagination {
    padding: 20px 0 40px;
}

@media (max-width:900px) {
    .hero-grid,.featured-card,.split-grid,.footer-grid {
    grid-template-columns: 1fr;
}

.articles-grid,.projects-grid {
    grid-template-columns: repeat(2,1fr);
}

.hero {
    padding-top: 45px;
}

.hero-visual,
.hero-visual.has-image img {
    min-height: 280px;
}

.primary-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
}

.primary-nav.is-open {
    display: block;
}

.primary-nav ul {
    display: grid;
    gap: 16px;
}

.menu-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 800;
}

}

@media (max-width:620px) {
    .custom-logo {
    max-height: 58px;
    max-width: 220px;
}

.container,.narrow {
    width: min(100% - 28px,1120px);
}

.articles-grid,.projects-grid {
    grid-template-columns: 1fr;
}

.featured-card,.content-body {
    padding: 24px;
}

.hero h1 {
    font-size: 3.2rem;
}

.hero-actions {
    display: grid;
}

.button {
    justify-content: center;
}

.section-heading {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
}

}


/* Project detail fields */
.project-badges,
.project-meta-strip  {

    display: flex;

    flex-wrap: wrap;

    gap: .5rem;

    margin: .75rem 0 1rem;

}


.project-badges span,
.project-meta-strip span  {

    display: inline-flex;

    align-items: center;

    border: 1px solid rgba(31, 41, 55, .12);

    background: rgba(37, 99, 235, .07);

    color: #1f2937;

    border-radius: 999px;

    padding: .3rem .65rem;

    font-size: .82rem;

    font-weight: 650;

}


.project-version  {

    font-size: .9rem;

    color: #6b7280;

    margin-top: -.25rem;

}


.project-actions  {

    display: flex;

    flex-wrap: wrap;

    gap: .75rem;

    margin: 1.25rem 0 1.5rem;

}
