
@font-face {
  font-family: "Insight Intro Fixed";
  font-style: italic;
  font-weight: 800;
  font-display: block;
  src: url("./assets/fonts/helvetica-neue-insight-bold-italic.woff") format("woff");
}

@font-face {
  font-family: "Michel Sketch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/comic-neue-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Michel Sketch";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("./assets/fonts/comic-neue-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: only light;
  --bg: #fdfbf7;
  --paper: #fffef9;
  --paper-deep: #f3ead7;
  --ink: #2d2d2d;
  --muted: #746c60;
  --red: #ff4d4d;
  --intro-bg: #ffffff;
  --intro-ink: #09090b;
  --intro-red: #f04438;
  --yellow: #ffe66d;
  --blue: #2d5da1;
  --shadow: 7px 7px 0 #2d2d2d;
  --shadow-small: 4px 4px 0 #2d2d2d;
  --duration: 5.2s;
  --intro-exit: 680ms;
  --wobble-big: 42px 24px 36px 28px / 24px 38px 26px 40px;
  --wobble-small: 18px 10px 16px 12px / 12px 18px 10px 16px;
}


html {
  color-scheme: only light !important;
  background-color: #fdfbf7 !important;
  color: #2d2d2d !important;
  forced-color-adjust: none;
}

html,
body,
.site-shell,
.intro-stage,
.logo-svg,
.contact-backdrop,
.contact-modal,
.post-body,
.post-shell {
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light !important;
    --bg: #fdfbf7;
    --paper: #fffef9;
    --paper-deep: #f3ead7;
    --ink: #2d2d2d;
    --muted: #746c60;
    --red: #ff4d4d;
    --intro-bg: #ffffff;
    --intro-ink: #09090b;
    --intro-red: #f04438;
    --yellow: #ffe66d;
    --blue: #2d5da1;
    --shadow: 7px 7px 0 #2d2d2d;
    --shadow-small: 4px 4px 0 #2d2d2d;
  }

  html,
  body {
    background-color: #fdfbf7 !important;
    color: #2d2d2d !important;
  }

  body.intro-running,
  .intro-stage,
  .logo-svg {
    background-color: #ffffff !important;
    color: #09090b !important;
  }

  .site-shell,
  .contact-modal,
  .note-white,
  .sketch-card {
    background-color: #fffef9 !important;
    color: #2d2d2d !important;
  }

  .contact-item,
  html:not([data-blog-theme="terminal"]):not([data-blog-theme="gallery"]) .blog-list a,
  .nav-links a,
  .brand-lockup,
  .button-secondary {
    background-color: #fffdf4 !important;
    color: #2d2d2d !important;
  }

  .button-primary,
  .contact-icon,
  .contact-close,
  .brand-dot,
  .pin {
    background-color: #ff4d4d !important;
  }
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
}

html { scroll-behavior: smooth; }
body.intro-running {
  overflow: hidden;
  background: var(--intro-bg) !important;
  color: var(--intro-ink);
  forced-color-adjust: none;
  filter: none !important;
}

body.intro-running::before { opacity: 0; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(45, 45, 45, .055) 1px, transparent 1px),
    radial-gradient(rgba(45, 45, 45, .11) .7px, transparent 1px);
  background-size: 100% 34px, 18px 18px;
}

.intro-stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--intro-bg) !important;
  color: var(--intro-ink);
  forced-color-adjust: none;
  filter: none !important;
  mix-blend-mode: normal;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity var(--intro-exit) cubic-bezier(.22, 1, .36, 1),
    transform var(--intro-exit) cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear var(--intro-exit);
}

.intro-stage::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: var(--intro-bg) !important;
  forced-color-adjust: none;
  filter: none !important;
}

.intro-stage,
.intro-stage * {
  forced-color-adjust: none;
  filter: none !important;
  mix-blend-mode: normal;
}

body.intro-done .intro-stage {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-18px) scale(.985);
}

.logo-svg {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  background: var(--intro-bg) !important;
  color: var(--intro-ink);
  forced-color-adjust: none;
  filter: none !important;
  mix-blend-mode: normal;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.skip-intro {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 12;
  border: 3px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 10px 15px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow-small);
  font: 800 13px/1 "Michel Sketch", "Comic Sans MS", "Marker Felt", cursive;
  cursor: pointer;
  opacity: 0;
  transform: rotate(-2deg) translateY(6px);
  animation: skipIn 420ms ease 900ms forwards;
}

body.intro-done .skip-intro,
html[data-frame] .skip-intro { display: none; }

@keyframes skipIn {
  to { opacity: 1; transform: rotate(-2deg) translateY(0); }
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(18px, 3vw, 44px);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 720ms cubic-bezier(.22, 1, .36, 1),
    transform 720ms cubic-bezier(.22, 1, .36, 1);
}

body.intro-done { overflow: auto; }

body.intro-done .site-shell,
body.preview-home .site-shell {
  opacity: 1;
  transform: translateY(0);
}

body.preview-home .intro-stage { display: none; }

.paper-noise {
  position: fixed;
  inset: clamp(16px, 3vw, 38px);
  z-index: -1;
  pointer-events: none;
  border: 2px dashed rgba(45, 45, 45, .15);
  border-radius: 32px 18px 28px 22px / 20px 30px 18px 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.brand-lockup,
.nav-links a,
.button,
.blog-list a {
  color: inherit;
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 9px 14px 8px;
  background: var(--paper);
  box-shadow: var(--shadow-small);
  font-weight: 800;
  white-space: nowrap;
  transform: rotate(-1.4deg);
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  border: 2px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 9px 12px 8px;
  background: rgba(255, 254, 249, .78);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(.8deg);
}

.nav-links a:nth-child(2) { transform: rotate(-1.2deg); }
.nav-links a:nth-child(3) { transform: rotate(.35deg); }
.nav-links a:hover { background: var(--yellow); }

.hero {
  width: min(1180px, 100%);
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  padding: clamp(72px, 9vw, 118px) 0 clamp(78px, 10vw, 130px);
}

.hero-copy-block { position: relative; }

.hero-copy-block::after {
  content: "";
  position: absolute;
  right: clamp(-86px, -8vw, -30px);
  bottom: 68px;
  width: 150px;
  height: 46px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 52'%3E%3Cpath d='M8 36 C42 8,88 9,140 24' fill='none' stroke='%232d5da1' stroke-width='4' stroke-linecap='round' stroke-dasharray='8 8'/%3E%3Cpath d='M136 10 L164 25 L136 40' fill='none' stroke='%232d5da1' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: rotate(-6deg);
}

.eyebrow,
.section-kicker,
.card-label,
.item-meta {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: clamp(58px, 8.2vw, 124px);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.07em;
}

.hero-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 3px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 0 22px;
  box-shadow: var(--shadow-small);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
}

.button-primary { background: var(--red); color: #fffef9; }
.button-secondary { background: var(--paper); }
.button:hover {
  transform: translate(2px, 2px) rotate(-.5deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.sketch-card {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: var(--wobble-big);
  padding: 34px 30px 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.tape {
  position: absolute;
  top: -17px;
  width: 78px;
  height: 28px;
  border: 2px dashed rgba(45, 45, 45, .35);
  background: rgba(243, 234, 215, .88);
}

.tape-left { left: 28px; transform: rotate(-7deg); }
.tape-right { right: 34px; transform: rotate(5deg); }

.sketch-card ul {
  display: grid;
  gap: 17px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  line-height: 1.05;
}

.sketch-card li span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 13px;
  vertical-align: middle;
}

.card-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.4;
}

.content-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .92;
  letter-spacing: -.055em;
  text-align: right;
}

.blog-heading {
  align-items: flex-start;
}

.blog-heading h2 { text-align: left; }

.section-link {
  flex: 0 0 auto;
  margin-top: 10px;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 10px 13px 9px;
  background: var(--yellow);
  color: inherit;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(1.2deg);
  transition:
    transform 110ms cubic-bezier(.2, .9, .25, 1),
    box-shadow 110ms cubic-bezier(.2, .9, .25, 1),
    background 140ms ease;
}

.section-link:hover {
  background: #fff38f;
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-1px, -1px) rotate(1.2deg);
}

.section-link:active {
  background: #fff8db;
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px) rotate(1.2deg);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.note-card {
  position: relative;
  display: block;
  min-height: 265px;
  border: 4px solid var(--ink);
  border-radius: var(--wobble-big);
  padding: 30px 24px 24px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.note-card:nth-child(1) { transform: rotate(-1.4deg); }
.note-card:nth-child(2) { transform: rotate(1deg); }
.note-card:nth-child(3) { transform: rotate(-.6deg); }
.note-yellow { background: var(--yellow); }
.note-white { background: var(--paper); }
.note-red { background: #ffe7e7; }

.app-card-link {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 120ms cubic-bezier(.2, .9, .25, 1),
    box-shadow 120ms cubic-bezier(.2, .9, .25, 1),
    background 150ms ease;
}

.app-card-link:hover {
  background: #fff38f;
  box-shadow: 9px 9px 0 var(--ink);
  transform: translate(-2px, -2px) rotate(-1.4deg);
}

.app-card-link:active {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(5px, 5px) rotate(-1.4deg);
}

.pin {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
}

.note-card h3 {
  margin: 62px 0 14px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: .96;
  letter-spacing: -.05em;
}

.note-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.38;
}

.note-card .app-card-cta {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-section { padding-top: clamp(40px, 7vw, 88px); }

.blog-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.blog-column {
  position: relative;
}

.blog-column-ai {
  margin-top: 42px;
}

.blog-group-label {
  display: inline-block;
  margin: 0 0 16px;
  border: 2px dashed rgba(45, 45, 45, .4);
  border-radius: 999px;
  padding: 7px 13px 6px;
  background: rgba(255, 254, 249, .7);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
}

.blog-column-ai .blog-group-label {
  transform: rotate(1.4deg);
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-list a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  position: relative;
  border: 3px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 18px 20px 19px;
  background: rgba(255, 254, 249, .82);
  box-shadow: var(--shadow-small);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 110ms cubic-bezier(.2, .9, .25, 1),
    box-shadow 110ms cubic-bezier(.2, .9, .25, 1),
    background 140ms ease;
}

.blog-list a:nth-child(even) { transform: rotate(-.45deg); }
.blog-list a:nth-child(odd) { transform: rotate(.35deg); }
.blog-list a:hover {
  background: #fffdf2;
  box-shadow: 5px 5px 0 var(--ink);
}
.blog-list a:nth-child(even):hover { transform: translate(-1px, -1px) rotate(-.45deg); }
.blog-list a:nth-child(odd):hover { transform: translate(-1px, -1px) rotate(.35deg); }
.blog-list a:active {
  background: #fff8db;
  box-shadow: 1px 1px 0 var(--ink);
}
.blog-list a:nth-child(even):active { transform: translate(4px, 4px) rotate(-.45deg); }
.blog-list a:nth-child(odd):active { transform: translate(4px, 4px) rotate(.35deg); }
.blog-list span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.blog-list strong {
  overflow-wrap: anywhere;
  font-size: clamp(24px, 2.55vw, 34px);
  line-height: .98;
}
.blog-list em {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: normal;
  line-height: 1.42;
}

.ai-posts-collapsed,
.all-posts-ai-folded {
  border: 2px dashed rgba(45, 45, 45, .35);
  border-radius: 18px 14px 20px 16px / 14px 18px 16px 20px;
  padding: 18px 20px;
  background: rgba(255, 254, 249, .58);
  color: var(--muted);
  transform: rotate(.35deg);
}

.ai-posts-collapsed strong,
.all-posts-ai-folded strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.ai-posts-collapsed em,
.all-posts-ai-folded em {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: normal;
  line-height: 1.45;
}

.all-posts-panel {
  width: min(1500px, calc(100vw - clamp(28px, 4vw, 72px)));
  margin-top: clamp(34px, 5vw, 58px);
  margin-left: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--ink);
  border-radius: 20px 14px 28px 18px / 16px 24px 18px 26px;
  padding: clamp(18px, 3vw, 30px) clamp(12px, 1.5vw, 18px) clamp(24px, 4vw, 40px);
  background:
    linear-gradient(90deg, rgba(89, 63, 34, .08), transparent 10%, transparent 90%, rgba(89, 63, 34, .08)),
    repeating-linear-gradient(90deg, rgba(126, 86, 42, .035) 0 1px, transparent 1px 31px),
    rgba(255, 254, 249, .78);
  box-shadow: var(--shadow);
}

.all-posts-panel[hidden] { display: none; }

.all-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.all-posts-header .blog-group-label { margin-bottom: 0; }

#all-posts-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.all-posts-list {
  display: grid;
  gap: 22px;
  position: relative;
  isolation: isolate;
  min-height: 260px;
  padding: 8px 8px 18px;
  border-left: 7px solid rgba(88, 62, 34, .52);
  border-right: 7px solid rgba(88, 62, 34, .52);
  border-radius: 22px 16px 26px 18px / 18px 24px 16px 26px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(88, 62, 34, .16), transparent 22px, transparent calc(100% - 22px), rgba(88, 62, 34, .16)),
    repeating-linear-gradient(90deg, rgba(91, 58, 27, .045) 0 2px, transparent 2px 28px);
}

.all-posts-ai-folded {
  position: relative;
  z-index: 1;
  margin: 0 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.32), transparent 54%, rgba(45,45,45,.08)),
    #f8f2e4;
}

.all-post-category {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 30px 22px 34px 24px / 24px 32px 22px 30px;
  padding: 46px 18px 30px;
  background:
    linear-gradient(90deg, rgba(50, 33, 17, .16), transparent 2.2%, transparent 97.8%, rgba(50, 33, 17, .14)),
    repeating-linear-gradient(90deg, rgba(91, 58, 27, .055) 0 1px, transparent 1px 18px),
    #ead7b5;
}

.all-post-category::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 38px;
  bottom: 18px;
  border-top: 14px solid rgba(122, 83, 39, .58);
  border-bottom: 16px solid rgba(88, 58, 28, .66);
  border-left: 5px solid rgba(88, 58, 28, .28);
  border-right: 5px solid rgba(88, 58, 28, .28);
  border-radius: 28px 21px 31px 23px / 21px 29px 23px 31px;
  background:
    linear-gradient(90deg, transparent 0 49.55%, rgba(79, 48, 21, .28) 49.55% 50%, transparent 50%),
    linear-gradient(180deg, transparent 0 48%, rgba(84, 54, 26, .22) 48% 49.2%, transparent 49.2%),
    radial-gradient(ellipse at 22% 8%, rgba(255,255,255,.18), transparent 28%),
    repeating-linear-gradient(0deg, rgba(82, 52, 23, .035) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, rgba(82, 52, 23, .045) 0 1px, transparent 1px 24px);
  box-shadow:
    inset 0 6px 0 rgba(255,255,255,.18),
    inset 0 -7px 0 rgba(45,45,45,.16),
    0 2px 0 rgba(45,45,45,.22);
  pointer-events: none;
}

.all-post-category::after {
  display: none;
}

.all-post-books {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: stretch;
  gap: 0 14px;
  position: relative;
  z-index: 1;
  min-height: 236px;
  padding: 11px 6px 20px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 268px,
      rgba(78, 48, 23, .5) 268px 272px,
      transparent 272px 296px
    );
}

.all-post-books--single {
  grid-template-columns: minmax(0, 1fr);
}

.all-post-bay {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  grid-auto-rows: 270px;
  align-items: end;
  gap: 26px 10px;
  min-width: 0;
  position: relative;
}

.all-post-partition {
  align-self: stretch;
  position: relative;
  z-index: 3;
  width: 20px;
  min-height: 100%;
  border: 2px solid rgba(45, 45, 45, .58);
  border-top: 0;
  border-bottom: 0;
  border-radius: 14px 10px 16px 11px / 12px 15px 11px 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.24), transparent 44%, rgba(45,45,45,.2)),
    repeating-linear-gradient(0deg, rgba(58, 35, 16, .16) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, transparent 1px 6px),
    #a8753e;
  box-shadow:
    4px 0 0 rgba(45, 45, 45, .18),
    inset -3px 0 rgba(45, 45, 45, .16),
    inset 3px 0 rgba(255, 255, 255, .14);
}

.all-post-partition::before,
.all-post-partition::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(45, 45, 45, .22);
}

.all-post-partition::before { top: 18px; }
.all-post-partition::after { bottom: 18px; }

.all-post-divider {
  --divider-tilt: 0deg;
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 7px;
  left: 18px;
  z-index: 2;
  width: auto;
  min-height: 0;
  border: 2px solid var(--ink);
  border-radius: 18px 13px 20px 12px / 13px 19px 12px 18px;
  padding: 6px 12px 5px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.32), transparent 54%, rgba(45,45,45,.14)),
    repeating-linear-gradient(90deg, rgba(83, 50, 22, .08) 0 1px, transparent 1px 10px),
    #caa56a;
  box-shadow: 3px 3px 0 rgba(45, 45, 45, .86);
  color: var(--ink);
  transform: rotate(var(--divider-tilt));
}

.all-post-divider::before,
.all-post-divider::after {
  display: none;
}

.all-post-divider span {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
  transform: none;
  writing-mode: horizontal-tb;
}

.all-post-divider strong {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.05;
  writing-mode: horizontal-tb;
  opacity: .84;
  text-shadow:
    .4px 0 rgba(45, 45, 45, .14),
    -.2px 0 rgba(255, 255, 255, .42);
  transform: skewY(-.3deg) scaleX(.98);
  transform-origin: center;
  filter: url("#book-ink-warp") blur(.08px) contrast(.92);
  mix-blend-mode: multiply;
}

.all-post-divider em {
  position: relative;
  bottom: auto;
  left: auto;
  z-index: 1;
  color: rgba(45, 45, 45, .62);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.1;
  text-align: center;
  transform: none;
  writing-mode: horizontal-tb;
}

.all-post-item {
  --book-height: 248px;
  --book-tilt: 0deg;
  display: block;
  position: relative;
  z-index: 1;
  height: var(--book-height);
  min-height: 220px;
  max-height: 270px;
  min-width: 66px;
  border: 2px solid var(--ink);
  border-radius: 16px 11px 15px 10px / 13px 18px 11px 17px;
  padding: 10px 6px 12px;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(255,255,255,.28), transparent 38%),
    linear-gradient(90deg, rgba(45,45,45,.12), transparent 12%, transparent 88%, rgba(45,45,45,.18)),
    linear-gradient(90deg, rgba(255,255,255,.36), transparent 30%, rgba(45,45,45,.045) 74%, rgba(45,45,45,.13)),
    repeating-linear-gradient(90deg, rgba(45,45,45,.04) 0 1px, transparent 1px 13px),
    #fffdf4;
  color: inherit;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(45, 45, 45, .9);
  transform: rotate(var(--book-tilt));
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 130ms cubic-bezier(.2, .9, .25, 1),
    box-shadow 110ms cubic-bezier(.2, .9, .25, 1),
    background 140ms ease,
    filter 140ms ease;
}

