/* Blog notebook sketch theme */
body.blog-notebook-body {
  --blog-paper: #f7f3e9;
  --blog-paper-soft: #fffaf0;
  --blog-ink: #050505;
  --blog-muted: #374151;
  --blog-blue: #4076a2;
  --blog-green: #8fb79b;
  --blog-yellow: #e5c54e;
  --blog-coral: #d96d4f;
  --blog-border: #263747;
  --blog-line: rgba(38, 55, 71, .10);
  --blog-shadow: rgba(38, 55, 71, .18);
  background:
    radial-gradient(circle at 16% 8%, rgba(229, 197, 78, .16), transparent 24rem),
    radial-gradient(circle at 82% 14%, rgba(64, 118, 162, .10), transparent 26rem),
    linear-gradient(180deg, var(--blog-paper) 0%, var(--blog-paper-soft) 100%) !important;
  color: var(--blog-ink) !important;
}

body.blog-notebook-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(31, 41, 55, .035) 1px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: .42;
}

body.blog-notebook-body .site-header {
  background: transparent;
}

body.blog-notebook-body .nav-container {
  border: 2px solid rgba(38, 55, 71, .76);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .74), rgba(255, 250, 240, .88)),
    var(--blog-paper-soft);
  box-shadow:
    6px 7px 0 rgba(64, 118, 162, .28),
    0 14px 30px rgba(38, 55, 71, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.blog-notebook-body .site-header .brand,
body.blog-notebook-body .site-header .nav-link,
body.blog-notebook-body .site-header .theme-toggle,
body.blog-notebook-body .site-header .menu-toggle {
  color: var(--blog-ink);
  text-shadow: none;
}

body.blog-notebook-body .site-header .brand {
  font-weight: 900;
}

body.blog-notebook-body .site-header .nav-link {
  color: var(--blog-muted);
  border-radius: 6px;
}

body.blog-notebook-body .site-header .nav-link::after {
  bottom: .18rem;
  height: .28rem;
  background: rgba(229, 197, 78, .75);
  box-shadow: none;
  transform: translateX(-50%) rotate(-1deg);
}

body.blog-notebook-body .site-header .nav-link:hover,
body.blog-notebook-body .site-header .nav-link:focus-visible,
body.blog-notebook-body .site-header .nav-link.active {
  color: var(--blog-ink);
  background: rgba(255, 255, 255, .48);
  box-shadow: 3px 4px 0 rgba(38, 55, 71, .08);
}

body.blog-notebook-body .site-header .nav-link.active {
  border: 1px solid rgba(38, 55, 71, .42);
}

body.blog-notebook-body .site-header .theme-toggle,
body.blog-notebook-body .site-header .menu-toggle {
  border: 1.5px solid rgba(38, 55, 71, .6);
  border-radius: 6px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 3px 4px 0 rgba(229, 197, 78, .4);
}

body.blog-notebook-body .site-header .theme-toggle:hover,
body.blog-notebook-body .site-header .theme-toggle:focus-visible,
body.blog-notebook-body .site-header .menu-toggle:hover,
body.blog-notebook-body .site-header .menu-toggle:focus-visible {
  color: var(--blog-ink);
  border-color: rgba(38, 55, 71, .78);
  background: rgba(255, 255, 255, .68);
  box-shadow: 4px 5px 0 rgba(217, 109, 79, .28);
}

body.blog-notebook-body .site-header .nav-link:focus-visible,
body.blog-notebook-body .site-header .theme-toggle:focus-visible,
body.blog-notebook-body .site-header .menu-toggle:focus-visible {
  outline: 3px solid rgba(64, 118, 162, .34);
}

@media (max-width: 900px) {
  body.blog-notebook-body .site-header .nav {
    border: 2px solid rgba(38, 55, 71, .74);
    border-radius: 7px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 250, 240, .96)),
      var(--blog-paper-soft);
    box-shadow:
      6px 7px 0 rgba(64, 118, 162, .22),
      0 18px 34px rgba(38, 55, 71, .16);
  }

  body.blog-notebook-body .site-header .nav .nav-link::after {
    transform: rotate(-1deg);
  }
}

.blog-page {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  color: var(--blog-ink);
}

.blog-page a {
  color: #1f6f8d;
}

.blog-page a:focus-visible,
.blog-page button:focus-visible {
  outline: 3px solid rgba(59, 130, 160, .35);
  outline-offset: 4px;
}

