/* ============================================================
   Claude AI Insights — shared stylesheet
   Palette: warm paper + ink, coral accent, deep plum contrast
   Display: Space Grotesk | Body: Inter
   ============================================================ */

:root {
  --paper:      #FBF9F5;
  --paper-2:    #F3EFE7;
  --ink:        #1A1714;
  --ink-soft:   #4A443D;
  --ink-faint:  #807868;
  --line:       #E6DFD3;
  --coral:      #D97757;
  --coral-deep: #B85C3F;
  --plum:       #3A2E4A;
  --white:      #FFFFFF;

  --maxw: 1120px;
  --readw: 720px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(26,23,20,.04), 0 8px 30px rgba(26,23,20,.06);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--readw); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--coral-deep);
  margin: 0 0 .8em;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,245,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--coral);
  display: grid; place-items: center;
  color: #fff; font-size: .9rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(217,119,87,.4);
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-display);
  font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px;
  background: var(--coral); color: #fff;
  border: 1px solid var(--coral);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--coral-deep); border-color: var(--coral-deep); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-faint); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .eyebrow { animation: fadeUp .6s ease both; }
.hero h1 { max-width: 14ch; animation: fadeUp .6s .05s ease both; }
.hero .lead {
  font-size: 1.22rem; color: var(--ink-soft); max-width: 56ch;
  margin: 18px 0 28px; animation: fadeUp .6s .1s ease both;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .6s .15s ease both; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, .hero * { animation: none !important; transition: none !important; }
}

/* Chat-motif signature card */
.chat-card {
  margin-top: 44px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; max-width: 560px;
}
.chat-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.chat-row:last-child { margin-bottom: 0; }
.chat-av {
  flex: 0 0 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 700; font-size: .8rem;
  font-family: var(--font-display);
}
.chat-av.user { background: var(--paper-2); color: var(--ink-soft); }
.chat-av.ai { background: var(--coral); color: #fff; }
.chat-bubble { font-size: .96rem; color: var(--ink-soft); padding-top: 4px; }
.chat-bubble strong { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Post grid ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .grid { grid-template-columns: 1fr;} }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card .thumb {
  aspect-ratio: 16/9; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: 1.05rem; letter-spacing: .02em; text-align:center; padding: 18px;
}
.t1{background:linear-gradient(135deg,#D97757,#B85C3F);}
.t2{background:linear-gradient(135deg,#3A2E4A,#5B4A72);}
.t3{background:linear-gradient(135deg,#2E5A4A,#3E7A63);}
.t4{background:linear-gradient(135deg,#4A3E2E,#7A6243);}
.t5{background:linear-gradient(135deg,#2E3E5A,#3E5A7A);}
.t6{background:linear-gradient(135deg,#5A2E3E,#7A3E55);}
.card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card .tag {
  font-family: var(--font-display); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--coral-deep); font-weight: 600; margin-bottom: 8px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
.card .more { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink); }

/* ---------- Article ---------- */
.article { padding: 48px 0 64px; }
.article .meta { color: var(--ink-faint); font-size: .9rem; margin-bottom: 24px; }
.article .meta a { color: var(--ink-faint); }
.article-body { font-size: 1.05rem; }
.article-body h2 { border-top: 1px solid var(--line); padding-top: 1.2em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--coral); color: var(--ink-soft); font-style: italic;
}
.article-body code {
  background: var(--paper-2); padding: 2px 7px; border-radius: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88em;
}
.callout {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin: 1.6em 0;
}
.callout strong { font-family: var(--font-display); }

.backlink { display: inline-block; margin-bottom: 18px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 64px; }
.legal-body { font-size: 1rem; }
.legal-body h2 { font-size: 1.35rem; }
.legal-body h3 { font-size: 1.08rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.updated { color: var(--ink-faint); font-size: .9rem; margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .contact-grid { grid-template-columns: 1fr; } }
.info-block { margin-bottom: 22px; }
.info-block .label { font-family: var(--font-display); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--coral-deep); margin-bottom: 4px; }
.info-block .val { color: var(--ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem;
  background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--coral); border-color: var(--coral); }
.form-note { font-size: .85rem; color: var(--ink-faint); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #D8D2C8; margin-top: 40px;
  padding: 52px 0 28px; font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 28px;} }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer a { color: #D8D2C8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand { display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; color:#fff; font-size:1.1rem; margin-bottom: 12px; }
.footer-brand .dot { width:26px;height:26px;border-radius:7px;background:var(--coral);display:grid;place-items:center;color:#fff;font-weight:700;font-size:.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: #9C958A; font-size: .85rem;
}
.footer-bottom a { color:#9C958A; }
.disclaimer-mini { color:#9C958A; font-size:.82rem; margin-top: 10px; max-width: 60ch; }

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 760px; margin: 0 auto;
  background: var(--ink); color: #EDE8DF;
  border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.28);
  padding: 18px 22px; display: none;
  align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-bar.show { display: flex; animation: cookieIn .4s ease both; }
@keyframes cookieIn { from { opacity:0; transform: translateY(16px);} to {opacity:1; transform:none;} }
.cookie-bar p { margin: 0; font-size: .9rem; flex: 1 1 320px; line-height: 1.55; color:#D8D2C8; }
.cookie-bar a { color: #F0C3B2; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .9rem; }
.cookie-actions .btn-ghost { color: #EDE8DF; border-color: rgba(255,255,255,.3); }
.cookie-actions .btn-ghost:hover { background: rgba(255,255,255,.08); color:#fff; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.divider { height:1px; background: var(--line); border:0; margin: 40px 0; }
.pill-row { display:flex; flex-wrap:wrap; gap:10px; margin: 22px 0; }
.pill { background: var(--paper-2); border:1px solid var(--line); border-radius:999px; padding:7px 15px; font-size:.85rem; font-family:var(--font-display); font-weight:500; color: var(--ink-soft); }