.all-post-item:nth-child(6n + 1) { background-color: #f7f1de; }
.all-post-item:nth-child(6n + 2) { background-color: #f5f1e8; }
.all-post-item:nth-child(6n + 3) { background-color: #f4e2df; }
.all-post-item:nth-child(6n + 4) { background-color: #e8eee5; }
.all-post-item:nth-child(6n + 5) { background-color: #efe5d3; }
.all-post-item:nth-child(6n + 6) { background-color: #ecebf3; }
.all-post-item:nth-child(8n + 1) { --book-height: 232px; --book-tilt: -.18deg; }
.all-post-item:nth-child(8n + 2) { --book-height: 246px; --book-tilt: .12deg; }
.all-post-item:nth-child(8n + 3) { --book-height: 262px; --book-tilt: -.08deg; }
.all-post-item:nth-child(8n + 4) { --book-height: 238px; --book-tilt: .16deg; }
.all-post-item:nth-child(8n + 5) { --book-height: 254px; --book-tilt: -.14deg; }
.all-post-item:nth-child(8n + 6) { --book-height: 226px; --book-tilt: .08deg; }
.all-post-item:nth-child(8n + 7) { --book-height: 266px; --book-tilt: -.12deg; }
.all-post-item:nth-child(8n + 8) { --book-height: 242px; --book-tilt: .14deg; }

.all-post-item::before,
.all-post-item::after {
  content: "";
  position: absolute;
  inset: 7px auto 7px 7px;
  width: 2px;
  border-radius: 999px;
  background: rgba(45, 45, 45, .28);
}

.all-post-item::after {
  inset-inline: auto 7px;
  opacity: .26;
}

.all-post-item:hover {
  z-index: 6;
  background-blend-mode: normal;
  box-shadow: 6px 6px 0 var(--ink);
  filter: saturate(1.04);
  transform: translate(-2px, -8px) rotate(0deg) scaleX(1.04);
}

.all-post-item:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, -3px) rotate(0deg) scaleX(1.03);
}

.all-post-item > span {
  display: none;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 0;
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 1;
  width: 18px;
  min-height: 34px;
  border: 1px solid rgba(45, 45, 45, .14);
  border-radius: 3px 4px 3px 4px / 4px 3px 4px 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.32), transparent 58%, rgba(45,45,45,.08)),
    rgba(255, 246, 223, .68);
  box-shadow:
    .8px .8px 0 rgba(45,45,45,.18),
    inset .8px 0 rgba(255,255,255,.44);
  color: rgba(255, 76, 72, .82);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: .88;
  text-align: center;
  text-transform: uppercase;
  opacity: .82;
  transform: translateX(-50%) skewY(-.35deg) scaleX(.96);
  transform-origin: center;
  filter: url("#book-ink-warp") blur(.08px) contrast(.94);
  mix-blend-mode: multiply;
}

.all-post-item b {
  display: block;
  max-width: none;
  overflow: visible;
  font: inherit;
  text-overflow: clip;
  text-orientation: upright;
  writing-mode: vertical-rl;
}

.all-post-item time {
  display: none;
}

.all-post-item strong {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: calc(100% - 18px);
  height: calc(var(--book-height) - 42px);
  color: rgba(45, 45, 45, .78);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  font-size: clamp(21px, 1.48vw, 28px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .94;
  text-align: center;
  white-space: normal;
  opacity: .82;
  text-shadow:
    .45px 0 rgba(45, 45, 45, .14),
    -.3px 0 rgba(255, 255, 255, .52),
    0 .25px rgba(45, 45, 45, .06);
  transform: translate(-50%, -50%) scaleX(.97);
  transform-origin: center;
  filter: url("#book-ink-warp") blur(.04px) contrast(.94);
  mix-blend-mode: multiply;
}

.all-post-item strong .spine-ch,
.all-post-item strong .spine-latin-letter {
  display: block;
  width: 1.15em;
  min-height: .86em;
  text-align: center;
  transform-origin: center;
}

.all-post-item strong .spine-latin-letter {
  width: 1em;
  min-height: .82em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72em;
  font-weight: 700;
  line-height: .88;
}

.all-post-item strong.is-latin-spine {
  display: grid;
  place-items: center;
  gap: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.28vw, 24px);
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.all-post-item strong.is-latin-spine .spine-latin-word {
  display: block;
  overflow: hidden;
  max-width: calc(var(--book-height) - 56px);
  color: rgba(45, 45, 45, .7);
  letter-spacing: .01em;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  transform: rotate(90deg) scaleX(.96);
  transform-origin: center;
  white-space: nowrap;
}

.all-post-item strong.is-latin-spine .spine-latin-letter {
  width: auto;
  min-height: .7em;
  font-size: .88em;
  line-height: .78;
}

.all-post-item strong .spine-latin {
  display: block;
  margin: 2px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .58em;
  font-weight: 700;
  line-height: 1;
  transform: rotate(90deg);
  white-space: nowrap;
}

.all-post-item--spine-long strong {
  font-size: clamp(18px, 1.18vw, 23px);
  line-height: .94;
}

.all-post-item--spine-dense strong {
  font-size: clamp(16px, 1.04vw, 20px);
  line-height: .94;
}

.all-post-item--spine-dense strong .spine-ch,
.all-post-item--spine-dense strong .spine-latin-letter {
  min-height: .86em;
}

.all-post-item em {
  display: none;
  overflow: auto;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  z-index: 10;
  width: min(440px, 82vw);
  max-height: min(420px, 64vh);
  border: 2px solid var(--ink);
  border-radius: 12px 9px 15px 10px / 10px 16px 9px 14px;
  padding: 15px 17px 16px;
  background: #fffef9;
  box-shadow: 4px 4px 0 var(--ink);
  color: rgba(45, 45, 45, .82);
  font-family: "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  transform: translate(-50%, 8px) rotate(-.3deg) skewX(-.35deg);
  transition: opacity 120ms ease, transform 120ms ease;
}

.all-post-item:hover em,
.all-post-item:focus-visible em {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0) rotate(-.3deg) skewX(-.35deg);
}

.canvas-question,
.canvas-dot,
.canvas-i,
.canvas-rest { will-change: transform, opacity, clip-path, stroke-dasharray; }

.svg-bg { fill: #ffffff; }

.book-ink-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy-block::after { display: none; }
  .sketch-card { max-width: 560px; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-shelf { grid-template-columns: 1fr; }
  .blog-column-ai { margin-top: 10px; }
  .note-card:nth-child(n) { transform: rotate(0deg); }
}

@media (max-width: 680px) {
  .site-shell { padding: 18px; }

  .paper-noise {
    inset: 12px;
    border-radius: 28px 18px 24px 20px / 18px 26px 16px 24px;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .nav-links {
    width: 100%;
    margin-left: 0;
    gap: 12px;
    justify-content: space-between;
  }

  .nav-links a {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    letter-spacing: .1em;
    transform: none;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) { transform: none; }

  .brand-lockup {
    padding: 8px 12px 7px;
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 14px;
  }

  .hero {
    gap: 56px;
    padding-top: 86px;
    padding-bottom: 76px;
  }

  .hero h1 {
    max-width: 340px;
    font-size: clamp(44px, 13.4vw, 60px);
    line-height: .94;
    letter-spacing: -.055em;
  }

  .hero-copy {
    max-width: 310px;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.52;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 34px;
  }

  .hero-actions,
  .button { width: 100%; }

  .button {
    min-height: 50px;
  }

  .sketch-card {
    width: calc(100% - 8px);
    margin: 10px auto 0;
    padding: 30px 22px 24px;
    box-shadow: 5px 5px 0 var(--ink);
    transform: rotate(.4deg);
  }

  .sketch-card ul {
    gap: 14px;
    font-size: 22px;
  }

  .card-note {
    margin-top: 22px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
  }

  .section-heading h2 { text-align: left; }

  .section-link {
    align-self: flex-start;
    margin-top: 2px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .section-link:hover {
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(1.2deg);
  }

  .content-section {
    padding: 72px 0;
  }

  .card-grid {
    gap: 28px;
  }

  .note-card {
    min-height: 230px;
    padding: 28px 22px 24px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .blog-shelf {
    gap: 34px;
  }

  .blog-column-ai {
    margin-top: 0;
  }

  .blog-list {
    gap: 18px;
  }

  .blog-list a {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 20px 18px 21px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .blog-list strong {
    font-size: clamp(24px, 7vw, 30px);
  }

  .blog-list em {
    font-size: 16px;
    line-height: 1.48;
  }

  .all-posts-panel {
    margin-top: 38px;
    padding: 20px 16px 22px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .all-posts-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
  }

  .all-posts-list {
    gap: 12px;
    min-height: 0;
    padding: 12px 8px 18px;
  }

  .all-post-category {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .all-post-category::before {
    display: none;
  }

  .all-post-category::after {
    display: none;
  }

  .all-post-books {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 0 0 14px;
    background: transparent;
  }

  .all-post-divider {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    justify-items: start;
    width: 100%;
    height: auto !important;
    min-height: 46px;
    max-height: none;
    gap: 10px;
    border-radius: 14px 10px 16px 9px / 10px 15px 9px 14px;
    padding: 11px 14px 10px;
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(var(--divider-tilt));
  }

  .all-post-divider::before,
  .all-post-divider::after {
    top: 8px;
    bottom: 8px;
  }

  .all-post-divider span,
  .all-post-divider strong,
  .all-post-divider em {
    filter: none;
    position: relative;
    inset: auto;
    mix-blend-mode: normal;
    opacity: 1;
    text-shadow: none;
    transform: none;
    writing-mode: horizontal-tb;
  }

  .all-post-divider strong {
    font-size: 17px;
  }

  .all-post-divider em {
    justify-self: end;
    font-size: 10px;
  }

  .all-post-item {
    display: grid;
    grid-template-columns: minmax(72px, .34fr) 1fr;
    grid-template-rows: auto;
    justify-items: start;
    align-items: center;
    width: 100%;
    height: auto !important;
    min-height: 78px;
    max-height: none;
    gap: 11px;
    padding: 13px 15px 13px 17px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .all-post-item:nth-child(n) { transform: rotate(var(--book-tilt)); }

  .all-post-item:hover,
  .all-post-item:active {
    transform: translate(-1px, -2px) rotate(0deg);
  }

  .all-post-item > span {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    justify-items: start;
    text-align: left;
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
    transform: none;
  }

  .all-post-item b {
    text-orientation: mixed;
    writing-mode: horizontal-tb;
  }

  .all-post-item time {
    writing-mode: horizontal-tb;
  }

  .all-post-item strong {
    display: -webkit-box;
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    max-height: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    filter: none;
    font-size: clamp(18px, 5.1vw, 24px);
    font-family: "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
    line-height: 1.03;
    mix-blend-mode: normal;
    opacity: 1;
    text-shadow: none;
    transform: none;
    white-space: normal;
    writing-mode: horizontal-tb;
  }

  .all-post-item strong .spine-ch,
  .all-post-item strong .spine-latin,
  .all-post-item strong .spine-latin-letter {
    display: inline;
    width: auto;
    min-height: 0;
    margin: 0;
    font: inherit;
    line-height: inherit;
    transform: none;
    white-space: normal;
  }

  .all-post-item em {
    display: none;
  }

  .skip-intro {
    right: 16px;
    bottom: 16px;
  }
}

@media (pointer: coarse) {
  .skip-intro {
    display: none;
  }
}

@media (max-width: 680px) {
  .all-posts-list {
    overflow: hidden;
    padding: 12px 0 18px;
  }

  .all-post-category {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .all-post-books {
    display: flex;
    grid-template-columns: none;
    align-items: end;
    gap: 14px;
    min-height: 286px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 14px 12px 26px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .all-post-bay {
    display: flex;
    align-items: end;
    flex: 0 0 auto;
    gap: 14px;
  }

  .all-post-partition {
    flex: 0 0 16px;
    width: 16px;
    min-height: 240px;
    align-self: stretch;
  }

  .all-post-item {
    display: block;
    flex: 0 0 84px;
    width: 84px;
    height: var(--book-height) !important;
    min-height: 220px;
    max-height: 270px;
    gap: 0;
    padding: 11px 7px 13px;
    scroll-snap-align: start;
    box-shadow: 3px 3px 0 rgba(45, 45, 45, .9);
  }

  .all-post-item:hover,
  .all-post-item:active {
    transform: translate(-1px, -5px) rotate(0deg) scaleX(1.02);
  }

  .all-post-item > span {
    display: none;
  }

  .all-post-item strong {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% - 20px);
    height: calc(var(--book-height) - 42px);
    color: rgba(45, 45, 45, .78);
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", Georgia, serif;
    font-size: clamp(24px, 7.1vw, 32px);
    font-weight: 700;
    line-height: .94;
    opacity: .82;
    text-align: center;
    text-shadow:
      .45px 0 rgba(45, 45, 45, .14),
      -.3px 0 rgba(255, 255, 255, .52),
      0 .25px rgba(45, 45, 45, .06);
    transform: translate(-50%, -50%) scaleX(.97);
    white-space: normal;
    writing-mode: horizontal-tb;
    filter: url("#book-ink-warp") blur(.04px) contrast(.94);
    mix-blend-mode: multiply;
  }

  .all-post-item strong .spine-ch,
  .all-post-item strong .spine-latin-letter {
    display: block;
    width: 1.15em;
    min-height: .86em;
    font: inherit;
    line-height: inherit;
    text-align: center;
    white-space: normal;
  }

  .all-post-item strong .spine-latin-letter {
    width: 1em;
    min-height: .82em;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .72em;
    line-height: .88;
  }

  .all-post-item strong.is-latin-spine {
    display: grid;
    place-items: center;
    gap: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 5.6vw, 24px);
    line-height: 1;
  }

  .all-post-item strong.is-latin-spine .spine-latin-word {
    display: block;
    overflow: hidden;
    max-width: calc(var(--book-height) - 56px);
    font: inherit;
    letter-spacing: .01em;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    transform: rotate(90deg) scaleX(.96);
    transform-origin: center;
    white-space: nowrap;
  }

  .all-post-item strong.is-latin-spine .spine-latin-letter {
    width: auto;
    min-height: .7em;
    font-size: .86em;
    line-height: .78;
  }

  .all-post-item strong .spine-latin {
    display: block;
    margin: 2px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .58em;
    font-weight: 700;
    line-height: 1;
    transform: rotate(90deg);
    white-space: nowrap;
  }

  .all-post-item--spine-long strong {
    font-size: clamp(21px, 6.2vw, 28px);
  }

  .all-post-item--spine-dense strong {
    font-size: clamp(18px, 5.3vw, 23px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* Sketch article reader */
.post-body {
  overflow: auto;
}

.post-body .intro-stage {
  display: none;
}

.post-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(18px, 3vw, 44px);
}

.post-nav {
  margin-bottom: clamp(46px, 7vw, 84px);
}

.post-page {
  width: min(900px, 100%);
  margin: 0 auto clamp(56px, 8vw, 100px);
}

.post-hero {
  position: relative;
  margin-bottom: clamp(22px, 4vw, 34px);
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 54px) clamp(24px, 4vw, 42px);
  border: 3px solid var(--ink);
  border-radius: 34px 20px 30px 24px / 20px 32px 22px 30px;
  background: var(--yellow);
  box-shadow: var(--shadow);
  transform: rotate(-.45deg);
}

.post-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  bottom: -17px;
  width: 96px;
  height: 32px;
  border: 3px solid rgba(45, 45, 45, .75);
  background: rgba(255, 255, 255, .48);
  transform: rotate(3deg);
}

.post-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.back-link,
.post-footer a,
.post-edit-button {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.back-link {
  margin-bottom: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 9px 13px 8px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
}

.back-link::before {
  content: "<-";
  margin-right: 8px;
}

.post-edit-button {
  border: 2px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 9px 13px 8px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
  font-size: 13px;
  cursor: pointer;
}

.post-edit-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.post-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.post-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 6.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.post-excerpt {
  max-width: 680px;
  margin: 22px 0 0;
  color: #3d382f;
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}

.post-paper {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 24px 36px 26px 30px / 32px 22px 34px 24px;
  padding: clamp(26px, 5vw, 58px);
  background: rgba(255, 254, 249, .95);
  box-shadow: var(--shadow);
  transform: rotate(.18deg);
  overflow: hidden;
}

.post-paper::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 2px dashed rgba(45, 45, 45, .12);
  border-radius: 18px 30px 20px 24px / 24px 18px 28px 18px;
}

.post-content {
  position: relative;
  z-index: 1;
  color: #2e2b27;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.76;
  overflow-wrap: anywhere;
  overflow: hidden;
}

.post-content > :first-child { margin-top: 0; }
.post-content > :last-child { margin-bottom: 0; }

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 1.35em 0 .55em;
  color: var(--ink);
  font-family: "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.post-content h1 { font-size: clamp(34px, 5vw, 54px); }
.post-content h2 { font-size: clamp(28px, 4vw, 42px); }
.post-content h3 { font-size: clamp(23px, 3vw, 32px); }
.post-content h4 { font-size: clamp(20px, 2.4vw, 26px); }

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content .code-block,
.post-content pre,
.post-content .table-wrap {
  margin: 1.05em 0;
}

.post-content a {
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.post-content blockquote {
  border-left: 6px solid var(--red);
  padding: 10px 0 10px 20px;
  background: linear-gradient(90deg, rgba(255, 77, 77, .08), transparent);
  color: #4d473e;
  font-style: italic;
}

.post-content code,
.post-content pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.post-content code {
  border: 1px solid rgba(45, 45, 45, .25);
  border-radius: 8px;
  padding: .12em .32em;
  background: #f4ecd9;
  font-size: .82em;
}

.post-content pre {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 2px solid var(--ink);
  border-radius: 14px 10px 13px 12px / 11px 14px 10px 13px;
  padding: 14px 16px;
  background: #27231f;
  color: #fff8e8;
  box-shadow: 4px 4px 0 rgba(45, 45, 45, .22);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.55;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.post-content .code-block {
  position: relative;
}

.post-content .code-block pre {
  margin: 0;
  padding-top: 42px;
}

.code-copy-button {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 248, 232, .38);
  border-radius: 999px;
  padding: 5px 9px 4px;
  background: rgba(255, 248, 232, .10);
  color: #fff8e8;
  font-family: "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.code-copy-button:hover,
.code-copy-button.is-copied {
  background: #fff8e8;
  color: #27231f;
}

.code-copy-button:active {
  transform: translateY(1px);
}

.post-content pre code {
  display: block;
  min-width: max-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre;
}

.post-content img,
.post-content video,
.post-content iframe {
  max-width: 100%;
}

.post-content img {
  box-sizing: border-box;
  display: block;
  height: auto;
  margin: 1.4em auto;
  border: 3px solid var(--ink);
  border-radius: 18px 24px 16px 22px / 20px 16px 24px 18px;
  box-shadow: 5px 5px 0 rgba(45, 45, 45, .24);
}

.post-content img[style*="position: absolute"] {
  margin: 0 !important;
  transform: none !important;
  max-width: calc(100% - 12px) !important;
  z-index: 2;
}

.table-wrap,
.post-content mjx-container,
.post-content .katex-display {
  max-width: 100%;
  overflow-x: auto;
}

.post-content table {
  width: max-content;
  min-width: min(100%, 620px);
  border-collapse: collapse;
  font-size: .92em;
}

.post-content th,
.post-content td {
  border: 2px solid rgba(45, 45, 45, .55);
  padding: 10px 12px;
  vertical-align: top;
}

.post-content th {
  background: var(--yellow);
  font-family: "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
}

.post-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(32px, 5vw, 54px);
  padding-top: 22px;
  border-top: 2px dashed rgba(45, 45, 45, .22);
}

.post-footer a {
  border: 2px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 11px 15px 10px;
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-small);
}

.empty-note {
  border: 2px dashed rgba(45, 45, 45, .35);
  border-radius: 18px;
  padding: 22px;
  background: #fff8db;
}

.post-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(251, 250, 246, .72);
  backdrop-filter: blur(8px);
}

.post-edit-modal[hidden] {
  display: none;
}

.post-edit-dialog {
  position: relative;
  width: min(420px, 100%);
  border: 3px solid var(--ink);
  border-radius: 26px 20px 24px 22px / 22px 26px 20px 24px;
  padding: 30px 28px 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-.35deg);
}

.post-edit-dialog h2 {
  margin: 0 0 8px;
  font-family: "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
  font-size: 28px;
}

.post-edit-dialog p {
  margin: 0 0 20px;
  color: #625c52;
  font-weight: 700;
}

.post-edit-dialog label {
  display: grid;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.post-edit-dialog input {
  width: 100%;
  border: 2px solid rgba(45,45,45,.24);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff9dc;
  color: var(--ink);
  font: 800 18px/1.2 "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
  outline: none;
}

.post-edit-dialog input:focus {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(45,45,45,.14);
}

.post-edit-dialog button[type="submit"] {
  margin-top: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 11px 15px 10px;
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-small);
  font-family: "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
  font-weight: 900;
  cursor: pointer;
}

.post-edit-close {
  position: absolute;
  top: 12px;
  right: 13px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 900 24px/1 "Michel Sketch", "Comic Sans MS", "Marker Felt", "Trebuchet MS", cursive;
  cursor: pointer;
}

.post-edit-dialog em {
  display: block;
  min-height: 18px;
  margin-top: 14px;
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}


@media (min-width: 1024px) {
  .post-body {
    background: #fbfaf6;
  }

  .post-body::before {
    opacity: .32;
    background-size: 100% 40px, 22px 22px;
  }

  .post-body .paper-noise {
    inset: 28px;
    border-color: rgba(45, 45, 45, .10);
  }

  .post-shell {
    padding: 34px clamp(36px, 5vw, 78px) 88px;
  }

  .post-nav {
    width: min(1320px, 100%);
    margin: 0 auto 64px;
  }

  .post-page {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 860px);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
    width: min(1320px, 100%);
    margin: 0 auto 110px;
  }

  .post-hero {
    position: sticky;
    top: 34px;
    margin-bottom: 0;
    padding: 28px 26px 32px;
    border-width: 2px;
    border-radius: 28px 18px 26px 20px / 18px 28px 20px 26px;
    background: rgba(255, 230, 109, .92);
    box-shadow: 5px 5px 0 var(--ink);
    transform: rotate(-.28deg);
  }

  .post-hero::after {
    right: 28px;
    bottom: -14px;
    width: 76px;
    height: 25px;
    border-width: 2px;
    opacity: .72;
  }

  .back-link {
    margin-bottom: 28px;
    font-size: 12px;
  }

  .post-kicker {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: .14em;
  }

  .post-hero h1,
  .post-hero h1.is-cjk-title {
    max-width: 100%;
    font-size: clamp(26px, 2.1vw, 36px);
    line-height: 1.1;
    letter-spacing: -.026em;
  }

  .post-excerpt {
    max-width: 100%;
    margin-top: 20px;
    color: #514b42;
    font-size: 15px;
    line-height: 1.58;
  }

  .post-paper {
    border-width: 2px;
    border-radius: 22px 30px 24px 28px / 28px 20px 30px 22px;
    padding: clamp(52px, 5vw, 76px) clamp(58px, 6vw, 92px);
    background: rgba(255, 254, 249, .98);
    box-shadow: 6px 6px 0 rgba(45, 45, 45, .9);
    transform: none;
  }

  .post-paper::before {
    inset: 18px;
    border-width: 1px;
    opacity: .75;
  }

  .post-content {
    max-width: 720px;
    margin: 0 auto;
    color: #26231f;
    font-size: 19px;
    line-height: 1.86;
    letter-spacing: .005em;
    overflow-wrap: break-word;
  }

  .post-content h1,
  .post-content h2,
  .post-content h3,
  .post-content h4 {
    max-width: 760px;
    margin: 1.65em 0 .65em;
  }

  .post-content h1 { font-size: 44px; }
  .post-content h2 { font-size: 34px; }
  .post-content h3 { font-size: 27px; }
  .post-content h4 { font-size: 22px; }

  .post-content p,
  .post-content ul,
  .post-content ol,
  .post-content blockquote,
  .post-content .code-block,
  .post-content pre,
  .post-content .table-wrap {
    margin: 1.15em 0;
  }

  .post-content img,
  .post-content video,
  .post-content iframe,
  .post-content .table-wrap,
  .post-content mjx-container,
  .post-content .katex-display {
    max-width: min(920px, calc(100vw - 560px));
  }

  .post-content img {
    margin: 2em auto;
    border-width: 2px;
    box-shadow: 4px 4px 0 rgba(45, 45, 45, .2);
  }

  .post-content pre {
    max-width: 100%;
    padding: 14px 16px;
    font-size: 13px;
  }

  .post-content .code-block pre {
    padding-top: 40px;
  }

  .post-footer {
    max-width: 720px;
    margin: 52px auto 0;
  }
}

@media (min-width: 1280px) {
  .post-page {
    grid-template-columns: minmax(280px, 335px) minmax(0, 900px);
  }

  .post-content {
    max-width: 740px;
  }
}

@media (max-width: 760px) {
  .post-shell {
    padding: 18px 16px 46px;
  }

  .post-nav {
    margin-bottom: 44px;
  }

  .post-hero {
    padding: 24px 18px 28px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .post-hero h1 {
    font-size: clamp(30px, 10vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .post-excerpt {
    font-size: 17px;
  }

  .post-paper {
    padding: 28px 18px 34px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .post-paper::before {
    inset: 9px;
  }

  .post-content {
    font-size: 16.5px;
    line-height: 1.72;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 1.25em;
  }

  .post-content pre {
    margin-left: -4px;
    margin-right: -4px;
    padding: 12px 13px;
    font-size: 12px;
  }

  .post-content .code-block pre {
    padding-top: 38px;
  }

  .code-copy-button {
    top: 9px;
    right: 10px;
    font-size: 10px;
  }
}

.post-hero h1.is-cjk-title {
  max-width: 780px;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

@media (min-width: 1024px) {
  .post-hero h1.is-cjk-title {
    max-width: 100%;
    font-size: clamp(25px, 1.95vw, 34px);
    line-height: 1.13;
    letter-spacing: -.022em;
  }
}

@media (max-width: 760px) {
  .post-hero h1.is-cjk-title {
    font-size: clamp(28px, 8.6vw, 40px);
    line-height: 1.1;
  }
}

.brand-lockup {
  border-style: solid;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
}

.brand-lockup:hover { background: var(--yellow); }
.brand-lockup:active,
.brand-lockup.is-pressed {
  transform: translate(3px, 3px) rotate(-1.4deg);
  box-shadow: 1px 1px 0 var(--ink);
}

.contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(45, 45, 45, .04) 1px, transparent 1px),
    radial-gradient(rgba(45, 45, 45, .08) .7px, transparent 1px);
  background-size: 100% 34px, 18px 18px;
  animation: contactBackdropIn 220ms ease-out both;
}

.contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 31;
  width: min(430px, calc(100vw - 36px));
  border: 4px solid var(--ink);
  border-radius: var(--wobble-big);
  padding: 32px 26px 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) rotate(-.7deg);
  transform-origin: 50% 18%;
  color: var(--ink);
  animation: contactModalIn 360ms cubic-bezier(.16, 1, .28, 1) both;
}

.contact-backdrop.is-closing {
  pointer-events: none;
  animation: contactBackdropOut 190ms ease-in both;
}

.contact-modal.is-closing {
  pointer-events: none;
  animation: contactModalOut 220ms cubic-bezier(.55, 0, .85, .36) both;
}

.contact-modal[hidden],
.contact-backdrop[hidden] { display: none; }

body.contact-open { overflow: hidden; }

.contact-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: #fffef9;
  box-shadow: 3px 3px 0 var(--ink);
  font: 900 24px/1 "Michel Sketch", "Comic Sans MS", cursive;
  cursor: pointer;
}

.contact-close:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.contact-modal h2 {
  margin: 10px 46px 0 0;
  font-size: clamp(36px, 7.4vw, 52px);
  line-height: .9;
  letter-spacing: -.055em;
}

.contact-desc {
  margin: 16px 0 20px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.42;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-modal:not([hidden]) .contact-item {
  animation: contactItemIn 300ms cubic-bezier(.16, 1, .28, 1) both;
}

.contact-modal:not([hidden]) .contact-item:nth-child(1) { animation-delay: 90ms; }
.contact-modal:not([hidden]) .contact-item:nth-child(2) { animation-delay: 125ms; }
.contact-modal:not([hidden]) .contact-item:nth-child(3) { animation-delay: 160ms; }
.contact-modal:not([hidden]) .contact-item:nth-child(4) { animation-delay: 195ms; }

.contact-modal.is-closing .contact-item {
  animation: contactItemOut 140ms ease-in both;
}

.contact-modal.is-closing .contact-item:nth-child(1) { animation-delay: 0ms; }
.contact-modal.is-closing .contact-item:nth-child(2) { animation-delay: 25ms; }
.contact-modal.is-closing .contact-item:nth-child(3) { animation-delay: 50ms; }
.contact-modal.is-closing .contact-item:nth-child(4) { animation-delay: 75ms; }

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  align-items: center;
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 22px 14px 20px 15px / 15px 22px 14px 20px;
  padding: 11px 13px;
  background: #fffdf4;
  box-shadow: 4px 4px 0 var(--ink);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
}

.contact-item:nth-child(2) { transform: rotate(.6deg); }
.contact-item:nth-child(3) { transform: rotate(-.5deg); }
.contact-item:nth-child(4) { transform: rotate(.4deg); }
.contact-item:hover { background: var(--yellow); }
.contact-item:active {
  transform: translate(3px, 3px) rotate(0deg);
  box-shadow: 1px 1px 0 var(--ink);
}

.contact-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: #fffef9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.contact-icon-svg {
  display: block;
  width: 26px;
  height: 26px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-1deg);
}

.icon-github { width: 28px; height: 28px; transform: rotate(-1deg); }
.icon-wechat { width: 29px; height: 29px; transform: rotate(1deg); }
.icon-gmail { width: 24px; height: 24px; fill: currentColor; stroke: none; transform: rotate(-.5deg); }
.icon-linkedin { width: 27px; height: 27px; transform: rotate(.5deg); }

.gallery-line-frame {
  display: none;
}

@keyframes contactBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes contactModalIn {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 18px)) rotate(-1.8deg) scale(.88);
    filter: blur(2px);
  }
  58% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 4px)) rotate(.8deg) scale(1.025);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-.7deg) scale(1);
    filter: blur(0);
  }
}

