/*
Theme Name: Avinash
Theme URI: https://avinashkamath.in
Author: Built for Avinash Kamath
Description: A loud, warm scrapbook theme for a Kannada personal blog — cream paper, saturated colour cards in a two-column feed, chunky Baloo Tamma display type and hand-lettered labels. Self-contained: no page builder, no plugin dependencies.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avinash
Tags: blog, two-columns, custom-menu, featured-images, editor-style, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --cream:    #F7F1E3;
  --cream-2:  #EFE6D1;
  --cream-3:  #E4D8BE;
  --paper:    #FFFDF8;
  --ink:      #1A1720;
  --ink-2:    #3A3346;
  --ink-60:   rgba(26, 23, 32, 0.60);
  --ink-45:   rgba(26, 23, 32, 0.45);
  --line:     rgba(26, 23, 32, 0.12);

  /* Category palette — saturated, each paired with a text colour that passes contrast */
  --c-trending:    #FF4E1F;
  --c-shorts:      #E5127D;
  --c-inspiration: #7C3AED;
  --c-interviews:  #0B57D0;
  --c-thoughts:    #0F7B54;
  --c-videos:      #D61F26;
  --c-baduku:      #F5A300;
  --c-travel:      #00A0B0;
  --c-health:      #6FA80F;
  --c-vlogs:       #5B4EE0;

  --accent: var(--c-trending);

  /* Kannada-capable display face first — Baloo Tamma 2 covers both scripts */
  --font-display: 'Baloo Tamma 2', 'Noto Sans Kannada', system-ui, sans-serif;
  --font-body:    'Noto Sans Kannada', 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-hand:    'Caveat Brush', 'Noto Sans Kannada', cursive;

  --wrap: 1180px;
  --r:    14px;
  --r-sm: 8px;
  --shadow: 0 2px 0 rgba(26, 23, 32, 0.14);
  --shadow-lift: 0 10px 24px -8px rgba(26, 23, 32, 0.32);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden; /* nothing should ever push the page sideways on a phone */
  background-color: var(--cream);
  /* faint paper grain, inlined so there is no extra request */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }

.hand { font-family: var(--font-hand); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--c-inspiration); outline-offset: 2px; }

/* ==========================================================================
   3. Header
   ========================================================================== */
/* A strip of washi tape across the very top, in the category colours. It is the
   first thing you see and it announces the whole palette. */
.tape {
  height: 7px;
  background: linear-gradient(
    90deg,
    var(--c-trending)    0% 10%,
    var(--c-baduku)     10% 20%,
    var(--c-thoughts)   20% 30%,
    var(--c-interviews) 30% 40%,
    var(--c-inspiration)40% 50%,
    var(--c-shorts)     50% 60%,
    var(--c-travel)     60% 70%,
    var(--c-videos)     70% 80%,
    var(--c-health)     80% 90%,
    var(--c-vlogs)      90% 100%
  );
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 241, 227, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 0;
}

/* The brand may shrink; the menu button may not. Otherwise a long signature
   pushes the button past the viewport edge, where overflow-x:hidden eats it. */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.brand-logo { height: 46px; width: auto; display: block; flex: none; }
