:root {
  --accent: #384E77;
  --bg_h: #f0f0f0;
  --bg: #f0f0f0;
  --bg_s: #f0f0f0;
  --bg_code: #f3f3f2;
  --bg1: #ebdbb2;
  --bg2: #d5c4a1;
  --bg3: #bdae93;
  --bg4: #a89984;
  --fg: #282828;
  --fg_code: #64a24e;
  --fg1: #3c3836;
  --fg2: #504945;
  --fg3: #6b6866;
  --fg4: #676767;
  --fg5: #969696;
  --red: #AD2111;
  --green: #9CC355;
  --yellow: #b57614;
  --blue: #0E9EE4;
  --purple: #8f3f71;
  --aqua: #427b58;
  --orange: #af3a03;
  --gray: #817d79;
  --red-dim: #cc2412;
  --green-dim: #98971a;
  --yellow-dim: #d79921;
  --blue-dim: #458598;
  --purple-dim: #b16286;
  --aqua-dim: #689d6a;
  --orange-dim: #d65d0e;
  --gray-dim: #817d79;
  --hover-bg: rgba(128, 128, 128, 0.12);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-sans-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --site-header-height: 54px;
}

@view-transition {
  navigation: auto;
}

/* UI primitives moved to ui.css */
.darkmode {
  --bg_h: #303030;
  --bg: #303030;
  --bg_s: #4a4a4a;
  --bg_code: #1a1a1a;
  --bg1: #2a2a2a;
  --bg2: #3a3a3a;
  --bg3: #4a4a4a;
  --bg4: #5a5a5a;
  --fg: #f0f0f0;
  --accent: #F7C74C;
  --fg_code: #8ec07c;
  --fg1: #f0f0f0;
  --fg2: #e0e0e0;
  --fg3: #d0d0d0;
  --fg4: #c0c0c0;
  --fg5: #b0b0b0;
  --red: #AD2111;
  --green: #9CC355;
  --yellow: #fabd2f;
  --blue: #0E9EE4;
  --purple: #d3869b;
  --aqua: #8ec07c;
  --gray: #817d79;
  --orange: #fe8019;
  --red-dim: #cc2412;
  --green-dim: #98971a;
  --yellow-dim: #d79921;
  --blue-dim: #458588;
  --purple-dim: #b16286;
  --aqua-dim: #689d6a;
  --gray-dim: #a89984;
  --orange-dim: #d65d0e;
  --hover-bg: rgba(128, 128, 128, 0.4);
}

.redmode {
  --bg_h: #303030;
  --bg: #303030;
  --bg_s: #4a4a4a;
  --bg_code: #1a1a1a;
  --bg1: #2a2a2a;
  --bg2: #3a3a3a;
  --bg3: #4a4a4a;
  --bg4: #5a5a5a;
  --fg: #ff4444;
  --accent: #ff4444;
  --fg_code: #ff4444;
  --fg1: #ff4444;
  --fg2: #ff4444;
  --fg3: #ff4444;
  --fg4: #ff4444;
  --fg5: #ff4444;
  --red: #ff4444;
  --green: #9CC355;
  --yellow: #fabd2f;
  --blue: #5fb6de;
  --purple: #d3869b;
  --aqua: #8ec07c;
  --gray: #817d79;
  --orange: #fe8019;
  --red-dim: #ff4444;
  --green-dim: #98971a;
  --yellow-dim: #d79921;
  --blue-dim: #458588;
  --purple-dim: #b16286;
  --aqua-dim: #689d6a;
  --gray-dim: #a89984;
  --orange-dim: #d65d0e;
  --hover-bg: rgba(255, 50, 50, 0.3);
}

