/*
Theme Name: HeyShutter
Theme URI: https://heyshutter.com/blog/
Description: Blog theme for heyshutter.com. Shares the 11ty site's header, footer and /assets/styles.css.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: heyshutter
*/

/* Blog-only styles. Everything else comes from the marketing site's /assets/styles.css. */
.blog-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.blog-hero h1 { font-size: clamp(42px, 6vw, 76px); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: clamp(64px, 9vw, 120px); }
.post-card { display: grid; gap: 14px; align-content: start; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s; }
.post-card:hover { border-color: var(--ink); }
.post-card .thumb { aspect-ratio: 16 / 10; background: #e6e8ec; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 4px 22px 24px; display: grid; gap: 10px; }
.post-card h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.post-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.post-meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.post-card.featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.post-card.featured .thumb { aspect-ratio: 16 / 9; height: 100%; }
.post-card.featured .body { padding: 28px 32px; }
.post-card.featured h2 { font-size: clamp(26px, 3vw, 38px); }
.empty-blog { padding: 40px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-2); margin-bottom: 120px; }
.pagination { display: flex; gap: 10px; justify-content: center; padding-bottom: 100px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 15px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-card.featured { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.article { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 9vw, 120px); }
.article-head { max-width: 820px; display: grid; gap: 18px; margin-bottom: 36px; }
.article-head h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; }
.article-head .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 44px; max-height: 620px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 70ch; font-size: 18.5px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin-top: 1.8em; line-height: 1.15; }
.prose h3 { font-size: 23px; color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--ink); text-decoration-color: var(--pencil); text-underline-offset: 3px; }
.prose img, .prose figure { border-radius: 14px; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 3px solid var(--pencil); font-family: var(--font-display); font-size: 24px; line-height: 1.3; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: #eceef1; padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose .wp-block-image img { height: auto; }
.article-cta { margin-top: 64px; max-width: 70ch; padding: 28px; border-radius: var(--radius-lg); background: var(--darkroom); color: var(--dark-text); display: grid; gap: 14px; }
.article-cta h3 { font-size: 26px; }
.article-cta p { color: var(--dark-muted); }