.sig {
  font-family: var(--font-hand); font-size: 32px; line-height: 1;
  color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.brand:hover .sig, .brand:focus-visible .sig { color: var(--c-trending); }
@media (max-width: 520px) {
  .brand-logo { height: 38px; }
  .sig { font-size: 26px; }
}

.site-nav ul { display: flex; flex-wrap: wrap; gap: 7px 8px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 14.5px; padding: 6px 14px 7px; border-radius: 22px;
  color: var(--ink); background: #fff;
  border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
  transform: rotate(var(--rot, 0deg));
  transition: background-color .12s, color .12s, transform .12s, box-shadow .12s;
}
.site-nav a:hover, .site-nav a:focus-visible {
  background: var(--cat, var(--c-trending)); color: var(--cat-fg, #fff);
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 4px 0 var(--ink);
}
.site-nav .current-menu-item > a,
.site-nav .current-menu-parent > a,
.site-nav .current_page_item > a {
  background: var(--cat, var(--ink)); color: var(--cat-fg, #fff); transform: rotate(0deg);
}

/* ---- hamburger: three ink bars that fold into an X ---- */
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 10px;
  flex: none;                     /* never shrink or get pushed off-screen */
  min-height: 44px;               /* a real tap target */
  background: var(--c-baduku); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 26px;
  padding: 9px 18px 9px 15px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  box-shadow: 0 3px 0 var(--ink);
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.nav-toggle:hover { background: var(--c-trending); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.nav-toggle:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }

.nav-toggle-bars {
  position: relative; display: block; width: 20px; height: 2.5px;
  background: currentColor; border-radius: 2px;
  transition: background-color .18s, transform .28s cubic-bezier(.34,1.56,.64,1);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), width .28s;
}
.nav-toggle-bars::before { top: -6.5px; }
.nav-toggle-bars::after  { top:  6.5px; }

.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--cream); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; padding: 8px 15px 8px 13px; font-size: 14px; gap: 8px; }

  /* ---- mobile drawer: full-width panel of fat colour pills ---- */
  /* The negative margin must match .wrap's padding exactly or the page scrolls
     sideways — that is what pushed the layout off on a phone. */
  .site-nav {
    display: none; flex-basis: 100%; order: 3;
    margin: 14px -28px 0; padding: 20px 28px 24px;
    background: var(--cream-2);
    border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
    position: relative;
  }
  @media (max-width: 560px) { .site-nav { margin-inline: -20px; padding-inline: 20px; } }

  .site-nav.is-open { display: block; animation: drawer-in .26s ease-out both; }

  /* a strip of the palette along the top edge of the drawer */
  .site-nav.is-open::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg,
      var(--c-trending) 0% 20%, var(--c-baduku) 20% 40%, var(--c-thoughts) 40% 60%,
      var(--c-interviews) 60% 80%, var(--c-shorts) 80% 100%);
  }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 11px; }

  .site-nav a {
    font-size: 16.5px; padding: 11px 20px 12px; border-radius: 30px;
    background: var(--cat, var(--ink)); color: var(--cat-fg, #fff);
    box-shadow: 0 4px 0 var(--ink);
    transform: rotate(var(--rot, 0deg));
    display: flex; align-items: center; justify-content: space-between;
  }
  .site-nav a::after {
    content: "→"; font-size: 17px; opacity: .75; margin-left: 12px;
  }
  .site-nav a:hover, .site-nav a:focus-visible {
    transform: rotate(0deg) translateX(4px);
    box-shadow: 0 4px 0 var(--ink);
  }

  /* each pill drops in on its own beat */
  .site-nav.is-open li { animation: nav-item-in .34s cubic-bezier(.34,1.56,.64,1) both; }
  .site-nav.is-open li:nth-child(1) { animation-delay: .04s; }
  .site-nav.is-open li:nth-child(2) { animation-delay: .09s; }
  .site-nav.is-open li:nth-child(3) { animation-delay: .14s; }
  .site-nav.is-open li:nth-child(4) { animation-delay: .19s; }
  .site-nav.is-open li:nth-child(5) { animation-delay: .24s; }
  .site-nav.is-open li:nth-child(6) { animation-delay: .29s; }
  .site-nav.is-open li:nth-child(7) { animation-delay: .34s; }
  .site-nav.is-open li:nth-child(n+8) { animation-delay: .39s; }
}

/* Small phones: keep the word "ಮೆನು" — an unlabelled icon was too easy to miss,
   and the label is what makes it obviously a menu. Just make it compact. */
@media (max-width: 560px) {
  .nav-toggle {
    padding: 8px 14px 8px 12px; gap: 8px; font-size: 14px;
    min-width: 84px; min-height: 42px;
  }
  .sig { font-size: 24px; }
  .brand-logo { height: 36px; }
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nav-item-in {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   4. Hero — the desk / introduction band
   ========================================================================== */
.hero { padding: 54px 0 40px; position: relative; overflow: hidden; }

/* Portrait on the left, headline beside it — at every width. The headline must
   never drop below the portrait on a phone. */
.hero-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-areas: "portrait title";
  column-gap: 36px;
  align-items: center;
}
.portrait-wrap { grid-area: portrait; }
.hero-title    { grid-area: title; }

.portrait-wrap { position: relative; width: 200px; }
.portrait-blob {
  position: absolute; inset: -14px -10px -6px -14px; border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
  background: linear-gradient(135deg, var(--c-baduku), var(--c-trending) 55%, var(--c-shorts));
  transform: rotate(-5deg);
}
.portrait {
  position: relative; width: 200px; height: 200px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--ink); background: var(--cream-2);
}
.portrait-fallback {
  position: relative; width: 200px; height: 200px; border-radius: 50%;
  border: 4px solid var(--ink); background: var(--cream-2);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 74px; color: var(--ink);
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.14;
  margin-bottom: 4px; max-width: 24ch;
}

/* A marker-pen highlight behind the words. The previous version drew a hard
   band across the lower third, which in Kannada lands under the glyphs and
   reads as a stray orange slab rather than a highlight. */
