/* Pickclip blog — shared styles.
   Reuses the homepage design language (paper/ink palette, Fraunces display,
   Newsreader serif body, IBM Plex Mono for chrome) and adds long-form article
   typography. Linked from /blog/index.html and every /blog/<slug>/index.html. */

:root {
  --paper: #faf6ee;
  --paper-deep: #f3ecdd;
  --ink: #1c1914;
  --ink-soft: #57503f;
  --line: #e3dac4;
  --mark: #ffd84d;          /* highlighter */
  --mark-soft: #ffe89a;
  --blue: #2757d6;          /* interactive links */
  --green: #2e7d4f;
  --radius: 14px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Newsreader", georgia, serif;
  --display: "Fraunces", georgia, serif;
  --accent: #e0a51e;        /* per-page topic accent, overridden on <body> */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* per-topic accent — set a class on <body> */
body.t-intro   { --accent: #e0a51e; }   /* amber  */
body.t-custom  { --accent: #8a5cff; }   /* violet */
body.t-images  { --accent: #2f6df0; }   /* blue   */
body.t-history { --accent: #1fa766; }   /* green  */

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(rgba(28,25,20,.05) 1px, transparent 1px),
    radial-gradient(70% 22% at 88% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%),
    radial-gradient(66% 24% at -6% 30%, rgba(43,110,241,.10), transparent 72%);
  background-size: 26px 26px, 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: scroll;
}
::selection { background: var(--mark); color: var(--ink); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- faux mac menu bar (matches homepage) ---------- */
.menubar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 7px 18px;
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(250,246,238,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.menubar .apple { font-size: 14px; }
.menubar .app-name { font-weight: 500; color: var(--ink); }
.menubar nav { display: flex; gap: 16px; }
.menubar nav a { color: var(--ink-soft); }
.menubar nav a.here { color: var(--ink); }
.menubar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.menubar .dl { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--paper); background: var(--ink); border-radius: 999px; padding: 5px 13px; transition: box-shadow .15s ease; }
.menubar .dl:hover { text-decoration: none; box-shadow: 2px 2px 0 var(--mark); }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 28px; flex: 1; }

/* ---------- breadcrumb ---------- */
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); margin: 30px 0 0; }
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--ink); }

/* ---------- blog index ---------- */
.index-head { padding: 46px 0 18px; }
.index-head .eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.index-head .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.index-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -.015em; }
.index-head p { margin-top: 18px; font-size: 20px; color: var(--ink-soft); max-width: 34em; }

