/*
Theme Name: Expression Lab Blog
Theme URI: https://theexpressionlab.co
Author: The Expression Lab
Author URI: https://theexpressionlab.co
Description: Blog theme for The Expression Lab — matches the main site (bone + wine + magenta palette, Prata + Helvetica). Designed to sit at theexpressionlab.co/blog.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expression-lab
*/

/* ============ FONTS ============ */
@font-face { font-family: 'Helvetica Local'; src: url('assets/fonts/Helvetica.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Helvetica Local'; src: url('assets/fonts/Helvetica-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Helvetica Local'; src: url('assets/fonts/Helvetica-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Prata Local'; src: url('assets/fonts/Prata-Regular.ttf') format('truetype'); font-display: swap; }

/* ============ TOKENS (matched to main site) ============ */
:root {
  --ink:    #1A0F12;
  --paper:  #EFE7D8;
  --paper-2:#E6DCC8;
  --blush:  #E9D4C5;
  --muted:  #7a6f5f;
  --line:   rgba(26,15,18,0.12);
  --line-2: rgba(26,15,18,0.22);
  --wine:   #6E1E2B;
  --rust:   #B02870;
  --rust-soft: rgba(176,40,112,0.12);
  --display: 'Prata Local','Prata',serif;
  --body:   'Helvetica Local','Helvetica Neue',Helvetica,Arial,sans-serif;
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--body); font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
img { max-width: 100%; height: auto; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.kicker { font-size: 10px; letter-spacing: 4px; color: var(--muted); text-transform: uppercase; }
.eyebrow { font-size: 11px; letter-spacing: 4px; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }

/* ============ NAV (identical to main site) ============ */
nav.site {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(245,240,235,0.94); backdrop-filter: blur(8px);
}
nav.site .container { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(176, 40, 112, 0.40);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 22px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .t { font-family: var(--display); font-size: 18px; letter-spacing: 0.01em; }
.brand-text .s { font-size: 9px; letter-spacing: 3px; color: var(--muted); margin-top: 3px; }
nav.site .menu { display: flex; gap: 22px; font-size: 14px; margin-left: auto; color: var(--ink); }
nav.site .menu a { color: rgba(14,10,20,0.7); }
nav.site .menu a:hover, nav.site .menu a.active { color: var(--ink); }
nav.site .menu a.active { border-bottom: 2px solid var(--rust); padding-bottom: 2px; }
nav.site .cta { font-size: 13px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid var(--ink); font-family: var(--body); cursor: pointer; transition: transform .15s;
}
.btn.fill { background: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.accent { background: var(--rust); color: var(--paper); border: 1px solid var(--rust); }
.btn:hover { transform: translateY(-1px); }

/* ============ SECTIONS ============ */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }
.page-head { padding: 48px 0 8px; text-align: center; }
.page-head h1 {
  font-family: var(--display); font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05; letter-spacing: -0.01em; margin: 10px 0 14px;
}
.page-head h1 .hi { color: var(--rust); font-style: italic; }
.page-head p { color: rgba(14,10,20,0.75); font-size: 15px; line-height: 1.65; max-width: 56ch; margin: 0 auto; }

/* ============ BLOG GRID (matched to main site cards) ============ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper);
  overflow: hidden; transition: border-color .2s, transform .15s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--rust); transform: translateY(-2px); box-shadow: 3px 3px 0 var(--wine); }
.blog-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--rust-soft); display: block; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-card:hover .thumb img { transform: scale(1.04); }
.blog-card .thumb.ph {
  display: grid; place-items: center; color: var(--muted);
  font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(14,10,20,0.06) 10px 11px), var(--paper-2);
}
.blog-card .blog-meta { padding: 16px; }
.blog-card .blog-meta .date { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.blog-card .blog-meta h3 { font-family: var(--display); font-size: 20px; margin: 6px 0 8px; letter-spacing: -0.005em; font-weight: 400; line-height: 1.2; }
.blog-card .blog-meta p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ============ SINGLE POST ============ */
.post-wrap { max-width: 760px; margin: 0 auto; }
.post-hero { text-align: center; padding: 40px 0 8px; }
.post-hero .date { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.post-hero h1 { font-family: var(--display); font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -0.01em; margin: 12px 0 0; }
.post-feature { margin: 28px 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--rust-soft); }
.post-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }

.entry-content { font-size: 17px; line-height: 1.75; color: rgba(14,10,20,0.85); }
.entry-content p { margin: 0 0 20px; }
.entry-content h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; margin: 36px 0 14px; }
.entry-content h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 30px 0 12px; }
.entry-content a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--wine); }
.entry-content img { border-radius: 10px; margin: 10px 0; }
.entry-content blockquote {
  margin: 26px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--rust);
  font-family: var(--display); font-size: 22px; line-height: 1.35; color: var(--ink);
}
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 22px; }
.entry-content li { margin-bottom: 8px; }
.entry-content code { background: var(--paper-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.entry-content hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.post-foot { margin: 36px 0 8px; display: flex; justify-content: center; }

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 36px 0 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px;
  font-size: 13px; color: rgba(14,10,20,0.75);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--rust); color: var(--ink); }

/* ============ COMMENTS (light) ============ */
.comments-area { max-width: 760px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.comments-area h2 { font-family: var(--display); font-weight: 400; font-size: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; font-family: var(--body); color: var(--ink); margin-top: 6px;
}
.comment-form .submit, .comment-form input[type=submit] {
  background: var(--ink); color: var(--paper); border: none; border-radius: 999px;
  padding: 9px 18px; font-weight: 700; cursor: pointer; margin-top: 10px;
}

/* ============ FOOTER (identical to main site) ============ */
footer.site-foot { padding: 40px 0 28px; border-top: 1px solid var(--line); margin-top: 32px; background: var(--paper-2); }
footer.site-foot .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { footer.site-foot .container { grid-template-columns: 1fr 1fr; } }
footer.site-foot h4 { font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin: 0 0 10px; font-weight: 400; }
footer.site-foot ul { list-style: none; padding: 0; margin: 0; }
footer.site-foot li { margin-bottom: 6px; font-size: 13px; color: rgba(14,10,20,0.7); }
footer.site-foot li a:hover { color: var(--ink); }
footer.site-foot .foot-brand .t { font-family: var(--display); font-size: 22px; }
footer.site-foot .foot-brand .tag { color: var(--muted); font-size: 12px; margin-top: 6px; max-width: 36ch; display: block; }
footer.site-foot .copyline {
  grid-column: 1 / -1; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: 0.04em; flex-wrap: wrap; gap: 10px;
}

/* ============ WP CORE BITS ============ */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 6px 20px 10px 0; }
.alignright { float: right; margin: 6px 0 10px 20px; }
.wp-caption-text { font-size: 12px; color: var(--muted); text-align: center; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