.blog-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  overflow: hidden;
  width: min(1196px, calc(100% - 2rem));
  min-height: auto;
  margin: clamp(1rem, 2vw, 1.6rem) auto 0;
  padding: clamp(3.4rem, 6vw, 5rem) clamp(1rem, 2.4vw, 1.8rem) clamp(.65rem, 1.4vw, 1.05rem);
  border: 2px solid rgba(31, 41, 55, .74);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .72) 0%, rgba(255, 250, 240, .56) 40%, rgba(255, 250, 240, .14) 72%, rgba(255, 250, 240, .08) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .44) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent 0 32px, var(--blog-line) 33px 34px),
    linear-gradient(90deg, rgba(255, 255, 255, .68) 0%, rgba(255, 250, 240, .94) 48%, rgba(244, 238, 226, .86) 100%);
  background-size: auto, 36px 36px, auto, auto;
  box-shadow:
    8px 8px 0 rgba(64, 118, 162, .24),
    0 24px 50px var(--blog-shadow);
}

.blog-hero-content {
  position: relative;
  z-index: 3;
  max-width: 560px;
  padding: clamp(.25rem, .7vw, .55rem);
}

.blog-hero::before,
.blog-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.blog-hero::before {
  left: clamp(1rem, 3vw, 2.4rem);
  top: -1rem;
  width: 8rem;
  height: 2rem;
  border: 1px solid rgba(31, 41, 55, .12);
  background: rgba(224, 189, 91, .35);
  transform: rotate(-2deg);
}

.blog-hero::after {
  right: clamp(1.2rem, 3vw, 2.8rem);
  bottom: clamp(1rem, 2vw, 1.8rem);
  width: 10rem;
  height: 3.2rem;
  border-bottom: 3px solid rgba(217, 121, 93, .65);
  border-radius: 50%;
  transform: rotate(-8deg);
  opacity: .8;
}

.blog-kicker {
  width: fit-content;
  margin: 0 0 .75rem;
  padding: .18rem .62rem;
  border: 1.5px solid rgba(31, 41, 55, .66);
  border-radius: 999px;
  color: var(--blog-muted);
  background: rgba(255, 255, 255, .5);
  font-family: "Caveat", cursive;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  transform: rotate(-1deg);
}

.blog-hero h1,
.blog-section-title {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin: 0;
  color: var(--blog-ink);
  font-family: "Caveat", cursive;
  font-weight: 700;
  letter-spacing: 0;
}

.blog-hero h1 {
  font-size: clamp(4rem, 10vw, 6.4rem);
  line-height: .82;
}

.blog-section-title {
  font-size: clamp(2.45rem, 5vw, 3.65rem);
  line-height: .9;
}

.blog-hero h1::after,
.blog-section-title::after {
  content: "";
  position: absolute;
  left: .08em;
  right: -.08em;
  bottom: -.13em;
  height: .18em;
  border-radius: 999px;
  background: rgba(229, 197, 78, .70);
  transform: rotate(-1.4deg);
  z-index: -1;
}

.blog-hero .lead {
  max-width: 590px;
  margin: 1.3rem 0 0;
  color: var(--blog-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.blog-hero-tabs,
.blog-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.blog-hero-tabs {
  margin-top: 1.45rem;
}

.blog-hero-tabs span,
.blog-category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: .36rem .78rem;
  border: 1.5px solid rgba(31, 41, 55, .66);
  border-radius: 6px;
  color: var(--blog-ink);
  background: rgba(255, 255, 255, .58);
  box-shadow: 6px 7px 0 var(--blog-blue);
  font-weight: 800;
  line-height: 1.15;
}

.blog-hero-tabs span:nth-child(2),
.blog-category-chip:nth-child(3n + 1) {
  box-shadow: 6px 7px 0 var(--blog-yellow);
  background: rgba(255, 255, 255, .62);
}

.blog-hero-tabs span:nth-child(3),
.blog-category-chip:nth-child(3n + 2) {
  box-shadow: 6px 7px 0 var(--blog-green);
  background: rgba(255, 255, 255, .62);
}

.blog-sketch-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

.blog-sketch-visual::before,
.blog-sketch-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.blog-sketch-visual::before {
  background:
    linear-gradient(90deg, rgba(251, 246, 234, .98) 0%, rgba(251, 246, 234, .84) 30%, rgba(251, 246, 234, .28) 52%, rgba(251, 246, 234, .04) 78%),
    linear-gradient(180deg, rgba(251, 246, 234, .42) 0%, transparent 22%, transparent 78%, rgba(251, 246, 234, .46) 100%);
}

.blog-sketch-visual::after {
  background:
    repeating-linear-gradient(0deg, rgba(38, 55, 71, .055) 0 1px, transparent 1px 34px),
    linear-gradient(90deg, transparent 0 5.4rem, rgba(217, 109, 79, .16) 5.45rem 5.55rem, transparent 5.6rem 100%),
    linear-gradient(90deg, transparent 0%, transparent 78%, rgba(251, 246, 234, .34) 100%),
    radial-gradient(circle at 72% 58%, transparent 0 34%, rgba(251, 246, 234, .16) 72%, rgba(251, 246, 234, .38) 100%);
  background-size: auto, auto, auto, auto;
}

.blog-sketch-visual img {
  position: absolute;
  top: 50%;
  right: -1%;
  z-index: 2;
  width: 96%;
  height: 96%;
  transform: translateY(-50%);
  object-fit: cover;
  object-position: center right;
  padding: 0;
}

.blog-sketch-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: var(--blog-ink);
}

