/* JT Power Tools — Notes (blog)
   Editorial palette shared with manifesto-style posts.
   Uses Fraunces (serif display), Inter Tight (body), JetBrains Mono (labels).
*/

:root {
  --ink: #0e0e0c;
  --ink-soft: #2a2a26;
  --ink-mute: #5a5a54;
  --paper: #f4efe6;
  --paper-deep: #ebe3d5;
  --paper-edge: rgba(14, 14, 12, 0.12);
  --rust: #b04822;
  --rust-deep: #7a2f15;
  --ochre: #d6a24a;
  --moss: #3d5a3f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(176, 72, 34, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(61, 90, 63, 0.04) 0%, transparent 40%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
  mix-blend-mode: multiply; opacity: 0.55;
}

main, header, footer { position: relative; z-index: 2; }

.container { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* Masthead */
.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 22px 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.masthead a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
.masthead a:hover { border-bottom-color: var(--rust); }
.masthead .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--rust);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
.masthead-links { display: flex; gap: 24px; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Hero (blog index) */
.hero {
  padding: 96px 0 56px;
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rust);
  margin-bottom: 32px;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--rust);
  font-weight: 400;
}
.hero .deck {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  max-width: 580px;
  color: var(--ink-soft);
}

/* Post list */
.posts {
  padding: 40px 0 120px;
}
.post-list { list-style: none; }
.post-card {
  display: block;
  padding: 36px 0;
  border-top: 1px solid var(--paper-edge);
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease, padding 160ms ease;
  position: relative;
}
.post-card:hover {
  background: rgba(176, 72, 34, 0.04);
  padding-left: 16px;
  padding-right: 16px;
}
.post-card:last-child { border-bottom: 1px solid var(--paper-edge); }
.post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-meta::before {
  content: '';
  width: 30px; height: 1px;
  background: currentColor;
}
.post-card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 14px;
}
.post-card h2 em { font-style: italic; color: var(--rust); font-weight: 400; }
.post-card p {
  font-size: 17px;
  line-height: 1.55;
  max-width: 60ch;
  color: var(--ink-soft);
}
.post-card .read-more {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-card:hover .read-more { color: var(--rust-deep); }

/* Empty state placeholder for future posts */
.coming-soon {
  margin-top: 64px;
  padding: 32px;
  border: 1px dashed var(--paper-edge);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}

/* Site footer */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 32px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover { border-bottom-color: var(--rust); }

/* Post page back-link */
.post-nav {
  border-bottom: 1px solid var(--paper-edge);
  padding: 18px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.post-nav a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.post-nav a:hover { color: var(--rust); }

@media (max-width: 720px) {
  .hero { padding: 56px 0 32px; }
  .container, .container-wide { padding: 0 22px; }
  .masthead-inner { gap: 12px; }
  .masthead-links { gap: 16px; flex-wrap: wrap; }
  .post-card { padding: 28px 0; }
  .post-card:hover { padding-left: 0; padding-right: 0; }
}