@keyframes contactBackdropOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes contactModalOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-.7deg) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px)) rotate(1.6deg) scale(.92);
    filter: blur(1.5px);
  }
}

@keyframes contactItemIn {
  0% {
    opacity: 0;
    transform: translateY(10px) rotate(0deg) scale(.97);
  }
  100% { opacity: 1; }
}

@keyframes contactItemOut {
  from { opacity: 1; }
  to {
    opacity: 0;
    transform: translateY(7px) rotate(0deg) scale(.98);
  }
}

.contact-item strong,
.contact-item em { display: block; }

.contact-item strong {
  font-size: 19px;
  line-height: 1;
}

.contact-item em {
  margin-top: 5px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14.5px;
  font-style: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-feedback {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .contact-modal {
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 30px 20px 22px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .contact-modal h2 { font-size: 40px; }
  .contact-desc { font-size: 16px; }
  .contact-item {
    grid-template-columns: 40px 1fr;
    gap: 11px;
    padding: 11px 12px;
  }
  .contact-icon {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
}

/* Blog theme system: sketch stays the default; kenji uses the source-style line reader. */
.blog-heading-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-small);
  padding: 7px;
  background: rgba(255, 254, 249, .82);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-.7deg);
}

.theme-picker span {
  padding: 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.theme-picker button {
  border: 0;
  border-radius: 999px;
  padding: 7px 9px 6px;
  background: transparent;
  color: var(--ink);
  font: 900 11px/1 "Michel Sketch", "Comic Sans MS", cursive;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.theme-picker button.is-active,
.theme-picker button[aria-pressed="true"] {
  background: var(--red);
  color: #fffef9;
}

.theme-picker button:active {
  transform: translateY(1px);
}

.theme-picker-compact {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  transform: rotate(.4deg);
}

.post-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.post-top-row .back-link { margin-bottom: 0; }

html[data-blog-theme="editorial"] .blog-section,
html[data-blog-theme="editorial"] .post-shell {
  --paper: #ffffff;
  --paper-deep: #f2eee4;
  --ink: #171717;
  --muted: #68645c;
  --red: #b7382f;
  --yellow: #efe7d4;
  --blue: #284f7a;
  --shadow: 0 18px 46px rgba(20, 20, 20, .08);
  --shadow-small: 0 10px 28px rgba(20, 20, 20, .08);
  --wobble-big: 24px;
  --wobble-small: 999px;
}

html[data-blog-theme="editorial"] body.post-body {
  background: #fbfaf7 !important;
  color: #171717 !important;
}

html[data-blog-theme="editorial"] .blog-section .section-heading h2,
html[data-blog-theme="editorial"] .blog-list strong,
html[data-blog-theme="editorial"] .all-post-item strong,
html[data-blog-theme="editorial"] .post-hero h1,
html[data-blog-theme="editorial"] .post-content h1,
html[data-blog-theme="editorial"] .post-content h2,
html[data-blog-theme="editorial"] .post-content h3,
html[data-blog-theme="editorial"] .post-content h4,
html[data-blog-theme="editorial"] .theme-picker button {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-blog-theme="editorial"] .blog-list em,
html[data-blog-theme="editorial"] .all-post-item em,
html[data-blog-theme="editorial"] .post-content,
html[data-blog-theme="editorial"] .post-excerpt {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

html[data-blog-theme="editorial"] .blog-section .section-heading h2,
html[data-blog-theme="editorial"] .post-hero h1 {
  letter-spacing: -.06em;
}

html[data-blog-theme="editorial"] .blog-group-label,
html[data-blog-theme="editorial"] .blog-list a,
html[data-blog-theme="editorial"] .all-post-item,
html[data-blog-theme="editorial"] .all-posts-panel,
html[data-blog-theme="editorial"] .post-shell .brand-lockup,
html[data-blog-theme="editorial"] .post-shell .nav-links a,
html[data-blog-theme="editorial"] .post-hero,
html[data-blog-theme="editorial"] .post-paper,
html[data-blog-theme="editorial"] .back-link,
html[data-blog-theme="editorial"] .post-footer a,
html[data-blog-theme="editorial"] .theme-picker {
  border-width: 1px;
  box-shadow: var(--shadow-small);
  transform: none;
}

html[data-blog-theme="editorial"] .blog-list a:nth-child(n),
html[data-blog-theme="editorial"] .all-post-item:nth-child(n) {
  transform: none;
}

html[data-blog-theme="editorial"] .post-paper::before,
html[data-blog-theme="editorial"] .post-hero::after,
html[data-blog-theme="editorial"] .tape,
html[data-blog-theme="editorial"] .pin,
html[data-blog-theme="editorial"] .hero-copy-block::after {
  display: none;
}

html[data-blog-theme="editorial"] .post-content {
  color: #222;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.9;
}

html[data-blog-theme="editorial"] .post-content code {
  background: #f1eee8;
}

html[data-blog-theme="terminal"] .blog-section,
html[data-blog-theme="terminal"] .post-shell {
  --paper: #151a1c;
  --paper-deep: #1f272a;
  --ink: #eef1e8;
  --muted: #a5afa4;
  --red: #ff5f56;
  --yellow: #161b1d;
  --blue: #7dcfff;
  --shadow: 0 0 0 1px rgba(125, 207, 255, .22), 0 18px 50px rgba(0, 0, 0, .35);
  --shadow-small: 0 0 0 1px rgba(125, 207, 255, .24), 0 10px 26px rgba(0, 0, 0, .28);
  --wobble-big: 18px;
  --wobble-small: 12px;
  color: var(--ink);
}

html[data-blog-theme="terminal"] body.post-body {
  background: #101214 !important;
  color: #eef1e8 !important;
}

html[data-blog-theme="terminal"] .blog-section {
  margin-top: clamp(36px, 6vw, 74px);
  border: 2px solid rgba(238, 241, 232, .68);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 54px);
  background:
    linear-gradient(rgba(125, 207, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 207, 255, .04) 1px, transparent 1px),
    #101214;
  background-size: 100% 32px, 32px 100%, auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

html[data-blog-theme="terminal"] .post-shell {
  background:
    linear-gradient(rgba(125, 207, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 207, 255, .04) 1px, transparent 1px),
    #101214 !important;
  background-size: 100% 32px, 32px 100%, auto;
}

html[data-blog-theme="terminal"] .blog-section,
html[data-blog-theme="terminal"] .post-shell,
html[data-blog-theme="terminal"] .blog-list a,
html[data-blog-theme="terminal"] .all-post-item,
html[data-blog-theme="terminal"] .post-content,
html[data-blog-theme="terminal"] .theme-picker,
html[data-blog-theme="terminal"] .post-shell .site-nav {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-blog-theme="terminal"] .blog-section .section-heading h2,
html[data-blog-theme="terminal"] .blog-list strong,
html[data-blog-theme="terminal"] .all-post-item strong,
html[data-blog-theme="terminal"] .post-hero h1,
html[data-blog-theme="terminal"] .post-content h1,
html[data-blog-theme="terminal"] .post-content h2,
html[data-blog-theme="terminal"] .post-content h3,
html[data-blog-theme="terminal"] .post-content h4 {
  letter-spacing: -.04em;
}

html[data-blog-theme="terminal"] .blog-group-label,
html[data-blog-theme="terminal"] .blog-list a,
html[data-blog-theme="terminal"] .all-post-item,
html[data-blog-theme="terminal"] .all-posts-panel,
html[data-blog-theme="terminal"] .post-shell .brand-lockup,
html[data-blog-theme="terminal"] .post-shell .nav-links a,
html[data-blog-theme="terminal"] .post-hero,
html[data-blog-theme="terminal"] .post-paper,
html[data-blog-theme="terminal"] .back-link,
html[data-blog-theme="terminal"] .post-footer a,
html[data-blog-theme="terminal"] .theme-picker {
  border-color: rgba(238, 241, 232, .76);
  background: rgba(21, 26, 28, .94);
  color: var(--ink);
  box-shadow: var(--shadow-small);
  transform: none;
}

html[data-blog-theme="terminal"] .blog-list a:nth-child(n),
html[data-blog-theme="terminal"] .all-post-item:nth-child(n),
html[data-blog-theme="terminal"] .post-hero,
html[data-blog-theme="terminal"] .post-paper {
  transform: none;
}

html[data-blog-theme="terminal"] .theme-picker button.is-active,
html[data-blog-theme="terminal"] .theme-picker button[aria-pressed="true"],
html[data-blog-theme="terminal"] .section-link,
html[data-blog-theme="terminal"] .post-footer a {
  background: var(--red);
  color: #fff;
}

html[data-blog-theme="terminal"] .theme-picker button,
html[data-blog-theme="terminal"] .back-link,
html[data-blog-theme="terminal"] .post-shell .nav-links a {
  background: rgba(16, 18, 20, .88);
  color: var(--ink);
}

html[data-blog-theme="terminal"] .blog-section .blog-list a,
html[data-blog-theme="terminal"] .blog-section .all-post-item {
  background: rgba(21, 26, 28, .94) !important;
  color: var(--ink) !important;
}

html[data-blog-theme="terminal"] .blog-section .blog-list strong,
html[data-blog-theme="terminal"] .blog-section .all-post-item strong {
  color: var(--ink) !important;
}

html[data-blog-theme="terminal"] .blog-list em,
html[data-blog-theme="terminal"] .all-post-item em,
html[data-blog-theme="terminal"] .post-excerpt,
html[data-blog-theme="terminal"] .post-content {
  color: var(--muted);
}

html[data-blog-theme="terminal"] .section-kicker,
html[data-blog-theme="terminal"] .item-meta,
html[data-blog-theme="terminal"] .blog-list span,
html[data-blog-theme="terminal"] .all-post-item > span,
html[data-blog-theme="terminal"] .post-kicker,
html[data-blog-theme="terminal"] .blog-group-label {
  color: var(--blue);
}

html[data-blog-theme="terminal"] .post-paper::before,
html[data-blog-theme="terminal"] .post-hero::after,
html[data-blog-theme="terminal"] .tape,
html[data-blog-theme="terminal"] .pin,
html[data-blog-theme="terminal"] .hero-copy-block::after {
  display: none;
}

html[data-blog-theme="terminal"] .post-content code {
  border-color: rgba(238, 241, 232, .25);
  background: #202729;
  color: #f4d35e;
}

html[data-blog-theme="terminal"] .post-content pre {
  border-color: rgba(238, 241, 232, .45);
  background: #080a0b;
  color: #dce8d2;
}

@media (max-width: 680px) {
  .blog-heading-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .theme-picker {
    width: 100%;
    justify-content: space-between;
    transform: none;
  }

  .theme-picker span { display: none; }

  .theme-picker button {
    flex: 1 1 auto;
    padding: 9px 7px 8px;
  }

  .post-top-row {
    flex-direction: column;
    gap: 12px;
  }

  .post-top-row .theme-picker {
    width: 100%;
  }

  html[data-blog-theme="terminal"] .blog-section {
    margin-inline: -2px;
    padding: 22px 14px;
  }
}

/* Gallery theme: a black, image-led artist portfolio reader inspired by sparse music sites. */
html[data-blog-theme="gallery"] .blog-section,
html[data-blog-theme="gallery"] .post-shell {
  --paper: #050505;
  --paper-deep: #0d0d0d;
  --ink: #f6f4ee;
  --muted: rgba(246, 244, 238, .58);
  --red: #f05a4a;
  --yellow: #0b0b0b;
  --blue: #f6f4ee;
  --shadow: none;
  --shadow-small: none;
  --wobble-big: 0;
  --wobble-small: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-blog-theme="gallery"] body.post-body {
  background: #030303 !important;
  color: #f6f4ee !important;
}

html[data-blog-theme="gallery"] .blog-section {
  position: relative;
  isolation: isolate;
  width: min(1120px, 100%);
  margin-top: clamp(32px, 6vw, 86px);
  padding: clamp(76px, 9vw, 132px) clamp(18px, 4vw, 52px) clamp(72px, 8vw, 118px);
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  overflow: hidden;
}

html[data-blog-theme="gallery"] .blog-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: clamp(20px, 5vw, 54px);
  left: 50%;
  width: min(360px, 48vw);
  height: min(440px, 58vw);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(246,244,238,.82) 0 9%, transparent 10%),
    radial-gradient(ellipse at 50% 48%, rgba(246,244,238,.26) 0 20%, rgba(246,244,238,.12) 32%, transparent 62%),
    linear-gradient(90deg, transparent 0 45%, rgba(255,255,255,.16) 46% 54%, transparent 55% 100%);
  filter: grayscale(1) contrast(1.35);
  opacity: .46;
  mix-blend-mode: screen;
  clip-path: polygon(22% 0, 78% 0, 100% 78%, 50% 100%, 0 78%);
}

html[data-blog-theme="gallery"] .blog-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05), transparent 18% 82%, rgba(255,255,255,.05)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 5px);
  pointer-events: none;
}


html[data-blog-theme="gallery"] .blog-section::before,
html[data-blog-theme="gallery"] .blog-section::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
}

html[data-blog-theme="gallery"] .blog-heading {
  display: grid;
  justify-items: center;
  gap: clamp(26px, 4vw, 42px);
  margin: 0 auto clamp(54px, 7vw, 88px);
  text-align: center;
}

html[data-blog-theme="gallery"] .blog-heading > div:first-child {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: clamp(180px, 24vw, 300px);
}

html[data-blog-theme="gallery"] .section-kicker,
html[data-blog-theme="gallery"] .post-kicker,
html[data-blog-theme="gallery"] .item-meta,
html[data-blog-theme="gallery"] .blog-list span,
html[data-blog-theme="gallery"] .all-post-item > span,
html[data-blog-theme="gallery"] #all-posts-count {
  display: block;
  color: rgba(246,244,238,.52) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .34em;
  text-align: center;
  text-transform: uppercase;
}