/* Font-face rules moved to fonts.css to keep common.css lean */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--fg4) var(--bg);
  scroll-padding-top: calc(var(--site-header-height) + 1rem);
}
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
}
#main-title {
  font-family: var(--font-serif);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  text-wrap: balance;
  font-size: 17px;
  color: var(--fg4);
  position: relative;
  overflow: hidden;
  display: inline-block;
}
#main-title .title-main {
  font-style: normal;
  color: var(--fg) !important;
}
#main-title .title-sub {
  font-style: italic;
  color: var(--fg4);
  margin-left: 8px;
}
.navbar-logo {
  flex-shrink: 0;
}

#header .navbar-logo a,
#header .navbar-logo a:link,
#header .navbar-logo a:visited,
#header .navbar-logo a:active,
#header .navbar-logo a:hover {
  font-family: 'Chakra Petch' !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 17px !important;
  line-height: 25px !important;
  letter-spacing: 1.7px !important;
  color: var(--fg4);
  text-decoration: none !important;
  transition: opacity 0.3s ease-in-out;
}

body.darkmode #header .navbar-logo a,
body.darkmode #header .navbar-logo a:link,
body.darkmode #header .navbar-logo a:visited,
body.darkmode #header .navbar-logo a:active,
body.darkmode #header .navbar-logo a:hover,
body.redmode #header .navbar-logo a,
body.redmode #header .navbar-logo a:link,
body.redmode #header .navbar-logo a:visited,
body.redmode #header .navbar-logo a:active,
body.redmode #header .navbar-logo a:hover {
  color: var(--fg4) !important;
}

#header .navbar-logo a:hover {
  opacity: 0.8;
}

#header .navbar-logo-home { display: none; }

.nav-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.top-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.top-nav {
  font-family: var(--font-sans);
}

.top-nav a {
  font-family: var(--font-sans) !important;
  font-weight: 400;
  font-style: normal;
  color: var(--fg1) !important;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  align-items: center;
  height: 100%;
  opacity: 1;
}

.top-nav a:hover {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg) 20%, transparent);
  text-underline-offset: 2px;
}

.theme-float {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 999;
  border: 1px solid;
  cursor: pointer;
  background: transparent;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s ease;
  opacity: 1;
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  transform: rotate(-45deg);
}
body:not(.darkmode):not(.redmode) .theme-float {
  background: #f0f0f0;
  border-color: #303030;
  color: #303030;
}
body.darkmode .theme-float {
  background: #303030;
  border-color: #f0f0f0;
  color: #f0f0f0;
}
body.redmode .theme-float {
  background: #303030;
  border-color: #ff4444;
  color: #ff4444;
}
body:not(.darkmode):not(.redmode) .theme-float:hover,
body:not(.darkmode):not(.redmode) .theme-float:focus-visible {
  background: #303030;
  border-color: #f0f0f0;
  color: #f0f0f0;
}
body.darkmode:not(.meta-held) .theme-float:hover,
body.darkmode:not(.meta-held) .theme-float:focus-visible {
  background: #f0f0f0;
  border-color: #303030;
  color: #303030;
}
body.darkmode.meta-held .theme-float:hover,
body.darkmode.meta-held .theme-float:focus-visible {
  background: #ff4444;
  border-color: #303030;
  color: #303030;
}
body.redmode .theme-float:hover,
body.redmode .theme-float:focus-visible {
  background: #303030;
  border-color: #f0f0f0;
  color: #f0f0f0;
}
@media (max-width: 768px) {
  .theme-float {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

.hamburger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  margin-left: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--fg3);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease, bottom 0.25s ease;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { bottom: 12px; }

.hamburger.is-active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  bottom: auto;
  top: 19px;
  transform: rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}
.mobile-menu-nav a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--fg) !important;
  text-decoration: none;
}

#header .site-header, .hamburger { z-index: 1001; }

