/* Trinity · field notes — punkytigerlabs.com/trinity/blog · 17-nov-2026 (rediseño visual) */
:root {
  --bg: #0b0b10; --bg-2: #12121a; --card: #171722; --line: #262636;
  --text: #ececf1; --muted: #a2a2b5; --accent: #f5b942; --accent-2: #e94e77;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1100px; --measure: 68ch; --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; display: block; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 24px; background: rgba(11,11,16,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--text); letter-spacing: .2px; }
.brand-dot { color: var(--accent); margin: 0 .35em; }
.topnav a { color: var(--muted); margin-left: 18px; font-size: .92rem; font-weight: 500; }
.topnav a:hover { color: var(--text); text-decoration: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 24px 72px; background:
  radial-gradient(900px 400px at 10% 0%, rgba(245,185,66,.16), transparent 60%),
  radial-gradient(700px 360px at 90% 20%, rgba(233,78,119,.14), transparent 60%), var(--bg); }
.hero-small { padding: 56px 24px 24px; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero-eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; margin: 14px 0 18px; letter-spacing: -.01em; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-tagline { max-width: 60ch; font-size: 1.15rem; color: var(--text); margin: 0 0 18px; }
.hero-explainer { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; color: var(--muted); max-width: 60ch; }
.hero-explainer li::before { content: "◆"; color: var(--accent); font-size: .6rem; margin-right: 10px; vertical-align: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 999px; background: var(--accent); color: #141008; font-weight: 600; font-size: .95rem; border: 1px solid var(--accent); }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.hero-latest { display: inline-flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.03); color: var(--text); max-width: 60ch; }
.hero-latest:hover { text-decoration: none; border-color: var(--accent); }
.hero-latest-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-latest-title { font-family: var(--serif); font-size: 1.25rem; }

/* cards */
.posts-section { max-width: var(--maxw); margin: 0 auto; padding: 36px 24px 48px; }
.section-header h2 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin: 0 0 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease; }
.post-card:hover { transform: translateY(-3px); border-color: rgba(245,185,66,.5); }
.card-art { display: block; aspect-ratio: 1200 / 630; background: var(--bg-2); }
.card-art svg, .card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-meta { font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.post-card .post-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; margin: 0; }
.post-card .post-title a { color: var(--text); }
.post-summary { color: var(--muted); margin: 0; font-size: .97rem; }
.read-more { margin-top: auto; font-weight: 600; font-size: .92rem; }

/* post page */
.post-page { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 48px; }
.post-hero { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1200 / 480; background: var(--bg-2); }
.post-hero svg, .post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post { max-width: var(--measure); margin: 0 auto; padding-top: 36px; }
.post-eyebrow { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.post .post-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; margin: 10px 0 12px; letter-spacing: -.01em; }
.post-body { font-size: 1.12rem; line-height: 1.8; margin-top: 28px; }
.post-body p { margin: 0 0 1.25em; }
.post-body p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.2em; line-height: .8; float: left; padding: 8px 10px 0 0; color: var(--accent); }
.post-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 2em 0 .6em; }
.post-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.post-footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--text); }
.share a { margin-left: 6px; }

/* pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: var(--measure); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.pagination .pages a { margin: 0 6px; color: var(--muted); }
.pagination .pages a.current { color: var(--accent); font-weight: 600; }
.pagination .disabled { color: #4a4a5a; }

/* comments */
.comments { max-width: var(--measure); margin: 48px auto 0; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.comments h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0 0 6px; }
.comments-intro { color: var(--muted); margin: 0 0 18px; }
.comments-list { display: grid; gap: 14px; margin-bottom: 22px; }
.comments-empty { color: var(--muted); font-style: italic; }
.comment { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.comment p { margin: 6px 0 0; white-space: pre-wrap; }
.comment-head { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; }
.comment-author { font-weight: 600; color: var(--text); }
.comment-date { color: var(--muted); }
.comment-reply { margin: 12px 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--accent); background: rgba(245,185,66,.06); border-radius: 0 10px 10px 0; }
.comment-reply .comment-author { color: var(--accent); }
.feeling { margin-left: 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.comment-form .btn { justify-self: start; }
.comment-status { font-size: .88rem; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 32px 24px 44px; color: var(--muted); font-size: .92rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 8px; }
.footer-brand { color: var(--text); font-family: var(--serif); font-size: 1.05rem; }
.footer-nav a { color: var(--muted); }
.footer-note { font-size: .85rem; }

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; } .topnav a { margin-left: 12px; font-size: .85rem; }
  .hero { padding: 64px 16px 48px; } .posts-section, .post-page { padding-left: 16px; padding-right: 16px; }
  .comments { padding: 18px; } .pagination { flex-wrap: wrap; }
}
