/* Longhand — shared styles for blog + landing pages */
:root {
  --paper:   #F4F4F2;
  --paper-2: #ECECEA;
  --paper-3: #E6E6E3;
  --ink:     #1A1A1A;
  --ink-2:   #333333;
  --accent:  #1A1A1A;
  --accent-2:#000000;
  --rule:    #D8D8D5;
  --grey:    #5A5A57;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.55; mix-blend-mode: multiply;
  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' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
.wrap { position: relative; z-index: 1; }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.18; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
a { color: var(--accent-2); text-underline-offset: 3px; }

/* nav */
header.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 28px; max-width: 1100px; margin: 0 auto; }
.wordmark { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.45rem; text-decoration: none; color: var(--ink); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.9rem; text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--accent-2); }
.nav-links .btn { padding: 9px 18px; color: #fff; }
@media (max-width: 640px){ .nav-links .plain { display: none; } }

/* buttons */
.btn { display: inline-block; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: .95rem; font-weight: 600; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 13px 24px; border-radius: 2px; text-decoration: none; cursor: pointer; transition: background .15s ease; }
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* generic containers */
.container { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.eyebrow { font-family: -apple-system, BlinkMacSystemFont, sans-serif; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600; color: var(--grey); margin: 0 0 1rem; }

/* article */
.post-head { padding: 66px 0 32px; border-bottom: 1px solid var(--rule); }
.post-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.post-meta { font-family: -apple-system, sans-serif; font-size: .85rem; color: var(--grey); margin-top: 1rem; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); display: inline-block; }
.article { padding: 40px 0 30px; }
.article p { margin: 0 0 1.25rem; color: var(--ink-2); }
.article > .container > p:first-of-type, .lead { font-size: 1.2rem; color: var(--ink); }
.article h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); margin: 2.8rem 0 1rem; }
.article h3 { font-family: "Fraunces", serif; font-size: 1.25rem; margin: 2rem 0 .6rem; }
.article ul, .article ol { margin: 0 0 1.4rem; padding-left: 0; list-style: none; }
.article ul li { position: relative; padding-left: 26px; margin-bottom: 11px; color: var(--ink-2); }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.article ol { counter-reset: item; }
.article ol li { position: relative; padding-left: 34px; margin-bottom: 10px; color: var(--ink-2); counter-increment: item; }
.article ol li::before { content: counter(item); position: absolute; left: 0; top: 2px; font-family: -apple-system, sans-serif; font-size: .78rem; font-weight: 700; color: var(--grey); }
.article strong { color: var(--ink); font-weight: 600; }
.article em { font-style: italic; }
blockquote { margin: 2rem 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--ink); font-family: "Fraunces", serif; font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.qlist { columns: 2; column-gap: 40px; }
.qlist li { break-inside: avoid; }
@media (max-width: 620px){ .qlist { columns: 1; } }

/* callout / CTA box */
.cta-box { margin: 40px 0; background: var(--paper-3); border: 1px solid var(--rule); border-radius: 6px; padding: 28px 30px; }
.cta-box h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.cta-box p { color: var(--ink-2); margin: 0 0 1.1rem; }
.note-box { background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--ink); border-radius: 4px; padding: 18px 22px; margin: 1.8rem 0; font-size: 1rem; color: var(--ink-2); }

/* blog index cards */
.hub-head { padding: 70px 0 8px; }
.hub-head h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
.hub-head p { font-size: 1.18rem; color: var(--ink-2); max-width: 54ch; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; padding: 40px 0 20px; }
@media (max-width: 720px){ .cards { grid-template-columns: 1fr; } }
.card { display: block; text-decoration: none; color: var(--ink); background: var(--paper-3); border: 1px solid var(--rule); border-radius: 6px; padding: 26px 28px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(20,20,20,.5); }
.card .k { font-family: -apple-system, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 700; color: var(--grey); }
.card h2 { font-size: 1.4rem; margin: .5rem 0 .5rem; }
.card p { font-size: 1rem; color: var(--ink-2); margin: 0; }
.card.feature { grid-column: 1 / -1; background: var(--ink); color: var(--paper); }
.card.feature h2, .card.feature .k { color: var(--paper); }
.card.feature p { color: color-mix(in srgb, var(--paper) 80%, transparent); }

/* footer */
footer { padding: 54px 0 54px; border-top: 1px solid var(--rule); margin-top: 40px; }
.foot-links { font-family: -apple-system, sans-serif; font-size: .9rem; }
.foot-links a { color: var(--ink-2); text-decoration: none; margin-right: 20px; }
.foot-links a:hover { color: var(--accent-2); }
.foot-fine { font-family: -apple-system, sans-serif; font-size: .8rem; color: var(--grey); margin-top: 22px; max-width: 66ch; }

/* hero image on articles + landing pages */
.post-hero { margin: 30px auto 6px; }
.post-hero img { display: block; width: 100%; height: clamp(220px, 34vw, 380px); object-fit: cover; border: 1px solid var(--rule); border-radius: 6px; filter: grayscale(1) contrast(1.02); box-shadow: 0 24px 50px -34px rgba(20,20,20,.5); background: var(--paper-2); }
.post-hero figcaption { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: .8rem; color: var(--grey); margin-top: 10px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