body.menu-open {
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  :root {
    --site-header-height: 50px;
  }

  #header .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: var(--bg);
    padding: 0.75rem 1rem;
    height: var(--site-header-height);
  }
  
  .navbar-logo a {
    font-size: 17px !important;
    line-height: 23px !important;
  }
  
  .top-nav {
  gap: 1.5rem;
  }
  
}
body:not(.darkmode):not(.redmode) #sun,
body:not(.darkmode):not(.redmode) #glasses {
  display: none;
}
body.darkmode:not(.meta-held) #sun,
body.darkmode:not(.meta-held) #moon {
  display: none;
}
body.darkmode.meta-held #moon,
body.darkmode.meta-held #glasses {
  display: none;
}
body.redmode #sun,
body.redmode #glasses {
  display: none;
}
a {
  text-decoration: none;
  transition:
    color 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}
a:link {
  color: var(--fg4);
}
a:hover,
a:visited {
  color: var(--fg4);
  opacity: 1;
}
::selection {
  background-color: rgba(0, 0, 0, 0.12);
}
.darkmode ::selection {
  background-color: rgba(240, 240, 240, 0.5);
  color: var(--fg);
}
.redmode ::selection {
  background-color: rgba(255, 50, 50, 0.5);
  color: var(--fg);
}
time {
  color: var(--fg4);
  min-width: 5rem;
}
hr {
  background-color: var(--fg4);
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  height: 1px;
}
#wrapper {
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  min-height: 100vh;
  overflow-wrap: break-word;
  padding: var(--site-header-height) 1rem 0;
}
@media screen and (max-width: 768px) {
  #wrapper:not(:has(.tinker-hero-section)) {
    padding-left: 0.33rem;
    padding-right: 0.33rem;
  }
}
.paginator {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
}

.paginator a {
  color: var(--accent) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

.paginator a:hover {
  color: var(--fg) !important;
  text-decoration: none !important;
}

.paginator-sep {
  color: var(--fg4);
  user-select: none;
}

#back-to-top,
#share-page {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

#back-to-top svg,
#share-page svg {
  opacity: 0;
  transition: opacity 0.15s;
}

#back-to-top:hover svg,
#share-page:hover svg {
  opacity: 1;
}

#back-to-top svg {
  margin-right: 4px;
}

#share-page svg {
  margin-left: 4px;
}
::-webkit-scrollbar {
  background-color: var(--bg);
  height: 8px;
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--fg4);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--fg1);
}
#header {
  align-items: center;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}
#header .site-header {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 1rem;
  right: 1rem;
  z-index: 1002;
  height: var(--site-header-height);
  padding: 0 1rem;
  background: var(--bg);
  will-change: height;
}
#header .site-header #header-logo {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 0;
  view-transition-name: header-logo;
}

#header .site-header #header-logo img {
  max-height: 112px;
  width: auto;
  will-change: height;
}
body.redmode #header-logo {
  background: #ff4444;
  -webkit-mask: url(/images/Logo/header-logo.png) no-repeat center / contain;
  mask: url(/images/Logo/header-logo.png) no-repeat center / contain;
}
body.redmode #header-logo img {
  opacity: 0;
}

::view-transition-old(root) {
  animation: vt-fade-out 120ms ease-out;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  animation: vt-fade-in 160ms ease-out;
  mix-blend-mode: normal;
}
html.theme-toggling::view-transition-old(root) {
  animation: none;
  mix-blend-mode: normal;
}
html.theme-toggling::view-transition-new(root) {
  animation: vt-expand 0.5s ease-in-out;
  mix-blend-mode: normal;
}
::view-transition-group(header-logo) {
  animation-duration: 180ms;
  animation-timing-function: ease-out;
}
::view-transition-old(header-logo),
::view-transition-new(header-logo) {
  animation-duration: 180ms;
  mix-blend-mode: normal;
}
@keyframes vt-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes vt-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes vt-expand {
  from { clip-path: circle(0 at var(--mouse-x) var(--mouse-y)); }
  to { clip-path: circle(150% at var(--mouse-x) var(--mouse-y)); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
  html.theme-toggling::view-transition-old(root),
  html.theme-toggling::view-transition-new(root) {
    animation: none !important;
  }
}

@media screen and (min-width: 769px) {
  #header .site-header {
    padding-left: 0.33rem;
    padding-right: 0.33rem;
  }
}

