@import "https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap";
@import "https://fonts.googleapis.com/css2?family=Red+Hat+Mono:ital,wght@0,300..700;1,300..700&display=swap";
body {
  background-color: var(--bg-color) !important;
}
body,
main {
  height: 100%;
  font-family: literata, serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 0.95em;
  font-weight: 400;
  color: var(--font-color) !important;
}
::selection {
  background: var(--secondary);
  color: var(--selection-color);
}
.splash-screen {
  height: 100%;
}
nav a,
a {
  text-decoration: none !important;
}
nav a:hover,
a:hover,
.list-post-title a:hover {
  text-decoration: underline !important;
}
.list-post-title a {
  text-decoration: none !important;
}
a {
  color: var(--primary-variant) !important;
  text-decoration: underline !important;
  text-underline-offset: 0.375em !important;
}
a:hover {
  color: var(--primary) !important;
}
@media (min-width: 1200px) {
  .container {
    max-width: 720px !important;
  }
}
table:not(.gist-data *) {
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1200px) {
  table:not(.gist-data *) {
    width: 100%;
  }
}
th:not(.gist-data *),
td:not(.gist-data *) {
  padding: 0.5rem;
  text-align: left;
}
th:not(.gist-data *) {
  font-weight: 700;
  background-color: var(--bg-variant);
}
td:not(.gist-data *) {
  border-bottom: 2px solid var(--bg-variant) !important;
}
ul > li:has(input[type="checkbox"]) {
  list-style-type: none;
}
strong,
b {
  color: var(--primary-variant);
}
code {
  font-family:
    red hat mono,
    serif !important;
}
code:not(.highlight *) {
  color: var(--secondary);
  font-weight: 600;
  user-select: all;
  padding-left: 0.3em;
  padding-right: 0.3em;
}
.highlight > div {
  padding: 0 1em;
}
.highlight > pre {
  padding: 1em;
}
mark {
  background-color: var(--primary-variant) !important;
}
kbd {
  background-color: var(--bg-variant) !important;
  font-family:
    red hat mono,
    monospace !important;
  font-weight: 700;
}
.post article h1,
.post article h2,
.post article h3,
.post article h4,
.post article h5,
.post article h6 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
  font-weight: 700;
}
.post article h1::before {
  content: "# ";
  color: var(--secondary);
}
.post article h2::before {
  content: "## ";
  color: var(--secondary);
}
.post article h3::before {
  content: "### ";
  color: var(--secondary);
}
.post article h4::before {
  content: "#### ";
  color: var(--secondary);
}
.post article h5::before {
  content: "###### ";
  color: var(--secondary);
}
.post article h6::before {
  content: "###### ";
  color: var(--secondary);
}
.post article a:not(.footnote-backref, .footnote-ref)::after,
footer a::after {
  content: " ↗";
}
.post article a:has(img)::after {
  content: none !important;
}
.post .draft-label {
  font-weight: 700;
  color: var(--primary);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #6c757d !important;
}
.tags a {
  text-decoration: none !important;
}
.tags a:hover {
  background-color: var(--primary) !important;
  color: var(--selection-color) !important;
  text-decoration: none !important;
}
.underline {
  background-image: linear-gradient(
    to right,
    var(--secondary),
    var(--secondary)
  );
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  text-decoration: none !important;
}
img {
  max-width: 100%;
}
figure {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  width: 100%;
  text-align: center;
}
figure img {
  max-height: 500px;
  max-width: 100%;
  margin: 0 auto;
}
figure h4 {
  margin-bottom: 1em;
  font-size: 0.85rem !important;
  font-weight: lighter !important;
  position: relative;
  overflow: hidden;
  opacity: 0.9;
}
figure h4::before {
  content: "" !important;
}
blockquote {
  padding-left: 3rem !important;
  position: relative;
  overflow: hidden;
  &::before,
  &::after {
    position: absolute;
    color: #777;
  }
  &::before {
    content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23777777'><path d='M9.983 3v7.391C9.983 16.095 6.252 19.961 1 21l-.995-2.151C2.437 17.932 4 15.211 4 13H0V3h9.983zM24 3v7.391c0 5.704-3.748 9.571-9 10.609l-.996-2.151C16.437 17.932 18 15.211 18 13h-3.983V3H24z'/></svg>");
    left: 15px;
  }
  &::after {
    content: "";
    left: 20px;
    top: 25px;
    width: 1px;
    height: 100%;
    background-color: currentColor;
  }
  p {
    margin: 0;
  }
  p + p {
    margin-top: 1rem;
  }
}
.twitter-tweet,
.instagram-media {
  margin-right: auto !important;
  margin-left: auto !important;
}
.post-summary {
  margin: 0;
}
.post-row > .d-flex {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 1.25rem;
}
ul:has(input[type="checkbox"]) {
  margin-left: 0 !important;
  padding-left: 0.5rem !important;
}
li > input[type="checkbox"] {
  margin-right: 0.2rem;
}
.toc-title {
  font-size: smaller;
}
.toc {
  font-family:
    red hat mono,
    serif !important;
}
@media (min-width: 768px) {
  .toc {
    display: block !important;
    position: fixed !important;
    left: calc(50% + 360px + 20px);
    opacity: 0.2;
    transition: opacity 0.3s ease-in-out;
    &:hover {
      opacity: 1;
    }
  }
}
@media (max-width: 767px) {
  .breadcrumb {
    flex-direction: column !important;
    --bs-breadcrumb-item-padding-x: 0rem !important;
  }
  .breadcrumb-item::before {
    display: none !important;
  }
}
@media (min-width: 992px) {
  .toc {
    left: calc(50% + 480px + 20px);
  }
}
@media (min-width: 1200px) {
  .toc {
    left: calc(50% + 360px + 20px);
  }
}
#TableOfContents > ul {
  list-style-type: "//  ";
}
.badge {
  font-family:
    red hat mono,
    serif !important;
  font-weight: 600 !important;
}
hr {
  border: 0 !important;
  height: 10px;
  color: var(--secondary) !important;
  background-image: linear-gradient(
    -45deg,
    transparent,
    transparent 25%,
    currentColor 25%,
    currentColor 50%,
    transparent 50%,
    transparent 75%,
    currentColor 75%
  );
  background-size: 4px 4px;
}
.terms-char {
  &::before {
    content: "― ";
  }
}
.giscus {
  padding-top: 1.5rem;
}
.video-container {
  border: dashed 3px color-mix(in srgb, var(--secondary) 50%, transparent);
  padding: 1rem;
}
.video-container video {
  display: block;
  border-radius: 4px;
  width: 100%;
}
.video-container figure {
  margin: 0;
}
.video-container figcaption {
  margin: 0.5rem 0 0;
}
.svg-container {
  border: dashed 3px color-mix(in srgb, var(--secondary) 50%, transparent);
  padding: 1rem;
}
.svg-container img {
  display: block;
  width: 100%;
}
.svg-container figure {
  margin: 0;
}
.svg-container figcaption {
  margin: 0.5rem 0 0;
}
.img-container {
  border: dashed 3px color-mix(in srgb, var(--secondary) 50%, transparent);
  padding: 1rem;
}
.img-container img {
  display: block;
  width: 100%;
}
.img-container figure {
  margin: 0;
}
.img-container figcaption {
  margin: 0.5rem 0 0;
}
.timeline-year {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.timeline-year aside {
  font-family:
    red hat mono,
    monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 2rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  border-left: 2px solid color-mix(in srgb, var(--timeline-outline) 45%, transparent);
  padding-left: 1rem;
  padding-top: 0.5rem;
}
.timeline-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  flex: 1;
}
.timeline-item {
  flex: 0 1 calc(50% - 0.375rem);
  border: 2px solid color-mix(in srgb, var(--timeline-outline) 70%, transparent);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.timeline-item.practera-card {
  border: 1.5px solid transparent;
  border-radius: 0;
  background: var(--bg-color);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  border-image: linear-gradient(90deg, #7fb6ff 0%, #dcebff 58%, #ffffff 100%) 1;
}
.timeline-item.practera-card .timeline-date {
  color: #dcebff;
  opacity: 0.9;
}
.timeline-item.practera-card .timeline-title {
  color: #f8fbff;
}
.timeline-item.practera-card .timeline-desc {
  color: #d7e8ff;
  opacity: 0.95;
}
.timeline-item.practera-card .timeline-icons a {
  opacity: 0.9;
}
.timeline-item.practera-card .timeline-icons a:hover {
  opacity: 1;
}
.timeline-icons {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  gap: 0.25rem;
}
.timeline-icons a {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.timeline-icons a:hover {
  opacity: 1;
}
.timeline-icons a::after {
  content: none !important;
}
.icon-linkedin {
  background: url(images/LinkedIn.svg) 50% / contain no-repeat;
}
.icon-internet {
  background: url(images/globe.svg) 50% / contain no-repeat;
}
.icon-github {
  background:
    url(images/github.svg) 50% / contain no-repeat,
    #fff;
  border-radius: 50%;
}
.timeline-item.span-2 {
  flex: 0 1 100%;
}
.timeline-item.groq-nvidia {
  border: 2px solid;
  border-image: linear-gradient(135deg, orange, #0b0) 1;
}
.timeline-date {
  font-family:
    red hat mono,
    monospace;
  font-size: 0.75rem;
  opacity: 0.6;
  align-self: flex-end;
}
.timeline-title {
  font-weight: 700;
  font-size: 1.1rem;
}
.timeline-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}
@media (max-width: 600px) {
  .timeline-year {
    flex-direction: column;
    gap: 0.5rem;
  }
  .timeline-year aside {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: left;
    border-left: none;
    border-bottom: 2px solid
      color-mix(in srgb, var(--timeline-outline) 45%, transparent);
    padding-left: 0;
    padding-bottom: 0.5rem;
  }
  .timeline-item {
    flex: 0 1 100%;
  }
}
.shortcode-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.shortcode-grid .video-container,
.shortcode-grid .svg-container,
.shortcode-grid .img-container {
  float: none !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.post-giscus-stats {
  font-family:
    red hat mono,
    monospace;
  opacity: 0.5;
  white-space: nowrap;
  margin-top: 0.2rem;
}
.dark {
  --bg-color: #10263B;
  --bg-variant: #10263B;
  --primary: #a6f7b8;
  --primary-variant: #bdf5c4;
  --secondary: #fa89e7;
  --timeline-outline: #7fb6ff;
  --font-color: #f3f3f3;
  --selection-color: black;
}
:root {
  --bg-color: #fdfefa;
  --bg-variant: #e8e5ea;
  --primary: #3c5100;
  --primary-variant: #3c5100;
  --secondary: #704c8f;
  --timeline-outline: #2f80ed;
  --font-color: #210439;
  --selection-color: #ddf2a1;
}
.home-shell,
.home-section {
  width: 100%;
}

.home-section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.text-performance {
  color: #ff4500;
}

.text-groq {
  color: orange;
}

.text-nvidia {
  color: #0b0;
}

.timeline-award-strong {
  color: gold;
  font-weight: 700;
}

.timeline-award {
  color: gold;
  font-weight: 600;
}

/* gold outline */
.timeline-item.gold-outline {
  border-color: gold !important;
  transition: box-shadow 250ms ease, transform 200ms ease;
}

.is-muted-half {
  opacity: 0.5;
}

.theme-credit {
  font-size: 0.9em;
  opacity: 0.6;
}