.hero-title .hl {
  display: inline;
  padding: 0.02em 0.1em;
  border-radius: 4px;
  background: rgba(245, 163, 0, 0.55);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-sub { font-size: 17px; line-height: 1.8; color: var(--ink-2); max-width: 58ch; margin: 0 0 6px; }

/* Responsive hero. These MUST sit after the base sizes above: at equal
   specificity the later rule wins, so declaring them earlier let the 200px
   portrait override the mobile size and spill onto the headline. */
/* Selectors are deliberately more specific than the base rules (.hero-top …)
   so this can never again lose to a later-but-equal base declaration. */
@media (max-width: 760px) {
  .hero .hero-top {
    grid-template-columns: 124px 1fr;
    grid-template-areas: "portrait title";
    column-gap: 20px;
    align-items: center;
  }
  .hero-top .portrait-wrap { width: 124px; max-width: 124px; }
  .hero-top .portrait,
  .hero-top .portrait-fallback { width: 124px; height: 124px; }
  .hero-top .portrait-fallback { font-size: 46px; }
  .hero .hero-title { font-size: clamp(23px, 6.6vw, 34px); margin-bottom: 0; max-width: none; }
  .hero .hero-sub { max-width: none; }
}

@media (max-width: 430px) {
  .hero .hero-top { grid-template-columns: 92px 1fr; column-gap: 14px; }
  .hero-top .portrait-wrap { width: 92px; max-width: 92px; }
  .hero-top .portrait,
  .hero-top .portrait-fallback { width: 92px; height: 92px; border-width: 3px; }
  .hero-top .portrait-fallback { font-size: 34px; }
  .hero .hero-title { font-size: clamp(19px, 6vw, 26px); line-height: 1.2; }
}

/* the interest chips — his own list, which is the point of the page */
.chips-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-hand); font-size: 21px; color: var(--ink-60);
  margin: 20px 0 6px;
}
.chips-label svg { flex: none; }
/* One line. Ten Kannada chips do not fit at every width, so the row scrolls
   horizontally with a soft fade rather than wrapping to a lonely second line. */
.chips {
  display: flex; flex-wrap: nowrap; gap: 7px;
  list-style: none; margin: 0; padding: 8px 2px 12px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%);
}
.chips::-webkit-scrollbar { display: none; }

.chips > li { flex: 0 0 auto; animation: chip-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }

.chip {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  padding: 5px 13px 6px; border-radius: 30px; color: #fff; white-space: nowrap;
  border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
  transform: rotate(var(--rot, 0deg));
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s;
  cursor: pointer;
}

/* each one arrives on its own beat */
.chips > li:nth-child(1)  { animation-delay: .06s; }
.chips > li:nth-child(2)  { animation-delay: .12s; }
.chips > li:nth-child(3)  { animation-delay: .18s; }
.chips > li:nth-child(4)  { animation-delay: .24s; }
.chips > li:nth-child(5)  { animation-delay: .30s; }
.chips > li:nth-child(6)  { animation-delay: .36s; }
.chips > li:nth-child(7)  { animation-delay: .42s; }
.chips > li:nth-child(8)  { animation-delay: .48s; }
.chips > li:nth-child(9)  { animation-delay: .54s; }
.chips > li:nth-child(10) { animation-delay: .60s; }
.chips > li:nth-child(n+11) { animation-delay: .66s; }

@keyframes chip-pop {
  0%   { opacity: 0; transform: translateY(12px) scale(.82); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.chip:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.06);
  box-shadow: 0 6px 0 var(--ink);
}
.chips > li:nth-child(10n+1) .chip { background: var(--c-trending);   --rot: -1.5deg; }
.chips > li:nth-child(10n+2) .chip { background: var(--c-inspiration);--rot: 1deg; }
.chips > li:nth-child(10n+3) .chip { background: var(--c-thoughts);   --rot: -0.6deg; }
.chips > li:nth-child(10n+4) .chip { background: var(--c-baduku); color: var(--ink); --rot: 1.4deg; }
.chips > li:nth-child(10n+5) .chip { background: var(--c-interviews); --rot: -1deg; }
.chips > li:nth-child(10n+6) .chip { background: var(--c-shorts);     --rot: 0.8deg; }
.chips > li:nth-child(10n+7) .chip { background: var(--c-travel);     --rot: -1.2deg; }
.chips > li:nth-child(10n+8) .chip { background: var(--c-videos);     --rot: 1.1deg; }
.chips > li:nth-child(10n+9) .chip { background: var(--c-health); color: var(--ink); --rot: -0.8deg; }
.chips > li:nth-child(10n+10) .chip{ background: var(--c-vlogs);      --rot: 1.3deg; }