@media screen and (max-width: 768px) {
  #header .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: var(--bg);
  }

  #header .navbar-logo-home {
    display: flex;
    position: absolute;
    left: 1rem;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: none;
  }
  #header .navbar-logo-home.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
  #header .navbar-logo-home.animate {
    transition: opacity 180ms ease-in-out;
  }
}

@media screen and (max-width: 768px) {
  #wrapper { padding-top: var(--site-header-height); }
}

.navbar-spacer {
  flex-shrink: 0;
}
#header .site-header > h1 {
  text-align: center;
  margin: 0;
  padding: 0;
}
@media screen and (min-width: 768px) {
  #header .site-header > h1 {
    font-size: 2.8rem;
  }
}
#header .post-header {
  width: 100%;
  background-color: var(--bg);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#header .post-header .post-title-sticky {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--fg);
  margin: 0;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#header > nav {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 768px;
  margin-top: 10px;
  width: 100%;
}
#header > nav > span > a {
  font-size: 1rem;
  color: var(--fg2);
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition:
    color 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}
#header > nav > span > a:after {
  background-color: var(--fg3);
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  transform-origin: bottom right;
  transition:
    transform 0.25s ease-out,
    opacity 0.3s ease-in-out;
  opacity: 1;
}
#header > nav > span > a:hover {
  color: var(--fg);
  opacity: 1;
}
#header > nav > span > a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
  opacity: 0.5;
}
main {
  margin: 0;
  flex: 1;
}
#main {
  align-self: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  margin: auto;
  padding: 1rem;
  opacity: 0;
  animation: fadeIn 0.6s ease-in-out 0.2s both;
}
@media screen and (max-width: 768px) {
  #main {
    width: 100%;
  }
}
#footer {
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: normal;
  color: var(--fg4);
  align-items: center;
  display: flex;
  font-size: 13px;
  letter-spacing: -0.01em;
  flex-direction: column;
  margin-top: 5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
}

#footer * {
  font-family: inherit !important;
}
#footer > .footnote {
  text-align: center;
}
#footer > div > span > a {
  color: var(--fg4);
  text-decoration: none;
  position: relative;
  transition:
    color 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}
#footer > div > span > a:after {
  background-color: var(--fg4);
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 0.5px;
  bottom: 0;
  left: 0;
  transform-origin: bottom right;
  transition:
    transform 0.2s ease-out,
    opacity 0.3s ease-in-out;
  opacity: 1;
}
#footer > div > span > a:hover {
  color: var(--fg3);
  opacity: 1;
}
#footer > div > span > a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
  opacity: 0.5;
}

#footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

#footer > div > span {
  padding: 0;
}
.footer-favicon {
  display:inline-block;
  width:1.5em;
  height:1.5em;
  background:var(--fg);
  -webkit-mask:url(/images/favicons/Gilhari%20Labs%20favicon.png) no-repeat center / contain;
  mask:url(/images/favicons/Gilhari%20Labs%20favicon.png) no-repeat center / contain;
  vertical-align:middle;
  cursor:pointer;
  border-radius:4px;
}

@media (max-width: 640px) {
  .top-nav {
    display: none;
  }
  .hamburger {
    display: inline-block;
  }
  #header .site-header {
    padding-right: 0.6rem;
  }

  
  .navbar-logo a {
    font-size: 15px !important;
    line-height: 21px !important;
    letter-spacing: 1.5px !important;
  }
  
  .top-nav {
    gap: 1.2rem;
  }
  
  .top-nav a {
    font-size: 15px;
  }
  
  #footer {
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  #footer > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 1.25rem;
  }

  #footer > div > span {
    width: 100%;
    padding: 0;
    font-size: 15px;
  }

  #footer > div > .footer-separator {
    display: none;
  }
}