.post-list { list-style: none; margin: 26px 0 70px; display: flex; flex-direction: column; gap: 16px; }
.post-card {
  display: block; background: #fffdf7; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--card-accent, var(--ink)) 50%, rgba(28,25,20,.34)); border-color: color-mix(in srgb, var(--card-accent, var(--line)) 42%, var(--line)); }
.post-card .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--card-accent, var(--ink-soft)); display: flex; gap: 10px; align-items: center; }
.post-card .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--card-accent, var(--ink-soft)); }
.post-card h2 { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: 1.16; margin: 12px 0 8px; color: var(--ink); }
.post-card p { font-size: 17px; color: var(--ink-soft); }
.post-card .more { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--card-accent, var(--blue)); }
.post-card .more .arr { display: inline-block; transition: transform .15s ease; }
.post-card:hover .more .arr { transform: translateX(3px); }
.post-card.c-intro   { --card-accent: #e0a51e; }
.post-card.c-custom  { --card-accent: #8a5cff; }
.post-card.c-images  { --card-accent: #2f6df0; }
.post-card.c-history { --card-accent: #1fa766; }

/* ---------- article header ---------- */
.post-head { padding: 30px 0 8px; }
.post-head .eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.post-head .eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.post-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.015em; }
.post-meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.post-meta .sep { opacity: .5; }

/* ---------- article body ---------- */
.article { padding: 8px 0 20px; }
.article > .lede { font-size: 22px; line-height: 1.5; color: var(--ink); margin: 22px 0 8px; }
.article p { margin: 20px 0; }
.article h2 {
  font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.18;
  letter-spacing: -.01em; margin: 48px 0 4px; padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.article h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 34px 0 2px; }
.article ul, .article ol { margin: 18px 0; padding-left: 26px; }
.article li { margin: 9px 0; }
.article li::marker { color: var(--accent); }
.article strong { font-weight: 600; color: var(--ink); }
.article em { font-style: italic; }
.article a { color: var(--blue); }
.article mark { background: linear-gradient(transparent 56%, var(--mark-soft) 56%, var(--mark-soft) 94%, transparent 94%); color: inherit; padding: 0 1px; }

.article hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }

.article blockquote {
  margin: 26px 0; padding: 4px 22px; border-left: 3px solid var(--accent);
  font-style: italic; color: var(--ink); font-size: 20px;
}

/* inline code + code blocks */
.article code { font-family: var(--mono); font-size: .82em; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.article pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; background: #fffdf7; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 22px 0; }
.article pre code { background: none; border: none; padding: 0; font-size: inherit; }

kbd {
  font-family: var(--mono); font-size: .82em; background: var(--paper-deep);
  border: 1px solid var(--line); border-bottom-width: 2.5px; border-radius: 6px;
  padding: 2px 7px; white-space: nowrap; color: var(--ink);
}

/* callout box */
.callout {
  margin: 28px 0; background: color-mix(in srgb, var(--accent) 8%, #fffdf7);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 22px;
}
.callout p { margin: 8px 0; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }

/* screenshot placeholder (swap for a real <img> later) */
figure { margin: 30px 0; }
.shot {
  border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius: 12px; background: color-mix(in srgb, var(--accent) 5%, #fffdf7);
  min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 28px;
}
.shot .ph-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.shot .ph-desc { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); max-width: 32em; }
figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.article figure img { display: block; max-width: 100%; width: auto; height: auto; max-height: 600px; margin: 0 auto; border-radius: 14px; }

/* comparison table */
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.article th, .article td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.article thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.article tbody tr:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.article td:first-child { font-weight: 500; color: var(--ink); }

/* key-takeaways / TL;DR list */
.tldr {
  margin: 26px 0 6px; background: #fffdf7; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
}
.tldr .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px; }
.tldr ul { list-style: none; margin: 0; padding: 0; }
.tldr li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-soft); font-size: 17px; }
.tldr li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-family: var(--mono); font-weight: 500; }
.tldr li strong { color: var(--ink); }

/* inline CTA / download band */
.cta-band {
  margin: 46px 0 10px; background: var(--ink); color: var(--paper);
  border-radius: 18px; padding: 34px 32px;
}
.cta-band h3 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.12; color: var(--paper); }
.cta-band p { color: #cfc6ae; margin: 12px 0 22px; font-size: 17px; max-width: 38em; }
.cta-band em { color: var(--mark); font-style: italic; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 14.5px; font-weight: 500;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 4px 4px 0 var(--mark); }
.cta-band .btn:hover { text-decoration: none; transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--mark); }
.cta-band .note { display: block; font-family: var(--mono); font-size: 12px; color: #b3a88e; margin-top: 14px; }

/* keep-reading / related posts */
.related { margin: 54px 0 10px; }
.related .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-grid a {
  background: #fffdf7; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.related-grid a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(28,25,20,.4); border-color: var(--ink); }
.related-grid .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.related-grid .t { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1.2; }

/* ---------- footer (matches homepage) ---------- */
footer { border-top: 1px solid var(--line); padding: 46px 0 64px; margin-top: 44px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
footer h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
footer p, footer li { font-size: 16px; color: var(--ink-soft); }
.foot-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 38px; }

@media (max-width: 720px) {
  body { font-size: 18px; }
  .menubar nav { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