/* ---- the signboard that slides up when a chip is clicked ---- */
/* Reserving space above the row left an obvious hole when nothing was open, so
   the board overlays upward instead. It has a solid background and border, and
   by the time it opens the "press one" hint has served its purpose. */
.chips-stage { position: relative; }

.signboard {
  position: absolute; bottom: 100%; left: 0; margin-bottom: 10px;
  width: max-content; max-width: min(460px, 100%);
  padding: 14px 20px 15px;
  border: 2px solid var(--ink); border-radius: 10px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  opacity: 0; visibility: hidden;
  transform: translate(var(--sx, 0), 16px) rotate(0deg) scale(.94);
  transform-origin: 30% 100%;
  transition: opacity .22s ease, transform .34s cubic-bezier(.34, 1.56, .64, 1), visibility .22s;
  /* faint ruled-paper lines, like a notepad */
  background-image: repeating-linear-gradient(
    180deg, transparent 0 22px, rgba(26, 23, 32, .09) 22px 23px
  );
}
.signboard.is-open {
  opacity: 1; visibility: visible;
  transform: translate(var(--sx, 0), 0) rotate(-1.4deg) scale(1);
}

.signboard-text {
  margin: 0; font-family: var(--font-body); font-weight: 500;
  font-size: 16px; line-height: 1.6; color: var(--ink);
}
/* On a phone a single scrolling line hides most of the chips, so let them wrap
   and show all ten. The scrolling one-liner is a desktop treatment only. */
@media (max-width: 760px) {
  .chips {
    flex-wrap: wrap; overflow: visible;
    -webkit-mask-image: none; mask-image: none;
    padding-bottom: 4px;
  }
  .signboard { max-width: 100%; width: auto; right: 0; }
  .signboard-point { display: none; }  /* the row wraps, so a nib would lie */
  .signboard-text { font-size: 15px; }
  .chip { font-size: 14px; padding: 6px 14px 7px; }
}

/* the bit of tape holding it up */
.signboard-tape {
  position: absolute; top: -11px; left: 26px;
  width: 62px; height: 20px; transform: rotate(-4deg);
  background: rgba(245, 163, 0, .75);
  border: 2px solid rgba(26, 23, 32, .35);
  border-radius: 2px;
}