#sharingbuttons {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.icon svg {
  fill: var(--fg);
  margin-right: 0.3em;
  margin-left: 0.3em;
}
.taxonomy-svg {
  padding: 0;
  top: 0.125em;
  position: relative;
}
.row {
  margin-left: 2rem;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.logo-container {
  max-width: var(--container-4xl);
  margin-inline: auto;
  padding-block: 1rem 1.35rem;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

.logo {
  position: relative;
  overflow: hidden;
  background: white;
  color: black;
  border: solid 1px white;
  backface-visibility: hidden;
  animation: float 7s ease-in-out infinite;
  display: inline-block;
  font-size: clamp(3em, 8vw, 3.4em);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-wrap: stable;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 400;
  color: inherit !important;
  text-decoration: none !important;
}

.home-announcement {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  position: relative;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
.home-announcement .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  height: 26px;
  font-family: var(--font-sans);
  font-weight: 450;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg1);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 100px;
  transition: background-color 0.2s ease;
}
.home-announcement .announcement-text {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg);
  position: static;
  display: inline;
  text-decoration: none;
  max-width: 660px;
  text-wrap: balance;
}

@media (max-width: 600px) {
  .home-announcement {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: calc(100% - 2rem);
  gap: 1rem;
  }

  .home-announcement .announcement-text {
    order: 1;
    min-width: 0;
    display: block;
    text-align: center;
  }

  .home-announcement .pill {
    order: 2;
  }
}

.home-announcement:hover .announcement-text {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg) 20%, transparent);
  text-underline-offset: 2px;
}

.home-announcement:hover .pill {
  background: rgba(0, 0, 0, 0.06);
}

.track-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.track-label {
  display: inline-flex;
  align-items: center;
  padding: 1px 10px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.track-label.kt {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.track-label.ai {
  background: color-mix(in srgb, var(--yellow) 14%, transparent);
  color: var(--yellow);
}
.track-label.dc {
  background: color-mix(in srgb, var(--red) 14%, transparent);
  color: var(--red);
}

.logo:AFTER {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, #565151, #d2caca);
  mix-blend-mode: screen;
  animation: gradRotate 8s linear infinite;
  pointer-events: none;
  max-width: 100vw;
  overflow: clip;
  transform-origin: center;
  transform: translate(-50%, -50%);
}

.darkmode .logo {
  background: black;
  color: white;
  border-color: black;
}

.darkmode .logo:AFTER {
  background: linear-gradient(90deg, #b5b9ff, #ffd6e0, #c1f7d3, #ffe5b4, #f7c8ff, #b5b9ff, #ffd6e0);
  mix-blend-mode: multiply;
}

.redmode .logo {
  background: #1a0000;
  color: #ff4444;
  border-color: #1a0000;
}

.redmode .logo:AFTER {
  background: linear-gradient(90deg, #ff0000, #ff3333, #cc0000, #ff4444, #ff0000);
  mix-blend-mode: multiply;
}

@media(prefers-reduced-motion: reduce) {
  .logo {
      animation: none;
  }
}

@keyframes float {
  0% {
    transform: translateY(5px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(5px);
  }
}

@keyframes gradRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#main.index.content {
  max-width: calc(660px + 3.2rem);
}

#main.content > article.content {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

#main.index.list {
  max-width: calc(660px + 3.2rem);
}

#main.index.list .notes-page-title,
#main.index.list .content,
#main.index.list .post-group {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

#main.index .post-group ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

#main.index.content ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

#main.index.content ul li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

#main.index.content ul li a {
  color: var(--fg);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease-in-out;
}

#main.index.content ul li a:after {
  background-color: var(--fg);
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 0.5px;
  bottom: 0;
  margin-bottom: 2px;
  left: 0;
  transform-origin: bottom right;
  transition: transform 0.2s ease-out;
}

#main.index.content ul li a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

#main.index.content .job-location {
  color: var(--fg4);
  margin-left: 2rem;
}