.sketch-note,
.sketch-card,
.sketch-pen,
.sketch-bulb {
  position: absolute;
  display: block;
}

.sketch-note {
  left: 12%;
  top: 18%;
  padding: .85rem 1rem;
  border: 2px solid rgba(31, 41, 55, .75);
  background: rgba(224, 189, 91, .55);
  font-family: "Caveat", cursive;
  font-size: 2rem;
  font-weight: 700;
  transform: rotate(-7deg);
}

.sketch-card {
  right: 13%;
  top: 24%;
  width: 11rem;
  padding: 1.2rem 1.4rem;
  border: 2px solid rgba(31, 41, 55, .75);
  border-radius: 14px 18px 12px 16px;
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, var(--blog-line) 26px 27px),
    var(--blog-paper-soft);
  font-family: "Caveat", cursive;
  font-size: 1.65rem;
  line-height: 1.05;
  transform: rotate(4deg);
}

.sketch-pen {
  left: 42%;
  bottom: 16%;
  width: .7rem;
  height: 13rem;
  border: 1px solid rgba(31, 41, 55, .75);
  border-radius: 999px;
  background: linear-gradient(90deg, #22313f, #6b7280, #22313f);
  transform: rotate(53deg);
}

.sketch-bulb {
  left: 42%;
  top: 18%;
  width: 4.4rem;
  aspect-ratio: 1;
  border: 2px solid rgba(31, 41, 55, .78);
  border-radius: 50% 50% 44% 44%;
  background: rgba(255, 255, 255, .35);
}

.sketch-bulb::before,
.sketch-bulb::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sketch-bulb::before {
  bottom: -.85rem;
  width: 1.8rem;
  height: .9rem;
  border: 2px solid rgba(31, 41, 55, .78);
  border-top: 0;
}

.sketch-bulb::after {
  top: -1.25rem;
  width: 5.4rem;
  height: 5.4rem;
  border-top: 3px solid rgba(224, 189, 91, .7);
  border-radius: 50%;
}

.blog-section-heading {
  display: flex;
  gap: .75rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.blog-section-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1.5px solid rgba(31, 41, 55, .7);
  border-radius: 50%;
  color: var(--blog-ink);
  background: rgba(255, 255, 255, .48);
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  font-weight: 700;
}

.blog-featured-paper,
.blog-note-card,
.blog-closing-paper {
  position: relative;
  color: var(--blog-ink);
  border: 2px solid var(--blog-border);
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(31, 41, 55, .065) 32px 33px),
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 250, 240, .96));
  box-shadow:
    7px 8px 0 var(--blog-blue),
    0 18px 38px var(--blog-shadow);
}

.blog-featured-paper {
  max-width: 980px;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 7px;
  transform: rotate(-.45deg);
}

.paper-tape {
  position: absolute;
  left: 48%;
  top: -1rem;
  width: 7rem;
  height: 1.8rem;
  border: 1px solid rgba(31, 41, 55, .12);
  background: rgba(224, 189, 91, .42);
  transform: translateX(-50%) rotate(1.5deg);
}

.blog-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
  color: var(--blog-muted);
  font-size: .9rem;
  font-weight: 800;
}

.blog-category-label {
  display: inline-flex;
  padding: .2rem .58rem;
  border: 1.5px solid rgba(31, 41, 55, .54);
  border-radius: 999px;
  background: rgba(229, 197, 78, .42);
  color: var(--blog-ink);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
}

.blog-featured-paper h3,
.blog-note-card h3 {
  margin: 0 0 .65rem;
  color: var(--blog-ink);
  font-family: "Caveat", cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 700;
}