/* the nib pointing down at the chip */
.signboard-point {
  position: absolute; bottom: -11px; left: 34px;
  width: 16px; height: 16px; background: var(--cream);
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.chip[aria-expanded="true"] {
  transform: rotate(0deg) translateY(-4px) scale(1.06);
  box-shadow: 0 6px 0 var(--ink);
}

.hero-sign {
  display: flex; align-items: baseline; gap: 12px; margin-top: 26px;
  font-family: var(--font-hand); font-size: 26px; color: var(--ink);
}
.hero-sign .small { font-family: var(--font-body); font-size: 13.5px; color: var(--ink-45); }

.hero-rule { height: 3px; background: var(--ink); margin: 40px 0 0; border-radius: 2px; }

/* compact hero for archives / single / pages */
.hero--compact { padding: 40px 0 26px; }
.hero--compact .hero-title { font-size: clamp(28px, 4vw, 44px); }
.hero-kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 13px; border-radius: 20px; border: 2px solid var(--ink);
  background: var(--cat, var(--c-trending)); color: var(--cat-fg, #fff);
  margin-bottom: 16px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  font-size: 14px; color: var(--ink-60); margin: 14px 0 0;
}

/* ==========================================================================
   5. The feed
   ========================================================================== */
.feed { padding: 34px 0 60px; }

.feed-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
/* Section headings get a hand-drawn squiggle underneath rather than a rule. */
.feed-head h2 {
  font-size: 30px; padding-bottom: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='9'%3E%3Cpath d='M0 6 q5.5 -5 11 0 t11 0 t11 0 t11 0' fill='none' stroke='%23FF4E1F' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: left bottom;
}
.feed-head .count { font-family: var(--font-hand); font-size: 21px; color: var(--ink-60); }


.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.column  { display: flex; flex-direction: column; gap: 26px; }
@media (max-width: 860px) {
  .columns { grid-template-columns: 1fr; gap: 22px; }
  .column  { gap: 22px; }
}

/* ---- the card ---- */
.card {
  position: relative; border: 2px solid var(--ink); border-radius: var(--r);
  background: var(--paper); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.card-media { position: relative; background: var(--cream-3); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card--tall .card-media img { aspect-ratio: 3 / 4; }
.card-body { padding: 18px 18px 20px; }

.card-chip {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 20px; margin-bottom: 10px;
  background: var(--cat); color: var(--cat-fg); border: 2px solid var(--ink);
}
.card h3 { font-size: 22px; line-height: 1.22; margin-bottom: 9px; }
.card h3 a:hover, .card h3 a:focus-visible { color: var(--cat); }
.card p { margin: 0 0 12px; font-size: 15px; line-height: 1.72; color: var(--ink-2); }
.card-meta { font-size: 13px; color: var(--ink-45); display: flex; flex-wrap: wrap; gap: 5px 10px; }

/* colour card — the loud ones, used when a post has no featured image */
.card--colour { background: var(--cat); border-color: var(--ink); }
.card--colour .card-body { padding: 26px 22px 24px; }
.card--colour h3 { font-size: 27px; color: var(--cat-fg); }
.card--colour h3 a:hover, .card--colour h3 a:focus-visible { color: var(--cat-fg); text-decoration: underline; }
.card--colour p { color: var(--cat-fg); opacity: .92; font-size: 15.5px; }
.card--colour .card-meta { color: var(--cat-fg); opacity: .75; }
.card--colour .card-chip { background: rgba(255,255,255,.22); color: var(--cat-fg); border-color: var(--cat-fg); }

/* framed card — colour block with the photo inset, the reference's signature move */
.card--framed { background: var(--cat); }
.card--framed .card-media { margin: 14px 14px 0; border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.card--framed h3 { color: var(--cat-fg); }
.card--framed h3 a:hover, .card--framed h3 a:focus-visible { color: var(--cat-fg); text-decoration: underline; }
.card--framed p { color: var(--cat-fg); opacity: .92; }
.card--framed .card-meta { color: var(--cat-fg); opacity: .78; }
.card--framed .card-chip { background: rgba(255,255,255,.22); color: var(--cat-fg); border-color: var(--cat-fg); }

/* video badge */
.card-play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.card-play span {
  width: 62px; height: 62px; border-radius: 50%; background: rgba(26,23,32,.82);
  border: 2px solid #fff; display: grid; place-items: center;
}
.card-play span::after {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}

/* the handwritten margin note, rotated like a sticker */
.card-note {
  position: absolute; top: -12px; right: 12px; z-index: 3;
  font-family: var(--font-hand); font-size: 17px; line-height: 1;
  padding: 6px 12px; border-radius: 20px; background: var(--cream);
  border: 2px solid var(--ink); color: var(--ink); transform: rotate(3deg);
  box-shadow: var(--shadow);
}

/* lead card spans both columns */
.card--lead { grid-column: 1 / -1; margin-bottom: 26px; }
.card--lead .card-inner { display: grid; grid-template-columns: 1.15fr 1fr; }
.card--lead .card-media { height: 100%; }
.card--lead .card-media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.card--lead .card-body { padding: 30px 30px 32px; align-self: center; }
.card--lead h3 { font-size: clamp(26px, 3vw, 38px); }
.card--lead p { font-size: 16.5px; }
@media (max-width: 860px) {
  .card--lead .card-inner { grid-template-columns: 1fr; }
  .card--lead .card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .card--lead .card-body { padding: 22px 20px 24px; }
}

/* ---- inserted non-post cards ---- */
.card--insert .card-body { padding: 24px 22px 26px; }
.card--insert h3 { font-size: 24px; }
.card--insert.is-dark { background: var(--ink); border-color: var(--ink); }
.card--insert.is-dark h3, .card--insert.is-dark p { color: var(--cream); }
.card--insert.is-dark p { opacity: .82; }

.now-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.now-list li { font-size: 15px; padding-left: 16px; position: relative; color: var(--cream); opacity: .9; }
.now-list li::before { content: "→"; position: absolute; left: 0; color: var(--c-baduku); }
.now-list strong { color: #fff; font-weight: 600; }

.start-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.start-list a {
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.35;
  border-bottom: 2px solid transparent;
}
.start-list a:hover, .start-list a:focus-visible { border-color: currentColor; }

.sub-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sub-form input[type="email"] {
  width: 100%; border: 2px solid var(--ink); border-radius: 26px; padding: 11px 16px;
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink);
}
.sub-form button {
  border: 2px solid var(--ink); border-radius: 26px; padding: 11px 18px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  background: var(--c-baduku); color: var(--ink); box-shadow: var(--shadow);
}
.sub-form button:hover, .sub-form button:focus-visible { background: var(--c-trending); color: #fff; }
.sub-hp { position: absolute; left: -9999px; }
.sub-note { font-size: 13.5px; margin: 10px 0 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip-row a {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 4px 13px; border-radius: 20px; border: 2px solid var(--ink); background: #fff;
}
.chip-row a:hover, .chip-row a:focus-visible { background: var(--ink); color: var(--cream); }

/* ==========================================================================
   6. Pagination
   ========================================================================== */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-top: 40px;
  border-top: 3px solid var(--ink); padding-top: 22px;
}
.pagination > span { font-family: var(--font-hand); font-size: 20px; color: var(--ink-60); }
.pager-btns { display: flex; gap: 10px; }
.pager-btns a, .pager-btns span.disabled {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 9px 20px; border-radius: 26px; border: 2px solid var(--ink);
  background: #fff; color: var(--ink); box-shadow: var(--shadow);
}
.pager-btns a:hover, .pager-btns a:focus-visible { background: var(--c-trending); color: #fff; }
.pager-btns span.disabled { opacity: .35; box-shadow: none; }

/* ==========================================================================
   7. Article
   ========================================================================== */
/* A post is a reading column, not a full-bleed grid — keep the sheet close to
   the measure so there are no dead margins inside the paper. */
.wrap--article { max-width: 860px; }

.article-sheet {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 34px; margin-bottom: 34px;
}
@media (max-width: 640px) { .article-sheet { padding: 20px; } }

.article-figure { margin: 0 0 30px; border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.article-figure img { width: 100%; display: block; }
.article-figure figcaption {
  font-size: 13.5px; color: var(--ink-60); padding: 10px 14px; background: var(--cream-2);
  border-top: 2px solid var(--ink);
}

.article-body { font-size: 17.5px; line-height: 1.9; color: var(--ink); max-width: 46rem; margin: 0 auto; }
.article-body p { margin: 0 0 1.5em; }
.article-body h2 { font-size: 30px; margin: 2em 0 .6em; }
.article-body h3 { font-size: 24px; margin: 1.8em 0 .55em; }
.article-body h4 { font-size: 20px; margin: 1.6em 0 .5em; }
.article-body a {
  color: var(--cat, var(--c-trending)); font-weight: 600;
  border-bottom: 2px solid currentColor;
}
.article-body ul, .article-body ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.article-body li { margin-bottom: .55em; }
.article-body img { border-radius: var(--r-sm); border: 2px solid var(--ink); }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: 14px; color: var(--ink-60); margin-top: 9px; text-align: center; }
.article-body blockquote {
  margin: 2em 0; padding: 22px 24px; border: 2px solid var(--ink); border-radius: var(--r-sm);
  background: var(--cat, var(--c-baduku)); color: var(--cat-fg, var(--ink));
  font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.5;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: 0; border-top: 3px solid var(--ink); margin: 2.6em 0; opacity: .18; }
.article-body pre {
  background: var(--ink); color: var(--cream); padding: 20px; border-radius: var(--r-sm);
  overflow-x: auto; font-size: 14.5px; line-height: 1.65;
}
.article-body code { background: var(--cream-2); padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.article-body pre code { background: none; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 15.5px; }
.article-body th, .article-body td { border: 2px solid var(--ink); padding: 10px 13px; text-align: left; }
.article-body th { background: var(--cream-2); font-family: var(--font-display); font-weight: 700; }
.article-body iframe, .article-body video { max-width: 100%; border-radius: var(--r-sm); }
.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; }
.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper > iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.article-tags { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 34px 0 0; }
.article-tags .label { font-family: var(--font-hand); font-size: 19px; color: var(--ink-60); }

.article-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 46px;
}
.foot-card {
  border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.foot-card .label {
  font-family: var(--font-hand); font-size: 18px; color: var(--ink-60); display: block; margin-bottom: 6px;
}
.foot-card a { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; }
.foot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.foot-card--next { text-align: right; }
@media (max-width: 640px) {
  .article-foot { grid-template-columns: 1fr; }
  .foot-card--next { text-align: left; }
}

/* ---- reading progress, in the post's own colour ---- */
.progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 100%;
  background: transparent; z-index: 60; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: var(--cat, var(--c-trending));
  border-right: 2px solid var(--ink);
}

/* ---- long-form Kannada reading ---- */
.article-body {
  /* Kannada sits lower and needs more leading than Latin at the same size */
  font-size: 18px; line-height: 1.95; letter-spacing: 0;
  max-width: none;
}
.article-body > p:first-of-type { font-size: 20px; line-height: 1.85; color: var(--ink); }

/* Body copy is always justified. `inter-word` keeps the extra space between
   words rather than stretching letterforms, which matters for Kannada, and
   break-word stops a long URL from blowing the column open. */
.article-body p,
.article-body li,
.article-body blockquote {
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Captions, credits and centred lines keep their own alignment. */
.article-body figcaption,
.article-body .wp-caption-text,
.article-body .gallery-caption,
.article-body p.has-text-align-center,
.article-body [style*="text-align: center"],
.article-body [style*="text-align:center"] { text-align: center; }
.article-body p.has-text-align-right,
.article-body [style*="text-align: right"],
.article-body [style*="text-align:right"] { text-align: right; }

/* Legacy inline sizes still get neutralised — 8pt was unreadable. */
.article-body [style*="font-size"] { font-size: inherit !important; }
.article-body font { font-size: inherit !important; }

.article-body strong, .article-body b { font-weight: 700; }
.article-body br + br { display: none; }

/* ---- images inside the body ---- */
.article-body img { margin-inline: auto; }
.article-body p > img:only-child { margin-block: 1.4em; }
.article-body .alignleft  { float: left;  margin: .4em 1.6em 1.2em 0; max-width: 46%; }
.article-body .alignright { float: right; margin: .4em 0 1.2em 1.6em; max-width: 46%; }
.article-body .aligncenter { display: block; margin-inline: auto; }
.article-body .wp-caption { max-width: 100%; }
.article-body .wp-caption-text {
  font-size: 14px; color: var(--ink-60); margin-top: 8px; text-align: center; line-height: 1.6;
}
@media (max-width: 600px) {
  .article-body .alignleft, .article-body .alignright { float: none; max-width: 100%; margin: 1.4em 0; }
}

/* ---- core [gallery] shortcode, used by 6 posts and otherwise unstyled ---- */
.article-body .gallery {
  display: grid; gap: 12px; margin: 2em 0;
  grid-template-columns: repeat(2, 1fr);
}
.article-body .gallery-columns-1 { grid-template-columns: 1fr; }
.article-body .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.article-body .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.article-body .gallery br { display: none; }
.article-body .gallery-item { margin: 0 !important; width: auto !important; }
.article-body .gallery-item img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: 2px solid var(--ink); border-radius: var(--r-sm); margin: 0;
}
.article-body .gallery-caption { font-size: 13px; color: var(--ink-60); }
@media (max-width: 560px) {
  .article-body .gallery, .article-body .gallery-columns-3, .article-body .gallery-columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- raw <iframe> embeds (19 posts) made responsive ---- */
.embed-frame {
  position: relative; aspect-ratio: 16 / 9; margin: 2em 0;
  border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden;
  background: var(--ink);
}
.embed-frame iframe {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0;
}

/* ---- share row ---- */
.share {
  margin: 34px 0 0; padding-top: 22px;
  border-top: 3px solid var(--ink);
}
.share-label { font-family: var(--font-hand); font-size: 20px; color: var(--ink-60); margin: 0 0 12px; }
.share-links { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.share-links a, .share-copy {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  padding: 8px 17px; border-radius: 26px; border: 2px solid var(--ink);
  background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
}
.share-links a:hover, .share-links a:focus-visible,
.share-copy:hover, .share-copy:focus-visible { transform: translateY(-2px); }
.share-links .is-whatsapp:hover { background: #25D366; color: #0b2e17; }
.share-links .is-facebook:hover { background: #1877F2; color: #fff; }
.share-links .is-x:hover        { background: #14171A; color: #fff; }
.share-links .is-telegram:hover { background: #2AABEE; color: #fff; }
.share-copy.is-done { background: var(--c-thoughts); color: #fff; }

/* ---- author card at the end of a post ---- */
.author-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: center;
  border: 2px solid var(--ink); border-radius: var(--r); background: var(--cream-2);
  padding: 22px; margin-bottom: 40px; box-shadow: var(--shadow);
}
.author-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.author-card .name { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0 0 4px; }
.author-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.author-card .more {
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  border-bottom: 2px solid var(--c-trending); color: var(--ink);
}
@media (max-width: 560px) {
  .author-card { grid-template-columns: 1fr; text-align: left; }
  .author-card img { width: 76px; height: 76px; }
}

.comments-closed {
  margin: 0 0 40px; padding: 16px 20px;
  border: 2px dashed var(--ink); border-radius: var(--r-sm);
  font-size: 15px; color: var(--ink-60); background: rgba(255,255,255,.5);
}

/* ==========================================================================
   8. Comments
   ========================================================================== */
.comments {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 30px; margin-bottom: 60px; box-shadow: var(--shadow);
}
@media (max-width: 640px) { .comments { padding: 20px; } }
.comments h3 { font-size: 25px; margin-bottom: 22px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol.children { list-style: none; margin: 18px 0 0; padding-left: 22px; border-left: 3px solid var(--cream-3); }
.comment-list li { margin-bottom: 22px; }
.comment-body { font-size: 15.5px; line-height: 1.75; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: baseline; margin-bottom: 6px; }
.comment-author { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.comment-author .says { display: none; }
.comment-metadata, .comment-metadata a { font-size: 13px; color: var(--ink-45); }
.comment-awaiting-moderation { font-size: 13.5px; color: var(--c-trending); }
.reply a { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--c-interviews); }
.comment-respond { margin-top: 34px; border-top: 3px solid var(--ink); padding-top: 24px; }
.comment-reply-title { font-size: 22px; margin-bottom: 10px; }
.comment-form p { margin: 0 0 15px; }
.comment-form label { display: block; font-size: 13.5px; color: var(--ink-60); margin-bottom: 5px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: var(--r-sm);
  padding: 11px 14px; font-family: var(--font-body); font-size: 15.5px; background: #fff; color: var(--ink);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
  border: 2px solid var(--ink); border-radius: 26px; padding: 11px 24px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  background: var(--c-thoughts); color: #fff; box-shadow: var(--shadow);
}
.comment-form .submit:hover { background: var(--ink); }
.comment-notes { font-size: 13px; color: var(--ink-45); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form-cookies-consent label { margin: 0; }

/* ==========================================================================
   9. Search / empty states
   ========================================================================== */
.search-form { display: flex; gap: 10px; max-width: 440px; }
.search-form input[type="search"] {
  flex: 1; border: 2px solid var(--ink); border-radius: 26px; padding: 10px 16px;
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink);
}
.search-form button {
  border: 2px solid var(--ink); border-radius: 26px; padding: 10px 20px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  background: var(--c-interviews); color: #fff; box-shadow: var(--shadow);
}
.search-form button:hover { background: var(--ink); }

.empty-state {
  border: 3px dashed var(--ink); border-radius: var(--r); padding: 34px;
  margin-bottom: 60px; background: rgba(255,255,255,.5);
}
.empty-state p { font-size: 17px; max-width: 54ch; margin: 0 0 18px; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { border-top: 3px solid var(--ink); background: var(--ink); color: var(--cream); }

.footer-top { padding: 52px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 44px; align-items: start;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.footer-thanks {
  font-family: var(--font-hand); font-size: 44px; line-height: 1;
  color: var(--c-baduku); margin: 0 0 14px;
}
.footer-about { font-size: 15px; line-height: 1.75; color: rgba(247,241,227,.72); margin: 0 0 18px; max-width: 38ch; }
.footer-sig { font-family: var(--font-hand); font-size: 27px; color: var(--cream); }

.footer-heading {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .09em; text-transform: uppercase;
  color: rgba(247,241,227,.5); margin: 0 0 14px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--cream); }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--c-baduku); }

.footer-topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-topics a {
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  padding: 4px 12px; border-radius: 20px; border: 2px solid rgba(247,241,227,.28);
  color: var(--cream);
}
.footer-topics a:hover, .footer-topics a:focus-visible { border-color: var(--cream); background: var(--cream); color: var(--ink); }

.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-social a {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 5px 14px; border-radius: 20px; border: 2px solid var(--cream); color: var(--cream);
}
.footer-social a:hover, .footer-social a:focus-visible { background: var(--c-inspiration); border-color: var(--c-inspiration); color: #fff; }

/* bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(247,241,227,.18); padding: 18px 0 22px;
}
.footer-bottom-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.footer-meta { font-size: 13px; color: rgba(247,241,227,.55); margin: 0; }
.footer-credit {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(247,241,227,.55);
}
.footer-credit a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--cream); font-family: var(--font-display); font-weight: 700;
}
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--c-baduku); }
.wd-mark {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px;
  background: var(--cream); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: -.02em;
}
.footer-credit a:hover .wd-mark { background: var(--c-baduku); }

/* The lockup sits on a light chip so it reads regardless of its own colours. */
.wd-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream); border-radius: 7px; padding: 5px 10px;
  transition: background-color .15s, transform .15s;
}
.wd-logo { height: 20px; width: auto; display: block; }
.footer-credit a:hover .wd-chip { background: var(--c-baduku); transform: translateY(-2px); }

/* ==========================================================================
   11. Motion / print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
  /* the pop-in leaves elements at opacity 0 if the animation never runs */
  .chips > li { opacity: 1 !important; transform: none !important; }
  .signboard.is-open { opacity: 1; visibility: visible; transform: translate(var(--sx, 0), 0); }
}

@media print {
  body { background: #fff; }
  .site-header, .hero, .comments, .article-foot, .pagination, .nav-toggle, .card--insert { display: none !important; }
  .article-sheet { border: 0; box-shadow: none; padding: 0; }
  .article-body { font-size: 12pt; }
}