@media (max-width: 600px) {
  #main.index.content ul li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #main.index.content .job-location {
    margin-left: 0;
  }
  
  #main.index.content h2[style*="text-align: center"] {
    text-align: left !important;
  }
}

#main.index.content p {
  margin-bottom: 1.8rem;
}

#main.index.content p.email-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;

}
#main.index.content p.email-link a:hover {
  color: var(--fg);
}

#main.index.content h1,
#main.index.content h2,
#main.index.content h3,
#main.index.content h4,
#main.index.content h5,
#main.index.content h6 {
  text-align: left !important;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.02em;
}

#main.index.content h2 {
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

#main.index.content h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

#main.index.list .post-group ul {
  padding-top: 1.6rem;
}

#main.index .post-group ul li {
  margin-bottom: 0;
  position: relative;
  padding-bottom: 2.5rem;
}

#main.index .post-group ul li + li {
  padding-top: 2.5rem;
}

#main.index .post-group ul li + li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid color-mix(in srgb, var(--fg4) 10%, transparent);
  pointer-events: none;
}

#main.index .post-group .post-item-link {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 2.5rem;
  align-items: baseline;
  line-height: 1.4;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}


#main.index .post-group .post-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

#main.index .post-group .post-info .post-subtitle {
  font-size: 0.95em;
  color: var(--fg1);
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

#main.index .post-group .post-info .author {
  display: block;
  font-size: 15px;
  color: var(--fg4);
  font-family: var(--font-sans);
  padding-top: 10px;
  transition: opacity 0.2s ease;
}

#main.index .post-group .post-item-link .desktop-time {
  text-align: right;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--fg4);
  white-space: nowrap;
  transition: opacity 0.2s ease;
  align-self: start;
  padding-top: 8px;
}



.mobile-time {
  display: none;
}

.author-date {
  display: block;
  font-size: 15px;
  color: var(--fg4);
  font-family: var(--font-sans);
}

@media screen and (max-width: 767px) {
  #main.index .post-group .post-item-link {
    display: block;
    padding: 1rem 1.6rem;
  }
  
  .desktop-time {
    display: none;
  }

  .mobile-time {
    display: block;
    font-size: 15px;
    color: var(--fg4);
    font-family: var(--font-sans);
    transition: opacity 0.2s ease;
  }
  
  #main.index .post-group .post-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 1170px) {
  #main.index,
  #main.content {
    padding-left: 1.3rem;
    padding-right: 1.3rem;
  }
}

#main.index .post-group .post-title {
  color: var(--fg);
  font-size: 1.25rem;
  font-weight: 500;
  position: relative;
  display: inline-block;
  transition: opacity 0.2s ease;
}

#main.index .post-group .post-item-link:hover .post-info .post-title {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg2) 20%, transparent);
  text-underline-offset: 2px;
}

#main.index .post-group .post-item-link:hover .post-info .post-subtitle {
  color: var(--fg3);
}

#main.index .post-group .post-info .post-subtitle {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg4);
  line-height: 1.4;
  transition: opacity 0.2s ease;
}
}

#main.index .post-group .post-item-link:hover .author-date,
#main.index .post-group .post-item-link:hover time,
#main.index .post-group .post-item-link:hover .desktop-time,
#main.index .post-group .post-item-link:hover .mobile-time {
  color: var(--fg3);
}

.notes-page-title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-align: left;
  margin: 0;
  padding-top: 1rem;
  line-height: 1.1;
}

.post-header-block {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.post-header-block h1 {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.3;
  margin: 1.5rem auto 0;
}

.post-header-block .post-subtitle {
  text-align: center;
  font-style: italic;
  color: var(--fg2);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.post-header-block .post-date {
  font-family: var(--font-sans);
  color: var(--fg4);
  font-size: 15px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto 2rem;
}

#main.index.list .content {
  font-style: normal;
}

#main.index.list.section-notes > .content {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg4);
}

