@import url('/blog-article.css');

@font-face {
  font-family: 'KuKu Display';
  src: url('/fonts/kuku-blog-display.woff') format('woff');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff9ef;
  --card: #fffdf8;
  --ink: #30213c;
  --muted: #665967;
  --line: #d5c7cf;
  --coral: #ff956d;
  --mint: #bfead7;
  --lilac: #e4d6fa;
  --butter: #ffdf97;
  --action: #ff990a;
  --display: 'KuKu Display', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4.5vw, 62px);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:where(a, summary):focus-visible { outline: 3px solid #68428b; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
:where(h1, h2, h3, h4, p, figure) { margin: 0; }
::selection { background: var(--lilac); color: var(--ink); }

.kb-bar, .kb-main, .kb-footer > div {
  width: min(1160px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.kb-main { flex: 1; min-width: 0; }
.kb-skip {
  position: absolute;
  z-index: 10;
  top: 6px;
  left: var(--gutter);
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
  transform: translateY(-155%);
}
.kb-skip:focus { transform: none; }
.kb-icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.kb-header { background: var(--card); border-bottom: 1px solid var(--line); }
.kb-bar { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.kb-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  border-radius: 10px;
  text-decoration: none;
}
.kb-brand img { width: 40px; height: 40px; object-fit: contain; }
.kb-stores { display: flex; align-items: center; gap: clamp(5px, 1vw, 9px); }
.kb-stores a { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.kb-stores img { width: auto; height: clamp(29px, 8vw, 40px); }
.kb-feed, .kb-crumb a, .kb-return a, .kb-pages a, .kb-message a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  font: 700 .91rem/1.2 var(--sans);
  text-decoration: none;
}
.kb-return a, .kb-message a {
  background: var(--action);
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.kb-return a:hover, .kb-message a:hover { background: #ffad2f; }
.kb-return a:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.kb-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 35%;
  margin-block: clamp(22px, 3vw, 38px) clamp(25px, 3vw, 38px);
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid var(--ink);
  border-radius: 26px;
  background: var(--butter);
  box-shadow: 0 3px 0 #30213c;
}
.kb-mast-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(22px, 3vw, 40px) clamp(22px, 3.8vw, 52px);
}
.kb-mast h1 { font: 800 clamp(42px, 5.5vw, 72px)/1.01 var(--display); letter-spacing: -.065em; }
.kb-mast p { max-width: 38ch; margin-top: 12px; color: #523c38; font-size: clamp(15px, 1.33vw, 19px); line-height: 1.42; }
.kb-stub {
  position: relative;
  display: grid;
  place-items: center;
  border-left: 2px dashed #af8e64;
  background: #ffe8ae;
}
.kb-stub::before, .kb-stub::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: -10px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.kb-stub::before { top: -10px; }
.kb-stub::after { bottom: -10px; }
.kb-scene { position: relative; width: min(94%, 335px); margin-block: 9px; aspect-ratio: 1.75; }
.kb-meadow { width: 100%; height: 100%; object-fit: contain; }
.kb-courier { position: absolute; top: 10%; left: 24%; width: 51%; height: 77%; object-fit: contain; transform: rotate(-7deg); }

.kb-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.kb-feed-actions { display: flex; align-items: center; gap: 8px; }
.kb-feed-actions .kb-share { min-height: 36px; padding: 7px 11px; font-size: .82rem; border-color: var(--line); }
.kb-section-head h2 { font: 800 clamp(24px, 2.5vw, 34px)/1.12 var(--display); letter-spacing: -.045em; }
.kb-feed, .kb-crumb a, .kb-pages a { background: var(--card); border-color: var(--line); }
.kb-feed { font-size: .82rem; min-height: 36px; gap: 7px; padding: 7px 11px; }
.kb-feed:hover, .kb-crumb a:hover, .kb-pages a:hover { background: var(--lilac); border-color: #beabcc; }
.kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 1.7vw, 24px); }
.kb-card {
  position: relative;
  min-width: 0;
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 21px;
}
.kb-card > a:first-child { width: 100%; display: flex; flex-direction: column; border-radius: inherit; text-decoration: none; }
.kb-card > .kb-share-compact { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-color: var(--ink); }
.kb-thumb {
  overflow: hidden;
  flex: none;
  aspect-ratio: 1.83;
  background: var(--mint);
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid #30213c15;
}
.kb-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.kb-thumb.kb-no-cover { display: grid; place-items: center; background: var(--lilac); }
.kb-thumb .kb-card-bird { width: 37%; height: 70%; object-fit: contain; }
.kb-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: clamp(17px, 1.65vw, 23px);
}
.kb-card h3 { margin: 0; font: 800 clamp(21px, 1.9vw, 27px)/1.14 var(--display); letter-spacing: -.041em; text-wrap: pretty; }
.kb-excerpt {
  margin-block: 10px 18px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow-wrap: anywhere;
  font-size: .96rem;
  line-height: 1.48;
  color: var(--muted);
}
.kb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 13px; border-top: 1px solid #e8dedc; }
.kb-meta { min-width: 0; display: grid; gap: 1px; color: var(--muted); font-size: .78rem; }
.kb-author { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.kb-open { display: grid; place-items: center; flex: none; width: 36px; height: 35px; border: 1.25px solid var(--ink); border-radius: 12px; background: var(--butter); box-shadow: 0 2px var(--ink); }
.kb-card a:is(:hover, :focus-visible) .kb-open { background: var(--action); }
.kb-card:has(a:is(:hover, :focus-visible)) { border-color: #9d829e; box-shadow: 0 4px 0 #30213c15; }
@media (prefers-reduced-motion: no-preference) {
  .kb-card, .kb-open { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
  .kb-card:has(a:hover) { transform: translateY(-2px); }
}
.kb-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.kb-empty, .kb-message { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 48px); }
.kb-empty h3, .kb-message h1 { font: 800 1.6rem/1.15 var(--display); letter-spacing: -.035em; }
.kb-empty p, .kb-message a { margin-top: 12px; }
.kb-message { margin-top: 32px; }
.kb-crumb, .kb-return { max-width: 1160px; margin-inline: auto; }
.kb-crumb { margin-block: 23px 14px; }
.kb-return { margin-top: 23px; text-align: center; }
.kb-footer { margin-top: clamp(36px, 5vw, 74px); border-top: 1px solid var(--line); color: var(--muted); background: var(--card); }
.kb-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding-block: 16px; font-size: .81rem; }
.kb-footer p { margin: 0; }
.kb-footer nav { display: flex; flex-wrap: wrap; gap: 5px 17px; font-weight: 650; }
.kb-footer a { padding-block: 5px; text-decoration: none; }
.kb-footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-thumb { aspect-ratio: 1.95; }
}
@media (max-width: 620px) {
  .kb-bar { min-height: 62px; gap: 12px; }
  .kb-mast { grid-template-columns: minmax(0, 1fr) 33%; border-radius: 21px; }
  .kb-stub { border-left-width: 1.5px; }
  .kb-scene { width: 100%; }
  .kb-courier { top: -1%; left: 18%; width: 63%; height: 95%; }
  .kb-mast-copy { padding: 21px 16px; }
  .kb-mast h1 { font-size: clamp(31px, 7.5vw, 44px); letter-spacing: -.055em; }
  .kb-mast p { font-size: .86rem; line-height: 1.38; margin-top: 7px; }
  .kb-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kb-section-head { margin-bottom: 12px; }
  .kb-card h3 { font-size: 23px; }
  .kb-footer > div { flex-direction: column; align-items: start; }
}
@media (forced-colors: active) {
  .kb-open, .kb-card, .kb-feed, .kb-mast { border: 1px solid CanvasText; }
}