html[data-blog-theme="gallery"] .blog-section .section-heading h2,
html[data-blog-theme="gallery"] .post-hero h1 {
  max-width: 820px;
  color: #f8f7f2;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(34px, 5.4vw, 76px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

html[data-blog-theme="gallery"] .blog-heading-actions {
  width: min(760px, 100%);
  justify-content: center;
  gap: 18px;
}

html[data-blog-theme="gallery"] .theme-picker {
  border: 1px solid rgba(246,244,238,.2);
  border-radius: 999px;
  padding: 5px;
  background: transparent;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}

html[data-blog-theme="gallery"] .theme-picker span {
  color: rgba(246,244,238,.42);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .24em;
}

html[data-blog-theme="gallery"] .theme-picker button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: rgba(246,244,238,.58);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

html[data-blog-theme="gallery"] .theme-picker button.is-active,
html[data-blog-theme="gallery"] .theme-picker button[aria-pressed="true"] {
  border-color: rgba(246,244,238,.72);
  background: #f6f4ee;
  color: #050505;
}

html[data-blog-theme="gallery"] .section-link,
html[data-blog-theme="gallery"] .back-link,
html[data-blog-theme="gallery"] .post-footer a,
html[data-blog-theme="gallery"] .post-shell .nav-links a,
html[data-blog-theme="gallery"] .post-shell .brand-lockup {
  border: 1px solid rgba(246,244,238,.28);
  border-radius: 999px;
  background: transparent !important;
  color: #f6f4ee !important;
  box-shadow: none;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  transform: none;
}

html[data-blog-theme="gallery"] .section-link:hover,
html[data-blog-theme="gallery"] .back-link:hover,
html[data-blog-theme="gallery"] .post-footer a:hover,
html[data-blog-theme="gallery"] .post-shell .nav-links a:hover {
  background: #f6f4ee !important;
  color: #050505 !important;
  box-shadow: none;
  transform: translateY(-1px);
}

html[data-blog-theme="gallery"] .section-link:active,
html[data-blog-theme="gallery"] .back-link:active,
html[data-blog-theme="gallery"] .post-footer a:active,
html[data-blog-theme="gallery"] .post-shell .nav-links a:active {
  transform: translateY(1px) scale(.985);
}

html[data-blog-theme="gallery"] .blog-shelf {
  grid-template-columns: 1fr;
  gap: clamp(42px, 6vw, 72px);
  width: min(760px, 100%);
  margin: 0 auto;
}

html[data-blog-theme="gallery"] .blog-column,
html[data-blog-theme="gallery"] .blog-column-ai {
  margin: 0;
}

html[data-blog-theme="gallery"] .blog-group-label {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(246,244,238,.18);
  padding: 0 0 13px;
  background: transparent;
  color: rgba(246,244,238,.48);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .32em;
  text-align: center;
  transform: none;
}

html[data-blog-theme="gallery"] .blog-list {
  gap: 0;
}

html[data-blog-theme="gallery"] .blog-list a,
html[data-blog-theme="gallery"] .all-post-item {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(246,244,238,.13);
  padding: clamp(24px, 3vw, 34px) 0;
  background: transparent !important;
  color: #f6f4ee !important;
  box-shadow: none;
  transform: none !important;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

html[data-blog-theme="gallery"] .blog-list a::before,
html[data-blog-theme="gallery"] .all-post-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 1px;
  background: rgba(246,244,238,.65);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

html[data-blog-theme="gallery"] .blog-list a:hover,
html[data-blog-theme="gallery"] .all-post-item:hover {
  border-color: rgba(246,244,238,.38);
  background: transparent !important;
  opacity: .88;
  transform: translateY(-2px) !important;
}

html[data-blog-theme="gallery"] .blog-list a:hover::before,
html[data-blog-theme="gallery"] .all-post-item:hover::before {
  width: 100%;
}

html[data-blog-theme="gallery"] .blog-list a:active,
html[data-blog-theme="gallery"] .all-post-item:active {
  transform: translateY(1px) !important;
  opacity: .7;
}

html[data-blog-theme="gallery"] .blog-list strong,
html[data-blog-theme="gallery"] .all-post-item strong {
  color: #f8f7f2 !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

html[data-blog-theme="gallery"] .blog-list em,
html[data-blog-theme="gallery"] .all-post-item em,
html[data-blog-theme="gallery"] .post-excerpt,
html[data-blog-theme="gallery"] .post-content {
  color: rgba(246,244,238,.62) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(14px, 1.45vw, 17px);
  font-style: normal;
  font-weight: 300;
  line-height: 1.85;
  text-align: center;
}

html[data-blog-theme="gallery"] .all-posts-panel {
  width: min(820px, 100%);
  margin: clamp(54px, 8vw, 90px) auto 0;
  border: 1px solid rgba(246,244,238,.16);
  border-width: 1px 0;
  border-radius: 0;
  padding: clamp(26px, 4vw, 44px) 0;
  background: transparent !important;
  box-shadow: none;
}

html[data-blog-theme="gallery"] .all-posts-header {
  justify-content: center;
  flex-direction: column;
  margin-bottom: 18px;
  text-align: center;
}

html[data-blog-theme="gallery"] .all-posts-list {
  grid-template-columns: 1fr;
  gap: 0;
}

html[data-blog-theme="gallery"] .post-shell {
  background: #000 !important;
}

html[data-blog-theme="gallery"] .post-nav {
  width: min(1040px, 100%);
  margin: 0 auto clamp(60px, 8vw, 112px);
}

html[data-blog-theme="gallery"] .post-page {
  width: min(780px, 100%);
}

html[data-blog-theme="gallery"] .post-hero,
html[data-blog-theme="gallery"] .post-paper {
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  transform: none;
}

html[data-blog-theme="gallery"] .post-hero {
  margin-bottom: clamp(46px, 7vw, 80px);
  padding: clamp(52px, 8vw, 94px) 0 clamp(34px, 5vw, 58px);
  border-bottom: 1px solid rgba(246,244,238,.18);
  text-align: center;
}

html[data-blog-theme="gallery"] .post-hero::after,
html[data-blog-theme="gallery"] .post-paper::before,
html[data-blog-theme="gallery"] .tape,
html[data-blog-theme="gallery"] .pin,
html[data-blog-theme="gallery"] .hero-copy-block::after {
  display: none;
}

html[data-blog-theme="gallery"] .post-top-row {
  align-items: center;
  margin-bottom: clamp(50px, 8vw, 92px);
}

html[data-blog-theme="gallery"] .post-hero h1 {
  margin-inline: auto;
  font-size: clamp(36px, 5vw, 68px);
}

html[data-blog-theme="gallery"] .post-excerpt {
  margin: 26px auto 0;
}

html[data-blog-theme="gallery"] .post-paper {
  padding: 0 0 clamp(60px, 8vw, 110px);
}

html[data-blog-theme="gallery"] .post-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

html[data-blog-theme="gallery"] .post-content h1,
html[data-blog-theme="gallery"] .post-content h2,
html[data-blog-theme="gallery"] .post-content h3,
html[data-blog-theme="gallery"] .post-content h4 {
  color: #f8f7f2;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html[data-blog-theme="gallery"] .post-content a {
  color: #f8f7f2;
  text-decoration-color: rgba(246,244,238,.38);
}

html[data-blog-theme="gallery"] .post-content blockquote {
  border-left: 1px solid rgba(246,244,238,.4);
  background: transparent;
  color: rgba(246,244,238,.72);
}

html[data-blog-theme="gallery"] .post-content code {
  border-color: rgba(246,244,238,.16);
  background: rgba(255,255,255,.06);
  color: #f8f7f2;
}

html[data-blog-theme="gallery"] .post-content pre {
  border: 1px solid rgba(246,244,238,.18);
  border-radius: 0;
  background: #090909;
  box-shadow: none;
}

html[data-blog-theme="gallery"] .post-content img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: grayscale(1) contrast(1.08);
}

@media (max-width: 680px) {
  html[data-blog-theme="gallery"] .blog-section {
    margin-inline: -4px;
    padding: 66px 18px 78px;
  }

  html[data-blog-theme="gallery"] .blog-heading > div:first-child {
    padding-top: 168px;
  }

  html[data-blog-theme="gallery"] .blog-section::before {
    width: 230px;
    height: 295px;
  }

  html[data-blog-theme="gallery"] .blog-section .section-heading h2,
  html[data-blog-theme="gallery"] .post-hero h1 {
    letter-spacing: .13em;
  }

  html[data-blog-theme="gallery"] .blog-heading-actions,
  html[data-blog-theme="gallery"] .theme-picker {
    width: 100%;
  }

  html[data-blog-theme="gallery"] .theme-picker {
    justify-content: center;
    flex-wrap: wrap;
  }

  html[data-blog-theme="gallery"] .theme-picker button {
    flex: 1 1 42%;
  }

  html[data-blog-theme="gallery"] .post-top-row {
    align-items: stretch;
  }
}

.theme-picker.is-highlighted {
  animation: themePickerPulse 1.35s ease both;
}

@keyframes themePickerPulse {
  0%, 100% { outline: 0 solid rgba(255, 77, 77, 0); }
  18%, 72% { outline: 5px solid rgba(255, 77, 77, .24); outline-offset: 6px; }
}


/* Gallery mask fix: the global blog-theme gallery reader styles were leaking
   into the site-level Kenji gallery homepage because the root also sets
   data-blog-theme="gallery". Those rules add a portrait pseudo-element and
   gradient plates to .blog-section, which overlap the Kenji canvas and look like
   a black/white mask. Keep them only for article pages or the non-gallery
   site layout; the Kenji site theme owns its own visuals. */
html[data-site-theme="gallery"] body:not(.post-body) .blog-section::before,
html[data-site-theme="gallery"] body:not(.post-body) .blog-section::after {
  content: none !important;
  display: none !important;
}

html[data-site-theme="gallery"] body:not(.post-body) .blog-section,
html[data-site-theme="gallery"] body:not(.post-body) .post-shell {
  background: transparent !important;
  background-image: none !important;
}

/* Site-level theme picker and full-page Gallery theme. */
.site-theme-section {
  width: min(1180px, 100%);
  margin: clamp(18px, 3vw, 34px) auto 0;
  display: flex;
  justify-content: flex-end;
}

.site-theme-picker { transform: rotate(.5deg); }
.gallery-line-frame { display: none; }

html[data-site-theme="gallery"] {
  background: #000 !important;
  color: #f5f1e8 !important;
  color-scheme: dark;
  max-width: 100%;
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-site-theme="gallery"] body {
  --bg: #000;
  --paper: #000;
  --paper-deep: #050505;
  --ink: #f5f1e8;
  --muted: rgba(245, 241, 232, .58);
  --red: #f05a4a;
  --shadow: none;
  --shadow-small: none;
  background: #000 !important;
  color: #f5f1e8 !important;
  max-width: 100%;
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: Arial, Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-site-theme="gallery"]::-webkit-scrollbar,
html[data-site-theme="gallery"] body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html[data-site-theme="gallery"] body::before { display: none; }

html[data-site-theme="gallery"] .site-shell {
  min-height: 100vh;
  padding: 0 clamp(18px, 3vw, 44px) clamp(80px, 10vw, 150px);
  background: #000 !important;
  color: #f5f1e8 !important;
  perspective: 1200px;
  isolation: isolate;
  max-width: 100%;
  overflow-x: clip;
}

html[data-site-theme="gallery"] .paper-noise {
  display: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

html[data-site-theme="gallery"] .paper-noise::before,
html[data-site-theme="gallery"] .paper-noise::after {
  content: none !important;
  display: none !important;
}

html[data-site-theme="gallery"] .site-nav {
  position: sticky;
  top: 0;
  z-index: 70;
  width: calc(100% + clamp(36px, 6vw, 88px));
  max-width: none;
  margin: 0 calc(clamp(18px, 3vw, 44px) * -1);
  padding: 18px clamp(18px, 3vw, 44px);
  border: 0;
  border-bottom: 1px solid rgba(245,241,232,.16);
  background: #000 !important;
  box-shadow: none;
}

html[data-site-theme="gallery"] .brand-lockup,
html[data-site-theme="gallery"] .nav-links a,
html[data-site-theme="gallery"] .button,
html[data-site-theme="gallery"] .section-link,
html[data-site-theme="gallery"] .theme-picker button,
html[data-site-theme="gallery"] .contact-close,
html[data-site-theme="gallery"] .contact-item {
  border: 1px solid rgba(245,241,232,.24);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #f5f1e8 !important;
  font-family: inherit;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: none;
  transition: background 240ms cubic-bezier(.77,0,.175,1), color 240ms ease, transform 240ms cubic-bezier(.2,.8,.2,1), border-color 240ms ease;
}

html[data-site-theme="gallery"] .brand-lockup {
  border-color: transparent;
  padding-left: 0;
  font-size: 12px;
}

html[data-site-theme="gallery"] .brand-dot { background: #f05a4a !important; }
html[data-site-theme="gallery"] .nav-links { gap: 0; }
html[data-site-theme="gallery"] .nav-links a {
  min-width: 88px;
  border-left: 0;
  padding: 11px 14px 10px;
  text-align: center;
  font-size: 11px;
  overflow: hidden;
}
html[data-site-theme="gallery"] .nav-links a:first-child { border-left: 1px solid rgba(245,241,232,.24); }

html[data-site-theme="gallery"] .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #f5f1e8;
  opacity: 0;
  transform: translate3d(0,4px,0);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(.19,1,.22,1);
}

html[data-site-theme="gallery"] .nav-links a:hover::after { opacity: 1; transform: translate3d(0,0,0); }

html[data-site-theme="gallery"] .brand-lockup:hover,
html[data-site-theme="gallery"] .nav-links a:hover,
html[data-site-theme="gallery"] .button:hover,
html[data-site-theme="gallery"] .section-link:hover,
html[data-site-theme="gallery"] .theme-picker button:hover,
html[data-site-theme="gallery"] .contact-item:hover {
  background: transparent !important;
  color: #f5f1e8 !important;
  border-color: rgba(245,241,232,.72);
  transform: translateY(-2px);
}

html[data-site-theme="gallery"] .site-theme-section {
  position: fixed;
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 44px);
  z-index: 250;
  width: auto;
  margin: 0;
}

html[data-site-theme="gallery"] .theme-picker {
  gap: 0;
  border: 1px solid rgba(245,241,232,.24);
  border-radius: 0;
  padding: 0;
  background: rgba(0,0,0,.82) !important;
  box-shadow: none;
  transform: none;
}

html[data-site-theme="gallery"] .theme-picker span {
  padding: 0 12px;
  color: rgba(245,241,232,.45);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .22em;
}

html[data-site-theme="gallery"] .theme-picker button {
  min-height: 36px;
  border: 0;
  border-left: 1px solid rgba(245,241,232,.24);
  padding: 0 12px;
  font-size: 10px;
}

html[data-site-theme="gallery"] .theme-picker button.is-active,
html[data-site-theme="gallery"] .theme-picker button[aria-pressed="true"] {
  background: #f5f1e8 !important;
  color: #050505 !important;
}

html[data-site-theme="gallery"] .hero,
html[data-site-theme="gallery"] #apps.content-section,
html[data-site-theme="gallery"] #blog.content-section {
  display: none !important;
}

html[data-site-theme="gallery"] .gallery-home { display: block; }
html:not([data-site-theme="gallery"]) .gallery-home { display: none !important; }

html[data-site-theme="gallery"] .gallery-landing {
  position: relative;
  width: min(1420px, 100%);
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 136px) 0 clamp(84px, 10vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(300px, .56fr);
  grid-template-rows: 1fr auto auto;
  gap: clamp(24px, 5vw, 86px);
  overflow: hidden;
}

html[data-site-theme="gallery"] .gallery-rule {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(80px, 12vw, 150px);
  height: 1px;
  background: rgba(245,241,232,.68);
  transform: scaleX(0);
  transform-origin: left center;
  animation: galleryRule 920ms cubic-bezier(.77,0,.175,1) 820ms forwards;
}

html[data-site-theme="gallery"] .gallery-orbit {
  position: absolute;
  right: clamp(20px, 6vw, 90px);
  top: clamp(96px, 16vw, 190px);
  width: clamp(180px, 24vw, 340px);
  height: clamp(180px, 24vw, 340px);
  border: 1px solid rgba(245,241,232,.075);
  border-radius: 50%;
  transform: scale(.88);
  opacity: .34;
}

html[data-site-theme="gallery"] .gallery-create-t {
  position: absolute;
  z-index: 1;
  width: 800px;
  height: 3918px;
  top: 145px;
  left: 50%;
  margin: 0 0 0 -400px;
  pointer-events: none;
  opacity: .36;
  mix-blend-mode: normal;
}

html[data-site-theme="gallery"] .gallery-create-t > div {
  position: relative;
  width: 800px;
  height: 3918px;
}

html[data-site-theme="gallery"] .gallery-create-t canvas {
  position: absolute;
  inset: 0 auto auto 0;
  width: 800px;
  height: 3918px;
  background: transparent !important;
}

html[data-site-theme="gallery"] .gallery-create-bk {
  display: none;
}

html[data-site-theme="gallery"] .gallery-identity {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  color: rgba(245,241,232,.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

html[data-site-theme="gallery"] .gallery-kenji-text {
  position: relative;
  display: inline-block;
  vertical-align: top;
  color: rgba(245,241,232,.56) !important;
  line-height: 1.16;
}

html[data-site-theme="gallery"] .gallery-kenji-text::before,
html[data-site-theme="gallery"] .gallery-kenji-text::after {
  content: none;
}


/* The earlier custom title-canvas experiment is intentionally disabled for the
   source-style gallery theme.  Leaving its rules active created visible dark
   halo/mask artifacts around the real source title in some browsers. */
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-title-wrap,
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-title-canvas,
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-title-bk {
  display: none !important;
}

html[data-site-theme="gallery"] .gallery-main-visual {
  display: none !important;
}

html[data-site-theme="gallery"] .gallery-main-photo {
  display: block;
  width: 100%;
  height: auto;
  opacity: .28 !important;
}

html[data-site-theme="gallery"] .gallery-prof {
  position: absolute;
  left: 50%;
  top: clamp(130px, 17.5vw, 250px);
  width: min(524px, 41vw);
  aspect-ratio: 524 / 454;
  margin-left: min(-131px, -10vw);
  opacity: .46;
  mix-blend-mode: screen;
}

html[data-site-theme="gallery"] .gallery-prof img {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  will-change: transform;
}

html[data-site-theme="gallery"] .gallery-prof-bottom { bottom: 0; }
html[data-site-theme="gallery"] .gallery-prof-top { top: 0; }

html[data-site-theme="gallery"] .gallery-sidenav-shell {
  display: block;
}

html:not([data-site-theme="gallery"]) .gallery-sidenav-shell {
  display: none !important;
}

html[data-site-theme="gallery"] .sidenav {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 1000;
  margin: -200px 0 0;
  padding: 0;
  list-style: none;
  transition: all .3s ease .1s;
}

html[data-site-theme="gallery"].nowonsubpages .sidenav {
  right: -70px;
  transition-delay: 0s;
}

html[data-site-theme="gallery"] body.preload .sidenav,
html[data-site-theme="gallery"] body.gallery-entering .sidenav {
  transform: translate(100px, 0);
}

html[data-site-theme="gallery"] .sidenav li {
  margin: 0;
  padding: 0;
}

html[data-site-theme="gallery"] .sidenav li a {
  display: block;
  width: 70px;
  line-height: 40px;
  color: #fff !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  opacity: .3;
  transition: opacity .25s ease, color .25s ease, transform .25s ease;
}

html[data-site-theme="gallery"] .sidenav li.on a,
html[data-site-theme="gallery"] .sidenav li a:hover {
  color: #fff !important;
  opacity: 1;
}

html[data-site-theme="gallery"] .sidenav li.gototop {
  cursor: pointer;
}

html[data-site-theme="gallery"] .sidenav li.gototop a {
  opacity: 0;
}

html[data-site-theme="gallery"] .sidenav li.gototop.on a,
html[data-site-theme="gallery"] .sidenav li.gototop a:hover {
  opacity: 1;
}

html[data-site-theme="gallery"] .gototop img {
  vertical-align: middle;
}


html[data-site-theme="gallery"] .gallery-index-panel {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: end;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid rgba(245,241,232,.16);
  background: rgba(245,241,232,.12);
  min-height: clamp(360px, 48vh, 600px);
  transform-style: preserve-3d;
  perspective: 900px;
  --gallery-panel-x: 50%;
  --gallery-panel-y: 50%;
  --gallery-tilt-x: 0deg;
  --gallery-tilt-y: 0deg;
  --gallery-shift-x: 0px;
  --gallery-shift-y: 0px;
  --gallery-scale: 1;
  transition: transform 820ms cubic-bezier(.19,1,.22,1), border-color 420ms ease, background 420ms ease;
}

html[data-site-theme="gallery"] .gallery-index-panel::before {
  content: none !important;
  display: none !important;
}

html[data-site-theme="gallery"] .gallery-tile {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: clamp(18px, 3vw, 34px);
  background: #030303 !important;
  color: #f5f1e8 !important;
  text-decoration: none;
  text-align: center;
  font: inherit;
  cursor: pointer;
  isolation: isolate;
  transform: translate3d(0,0,0);
  --tile-x: 50%;
  --tile-y: 50%;
  --tile-drift-x: 0px;
  --tile-drift-y: 0px;
  transition: background 360ms ease, transform 550ms cubic-bezier(.19,1,.22,1), box-shadow 550ms cubic-bezier(.19,1,.22,1);
}

html[data-site-theme="gallery"] .gallery-tile::before,
html[data-site-theme="gallery"] .gallery-work-item::before,
html[data-site-theme="gallery"] .gallery-writing-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: none;
  opacity: 0;
  transform: scale(1.18);
  transition: opacity 420ms ease, transform 620ms cubic-bezier(.19,1,.22,1), background-position 420ms ease;
}

html[data-site-theme="gallery"] .gallery-tile::after,
html[data-site-theme="gallery"] .gallery-work-item::after,
html[data-site-theme="gallery"] .gallery-writing-item::after,
html[data-site-theme="gallery"] .all-post-item::after {
  display: none;
}

html[data-site-theme="gallery"] .gallery-tile:hover::after,
html[data-site-theme="gallery"] .gallery-tile.is-hovering::after,
html[data-site-theme="gallery"] .gallery-work-item:hover::after,
html[data-site-theme="gallery"] .gallery-work-item.is-hovering::after,
html[data-site-theme="gallery"] .gallery-writing-item:hover::after,
html[data-site-theme="gallery"] .gallery-writing-item.is-hovering::after,
html[data-site-theme="gallery"] .all-post-item:hover::after,
html[data-site-theme="gallery"] .all-post-item.is-hovering::after {
  display: none;
}

html[data-site-theme="gallery"] .gallery-tile-no {
  position: absolute;
  left: 17px;
  top: 15px;
  color: rgba(245,241,232,.4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
}

html[data-site-theme="gallery"] .gallery-tile-front,
html[data-site-theme="gallery"] .gallery-tile-back {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  font-size: clamp(22px, 2.45vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  transition: opacity 450ms ease, transform 560ms cubic-bezier(.19,1,.22,1);
}

html[data-site-theme="gallery"] .gallery-tile-back {
  opacity: 0;
  transform: translate3d(0,100%,0);
  color: rgba(245,241,232,.72);
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: .22em;
}

html[data-site-theme="gallery"] .gallery-tile:hover .gallery-tile-front,
html[data-site-theme="gallery"] .gallery-tile.is-hovering .gallery-tile-front { opacity: 0; transform: translate3d(0,-112%,0) scale(.94); }
html[data-site-theme="gallery"] .gallery-tile:hover .gallery-tile-back,
html[data-site-theme="gallery"] .gallery-tile.is-hovering .gallery-tile-back { opacity: 1; transform: translate3d(0,0,0); }

html[data-site-theme="gallery"] .gallery-caption {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(245,241,232,.58);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .06em;
}

html[data-site-theme="gallery"] .gallery-caption a,
html[data-site-theme="gallery"] .gallery-archive-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(245,241,232,.24);
  padding: 0 15px;
  color: #f5f1e8 !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

html[data-site-theme="gallery"] .gallery-caption a:hover,
html[data-site-theme="gallery"] .gallery-archive-link:hover { background: #f5f1e8; color: #050505 !important; transform: translateY(-2px); }

html[data-site-theme="gallery"] .gallery-section {
  position: relative;
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 170px) 0;
  border-top: 1px solid rgba(245,241,232,.18);
  scroll-margin-top: 92px;
}

html[data-site-theme="gallery"] .gallery-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: rgba(245,241,232,.65);
  transition: width 920ms cubic-bezier(.77,0,.175,1) var(--gallery-delay, 0ms);
}

html[data-site-theme="gallery"] .gallery-section.gallery-come::before { width: 100%; }

html[data-site-theme="gallery"] .gallery-section-head {
  display: grid;
  grid-template-columns: minmax(160px, .32fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 70px);
}

html[data-site-theme="gallery"] .gallery-section-head > span {
  color: rgba(245,241,232,.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

html[data-site-theme="gallery"] .gallery-section-head h2 {
  margin: 0;
  color: #f5f1e8 !important;
  font-size: clamp(28px, 3.35vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .16em;
  text-transform: uppercase;
}

html[data-site-theme="gallery"] .gallery-kenji-title-line {
  display: block;
  overflow: hidden;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  transform: translate3d(0,0,0);
  transition: color 260ms ease;
}

html[data-site-theme="gallery"] .gallery-work-grid,
html[data-site-theme="gallery"] .gallery-writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(245,241,232,.14);
  background: rgba(245,241,232,.12);
}

html[data-site-theme="gallery"] .gallery-writing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

html[data-site-theme="gallery"] .gallery-all-posts-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-site-theme="gallery"] .gallery-work-item,
html[data-site-theme="gallery"] .gallery-writing-item {
  position: relative;
  min-height: clamp(230px, 30vw, 430px);
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: clamp(22px, 3vw, 42px);
  background: #030303 !important;
  color: #f5f1e8 !important;
  text-decoration: none;
  isolation: isolate;
  transition: none;
}

html[data-site-theme="gallery"] .gallery-writing-item {
  min-height: clamp(230px, 24vw, 340px);
  padding: clamp(26px, 3.2vw, 48px);
}

html[data-site-theme="gallery"] .gallery-work-item:hover,
html[data-site-theme="gallery"] .gallery-writing-item:hover { transform: none; }

html[data-site-theme="gallery"] .gallery-work-item span,
html[data-site-theme="gallery"] .gallery-writing-item span {
  color: rgba(245,241,232,.44);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.5;
  text-transform: uppercase;
}

html[data-site-theme="gallery"] .gallery-work-item strong,
html[data-site-theme="gallery"] .gallery-writing-item strong {
  display: block;
  margin-top: 24px;
  color: #f5f1e8 !important;
  font-size: clamp(28px, 4.2vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-transform: uppercase;
  transition: color 220ms ease-out;
}

html[data-site-theme="gallery"] .gallery-link-text {
  display: inline-block;
  position: relative;
  color: inherit;
  box-shadow: none;
  text-decoration: none;
  transition: box-shadow 220ms ease-out, color 220ms ease-out;
}

html[data-site-theme="gallery"] .gallery-work-item strong .gallery-link-text,
html[data-site-theme="gallery"] .gallery-writing-item strong .gallery-link-text {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

html[data-site-theme="gallery"] .gallery-writing-item strong {
  max-width: 92%;
  font-size: clamp(20px, 1.85vw, 32px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
html[data-site-theme="gallery"] .gallery-work-item:hover .gallery-link-text,
html[data-site-theme="gallery"] .gallery-work-item.is-hovering .gallery-link-text,
html[data-site-theme="gallery"] .gallery-writing-item:hover .gallery-link-text,
html[data-site-theme="gallery"] .gallery-writing-item.is-hovering .gallery-link-text {
  box-shadow: none;
  color: #fff;
}

html[data-site-theme="gallery"] .gallery-work-item em,
html[data-site-theme="gallery"] .gallery-writing-item em {
  display: block;
  max-width: 430px;
  margin-top: 14px;
  color: rgba(245,241,232,.56);
  font-size: 12px;
  font-style: normal;
  line-height: 1.58;
  letter-spacing: .05em;
}

html[data-site-theme="gallery"] .gallery-writing-item em {
  max-width: 90%;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.72;
  letter-spacing: .04em;
}

html[data-site-theme="gallery"] .gallery-archive-link { width: max-content; margin-top: 22px; }

html[data-site-theme="gallery"] .gallery-all-posts {
  margin-top: clamp(28px, 5vw, 70px);
  border: 1px solid rgba(245,241,232,.2);
  background: #030303;
}

html[data-site-theme="gallery"] .gallery-all-posts-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid rgba(245,241,232,.18);
  color: rgba(245,241,232,.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

html[data-site-theme="gallery"] .gallery-all-posts-head strong { color: rgba(245,241,232,.62); }

html[data-site-theme="gallery"] .gallery-all-posts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(245,241,232,.18);
}

html[data-site-theme="gallery"] .gallery-all-item {
  min-height: clamp(230px, 20vw, 310px);
}

html[data-site-theme="gallery"] .all-posts-panel {
  display: none !important;
}

html[data-site-theme="gallery"] .all-posts-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid rgba(245,241,232,.18);
}

html[data-site-theme="gallery"] .all-posts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

html[data-site-theme="gallery"] .all-post-item {
  position: relative;
  min-height: 190px;
  display: grid;
  align-content: end;
  border: 0;
  border-right: 1px solid rgba(245,241,232,.16);
  border-bottom: 1px solid rgba(245,241,232,.16);
  border-radius: 0;
  padding: clamp(20px, 2.5vw, 34px);
  background: #030303 !important;
  color: #f5f1e8 !important;
  box-shadow: none;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}

html[data-site-theme="gallery"] .all-post-item.gallery-writing-item {
  min-height: clamp(230px, 20vw, 310px);
  padding: clamp(26px, 3vw, 46px);
}

html[data-site-theme="gallery"] .all-post-item > span,
html[data-site-theme="gallery"] .blog-group-label,
html[data-site-theme="gallery"] #all-posts-count,
html[data-site-theme="gallery"] .section-kicker,
html[data-site-theme="gallery"] .item-meta {
  color: rgba(245,241,232,.44);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

html[data-site-theme="gallery"] .all-post-item strong {
  margin-top: 18px;
  color: #f5f1e8 !important;
  font-size: clamp(20px, 1.85vw, 32px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

html[data-site-theme="gallery"] .all-post-item em {
  max-width: 90%;
  margin-top: 18px;
  color: rgba(245,241,232,.55);
  font-size: 12px;
  font-style: normal;
  line-height: 1.72;
  letter-spacing: .04em;
}

html[data-site-theme="gallery"] .contact-backdrop {
  background: rgba(0,0,0,.86);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(245,241,232,.09), transparent 34%),
    linear-gradient(90deg, rgba(245,241,232,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(245,241,232,.06) 1px, transparent 1px);
  background-size: auto, 18vw 100%, 100% 18vh;
}

html[data-site-theme="gallery"] .contact-modal {
  width: min(620px, calc(100vw - 38px));
  border: 1px solid rgba(245,241,232,.24);
  border-radius: 0;
  padding: clamp(26px, 4vw, 48px);
  background: #030303 !important;
  box-shadow: 0 32px 90px rgba(0,0,0,.7);
  color: #f5f1e8 !important;
  font-family: inherit;
  transform: translate(-50%, -50%) scale(.96);
}

html[data-site-theme="gallery"] .contact-close {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: transparent !important;
  font-size: 20px;
}

html[data-site-theme="gallery"] .contact-modal h2 {
  color: #f5f1e8 !important;
  font-family: inherit;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

html[data-site-theme="gallery"] .contact-desc,
html[data-site-theme="gallery"] .contact-item em,
html[data-site-theme="gallery"] .contact-feedback { color: rgba(245,241,232,.58); font-family: inherit; }
html[data-site-theme="gallery"] .contact-list { gap: 1px; border: 1px solid rgba(245,241,232,.18); background: rgba(245,241,232,.18); }
html[data-site-theme="gallery"] .contact-item {
  position: relative;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  border: 0;
  padding: 14px;
  background: #050505 !important;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}
html[data-site-theme="gallery"] .contact-item:nth-child(n) { transform: none; }
html[data-site-theme="gallery"] .contact-item:hover {
  background: #0d0d0d !important;
  outline: 1px solid rgba(245,241,232,.28);
  outline-offset: -1px;
}
html[data-site-theme="gallery"] .contact-item:active {
  transform: translateY(1px);
  background: #151515 !important;
}
html[data-site-theme="gallery"] .contact-icon { border: 1px solid rgba(245,241,232,.24); border-radius: 0; background: transparent; color: #f5f1e8; box-shadow: none; }

html[data-site-theme="gallery"] .gallery-line-frame {
  display: block;
  position: absolute;
  inset: auto;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  opacity: .72;
  transition: opacity 360ms ease, transform 650ms cubic-bezier(.19,1,.22,1), filter 360ms ease;
}

html[data-site-theme="gallery"] .gallery-tile .gallery-line-frame {
  left: 50%;
  top: 50%;
  width: min(112%, 430px);
  height: min(112%, 310px);
  transform: translate3d(calc(-50% + var(--tile-drift-x, 0px)), calc(-50% + var(--tile-drift-y, 0px)), 0);
}

html[data-site-theme="gallery"] .gallery-work-item .gallery-line-frame,
html[data-site-theme="gallery"] .gallery-writing-item .gallery-line-frame,
html[data-site-theme="gallery"] .all-post-item .gallery-line-frame {
  left: 22px;
  top: 22px;
  width: min(72%, 520px);
  height: min(58%, 260px);
}

html[data-site-theme="gallery"] .gallery-line-frame-kenji-step,
html[data-site-theme="gallery"] .gallery-line-frame-kenji-window {
  width: min(118%, 560px);
  height: min(118%, 340px);
}

html[data-site-theme="gallery"] .gallery-line-frame-kenji-chevron,
html[data-site-theme="gallery"] .gallery-line-frame-kenji-orbit,
html[data-site-theme="gallery"] .gallery-line-frame-kenji-stack,
html[data-site-theme="gallery"] .gallery-line-frame-kenji-corners,
html[data-site-theme="gallery"] .gallery-line-frame-kenji-rails,
html[data-site-theme="gallery"] .gallery-line-frame-kenji-scan {
  width: min(74%, 280px);
  height: min(118%, 260px);
}

html[data-site-theme="gallery"] .gallery-tile .gallery-line-frame-kenji-step {
  width: min(122%, 470px);
  height: min(124%, 330px);
  transform: translate3d(calc(-50% + var(--tile-drift-x, 0px) - 14px), calc(-50% + var(--tile-drift-y, 0px) + 2px), 0);
}

html[data-site-theme="gallery"] .gallery-tile .gallery-line-frame-kenji-chevron {
  width: min(86%, 330px);
  height: min(130%, 350px);
  transform: translate3d(calc(-50% + var(--tile-drift-x, 0px) + 8px), calc(-50% + var(--tile-drift-y, 0px) - 10px), 0);
}

html[data-site-theme="gallery"] .gallery-tile .gallery-line-frame-kenji-orbit {
  width: min(84%, 310px);
  height: min(92%, 270px);
  transform: translate3d(calc(-50% + var(--tile-drift-x, 0px) + 18px), calc(-50% + var(--tile-drift-y, 0px) + 4px), 0);
}

html[data-site-theme="gallery"] .gallery-tile .gallery-line-frame-kenji-stack {
  width: min(92%, 340px);
  height: min(132%, 360px);
  transform: translate3d(calc(-50% + var(--tile-drift-x, 0px) - 6px), calc(-50% + var(--tile-drift-y, 0px) + 14px), 0);
}

html[data-site-theme="gallery"] .gallery-work-item .gallery-line-frame-kenji-scan,
html[data-site-theme="gallery"] .gallery-writing-item .gallery-line-frame-kenji-scan,
html[data-site-theme="gallery"] .all-post-item .gallery-line-frame-kenji-scan {
  left: 18px;
  top: 18px;
  width: min(62%, 430px);
  height: min(52%, 230px);
}

html[data-site-theme="gallery"] .gallery-work-item .gallery-line-frame-kenji-corners,
html[data-site-theme="gallery"] .gallery-writing-item .gallery-line-frame-kenji-corners,
html[data-site-theme="gallery"] .all-post-item .gallery-line-frame-kenji-corners {
  left: auto;
  right: 18px;
  top: 18px;
  width: min(48%, 330px);
  height: min(46%, 210px);
}

html[data-site-theme="gallery"] .gallery-work-item .gallery-line-frame-kenji-rails,
html[data-site-theme="gallery"] .gallery-writing-item .gallery-line-frame-kenji-rails,
html[data-site-theme="gallery"] .all-post-item .gallery-line-frame-kenji-rails {
  left: 24px;
  top: 14px;
  width: min(78%, 560px);
  height: min(36%, 170px);
}

html[data-site-theme="gallery"] .gallery-line-frame path {
  fill: none;
  stroke: rgba(245,241,232,.55);
  stroke-width: .72;
  vector-effect: non-scaling-stroke;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  opacity: .88;
  visibility: hidden;
  transition-property: stroke-dashoffset, stroke, opacity, transform;
  transition-duration: 720ms, 260ms, 260ms, 520ms;
  transition-timing-function: cubic-bezier(.19,1,.22,1), ease, ease, cubic-bezier(.19,1,.22,1);
  transition-delay: 0ms;
}

html[data-site-theme="gallery"] .gallery-line-frame .line-main {
  stroke: rgba(245,241,232,.68);
  stroke-width: .82;
  opacity: .95;
}

html[data-site-theme="gallery"] .gallery-line-frame .line-step {
  stroke: rgba(245,241,232,.54);
  stroke-width: .68;
  opacity: .86;
}

html[data-site-theme="gallery"] .gallery-line-frame .line-soft {
  stroke: rgba(245,241,232,.3);
  stroke-width: .54;
  opacity: .66;
}

html[data-site-theme="gallery"] .gallery-line-frame .line-accent {
  stroke: rgba(245,241,232,.58);
  stroke-width: .74;
  opacity: .82;
}

html[data-site-theme="gallery"] .gallery-line-frame .line-short {
  stroke: rgba(245,241,232,.42);
  stroke-width: .58;
  opacity: .74;
  transition-duration: 520ms, 220ms, 220ms, 420ms;
}

html[data-site-theme="gallery"] .gallery-line-frame .line-node {
  stroke: rgba(245,241,232,.7);
  stroke-width: .7;
  opacity: .8;
  transition-duration: 430ms, 220ms, 220ms, 420ms;
}

html[data-site-theme="gallery"] .gallery-line-frame .line-ghost {
  stroke: rgba(245,241,232,.24);
  stroke-width: .46;
  opacity: .52;
  transition-duration: 680ms, 220ms, 220ms, 460ms;
}

html[data-site-theme="gallery"] .gallery-line-frame .line-diagonal {
  stroke: rgba(245,241,232,.28);
  stroke-width: .36;
  opacity: .34;
  transition-duration: 880ms, 220ms, 220ms, 520ms;
}

html[data-site-theme="gallery"] .gallery-line-frame .line-tick {
  stroke: rgba(245,241,232,.5);
  stroke-width: .5;
  opacity: .68;
  transition-duration: 470ms, 220ms, 220ms, 420ms;
}

html[data-site-theme="gallery"] .gallery-work-item .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-writing-item .gallery-line-frame path,
html[data-site-theme="gallery"] .all-post-item .gallery-line-frame path {
  stroke: rgba(245,241,232,.34);
  stroke-width: .68;
}

html[data-site-theme="gallery"] .gallery-tile > :not(.gallery-line-frame),
html[data-site-theme="gallery"] .gallery-work-item > :not(.gallery-line-frame),
html[data-site-theme="gallery"] .gallery-writing-item > :not(.gallery-line-frame),
html[data-site-theme="gallery"] .gallery-panel-grid a > :not(.gallery-line-frame),
html[data-site-theme="gallery"] .gallery-panel-grid button > :not(.gallery-line-frame) {
  position: relative;
  z-index: 2;
}

html[data-site-theme="gallery"] .gallery-line-frame path:nth-child(2) { transition-duration: 820ms, 260ms, 260ms, 560ms; transition-delay: 45ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame path:nth-child(3) { transition-duration: 940ms, 260ms, 260ms, 600ms; transition-delay: 90ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame path:nth-child(4) { transition-duration: 1040ms, 260ms, 260ms, 640ms; transition-delay: 135ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame path:nth-child(5) { transition-duration: 1120ms, 260ms, 260ms, 680ms; transition-delay: 180ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame path:nth-child(n+6) { transition-duration: 1180ms, 260ms, 260ms, 720ms; transition-delay: 225ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame .line-short:nth-child(odd) { transition-delay: 120ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame .line-short:nth-child(even) { transition-delay: 240ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame .line-node { transition-delay: 320ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame .line-ghost { transition-delay: 80ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame .line-diagonal { transition-delay: 155ms, 0ms, 0ms, 0ms; }
html[data-site-theme="gallery"] .gallery-line-frame .line-tick { transition-delay: 280ms, 0ms, 0ms, 0ms; }

html[data-site-theme="gallery"] .gallery-tile:hover .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-tile.is-hovering .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-work-item.is-hovering .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-work-item:hover .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-writing-item.is-hovering .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-writing-item:hover .gallery-line-frame path,
html[data-site-theme="gallery"] .all-post-item.is-hovering .gallery-line-frame path,
html[data-site-theme="gallery"] .all-post-item:hover .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-panel-grid a:hover .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-panel-grid button:hover .gallery-line-frame path {
  stroke-dashoffset: 0 !important;
  stroke: rgba(245,241,232,.88);
  opacity: 1;
  visibility: visible;
}

html[data-site-theme="gallery"] .gallery-tile:hover .gallery-line-frame .line-soft,
html[data-site-theme="gallery"] .gallery-tile.is-hovering .gallery-line-frame .line-soft,
html[data-site-theme="gallery"] .gallery-work-item.is-hovering .gallery-line-frame .line-soft,
html[data-site-theme="gallery"] .gallery-work-item:hover .gallery-line-frame .line-soft,
html[data-site-theme="gallery"] .gallery-writing-item.is-hovering .gallery-line-frame .line-soft,
html[data-site-theme="gallery"] .gallery-writing-item:hover .gallery-line-frame .line-soft,
html[data-site-theme="gallery"] .all-post-item.is-hovering .gallery-line-frame .line-soft,
html[data-site-theme="gallery"] .all-post-item:hover .gallery-line-frame .line-soft {
  stroke: rgba(245,241,232,.46);
  opacity: .72;
}

html[data-site-theme="gallery"] .gallery-tile:hover .gallery-line-frame .line-ghost,
html[data-site-theme="gallery"] .gallery-tile.is-hovering .gallery-line-frame .line-ghost,
html[data-site-theme="gallery"] .gallery-work-item.is-hovering .gallery-line-frame .line-ghost,
html[data-site-theme="gallery"] .gallery-work-item:hover .gallery-line-frame .line-ghost,
html[data-site-theme="gallery"] .gallery-writing-item.is-hovering .gallery-line-frame .line-ghost,
html[data-site-theme="gallery"] .gallery-writing-item:hover .gallery-line-frame .line-ghost,
html[data-site-theme="gallery"] .all-post-item.is-hovering .gallery-line-frame .line-ghost,
html[data-site-theme="gallery"] .all-post-item:hover .gallery-line-frame .line-ghost {
  stroke: rgba(245,241,232,.34);
  opacity: .5;
}

html[data-site-theme="gallery"] .gallery-tile:hover .gallery-line-frame .line-diagonal,
html[data-site-theme="gallery"] .gallery-tile.is-hovering .gallery-line-frame .line-diagonal,
html[data-site-theme="gallery"] .gallery-work-item.is-hovering .gallery-line-frame .line-diagonal,
html[data-site-theme="gallery"] .gallery-work-item:hover .gallery-line-frame .line-diagonal,
html[data-site-theme="gallery"] .gallery-writing-item.is-hovering .gallery-line-frame .line-diagonal,
html[data-site-theme="gallery"] .gallery-writing-item:hover .gallery-line-frame .line-diagonal,
html[data-site-theme="gallery"] .all-post-item.is-hovering .gallery-line-frame .line-diagonal,
html[data-site-theme="gallery"] .all-post-item:hover .gallery-line-frame .line-diagonal {
  stroke: rgba(245,241,232,.24);
  opacity: .26;
}

html[data-site-theme="gallery"] .gallery-tile:hover .gallery-line-frame .line-tick,
html[data-site-theme="gallery"] .gallery-tile.is-hovering .gallery-line-frame .line-tick,
html[data-site-theme="gallery"] .gallery-work-item.is-hovering .gallery-line-frame .line-tick,
html[data-site-theme="gallery"] .gallery-work-item:hover .gallery-line-frame .line-tick,
html[data-site-theme="gallery"] .gallery-writing-item.is-hovering .gallery-line-frame .line-tick,
html[data-site-theme="gallery"] .gallery-writing-item:hover .gallery-line-frame .line-tick,
html[data-site-theme="gallery"] .all-post-item.is-hovering .gallery-line-frame .line-tick,
html[data-site-theme="gallery"] .all-post-item:hover .gallery-line-frame .line-tick {
  stroke: rgba(245,241,232,.62);
  opacity: .8;
}

html[data-site-theme="gallery"] .gallery-work-item.is-hovering .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-work-item:hover .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-writing-item.is-hovering .gallery-line-frame path,
html[data-site-theme="gallery"] .gallery-writing-item:hover .gallery-line-frame path,
html[data-site-theme="gallery"] .all-post-item.is-hovering .gallery-line-frame path,
html[data-site-theme="gallery"] .all-post-item:hover .gallery-line-frame path {
  stroke: rgba(245,241,232,.62);
}

html[data-site-theme="gallery"] .gallery-tile.is-hovering .gallery-line-frame,
html[data-site-theme="gallery"] .gallery-tile:hover .gallery-line-frame,
html[data-site-theme="gallery"] .gallery-panel-grid a:hover .gallery-line-frame,
html[data-site-theme="gallery"] .gallery-panel-grid button:hover .gallery-line-frame {
  opacity: .96;
  filter: none;
  transform: translate3d(calc(-50% + (var(--tile-drift-x, 0px) * -.5) + var(--line-hover-x, 0px)), calc(-50% + (var(--tile-drift-y, 0px) * -.5) + var(--line-hover-y, 0px)), 0) scale(1.012);
}

html[data-site-theme="gallery"] .gallery-tile .gallery-line-frame-kenji-step { --line-hover-x: -7px; --line-hover-y: -1px; }
html[data-site-theme="gallery"] .gallery-tile .gallery-line-frame-kenji-chevron { --line-hover-x: 6px; --line-hover-y: -8px; }
html[data-site-theme="gallery"] .gallery-tile .gallery-line-frame-kenji-orbit { --line-hover-x: 10px; --line-hover-y: 2px; }
html[data-site-theme="gallery"] .gallery-tile .gallery-line-frame-kenji-stack { --line-hover-x: -4px; --line-hover-y: 8px; }

html[data-site-theme="gallery"] .gallery-work-item.is-hovering .gallery-line-frame,
html[data-site-theme="gallery"] .gallery-work-item:hover .gallery-line-frame,
html[data-site-theme="gallery"] .gallery-writing-item.is-hovering .gallery-line-frame,
html[data-site-theme="gallery"] .gallery-writing-item:hover .gallery-line-frame,
html[data-site-theme="gallery"] .all-post-item.is-hovering .gallery-line-frame,
html[data-site-theme="gallery"] .all-post-item:hover .gallery-line-frame {
  opacity: .92;
  filter: none;
  transform: translate3d(8px, -4px, 0);
}

html[data-site-theme="gallery"] .gallery-motion-target,
html[data-site-theme="gallery"] .viewin {
  opacity: 1;
  transform: none;
  transition: none;
}

html[data-site-theme="gallery"] body.gallery-entering,
html[data-site-theme="gallery"] body.preload { overflow: hidden; }

html[data-site-theme="gallery"] .firstload {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1010;
  transition: all 0.6s;
  opacity: 0;
}

html[data-site-theme="gallery"] body.preload .firstload { opacity: 1; }
html[data-site-theme="gallery"] .firstload.is-leaving { opacity: 0; }
html[data-site-theme="gallery"] .firstload_body { height: 100%; position: relative; }
html[data-site-theme="gallery"] .firstload_title {
  height: 100%;
  display: table;
  width: 100%;
  position: relative;
  z-index: 3;
}
html[data-site-theme="gallery"] .firstload_title div {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
html[data-site-theme="gallery"] .firstload_title h2 { margin: 0 0 30px; }
html[data-site-theme="gallery"] .firstload_title h1 { margin: 0; }
html[data-site-theme="gallery"] .firstload_title img {
  display: inline-block;
  max-width: min(82vw, 755px);
  height: auto;
}
html[data-site-theme="gallery"] .preloadbar {
  display: block;
  width: 0;
  height: 5px;
  background: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}
html[data-site-theme="gallery"] body.preload .toggle[data-gallery-kenji-toggle] { transform: translate(-100px,-100px); }

html[data-site-theme="gallery"] .gallery-menu-toggle { position: fixed; left: clamp(18px,3vw,44px); bottom: clamp(18px,3vw,44px); z-index: 260; display: grid; gap: 6px; width: 54px; height: 54px; place-content: center; border: 1px solid rgba(245,241,232,.5); border-radius: 50%; background: rgba(0,0,0,.82); color: #f5f1e8; box-shadow: 0 0 42px rgba(0,0,0,.45); cursor: pointer; opacity: 0; transform: translate(-86px,86px) rotate(-28deg); transition: opacity 520ms ease 980ms, transform 720ms cubic-bezier(.2,.8,.2,1) 980ms, border-color 220ms ease, background 220ms ease, color 220ms ease; }
html[data-site-theme="gallery"] body.gallery-ready .gallery-menu-toggle,
html[data-site-theme="gallery"] body.preview-home .gallery-menu-toggle { opacity: 1; transform: translate(0,0) rotate(0deg); }
html[data-site-theme="gallery"] .gallery-menu-toggle span { display: block; width: 22px; height: 1px; background: currentColor; transform-origin: center; transition: transform 320ms cubic-bezier(.77,0,.175,1), opacity 220ms ease; }
html[data-site-theme="gallery"] body.gallery-panel-open .gallery-menu-toggle { border-color: #f5f1e8; background: #f5f1e8; color: #050505; transform: translate(0,0) rotate(90deg); }
html[data-site-theme="gallery"] body.gallery-panel-open .gallery-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html[data-site-theme="gallery"] body.gallery-panel-open .gallery-menu-toggle span:nth-child(2) { opacity: 0; }
html[data-site-theme="gallery"] body.gallery-panel-open .gallery-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

html[data-site-theme="gallery"] .gallery-panel { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 220; box-sizing: border-box; display: grid; place-items: center; padding: clamp(28px,6vw,78px); background: #000; opacity: 0; visibility: hidden; transform: scale(1.34); transform-origin: center; transition: opacity 360ms cubic-bezier(.77,0,.175,1), transform 520ms cubic-bezier(.77,0,.175,1), visibility 0s linear 520ms; }
html[data-site-theme="gallery"] .gallery-panel::before,
html[data-site-theme="gallery"] .gallery-panel::after { content: ""; position: absolute; inset: clamp(24px,5vw,70px); pointer-events: none; }
html[data-site-theme="gallery"] .gallery-panel::before { border: 1px solid rgba(245,241,232,.18); clip-path: inset(0 100% 0 0); transition: clip-path 900ms cubic-bezier(.77,0,.175,1) 180ms; }
html[data-site-theme="gallery"] .gallery-panel::after { content: none !important; display: none !important; }
html[data-site-theme="gallery"] body.gallery-panel-open .gallery-panel,
html[data-site-theme="gallery"] body.gallery-panel-open.gallery-theme-active .gallery-panel.gallery-motion-target,
html[data-site-theme="gallery"] body.gallery-panel-open.gallery-ready .gallery-panel.gallery-motion-target { opacity: 1; visibility: visible; transform: scale(1); transition: opacity 360ms cubic-bezier(.77,0,.175,1), transform 620ms cubic-bezier(.2,.8,.2,1), visibility 0s; }
html[data-site-theme="gallery"] body.gallery-panel-open .gallery-panel::before { clip-path: inset(0 0 0 0); }
html[data-site-theme="gallery"] .gallery-panel-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(170px, 280px)); gap: 1px; width: min(760px, calc(100vw - clamp(56px,12vw,156px))); max-height: min(640px, calc(100vh - clamp(56px,12vw,156px))); border: 1px solid rgba(245,241,232,.22); background: rgba(245,241,232,.22); }
html[data-site-theme="gallery"] .gallery-panel-grid a,
html[data-site-theme="gallery"] .gallery-panel-grid button { position: relative; display: grid; min-height: clamp(132px,18vh,230px); box-sizing: border-box; place-items: center; overflow: hidden; border: 0; border-radius: 0; background: #030303; color: #f5f1e8; font: inherit; font-size: clamp(28px,4vw,58px); font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: pointer; opacity: 0; transition: opacity 520ms ease, transform 720ms cubic-bezier(.2,.8,.2,1), background 260ms ease; }
html[data-site-theme="gallery"] .gallery-panel-grid a:nth-child(1) { transform: translate3d(-80px,-80px,0); transition-delay: 90ms; }
html[data-site-theme="gallery"] .gallery-panel-grid a:nth-child(2) { transform: translate3d(80px,-80px,0); transition-delay: 150ms; }
html[data-site-theme="gallery"] .gallery-panel-grid a:nth-child(3) { transform: translate3d(-80px,80px,0); transition-delay: 210ms; }
html[data-site-theme="gallery"] .gallery-panel-grid button:nth-child(4) { transform: translate3d(80px,80px,0); transition-delay: 270ms; }
html[data-site-theme="gallery"] body.gallery-panel-open .gallery-panel-grid a,
html[data-site-theme="gallery"] body.gallery-panel-open .gallery-panel-grid button,
html[data-site-theme="gallery"] body.gallery-panel-open.gallery-theme-active .gallery-panel-grid .gallery-motion-target,
html[data-site-theme="gallery"] body.gallery-panel-open.gallery-ready .gallery-panel-grid .gallery-motion-target { opacity: 1; transform: translate3d(0,0,0); }
html[data-site-theme="gallery"] .gallery-panel-grid a::before,
html[data-site-theme="gallery"] .gallery-panel-grid button::before { content: none !important; display: none !important; }
html[data-site-theme="gallery"] .gallery-panel-grid a:hover,
html[data-site-theme="gallery"] .gallery-panel-grid button:hover { background: #111; }
html[data-site-theme="gallery"] .gallery-panel-grid .front,
html[data-site-theme="gallery"] .gallery-panel-grid .back { position: relative; z-index: 2; grid-area: 1 / 1; transition: opacity 320ms cubic-bezier(.77,0,.175,1), transform 360ms cubic-bezier(.77,0,.175,1); }
html[data-site-theme="gallery"] .gallery-panel-grid .back { opacity: 0; transform: translate3d(0,100%,0); color: rgba(245,241,232,.72); font-size: .42em; letter-spacing: .22em; }
html[data-site-theme="gallery"] .gallery-panel-grid a:hover .front,
html[data-site-theme="gallery"] .gallery-panel-grid button:hover .front { opacity: 0; transform: translate3d(0,-100%,0); }
html[data-site-theme="gallery"] .gallery-panel-grid a:hover .back,
html[data-site-theme="gallery"] .gallery-panel-grid button:hover .back { opacity: 1; transform: translate3d(0,0,0); }
html[data-site-theme="gallery"] body.gallery-panel-open { overflow: hidden; }

@keyframes galleryLoadBar { 0% { transform: scaleX(0); } 64% { transform: scaleX(.72); } 100% { transform: scaleX(1); } }
@keyframes galleryLoaderFrame { 0% { transform: scaleX(0); opacity: .45; } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes galleryPanelIn { to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); } }
@keyframes galleryRule { to { transform: scaleX(1); } }
@keyframes galleryFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes galleryScan { from { transform: translateY(-28px) rotate(-12deg); opacity: .12; } to { transform: translateY(40px) rotate(-12deg); opacity: .34; } }
@keyframes galleryOrbit { from { transform: rotate(0deg) scale(.84); } to { transform: rotate(360deg) scale(.84); } }
@keyframes galleryFrameRedraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }

@media (max-width: 980px) {
  html[data-site-theme="gallery"] .gallery-landing { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; min-height: auto; }
  html[data-site-theme="gallery"] .gallery-main-visual { grid-column: 1; grid-row: 2 / 5; width: min(760px, 94vw); height: auto; opacity: .25; margin-top: 120px; }
  html[data-site-theme="gallery"] .gallery-prof { display: none; }
  html[data-site-theme="gallery"] .gallery-index-panel { grid-column: 1; grid-row: 3; min-height: 420px; }
  html[data-site-theme="gallery"] .gallery-caption { grid-row: 4; }
  html[data-site-theme="gallery"] .gallery-section-head { grid-template-columns: 1fr; }
  html[data-site-theme="gallery"] .gallery-work-grid,
  html[data-site-theme="gallery"] .gallery-writing-grid,
  html[data-site-theme="gallery"] .gallery-all-posts-list,
  html[data-site-theme="gallery"] .all-posts-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  html[data-site-theme="gallery"] .site-shell { padding-inline: 18px; }
  html[data-site-theme="gallery"] .site-nav { width: calc(100% + 36px); margin-left: -18px; margin-right: -18px; padding: 14px 18px; }
  html[data-site-theme="gallery"] .nav-links { display: none; }
  html[data-site-theme="gallery"] .gallery-landing { padding-top: 70px; }
  html[data-site-theme="gallery"] .gallery-main-visual { display: none; }
  html[data-site-theme="gallery"] .gallery-rule { top: 82px; }
  html[data-site-theme="gallery"] .gallery-identity { display: grid; gap: 8px; }
  html[data-site-theme="gallery"] .gallery-index-panel { grid-template-columns: 1fr; min-height: auto; }
  html[data-site-theme="gallery"] .gallery-tile { min-height: 126px; }
  html[data-site-theme="gallery"] .gallery-caption { display: grid; }
  html[data-site-theme="gallery"] .site-theme-section { right: 18px; bottom: 18px; max-width: calc(100vw - 92px); }
  html[data-site-theme="gallery"] .theme-picker span { display: none; }
  html[data-site-theme="gallery"] .gallery-menu-toggle { left: 18px; bottom: 18px; width: 50px; height: 50px; }
  html[data-site-theme="gallery"] .gallery-panel-grid { width: min(100%, 360px); grid-template-columns: 1fr; }
  html[data-site-theme="gallery"] .gallery-panel-grid a,
  html[data-site-theme="gallery"] .gallery-panel-grid button { min-height: 118px; font-size: 32px; }
  html[data-site-theme="gallery"] body.gallery-theme-active:not(.gallery-ready) .gallery-motion-target { transform: translate3d(0,38px,0) scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-site-theme="gallery"] .gallery-loader,
  html[data-site-theme="gallery"] .paper-noise::before,
  html[data-site-theme="gallery"] .paper-noise::after,
  html[data-site-theme="gallery"] .gallery-line-frame path,
  html[data-site-theme="gallery"] .gallery-motion-target,
  html[data-site-theme="gallery"] .gallery-rule {
    animation: none !important;
    transition: none !important;
  }
}

/* Gallery theme: original kenjiendo-style 3x3 menu / panel. */
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] {
  width: 100px;
  height: 100px;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent !important;
  cursor: pointer;
  user-select: none;
  opacity: 0;
  transform: translate(-100px,-100px);
  transition: opacity .3s ease .3s, transform .3s ease .3s;
}
html[data-site-theme="gallery"] body.gallery-ready .toggle[data-gallery-kenji-toggle],
html[data-site-theme="gallery"] body.preview-home .toggle[data-gallery-kenji-toggle] {
  opacity: 1;
  transform: translate(0,0);
}
html[data-site-theme="gallery"] body.preload .toggle[data-gallery-kenji-toggle] {
  opacity: 1;
  transform: translate(-100px,-100px);
}
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .toggle_body {
  margin: 38px;
  width: 24px;
  height: 24px;
  position: relative;
}
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars {
  height: 4px;
  width: 4px;
  background: #fff;
  position: absolute;
  transition: all .3s;
}
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars_1 { top: 0; left: 0; }
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars_2 { top: 0; left: 10px; }
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars_3 { top: 0; left: 20px; }
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars_4 { top: 10px; left: 0; }
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars_5 { top: 10px; left: 10px; }
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars_6 { top: 10px; left: 20px; }
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars_7 { top: 20px; left: 0; }
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars_8 { top: 20px; left: 10px; }
html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .bars_9 { top: 20px; left: 20px; }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars { background: #715699; }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars_1 { transform: translate(5px,5px); }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars_2 { transform: translate(0,5px); }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars_3 { transform: translate(-5px,5px); }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars_4 { transform: translate(5px,0); }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars_5 { transform: translate(0,0); }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars_6 { transform: translate(-5px,0); }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars_7 { transform: translate(5px,-5px); }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars_8 { transform: translate(0,-5px); }
html[data-site-theme="gallery"].toggled .toggle[data-gallery-kenji-toggle] .bars_9 { transform: translate(-5px,-5px); }

html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel],
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] * { box-sizing: border-box; }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  z-index: 1002;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.35);
  transition: transform .3s cubic-bezier(.215,.61,.355,1) 0s, opacity .25s ease-in-out 0s, visibility .3s ease-in-out 0s;
}
html[data-site-theme="gallery"].toggled #panel[data-gallery-kenji-panel] {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition: transform .3s ease-in-out 0s, opacity .3s ease-in-out 0s, visibility .3s ease-in-out 0s;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  height: 500px;
  width: 500px;
  z-index: 10002;
  list-style: none;
  padding: 0;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li {
  display: block;
  position: absolute;
  width: 160px;
  border: 1px solid rgba(220,220,220,.1);
  transition: transform .3s ease-in-out 0s, background .3s ease-in-out 0s;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li:hover {
  border: 1px solid rgba(220,220,220,0);
  background: rgba(70,37,95,.5);
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li::before { content: ""; display: block; padding-top: 100%; }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li > a,
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li > .multi_a {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .front {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(.19,1,.22,1) 0s, opacity .45s ease-in-out 0s;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li:hover .front {
  opacity: 0;
  transform: translate3d(0,-100%,0);
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .back {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translate3d(0,100%,0);
  transition: transform .55s cubic-bezier(.19,1,.22,1) 0s, opacity .45s ease-in-out 0s;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li:hover .back {
  opacity: 1;
  transform: translate3d(0,0,0);
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .back .wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 120px;
  height: 55px;
  text-align: center;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .back .wrap h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: normal;
  line-height: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .back .wrap p.panelbtn {
  margin: 0 auto;
  width: 80px;
  height: 25px;
  line-height: 25px;
  color: #fff;
  background: #715699;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-1 { top: 0; left: 0; transform: translate3d(-25%,-25%,0); }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-2 { top: 0; left: 50%; margin-left: -80px; transform: translate3d(0,-25%,0); }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-3 { top: 0; right: 0; transform: translate3d(25%,-25%,0); }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-4 { top: 50%; left: 0; margin-top: -80px; transform: translate3d(-25%,0,0); }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-5 { top: 50%; left: 50%; margin: -80px 0 0 -80px; }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-6 { top: 50%; right: 0; margin-top: -80px; transform: translate3d(25%,0,0); }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-7 { bottom: 0; left: 0; transform: translate3d(-25%,25%,0); }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-8 { bottom: 0; left: 50%; margin-left: -80px; transform: translate3d(0,25%,0); }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-9 { bottom: 0; right: 0; transform: translate3d(25%,25%,0); }
html[data-site-theme="gallery"].toggled #panel[data-gallery-kenji-panel] > ul > li { transform: translate3d(0,0,0); }
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li svg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  fill: none;
  transition: all .3s ease-in-out 0s;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li svg path {
  margin: 0 auto;
  fill: #fff;
  stroke: #fff;
  stroke-width: 2px;
  stroke-linecap: square;
  stroke-dashoffset: 3000;
  stroke-dasharray: 3000;
  transition: stroke-dashoffset .3s ease-in-out 0s;
}
html[data-site-theme="gallery"].toggled #panel[data-gallery-kenji-panel] > ul > li svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s ease-in-out .3s;
}
html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] #mask {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1001;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-in-out 0s, visibility .3s ease-in-out 0s;
}
html[data-site-theme="gallery"].toggled #panel[data-gallery-kenji-panel] #mask {
  visibility: visible;
  opacity: 0;
  pointer-events: auto;
  background: transparent;
  background-image: none;
}
html[data-site-theme="gallery"].toggled #panel[data-gallery-kenji-panel] #mask:hover {
  cursor: url("./vendor/kenjiendo_v2/img/icon-close.png") 10 10, pointer;
}
html[data-site-theme="gallery"] body.gallery-panel-open { overflow: hidden; }

@media (max-width: 680px) {
  html[data-site-theme="gallery"] .gallery-sidenav-shell { display: none !important; }
  html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] { width: 64px; height: 64px; }
  html[data-site-theme="gallery"] .toggle[data-gallery-kenji-toggle] .toggle_body { margin: 20px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul { min-height: 300px; max-width: 300px; max-height: 300px; width: 300px; height: 300px; z-index: 1002; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li { width: 96px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-2 { margin-left: -48px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-4 { margin-top: -48px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-5 { margin: -48px 0 0 -48px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-6 { margin-top: -48px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] ul li.panel-8 { margin-left: -48px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li:hover .front { opacity: 1; transform: translate3d(0,0,0); }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li:hover .back { opacity: 1; transform: translate3d(0,100%,0); }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li svg { width: 24px; height: 24px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] > ul > li svg path { stroke-width: 3px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .front { margin-top: -10%; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .back { margin-top: -65%; opacity: 1; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .back .wrap { width: 100%; height: 40px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .back .wrap h3 { color: rgba(220,220,220,.5); font-size: 11px; line-height: 12px; margin-bottom: 7px; letter-spacing: .5px; }
  html[data-site-theme="gallery"] #panel[data-gallery-kenji-panel] .back .wrap p.panelbtn { display: none; }
}


/* Gallery theme: hide the old generated line-frame system after porting original borders. */
html[data-site-theme="gallery"] .gallery-line-frame { display: none !important; }

/* Gallery theme: original kenjiendo border SVG draw system. */
html[data-site-theme="gallery"] .borders {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: .72;
  overflow: visible;
}
html[data-site-theme="gallery"] .borders * { fill: none; stroke: #fff; }
html[data-site-theme="gallery"] .borders svg { overflow: visible; display: block; }
html[data-site-theme="gallery"] .borders path {
  transition: all .5s ease-out;
  stroke: rgba(245,241,232,.68);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  visibility: visible;
}
html[data-site-theme="gallery"] .trigger:hover .borders path,
html[data-site-theme="gallery"] .trigger.is-hovering .borders path,
html[data-site-theme="gallery"] .borders.is-hovering path { stroke-dashoffset: 0 !important; }
html[data-site-theme="gallery"] .trigger:hover .borders path.dotted,
html[data-site-theme="gallery"] .trigger.is-hovering .borders path.dotted,
html[data-site-theme="gallery"] .borders.is-hovering path.dotted { fill: url(#pattern1); }
html[data-site-theme="gallery"] .borders_1 path,
html[data-site-theme="gallery"] .borders_2 path,
html[data-site-theme="gallery"] .borders_3 path,
html[data-site-theme="gallery"] .borders_4 path,
html[data-site-theme="gallery"] .borders_5 path,
html[data-site-theme="gallery"] .borders_7 path,
html[data-site-theme="gallery"] .borders_10 path { transition: all .5s ease-out; }
html[data-site-theme="gallery"] .borders_6 path { transition-duration: .3s; }
html[data-site-theme="gallery"] .borders_8 path,
html[data-site-theme="gallery"] .borders_9 path { transition-duration: 1s; }
html[data-site-theme="gallery"] .borders_1 { top: 16px; left: -40px; transform: scale(.78); transform-origin: top left; }
html[data-site-theme="gallery"] .borders_2 { right: 40px; bottom: -26px; }
html[data-site-theme="gallery"] .borders_3 { top: 30px; left: 50%; transform: translateX(-50%); }
html[data-site-theme="gallery"] .borders_4 { right: -30px; bottom: 32px; transform: scale(.72); transform-origin: center; }
html[data-site-theme="gallery"] .borders_5 { top: 34px; left: 50%; transform: translateX(-50%); }
html[data-site-theme="gallery"] .borders_6 { left: -52px; bottom: -38px; transform: scale(.52); transform-origin: bottom left; }
html[data-site-theme="gallery"] .borders_7 { top: -26px; left: -22px; transform: scale(.66); transform-origin: top left; }
html[data-site-theme="gallery"] .borders_8 { top: -24px; left: -28px; transform: scale(.62); transform-origin: top left; }
html[data-site-theme="gallery"] .borders_9 { top: -34px; right: -20px; transform: scale(.58); transform-origin: top right; }
html[data-site-theme="gallery"] .borders_10 { top: -20px; right: 44px; transform: scale(.66); transform-origin: top right; }
html[data-site-theme="gallery"] .gallery-work-item .borders,
html[data-site-theme="gallery"] .gallery-writing-item .borders,
html[data-site-theme="gallery"] .all-post-item .borders { opacity: .55; transform: scale(.46); transform-origin: top left; }
html[data-site-theme="gallery"] .gallery-work-item .borders_2,
html[data-site-theme="gallery"] .gallery-writing-item .borders_2,
html[data-site-theme="gallery"] .all-post-item .borders_2 { transform: none; }
html[data-site-theme="gallery"] .gallery-work-item > :not(.borders),
html[data-site-theme="gallery"] .gallery-writing-item > :not(.borders),
html[data-site-theme="gallery"] .all-post-item > :not(.borders),
html[data-site-theme="gallery"] .gallery-tile > :not(.borders) { position: relative; z-index: 2; }
html[data-site-theme="gallery"] .gallery-tile > .borders,
html[data-site-theme="gallery"] .gallery-work-item > .borders,
html[data-site-theme="gallery"] .gallery-writing-item > .borders,
html[data-site-theme="gallery"] .all-post-item > .borders {
  position: absolute;
  z-index: 1;
}
html[data-site-theme="gallery"] .trigger { overflow: visible; }

/* Gallery: remove Michel-specific permanent grid boxes from the Kenji-style
   hero tiles. The reference does not keep a static card frame visible; its
   geometry is primarily the SVG border drawing that appears on hover. */
html[data-site-theme="gallery"] .gallery-index-panel {
  gap: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html[data-site-theme="gallery"] .gallery-tile {
  overflow: visible !important;
  background: transparent !important;
}

/* Gallery: source-like hover border behavior. Keep Michel's `viewin come`
   reveal class from auto-opening every line; the original interaction the user
   wants is hover-first line drawing on trigger cards. */
html[data-site-theme="gallery"] .trigger .borders path {
  stroke-dashoffset: var(--kenji-border-length, 999px) !important;
}
html[data-site-theme="gallery"] .trigger:hover .borders path,
html[data-site-theme="gallery"] .trigger:focus-visible .borders path,
html[data-site-theme="gallery"] .trigger.is-hovering .borders path {
  stroke-dashoffset: 0 !important;
}

/* Gallery: original Kenji audio circle / sound canvas system */
html:not([data-site-theme="gallery"]) [data-gallery-circle-system] {
  display: none !important;
}

html[data-site-theme="gallery"].nowonsubpages .circles {
  display: none;
}

html[data-site-theme="gallery"] #sound {
  position: absolute;
  z-index: 10;
  display: none;
}

html[data-site-theme="gallery"] .circle_control_side {
  position: fixed;
  left: 0;
  bottom: 0;
  cursor: pointer;
  z-index: 1000;
  transition: all .3s ease .4s;
}

html[data-site-theme="gallery"] .circle_control_side .inner {
  position: relative;
  width: 100px;
  height: 100px;
}

html[data-site-theme="gallery"] body.preload .circle_control_side,
html[data-site-theme="gallery"] body.gallery-entering .circle_control_side {
  transform: translate(-100px, 100px);
}

html[data-site-theme="gallery"] .circles {
  position: absolute;
  top: 1820px;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  min-height: 760px;
  pointer-events: none;
}

html[data-site-theme="gallery"] .circles .circle {
  position: relative;
  width: 100%;
  height: 100%;
}

html[data-site-theme="gallery"] #sound_effect {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .75;
  z-index: 0;
}

html[data-site-theme="gallery"] .circle_control {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  margin: -242px 0 0 -242px;
  height: 484px;
  width: 484px;
  pointer-events: auto;
  cursor: grab;
}

html[data-site-theme="gallery"] .circle_control.grab {
  cursor: grabbing;
}

html[data-site-theme="gallery"] .circle_control_wrap {
  position: relative;
  height: 484px;
  width: 484px;
}

html[data-site-theme="gallery"] .circle_control_hide {
  opacity: 0;
  display: none;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 11;
  height: 450px;
  margin: 0;
}

html[data-site-theme="gallery"] .circle_control_body * {
  fill: none;
}

html[data-site-theme="gallery"] .circle_control_lines line {
  stroke-width: 1px;
  stroke: #fff;
  opacity: .1;
  stroke-dashoffset: 15px;
  stroke-dasharray: 15px;
  transition: all .3s;
}

html[data-site-theme="gallery"] .circle_control_dotted line {
  stroke-width: 2px;
  stroke: #fff;
  opacity: 1;
}

html[data-site-theme="gallery"].circle_control_begin .circle_control_bar {
  transition: all 1s ease-in-out;
  opacity: 1;
}

html[data-site-theme="gallery"].circle_control_drag .circle_control_bar {
  transition: all 0s ease-in-out;
  opacity: 1;
}

html[data-site-theme="gallery"] .circle_control_bar {
  opacity: 0;
  stroke-dasharray: 1410.5751014618172px;
  stroke-dashoffset: 0;
  stroke-width: 1.5px;
  stroke: #34b4b4;
}

html[data-site-theme="gallery"] .circle_control_bar_bk {
  stroke-dasharray: 1420px;
  stroke-dashoffset: 0;
  stroke-width: 1px;
  stroke: #fff;
  opacity: .1;
}

html[data-site-theme="gallery"] .circle_control_player {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -54px 0 0 -51px;
  z-index: 100;
  cursor: pointer;
}

html[data-site-theme="gallery"] .circle_control_player .inner {
  height: 16px;
  width: 16px;
}

html[data-site-theme="gallery"] .circle_control_pause,
html[data-site-theme="gallery"] .circle_control_play {
  position: absolute;
  display: none;
  opacity: .5;
  height: 16px;
  width: 16px;
  padding: 42px;
  color: #fff;
}

html[data-site-theme="gallery"] .circle_control_play * {
  fill: none;
  stroke: #fff;
}

html[data-site-theme="gallery"] .circle_control_pause {
  width: 16px;
  top: 1px;
}

html[data-site-theme="gallery"] .circle_control_pause div {
  height: 16px;
  width: 4px;
  border: 1px solid #fff;
  float: right;
}

html[data-site-theme="gallery"] .circle_control_pause div:first-child {
  float: left;
}

html[data-site-theme="gallery"].audio_play .circle_control_play {
  display: none;
}

html[data-site-theme="gallery"].audio_play .circle_control_pause {
  display: block;
}

html[data-site-theme="gallery"].audio_pause .circle_control_play {
  display: block;
}

html[data-site-theme="gallery"].audio_pause .circle_control_pause {
  display: none;
}

@media (max-width: 680px) {
  html[data-site-theme="gallery"] .circles,
  html[data-site-theme="gallery"] .circle_control_side {
    display: none !important;
  }
}

/* Gallery source-parity pass: use the original kenjiendo home geometry for the
   gallery theme instead of the earlier custom grid. Keep this scoped so the
   other Michel themes are untouched. */
html[data-site-theme="gallery"] .gallery-home .all,
html[data-site-theme="gallery"] .gallery-kenji-all {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
}

html[data-site-theme="gallery"] .gallery-kenji-all .inner { position: relative; }
html[data-site-theme="gallery"] .gallery-kenji-all .box {
  width: 1360px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
html[data-site-theme="gallery"] .gallery-kenji-all .box > .inner { padding: 0 70px; }
html[data-site-theme="gallery"] .gallery-kenji-all .boxL,
html[data-site-theme="gallery"] .gallery-kenji-all .boxR { width: 280px; }
html[data-site-theme="gallery"] .gallery-kenji-all .boxL { float: left; }
html[data-site-theme="gallery"] .gallery-kenji-all .boxR { float: right; }
html[data-site-theme="gallery"] .gallery-kenji-all .boxR p { text-align: right; }
html[data-site-theme="gallery"] .gallery-kenji-all .cf::before,
html[data-site-theme="gallery"] .gallery-kenji-all .cf::after { content: ""; display: table; }
html[data-site-theme="gallery"] .gallery-kenji-all .cf::after { clear: both; }

html[data-site-theme="gallery"] .gallery-kenji-all h1 {
  font-family: Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-align: center;
  letter-spacing: 5px;
  line-height: 90px;
  margin: 0;
  color: #fff;
}
html[data-site-theme="gallery"] .gallery-kenji-all h1 a { color: #fff; display: block; }
html[data-site-theme="gallery"] .gallery-kenji-all a { text-decoration: none; }
html[data-site-theme="gallery"] .gallery-kenji-all p {
  font-size: 12px;
  line-height: 2;
  color: #afafaf;
  letter-spacing: 1px;
  margin: 0;
}
html[data-site-theme="gallery"] .gallery-kenji-all .btn {
  font-weight: 800;
  text-align: center;
  letter-spacing: 5px;
  font-size: 13px;
  display: block;
  height: 46px;
  line-height: 44px;
  border: 1px solid #fff;
  color: #fff;
  background: transparent !important;
  padding: 0;
}
html[data-site-theme="gallery"] .gallery-kenji-all .table { display: table; }
html[data-site-theme="gallery"] .gallery-kenji-all .td { display: table-cell; vertical-align: middle; }
html[data-site-theme="gallery"] .gallery-kenji-all .sp_home { height: 90px; width: 100%; }
html[data-site-theme="gallery"] .gallery-kenji-all .trigger { position: relative; display: block; color: #fff; overflow: visible; }

html[data-site-theme="gallery"] .gallery-kenji-all .first { text-align: center; z-index: 1; }
html[data-site-theme="gallery"] .gallery-kenji-all .first img {
  max-width: 100%;
  margin-top: 140px;
  opacity: 1;
}

html[data-site-theme="gallery"] .gallery-kenji-all .second { margin-top: -30px; }
html[data-site-theme="gallery"] .gallery-kenji-all .second .hr { margin-left: -20px; }
html[data-site-theme="gallery"] .gallery-kenji-all .second .btn { margin-top: 34px; }
html[data-site-theme="gallery"] .gallery-kenji-all .second .boxR .table { height: 430px; width: 100%; }
html[data-site-theme="gallery"] .gallery-kenji-all .second .prof {
  position: relative;
  width: 524px;
  height: 463px;
  margin-left: -131px;
  opacity: 1;
  mix-blend-mode: normal;
}
html[data-site-theme="gallery"] .gallery-kenji-all .second .prof img { position: absolute; left: 0; width: 524px; height: auto; }
html[data-site-theme="gallery"] .gallery-kenji-all .second .prof img.prof_bottom { bottom: 0; }
html[data-site-theme="gallery"] .gallery-kenji-all .second .prof img.prof_top { top: 0; }

/* The copied reference profile images contain large built-in black fields. In
   our adapted Michel layout those fields read as an added black mask around
   the title/hover effect, so keep the title/border interaction and remove the
   image layer from this card. */
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-profile-card .prof {
  display: none !important;
}
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-profile-card {
  min-height: 430px;
}

html[data-site-theme="gallery"] .gallery-kenji-all .third h1 { margin: 100px 0 370px 0; }
html[data-site-theme="gallery"] .gallery-kenji-all .third .boxL .table { height: 430px; width: 100%; margin-bottom: 100px; }
html[data-site-theme="gallery"] .gallery-kenji-all .third .boxR { margin-top: 710px; margin-bottom: 125px; }
html[data-site-theme="gallery"] .gallery-kenji-all .third .btn_wrap {
  margin: 0;
  position: absolute;
  width: 280px;
  bottom: -94px;
  left: 40px;
  z-index: 2;
}
html[data-site-theme="gallery"] .gallery-kenji-all .album_slide {
  display: block;
  min-height: 310px;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  padding: 42px 30px;
  background: transparent !important;
}
html[data-site-theme="gallery"] .gallery-kenji-all .album_slide strong {
  display: block;
  margin: 26px 0 22px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 3px;
}
html[data-site-theme="gallery"] .gallery-kenji-all .album_slide em,
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-app-no {
  display: block;
  color: #afafaf;
  font-style: normal;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 1px;
}

html[data-site-theme="gallery"] .gallery-kenji-all .fourth { margin-top: 110px; padding-bottom: 290px; }
html[data-site-theme="gallery"] .gallery-kenji-all .fourth .boxL { margin-top: 380px; }
html[data-site-theme="gallery"] .gallery-kenji-all .news_body {
  position: relative;
  height: 527px;
  width: 280px;
  padding: 20px;
  margin-left: -20px;
  overflow: hidden;
}
html[data-site-theme="gallery"] .gallery-kenji-all .news_scroll { display: grid; gap: 24px; }
html[data-site-theme="gallery"] .gallery-kenji-all .post { color: #fff; display: block; }
html[data-site-theme="gallery"] .gallery-kenji-all .post h2 {
  margin: 0 0 8px;
  color: #777;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 2px;
  font-weight: 800;
}
html[data-site-theme="gallery"] .gallery-kenji-all .post h1 {
  height: auto;
  min-height: 0;
  line-height: 1.25;
  text-align: left;
  font-size: 15px;
  letter-spacing: 2px;
}
html[data-site-theme="gallery"] .gallery-kenji-all .post p {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-archive-link { margin-top: 34px; }
html[data-site-theme="gallery"] .gallery-kenji-all .link_body .link_hr { margin: 40px auto 60px auto; width: 130px; }
html[data-site-theme="gallery"] .gallery-kenji-all .link_body ul li a {
  width: 100%;
  display: block;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 4;
  letter-spacing: 1px;
  text-decoration: underline;
}
html[data-site-theme="gallery"] .gallery-kenji-all .link_body ul li a:hover { text-decoration: none; }

html[data-site-theme="gallery"] .gallery-kenji-all .create_t,
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-create-t {
  position: absolute;
  z-index: 1;
  width: 800px;
  height: 3558px;
  top: 145px;
  left: 50%;
  margin: 0 0 0 -400px;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: normal;
}

/* Keep the Kenji text-particle canvas in the center source-text lane.
   Earlier it spanned the whole adapted page, so hovering Michel's right-column
   title activated an off-lane glyph field that read as a dark mask/plate. */
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-create-t {
  z-index: 0;
  opacity: 1;
  overflow: hidden;
  background: transparent !important;
  background-image: none !important;
  filter: none !important;
  box-shadow: none !important;
  isolation: auto !important;
}
html[data-site-theme="gallery"] .gallery-kenji-all .create_t > div { position: relative; width: 800px; height: 3918px; }
html[data-site-theme="gallery"] .gallery-kenji-all .create_t > div canvas { position: absolute; }
html[data-site-theme="gallery"] .gallery-kenji-all #kenjiendo_bk { display: none !important; }
html[data-site-theme="gallery"] .gallery-kenji-all .bkall {
  display: none !important;
}

html[data-site-theme="gallery"] .gallery-kenji-all .borders {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  overflow: visible;
  transform: none;
}
html[data-site-theme="gallery"] .gallery-kenji-all .borders * { fill: none; stroke: #fff; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders svg { overflow: visible; display: block; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders path {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  transition: all .5s ease-out;
}
html[data-site-theme="gallery"] .gallery-kenji-all .trigger .borders path { stroke-dashoffset: var(--kenji-border-length, 999px) !important; }
html[data-site-theme="gallery"] .gallery-kenji-all .trigger:hover .borders path,
html[data-site-theme="gallery"] .gallery-kenji-all .trigger:focus-visible .borders path,
html[data-site-theme="gallery"] .gallery-kenji-all .trigger.is-hovering .borders path {
  stroke-dashoffset: 0 !important;
}
html[data-site-theme="gallery"] .gallery-kenji-all .trigger:hover .borders path.dotted { fill: url(#pattern1); }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_1 { top: 210px; left: -50px; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_2 { top: 544px; left: -10px; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_3 { top: 210px; left: 5px; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_4 { top: 498px; left: -35px; z-index: 2; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_5 { top: -104px; left: -10px; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_6 { top: 63px; left: 10px; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_7 { top: -45px; left: -22px; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_8 { top: 85px; left: -26px; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_9 { top: -56px; left: -10px; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_10 { top: 710px; left: 0; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_6 path { transition-duration: .3s; }
html[data-site-theme="gallery"] .gallery-kenji-all .borders_8 path,
html[data-site-theme="gallery"] .gallery-kenji-all .borders_9 path { transition-duration: 1s; }

@media (max-width: 680px) {
  html[data-site-theme="gallery"] .gallery-kenji-all .box > .inner { padding: 0 20px; }
  html[data-site-theme="gallery"] .gallery-kenji-all .boxL,
  html[data-site-theme="gallery"] .gallery-kenji-all .boxR { float: none; width: 280px; max-width: 100%; margin-left: auto; margin-right: auto; }
  html[data-site-theme="gallery"] .gallery-kenji-all .first img { margin-top: 30px; }
  html[data-site-theme="gallery"] .gallery-kenji-all .second .hr { display: none; }
  html[data-site-theme="gallery"] .gallery-kenji-all .second .boxR .table { height: 300px; }
  html[data-site-theme="gallery"] .gallery-kenji-all .second .prof { margin-top: -100px; left: 50%; margin-left: -262px; transform: scale(.5); }
  html[data-site-theme="gallery"] .gallery-kenji-all .third h1 { margin: 100px 0 110px; }
  html[data-site-theme="gallery"] .gallery-kenji-all .third .boxR { margin-top: 140px; margin-bottom: 0; }
  html[data-site-theme="gallery"] .gallery-kenji-all .fourth { padding-bottom: 70px; }
  html[data-site-theme="gallery"] .gallery-kenji-all .fourth .boxL { margin-top: 80px; }
  html[data-site-theme="gallery"] .gallery-kenji-all .news_body { margin: 0 auto 170px; padding: 0; height: 417px; }
  html[data-site-theme="gallery"] .gallery-kenji-all .link_body { height: 680px; }
  html[data-site-theme="gallery"] .gallery-kenji-all .borders_1 { display: none; }
  html[data-site-theme="gallery"] .gallery-kenji-all .borders_10 { display: none; }
}

/* Source-parity gallery chrome: use the original kenjiendo header/navigation,
   not the old sketch-site navigation. */
html:not([data-site-theme="gallery"]) .gallery-source-header {
  display: none !important;
}

html[data-site-theme="gallery"] .site-nav {
  display: none !important;
}

html[data-site-theme="gallery"] .gallery-source-header {
  display: block;
}

html[data-site-theme="gallery"] .gallery-source-header .header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

html[data-site-theme="gallery"] .gallery-source-header .navigation {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 0;
  list-style: none;
}

html[data-site-theme="gallery"] .gallery-source-header .navigation li {
  display: inline-block;
  margin: 0;
  padding: 0;
  text-align: center;
  list-style: none;
}

html[data-site-theme="gallery"] .gallery-source-header .navigation li a {
  display: block;
  position: relative;
  width: 100px;
  line-height: 100px;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
}

html[data-site-theme="gallery"] .gallery-source-header .navigation li a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: #fff;
  opacity: 0;
  transition: opacity .18s linear;
}

html[data-site-theme="gallery"] .gallery-source-header .navigation li.on a::after,
html[data-site-theme="gallery"] .gallery-source-header .navigation li:hover a::after {
  opacity: 1;
}

html[data-site-theme="gallery"] .sidenav li a {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  transition: opacity .25s ease, color .25s ease;
}

@media (max-width: 680px) {
  html[data-site-theme="gallery"] .gallery-source-header {
    display: none !important;
  }
}


html[data-site-theme="gallery"] .gallery-kenji-all .create_t > div,
html[data-site-theme="gallery"] .gallery-kenji-all .gallery-create-t > div {
  width: 800px !important;
  height: 3918px !important;
}

/* Hard-disable the previous title-deconstruction attempts. They drew black or
   dark transparent plates around the title area; for now the Gallery theme must
   have only the one page background plus white line interactions. */
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card *,
html[data-site-theme="gallery"] body.preview-home #gallery-title,
html[data-site-theme="gallery"] body.preview-home #gallery-title * {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-profile-card::before,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card::after,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card *::before,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card *::after,
html[data-site-theme="gallery"] body.preview-home #gallery-title::before,
html[data-site-theme="gallery"] body.preview-home #gallery-title::after,
html[data-site-theme="gallery"] body.preview-home #gallery-title *::before,
html[data-site-theme="gallery"] body.preview-home #gallery-title *::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-title-canvas,
html[data-site-theme="gallery"] body.preview-home .gallery-title-bk,
html[data-site-theme="gallery"] body.preview-home .gallery-source-title-fragments,
html[data-site-theme="gallery"] body.preview-home .gallery-create-t,
html[data-site-theme="gallery"] body.preview-home [data-gallery-create-t],
html[data-site-theme="gallery"] body.preview-home .create_t,
html[data-site-theme="gallery"] body.preview-home #kenjiendo,
html[data-site-theme="gallery"] body.preview-home #kenjiendo_bk,
html[data-site-theme="gallery"] body.preview-home canvas[id^="kenjiendo"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card canvas,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [class*="mask"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [id*="mask"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [class*="canvas"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [class*="fragment"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: transparent !important;
  background-image: none !important;
  pointer-events: none !important;
}

/* Gallery mask cleanup v84: remove all local title/canvas/mask patches.
   The adapted Gallery homepage should keep one continuous black stage and no
   extra local black rectangle around MICHEL JOHNSON.  Do not use broad pseudo
   resets here because they killed the Kenji-style border animations. */
html[data-site-theme="gallery"],
html[data-site-theme="gallery"] body,
html[data-site-theme="gallery"] body.preview-home,
html[data-site-theme="gallery"] body.preview-home .site-shell {
  background: #000 !important;
  background-color: #000 !important;
  background-image: none !important;
  color: #f5f1e8 !important;
  overflow-x: hidden !important;
}

html[data-site-theme="gallery"] body.preview-home .site-nav,
html[data-site-theme="gallery"] body.preview-home .hero,
html[data-site-theme="gallery"] body.preview-home #apps.content-section,
html[data-site-theme="gallery"] body.preview-home #blog.content-section {
  display: none !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-home,
html[data-site-theme="gallery"] body.preview-home .gallery-home .all,
html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all,
html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all section,
html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all .box,
html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all .inner,
html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all .pos,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .table,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .td {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-profile-card::before,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card::after,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .table::before,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .table::after,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .td::before,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .td::after,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card #gallery-title::before,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card #gallery-title::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-landing,
html[data-site-theme="gallery"] body.preview-home .gallery-main-visual,
html[data-site-theme="gallery"] body.preview-home .gallery-main-photo,
html[data-site-theme="gallery"] body.preview-home .gallery-prof,
html[data-site-theme="gallery"] body.preview-home .gallery-original-portrait,
html[data-site-theme="gallery"] body.preview-home .prof,
html[data-site-theme="gallery"] body.preview-home .gallery-create-t,
html[data-site-theme="gallery"] body.preview-home [data-gallery-create-t],
html[data-site-theme="gallery"] body.preview-home .create_t,
html[data-site-theme="gallery"] body.preview-home #kenjiendo,
html[data-site-theme="gallery"] body.preview-home #kenjiendo_bk,
html[data-site-theme="gallery"] body.preview-home canvas[id^="kenjiendo"],
html[data-site-theme="gallery"] body.preview-home .gallery-source-title-fragments,
html[data-site-theme="gallery"] body.preview-home .gallery-title-canvas,
html[data-site-theme="gallery"] body.preview-home .gallery-title-bk,
html[data-site-theme="gallery"] body.preview-home .gallery-name-wire,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card canvas,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [class*="mask"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [id*="mask"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [class*="canvas"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [class*="fragment"],
html[data-site-theme="gallery"] body.preview-home .bkall,
html[data-site-theme="gallery"] body.preview-home .firstload,
html[data-site-theme="gallery"] body.preview-home .gallery-loader,
html[data-site-theme="gallery"] body.preview-home #sound_effect {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-profile-card {
  width: min(420px, calc(100vw - 64px)) !important;
  min-height: 340px !important;
  margin-top: 96px !important;
  margin-right: clamp(28px, 6vw, 92px) !important;
  overflow: visible !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .table,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .td {
  width: 100% !important;
  height: 108px !important;
  min-height: 0 !important;
  vertical-align: middle !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-profile-card #gallery-title,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .gallery-source-title {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  -webkit-text-stroke: 0 transparent !important;
  font-size: clamp(16px, 1.65vw, 22px) !important;
  letter-spacing: clamp(4px, .55vw, 7px) !important;
  line-height: 1.1 !important;
  text-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all .borders,
html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all .borders svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all .borders path,
html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all .borders rect,
html[data-site-theme="gallery"] body.preview-home .gallery-kenji-all .borders polyline {
  fill: none !important;
  stroke: #fff !important;
}

@media (max-width: 800px) {
  html[data-site-theme="gallery"] body.preview-home .gallery-profile-card {
    width: min(320px, calc(100vw - 40px)) !important;
    min-height: 260px !important;
    margin: 72px auto 0 !important;
  }
  html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .table,
  html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .td {
    height: 96px !important;
  }
}


/* Gallery title mask final guard v84: keep the Michel title as plain white text.
   Previous particle/canvas attempts created a local dark rectangle/gradient on
   hover in Chromium/Samsung.  The only black allowed here is the global page
   background, not a separate overlay around the title. */
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card *,
html[data-site-theme="gallery"] body.preview-home #gallery-title,
html[data-site-theme="gallery"] body.preview-home #gallery-title * {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-profile-card::before,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card::after,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card *::before,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card *::after,
html[data-site-theme="gallery"] body.preview-home #gallery-title::before,
html[data-site-theme="gallery"] body.preview-home #gallery-title::after,
html[data-site-theme="gallery"] body.preview-home #gallery-title *::before,
html[data-site-theme="gallery"] body.preview-home #gallery-title *::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Gallery title no-mask guard v85: the title hover experiment must not leave a
   local dark plate/gradient on top of the black page.  Keep the title rendered
   as plain text and make any stale canvas/fragment layers impossible to show,
   even if an older cached script created them before this stylesheet arrived. */
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card {
  isolation: auto !important;
  contain: none !important;
  background: transparent !important;
  background-image: none !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-profile-card #gallery-title,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .gallery-source-title {
  pointer-events: none !important;
  mix-blend-mode: normal !important;
  isolation: auto !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  text-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .gallery-name-wire,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .gallery-source-title-fragments,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .gallery-title-canvas,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card .gallery-title-bk,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card canvas,
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [class*="mask"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [id*="mask"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [class*="canvas"],
html[data-site-theme="gallery"] body.preview-home .gallery-profile-card [class*="fragment"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  pointer-events: none !important;
}

/* Kenji-inspired Michel studio theme v38. This intentionally moves away from
   the original fixed-coordinate homepage and uses self-contained hover line
   systems that fit Michel's blog/content layout. */
html[data-site-theme="gallery"] body.preview-home .gallery-studio {
  width: 100%;
  min-height: 100vh;
  padding: clamp(82px, 10vh, 126px) clamp(22px, 5vw, 76px) 140px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 50% 0 / 96px 100%,
    #000 !important;
  overflow: hidden;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio,
html[data-site-theme="gallery"] body.preview-home .gallery-studio * {
  box-sizing: border-box;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-section + .gallery-studio-section {
  margin-top: clamp(32px, 6vw, 78px);
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-grid,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-split,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-blog {
  display: grid;
  gap: clamp(22px, 3vw, 42px);
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, .62fr);
  align-items: stretch;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-split,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-blog {
  grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr);
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(30px, 3.6vw, 52px);
  color: #fff;
  background: rgba(0,0,0,.1) !important;
  isolation: isolate !important;
  overflow: visible !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card > :not(.borders) {
  position: relative;
  z-index: 1;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--intro {
  min-height: 388px !important;
  justify-content: space-between;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--name {
  min-height: 388px !important;
  justify-content: center;
  text-align: left;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--wide {
  min-height: 260px !important;
  padding-right: min(170px, 16vw);
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--posts {
  min-height: 560px !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--links,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--aside,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--app {
  min-height: 340px !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-kicker {
  display: block;
  margin: 0 0 24px;
  color: rgba(255,255,255,.48);
  font: 800 11px/1.2 Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .36em;
  text-transform: uppercase;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio h1,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card h1,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--name #gallery-title {
  height: auto !important;
  margin: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-align: left !important;
  font-family: Arial, Helvetica, ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 900 !important;
  line-height: .95 !important;
  letter-spacing: .14em !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card:not(.gallery-studio-card--name) h1 {
  max-width: 13ch;
  font-size: clamp(34px, 5.1vw, 68px) !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--wide h1,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--app h1,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--aside h1,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--links h1,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--posts h1 {
  max-width: 18ch;
  font-size: clamp(28px, 4vw, 50px) !important;
  line-height: 1.05 !important;
  letter-spacing: .12em !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--name #gallery-title {
  display: block !important;
  width: auto !important;
  font-size: clamp(32px, 4.4vw, 62px) !important;
  letter-spacing: .16em !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio p,
html[data-site-theme="gallery"] body.preview-home .gallery-studio em {
  max-width: 58ch;
  margin: 24px 0 0;
  color: rgba(255,255,255,.68);
  font: 700 clamp(13px, 1.35vw, 16px)/1.9 Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--name p {
  max-width: 28ch;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 156px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.82);
  color: #fff;
  background: transparent !important;
  font: 900 12px/1 Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .32em;
  text-align: center;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .btn-ghost {
  border-color: rgba(255,255,255,.32);
  color: rgba(255,255,255,.72);
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .album_slide {
  min-height: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .album_slide strong {
  margin: 18px 0 16px;
  color: #fff;
  font: 900 clamp(32px, 5vw, 66px)/.95 Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .16em;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .album_slide em,
html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-app-no {
  color: rgba(255,255,255,.66);
  font-style: normal;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-head .gallery-archive-link {
  flex: 0 0 auto;
  margin: 0 !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .news_body {
  width: auto !important;
  height: auto !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .news_scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .post {
  display: block;
  min-width: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: #fff;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .post h2 {
  margin: 0 0 10px;
  color: rgba(255,255,255,.42);
  font: 900 10px/1.6 Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .22em;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .post h1 {
  max-width: none;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 28px) !important;
  line-height: 1.15 !important;
  letter-spacing: .08em !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .post p {
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.8;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-all-posts {
  margin-top: 26px;
  max-height: 420px;
  overflow: auto;
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 18px;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-all-posts-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.62);
  font: 800 11px/1.5 Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-all-posts-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-all-item {
  display: grid;
  gap: 5px;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-all-item span,
html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-all-item em {
  color: rgba(255,255,255,.42);
  font: 800 10px/1.6 Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .14em;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .link_body ul {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .link_body ul li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  font: 900 12px/1 Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .28em;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .link_body ul li a:hover {
  color: #fff;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-ink-frame {
  position: absolute !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 0 !important;
  pointer-events: none;
  opacity: 1 !important;
  transform: none !important;
  overflow: visible;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-ink-frame svg {
  width: auto;
  height: auto;
  overflow: visible;
  display: block;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-ink-frame path {
  fill: none !important;
  stroke: rgba(255,255,255,.72) !important;
  stroke-width: 1px !important;
  opacity: 0 !important;
  stroke-linecap: square;
  stroke-linejoin: miter;
  visibility: hidden;
  shape-rendering: crispEdges;
  transition:
    stroke-dashoffset 1.2s cubic-bezier(.19, 1, .22, 1),
    stroke 260ms ease,
    opacity 260ms ease,
    visibility 0s linear 260ms;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-ink-frame path:nth-child(2) {
  transition-delay: 65ms, 0ms, 0ms, 260ms;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-ink-frame path:nth-child(3) {
  transition-delay: 130ms, 0ms, 0ms, 260ms;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .gallery-ink-frame path:nth-child(n+4) {
  transition-delay: 190ms, 0ms, 0ms, 260ms;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .trigger:hover .gallery-ink-frame,
html[data-site-theme="gallery"] body.preview-home .gallery-studio .trigger:focus-visible .gallery-ink-frame,
html[data-site-theme="gallery"] body.preview-home .gallery-studio .trigger.is-hovering .gallery-ink-frame {
  opacity: 1 !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio .trigger:hover .gallery-ink-frame path,
html[data-site-theme="gallery"] body.preview-home .gallery-studio .trigger:focus-visible .gallery-ink-frame path,
html[data-site-theme="gallery"] body.preview-home .gallery-studio .trigger.is-hovering .gallery-ink-frame path {
  stroke-dashoffset: 0 !important;
  stroke: #fff !important;
  opacity: 1 !important;
  visibility: visible;
  transition:
    stroke-dashoffset 1.5s cubic-bezier(.19, 1, .22, 1),
    stroke 260ms ease,
    opacity 260ms ease,
    visibility 0s linear 0s;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--intro .borders_1 {
  top: 132px !important;
  left: -42px !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--intro .borders_2 {
  top: auto !important;
  left: 52px !important;
  bottom: 48px !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--name .borders_3 {
  top: 116px !important;
  left: 28px !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--name .borders_4 {
  top: 210px !important;
  left: -28px !important;
  z-index: 2 !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--wide .borders_7,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--aside .borders_7,
html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--links .borders_7 {
  top: -42px !important;
  left: -24px !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--app .borders_5 {
  top: -86px !important;
  left: -18px !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--posts .borders_6 {
  top: 42px !important;
  left: 18px !important;
}

html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--posts .borders_6 svg {
  transform: scale(.9);
  transform-origin: top left;
}

@media (max-width: 920px) {
  html[data-site-theme="gallery"] body.preview-home .gallery-studio {
    padding-inline: 22px;
  }

  html[data-site-theme="gallery"] body.preview-home .gallery-studio-grid,
  html[data-site-theme="gallery"] body.preview-home .gallery-studio-split,
  html[data-site-theme="gallery"] body.preview-home .gallery-studio-blog,
  html[data-site-theme="gallery"] body.preview-home .gallery-studio .news_scroll {
    grid-template-columns: 1fr;
  }

  html[data-site-theme="gallery"] body.preview-home .gallery-studio-card,
  html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--intro,
  html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--name,
  html[data-site-theme="gallery"] body.preview-home .gallery-studio-card--posts {
    min-height: 0 !important;
  }

  html[data-site-theme="gallery"] body.preview-home .gallery-studio-head {
    display: grid;
  }
}

@media (max-width: 560px) {
  html[data-site-theme="gallery"] body.preview-home .gallery-studio {
    padding-top: 82px;
  }

  html[data-site-theme="gallery"] body.preview-home .gallery-studio-card {
    padding: 28px 24px;
  }

  html[data-site-theme="gallery"] body.preview-home .gallery-studio-actions {
    display: grid;
  }

  html[data-site-theme="gallery"] body.preview-home .gallery-studio .btn {
    width: 100% !important;
  }
}

/* Mobile sketch browsing pass: keep the desktop composition, but make touch screens
   read as a deliberate one-column site instead of a squeezed desktop page. */
@media (max-width: 760px) {
  html:not([data-site-theme="gallery"]),
  html:not([data-site-theme="gallery"]) body {
    max-width: 100%;
    overflow-x: clip;
  }

  html:not([data-site-theme="gallery"]) .site-shell,
  html:not([data-site-theme="gallery"]) .post-shell {
    width: 100%;
    max-width: 100vw;
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  }

  html:not([data-site-theme="gallery"]) .site-nav {
    width: 100%;
    max-width: 100%;
  }

  html:not([data-site-theme="gallery"]) .nav-links {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 7px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  html:not([data-site-theme="gallery"]) .nav-links a {
    flex: 0 0 auto;
    min-height: 36px;
    scroll-snap-align: start;
    touch-action: manipulation;
  }

  html:not([data-site-theme="gallery"]) .hero {
    padding-top: 64px;
    padding-bottom: 62px;
  }

  html:not([data-site-theme="gallery"]) .hero h1 {
    max-width: 100%;
    font-size: clamp(40px, 12.5vw, 54px);
    line-height: .96;
  }

  html:not([data-site-theme="gallery"]) .hero-copy {
    max-width: 100%;
  }

  html:not([data-site-theme="gallery"]) .all-posts-panel {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding-inline: 10px;
    overflow: hidden;
  }

  html:not([data-site-theme="gallery"]) .all-posts-list {
    border-left-width: 5px;
    border-right-width: 5px;
  }

  html:not([data-site-theme="gallery"]) .all-post-category {
    padding: 44px 8px 22px;
    overflow: hidden;
  }

  html:not([data-site-theme="gallery"]) .all-post-books {
    margin-inline: -2px;
    padding: 14px 16px 26px 12px;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  html:not([data-site-theme="gallery"]) .all-post-bay {
    min-width: max-content;
  }

  html:not([data-site-theme="gallery"]) .all-post-item {
    flex-basis: clamp(82px, 22vw, 94px);
  }

  html:not([data-site-theme="gallery"]) .all-post-divider {
    left: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
  }

  html:not([data-site-theme="gallery"]) .post-page {
    width: 100%;
    max-width: 100%;
    margin-bottom: 54px;
  }

  html:not([data-site-theme="gallery"]) .post-nav {
    margin-bottom: 34px;
  }

  html:not([data-site-theme="gallery"]) .post-top-row {
    flex-wrap: wrap;
  }

  html:not([data-site-theme="gallery"]) .post-hero {
    margin-inline: 0;
    padding: 22px 18px 26px;
  }

  html:not([data-site-theme="gallery"]) .post-hero h1,
  html:not([data-site-theme="gallery"]) .post-hero h1.is-cjk-title {
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.1;
  }

  html:not([data-site-theme="gallery"]) .post-excerpt {
    font-size: 16px;
    line-height: 1.55;
  }

  html:not([data-site-theme="gallery"]) .post-paper {
    width: 100%;
    max-width: 100%;
    padding: 28px 16px 34px;
    overflow: hidden;
  }

  html:not([data-site-theme="gallery"]) .post-content {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.72;
  }

  html:not([data-site-theme="gallery"]) .post-content h1 { font-size: clamp(27px, 8vw, 34px); }
  html:not([data-site-theme="gallery"]) .post-content h2 { font-size: clamp(24px, 7vw, 30px); }
  html:not([data-site-theme="gallery"]) .post-content h3 { font-size: clamp(21px, 6vw, 26px); }
  html:not([data-site-theme="gallery"]) .post-content h4 { font-size: clamp(18px, 5vw, 22px); }

  html:not([data-site-theme="gallery"]) .post-content pre {
    margin-inline: 0;
    padding: 12px;
    font-size: 11.5px;
  }

  html:not([data-site-theme="gallery"]) .post-content .code-block,
  html:not([data-site-theme="gallery"]) .post-content pre,
  html:not([data-site-theme="gallery"]) .post-content .table-wrap,
  html:not([data-site-theme="gallery"]) .post-content mjx-container,
  html:not([data-site-theme="gallery"]) .post-content .katex-display {
    max-width: 100%;
  }

  html:not([data-site-theme="gallery"]) .post-content img,
  html:not([data-site-theme="gallery"]) .post-content video,
  html:not([data-site-theme="gallery"]) .post-content iframe {
    max-width: 100%;
  }
}

@supports not (overflow: clip) {
  @media (max-width: 760px) {
    html:not([data-site-theme="gallery"]),
    html:not([data-site-theme="gallery"]) body {
      overflow-x: hidden;
    }
  }
}