#main.index.list .content .news-index-contact {
  font-family: var(--font-sans);
  font-size: 15px;
  padding-top: 1.5rem;
}

.chart-line,
.chart-line-2pane {
  margin: 1rem 0;
}
.chart-line .chart-title,
.chart-line-2pane .chart-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  dominant-baseline: hanging;
  fill: var(--fg);
}
.chart-line text,
.chart-line-2pane text {
  font-family: var(--font-sans);
  fill: var(--fg2);
  font-size: 14px;
}
.chart-line .axis-label,
.chart-line-2pane .axis-label {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  fill: var(--fg1);
}
.chart-line .axis-tick,
.chart-line-2pane .axis-tick { fill: var(--fg2); font-size: 0.8rem; }
.chart-line .gridline,
.chart-line-2pane .gridline {
  stroke: color-mix(in srgb, var(--fg4) 20%, var(--bg) 80%);
  stroke-width: 1;
}
.chart-line .tick,
.chart-line-2pane .tick { stroke: var(--fg4); }
.chart-line .axis-line,
.chart-line-2pane .axis-line { stroke: var(--fg4); stroke-width: 1; }
.chart-line .line, .chart-line-2pane .line {
  stroke: var(--series-color, var(--blue));
  stroke-width: var(--line-width, 1.7);
  fill: none;
}

figure.chart-line .line,
figure.chart-line-2pane .line {
  fill: none;
  stroke-width: 2px;
}
.chart-line .point,
.chart-line-2pane .point {
  fill: var(--series-color, var(--blue));
}
.chart-line .refline,
.chart-line-2pane .refline {
  stroke: var(--red);
  stroke-dasharray: 2 2;
  stroke-width: 2;
}
.chart-line .refline-label,
.chart-line-2pane .refline-label {
  font-family: var(--font-serif);
  fill: var(--fg2);
  font-size: 0.9rem;
}
.chart-line .legend-label,
.chart-line-2pane .legend-label { fill: var(--fg1); font-size: 14px; }
.chart-line .legend-swatch,
.chart-line-2pane .legend-swatch { fill: var(--series-color, var(--blue)); }
.chart-line .legend-bg,
.chart-line-2pane .legend-bg {
  fill: color-mix(in srgb, var(--bg) 92%, var(--fg4) 8%);
  stroke: color-mix(in srgb, var(--fg4) 20%, var(--bg) 80%);
}
.chart-line .series-color-box,
.chart-line-2pane .series-color-box {
  fill: var(--series-color, var(--blue));
  stroke: color-mix(in srgb, var(--fg4) 20%, var(--bg) 80%);
  stroke-width: 0.5;
}
.chart-line .series-label,
.chart-line-2pane .series-label {
  font-family: var(--font-serif);
  fill: var(--fg1);
  font-size: 0.9rem;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3px;
}
.chart-line .cursor-line,
.chart-line-2pane .cursor-line {
  stroke: var(--fg3);
  stroke-width: 1.2;
  stroke-opacity: 0.28;
  opacity: 0;
  transition: opacity 220ms ease-in-out;
}
.chart-line .tooltip .tooltip-bg,
.chart-line-2pane .tooltip .tooltip-bg {
  fill: var(--bg_s);
  stroke: color-mix(in srgb, var(--fg4) 30%, var(--bg) 70%);
}
.chart-line .tooltip .tooltip-text,
.chart-line-2pane .tooltip .tooltip-text {
  fill: var(--fg1);
  font-size: 13px;
}

.content figure svg,
figure svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

figure.half-width {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

figure.half-width.matmul,
figure.half-width + figcaption,
figure > figcaption {
  text-align: center;
}



.ascii-art {
  font-family: monospace !important;
  font-size: clamp(0.0rem, 1.2vw, 0.8rem);
  line-height: 1.2;
  text-align: center;
  overflow-x: clip !important;
  padding: 1rem !important;
}
