/* Studio — SuperPrint-inspired theme
   Bigger type, bento grids, tinted surfaces, sticky chrome with a soft edge.
   Black and white plus one accent (the tint), never more. */

:root {
    --radius: 2px;
    --gutter: clamp(18px, 4.4vw, 48px);
}

/* A wider canvas: modern layouts need room for asymmetric grids. */
body:not(.landing-page) .container { max-width: 1320px; }
body:not(.landing-page) .site-header { background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); }
body:not(.landing-page) .header-inner { height: 72px; }

body:not(.landing-page) .site-nav a { letter-spacing: .01em; }

/* Type: display face does the work, tighter and bigger. */
body:not(.landing-page) h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -.05em; }
body:not(.landing-page) h2 { letter-spacing: -.035em; }
body:not(.landing-page) .page-hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); padding-block: clamp(52px, 7vw, 92px) clamp(26px, 3.4vw, 44px); }
body:not(.landing-page) .page-hero h1 { margin-bottom: .5rem; }
body:not(.landing-page) .page-hero .eyebrow { color: var(--accent); }
body:not(.landing-page) .page-hero p { font-size: 1.02rem; max-width: 52ch; }

/* Bento post grid: the first card gets two columns and two rows of height. */
body:not(.landing-page) .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    background: none;
    border: 0;
    overflow: visible;
}
body:not(.landing-page) .post-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body:not(.landing-page) .post-card:hover {
    border-color: var(--card-line);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}
body:not(.landing-page) .post-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
body:not(.landing-page) .post-card:first-child .post-cover { aspect-ratio: 16 / 8; }
body:not(.landing-page) .post-card:first-child .post-card-body { padding: 1.5rem 1.6rem 1.7rem; gap: .55rem; }
body:not(.landing-page) .post-card:first-child h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); letter-spacing: -.03em; line-height: 1.12; }
body:not(.landing-page) .post-card-body { padding: 1.15rem 1.2rem 1.3rem; }
body:not(.landing-page) .post-card-body h2 { font-size: 1.06rem; letter-spacing: -.02em; }

/* Search results become a bento list too. */
body:not(.landing-page) .search-results { gap: 10px; background: none; border: 0; }
body:not(.landing-page) .search-result { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.15rem 1.25rem; transition: border-color .18s ease; }
body:not(.landing-page) .search-result:hover { border-color: var(--card-line); }

/* Article: a wide, calm measure with a tinted meta band. */
body:not(.landing-page) .article-inner { max-width: 820px; padding-top: clamp(46px, 6vw, 84px); }
body:not(.landing-page) .article-meta {
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: var(--accent-soft);
    padding: .7rem .9rem;
    margin-left: calc(-1 * .9rem);
    margin-right: calc(-1 * .9rem);
}
body:not(.landing-page) .prose { font-size: 1.02rem; line-height: 1.75; }
body:not(.landing-page) .prose h2 { border-bottom: 1px solid var(--line); padding-bottom: .3em; }

/* Footer: hairline top, generous padding, no background fill. */
body:not(.landing-page) .site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); }
body:not(.landing-page) .footer-title { color: var(--ink); }

@media (max-width: 900px) {
    body:not(.landing-page) .post-grid { grid-template-columns: 1fr 1fr; }
    body:not(.landing-page) .post-card:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
    body:not(.landing-page) .post-grid { grid-template-columns: 1fr; }
    body:not(.landing-page) .post-card:first-child { grid-column: span 1; }
    body:not(.landing-page) .article-meta { margin-left: 0; margin-right: 0; }
}