.blog-featured-paper p,
.blog-note-card p,
.blog-closing-paper p {
  margin: 0;
  color: var(--blog-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.blog-note-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 1rem;
  color: #255f77 !important;
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.blog-note-link:hover,
.blog-note-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(224, 189, 91, .75);
}

.blog-category-section {
  padding-top: clamp(1rem, 3vw, 1.8rem);
}

.blog-category-chip {
  border: 1.5px solid rgba(31, 41, 55, .68);
  cursor: pointer;
  font-family: Inter, sans-serif;
}

.blog-category-chip:hover,
.blog-category-chip:focus-visible,
.blog-category-chip.is-active {
  background: rgba(217, 121, 93, .18);
  transform: translateY(-2px) rotate(-.6deg);
}

.blog-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.4rem);
}

.blog-note-card {
  min-width: 0;
  padding: 1.45rem 1.2rem 1.2rem;
  border-radius: 7px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-note-card:nth-child(2n) {
  transform: rotate(.45deg);
}

.blog-note-card:nth-child(3n) {
  transform: rotate(-.35deg);
}

.blog-note-card:hover,
.blog-note-card:focus-within {
  transform: translateY(-5px) rotate(0deg);
  box-shadow:
    9px 10px 0 var(--blog-coral),
    0 22px 42px rgba(63, 49, 31, .2);
}

.blog-card-pin {
  position: absolute;
  top: -.62rem;
  left: 50%;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid rgba(31, 41, 55, .62);
  border-radius: 50%;
  background: var(--blog-coral);
  transform: translateX(-50%);
  box-shadow:
    0 2px 0 rgba(38, 55, 71, .24),
    0 8px 14px rgba(38, 55, 71, .16);
}

.blog-card-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .32rem;
  height: .32rem;
  border-radius: 50%;
  background: var(--blog-paper-soft);
  transform: translate(-50%, -50%);
}

.blog-note-card.is-hidden {
  display: none;
}

.blog-journal-grid .blog-note-card:nth-child(1) .blog-category-label {
  background: rgba(143, 183, 155, .35);
}

.blog-journal-grid .blog-note-card:nth-child(2) .blog-category-label {
  background: rgba(229, 197, 78, .42);
}

.blog-journal-grid .blog-note-card:nth-child(3) .blog-category-label {
  background: rgba(217, 109, 79, .26);
}

.blog-closing-paper {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 20px 16px 22px 18px;
  text-align: center;
}

.blog-closing-paper .blog-kicker {
  margin-inline: auto;
}

.blog-closing-paper .blog-section-title {
  margin-inline: auto;
}

.blog-closing-paper .blog-note-link {
  margin-inline: auto;
}

body.blog-notebook-body .site-footer {
  color: var(--blog-muted);
}

body.blog-notebook-body .site-footer a {
  color: #255f77;
}

@media (max-width: 980px) {
  .blog-hero {
    grid-template-columns: 1fr;
    width: min(1100px, 92%);
    gap: 1.4rem;
    padding-top: 3.2rem;
    padding-bottom: .75rem;
  }

  .blog-hero-content {
    max-width: 620px;
  }

  .blog-sketch-visual {
    opacity: .58;
  }

  .blog-sketch-visual img {
    object-position: 66% center;
    width: 108%;
    height: 100%;
    right: -18%;
  }

  .blog-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-hero {
    width: min(1100px, 92%);
    min-height: auto;
    padding: 2.4rem 1.35rem .75rem;
    border-radius: 20px;
  }

  .blog-hero h1 {
    font-size: clamp(4.5rem, 25vw, 6rem);
  }

  .blog-hero .lead {
    font-size: 1rem;
  }

  .blog-sketch-visual {
    opacity: .38;
  }

  .blog-sketch-visual img {
    width: 124%;
    right: -34%;
  }

  .blog-section-heading {
    align-items: center;
  }

  .blog-section-mark {
    width: 2rem;
    height: 2rem;
  }

  .blog-notes-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured-paper,
  .blog-note-card,
  .blog-closing-paper {
    transform: none !important;
  }

  .blog-category-tabs {
    gap: .5rem;
  }

  .blog-category-chip {
    min-height: 2.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-note-card,
  .blog-category-chip,
  .blog-note-link {
    transition: none !important;
  }

  .blog-note-card:hover,
  .blog-note-card:focus-within,
  .blog-category-chip:hover,
  .blog-category-chip:focus-visible {
    transform: none !important;
  }
}
