/* Cameleon Studios blog: same tokens as the homepage (pluto layer), tuned for long-form reading */
:root {
  --peach: #ffb89f;
  --yellow: #ffff78;
  --pink: #ffcbcb;
  --cream: #fdf2d4;
  --paper: #fffdf8;
  --green: #39bf97;
  --orange: #fa673a;
  --ink: #111013;
  --ink-2: rgba(17, 16, 19, .72);
  --hard: 6px 6px 0 0 var(--ink);
  --pad: clamp(16px, 4vw, 48px);
  --read: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--peach);
  color: var(--ink);
  font: 400 1.0625rem/1.75 Poppins, system-ui, sans-serif;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; }
.skip:focus { left: 16px; }

/* ── top bar ── */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad);
}
.logo {
  display: grid; place-items: center;
  min-width: 158px; min-height: 48px; padding: 8px 16px 7px;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%;
  font: 900 .95rem/1 Unbounded, sans-serif; letter-spacing: .14em; text-decoration: none;
}
.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a {
  font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: 8px 12px; border-radius: 99px; transition: background-color .2s;
}
.bar nav a:hover { background: rgba(17, 16, 19, .08); }
.bar nav a[aria-current="page"] { background: var(--paper); border: 2px solid var(--ink); padding: 6px 12px; }
.bar nav .cta {
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 12px 24px; margin-left: 8px;
}
.bar nav .cta:hover { background: var(--orange); color: var(--ink); }
@media (max-width: 720px) {
  .bar { gap: 8px; padding-top: 14px; padding-bottom: 14px; }
  .logo { min-width: 118px; min-height: 40px; padding: 6px 12px 5px; font-size: .76rem; }
  .bar nav a { padding: 6px 8px; font-size: .9rem; }
  .bar nav .hide-sm { display: none; }
  .bar nav .cta { padding: 9px 14px; margin-left: 2px; letter-spacing: .06em; font-size: .72rem; white-space: nowrap; }
}

/* ── page head (peach sky over a yellow moon edge) ── */
.head { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 72px) var(--pad) clamp(90px, 12vw, 150px); text-align: center; }
.head::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: clamp(60px, 9vw, 120px);
  background: var(--yellow); border-top: 2px solid var(--ink); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 5px 12px;
  background: rgba(255, 255, 255, .58); border: 1px solid var(--ink); border-radius: 100px;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.head h1 {
  max-width: 22ch; margin: 0 auto;
  font: 700 clamp(2rem, 5.4vw, 3.6rem)/1.06 Unbounded, sans-serif; letter-spacing: -.03em;
  text-wrap: balance;
}
.head .lede { max-width: 60ch; margin: 20px auto 0; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-2); text-wrap: pretty; }
.meta { margin-top: 18px; font-size: .85rem; font-weight: 500; }
.meta span + span::before { content: "·"; margin: 0 8px; }

/* ── yellow ground that holds the content ── */
.ground { background: var(--yellow); padding: 0 var(--pad) clamp(56px, 8vw, 96px); }

/* ── blog index cards ── */
.grid {
  max-width: 1180px; margin: 0 auto; display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--hard);
  text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--ink); }
.card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); border-bottom: 2px solid var(--ink); }
.card img { width: 100%; height: 100%; object-fit: contain; }
.card .eyebrow { align-self: flex-start; margin: 0; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h2 { margin: 0; font: 700 1.2rem/1.2 Unbounded, sans-serif; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; line-height: 1.6; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.card--pillar { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .card--pillar { flex-direction: row; }
  .card--pillar figure { flex: 0 0 52%; aspect-ratio: 16 / 10; align-self: center; border-bottom: 0; border-right: 2px solid var(--ink); }
  .card--pillar { align-items: stretch; }
  .card--pillar h2 { font-size: 1.7rem; }
}
.intro { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.intro p { margin: 0; }

/* ── article ── */
.article {
  max-width: 860px; margin: 0 auto; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 26px; box-shadow: var(--hard);
  padding: clamp(24px, 5vw, 64px);
}
.prose { max-width: var(--read); margin: 0 auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.2em; font: 700 clamp(1.45rem, 2.8vw, 1.9rem)/1.15 Unbounded, sans-serif; letter-spacing: -.02em; text-wrap: balance;
}
.prose h3 { margin-top: 1.8em; font: 600 1.15rem/1.3 Unbounded, sans-serif; }
.prose p, .prose li { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--orange); }
.prose a:hover { background: var(--yellow); }
.prose strong { font-weight: 700; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose figure video { width: 100%; height: auto; object-fit: contain; border: 2px solid var(--ink); border-radius: 16px; background: var(--cream); }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-2); }
.pair { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pair { grid-template-columns: var(--pair, 1fr 1fr); align-items: start; } }
.pair img { width: 100%; height: auto; object-fit: contain; border: 2px solid var(--ink); border-radius: 16px; background: var(--cream); }

.tldr {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 18px; padding: 18px 22px;
}
.tldr strong:first-child { display: block; font: 700 .78rem/1 Poppins, sans-serif; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.tldr ul { margin: 0; }

.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; min-width: 520px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(17, 16, 19, .18); }
th { background: var(--pink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--hard);
  padding: clamp(22px, 4vw, 34px); margin-top: 2.6em !important;
}
.callout h2 { margin-top: 0 !important; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 24px;
  background: var(--ink); color: var(--paper) !important; border: 2px solid var(--ink); border-radius: 99px;
  font-weight: 800 !important; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none !important;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--orange) !important; color: var(--ink) !important; }
.btn--ghost { background: var(--paper); color: var(--ink) !important; }

.about {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start;
  border-top: 2px dashed rgba(17, 16, 19, .35); padding-top: 28px; margin-top: 3em !important;
}
.about img { width: 72px; height: 72px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.about p { margin: 0; font-size: .95rem; }

.related { max-width: 1180px; margin: 56px auto 0; }
.related > h2 { text-align: center; font: 700 clamp(1.4rem, 3vw, 2rem)/1.1 Unbounded, sans-serif; margin: 0 0 28px; }

.crumbs { font-size: .82rem; margin-bottom: 14px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* ── footer ── */
.foot {
  background: var(--ink); color: var(--paper); padding: 40px var(--pad);
  display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; font-size: .9rem;
}
.foot a { color: var(--paper); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--yellow); }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.foot .brand { font: 900 1rem/1 Unbounded, sans-serif; letter-spacing: .14em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}
