:root {
  --max-width: 1100px;
  --border-radius: 12px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-serif: "Roboto Slab", "Times New Roman", Times, serif;
  --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
    "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
    "Fira Mono", "Droid Sans Mono", "Courier New", monospace;

  --link-color: #1651b3;
  --link-color-hover: #d00;

  --bg-color: #fff;
  --text-color: #333;
  --text-size: 20;
  --base-line-height: 1.6;
  --leading: calc(var(--base-line-height) * 1rem);
  --site-width: 780px;

  --header-bg: #f2f2f2;

  --code-text-color: #464646;
  --code-bg-color: #f2f2f2;

  --skeleton-item-color-from: #dbdbdb;
  --skeleton-item-color-to: hsla(0, 0%, 86%, 0.5);
  --project-card-bg: #f7f7f9;
  --card-bg: #f7f7f9;

  --container-gap: 1.5rem;

  --highlight-bg: #ffff0029;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1e1e1e;
    --text-color: #fbfbfb;
    --header-bg: #000000;

    --link-color: #d4e4ff;
    --link-color-hover: rgb(255, 190, 190);

    --code-text-color: #dadada;
    --code-bg-color: #000000;

    --skeleton-item-color-from: #353535;
    --skeleton-item-color-to: #35353592;

    --project-card-bg: #000000;
    --card-bg: #000000;

  }
}
:root {
  --container-width: 980px;
  --container-gap: 1.5rem;

  /* Content Sizes */
  --content-text-width: 780px;
  --content-image-width: 960px;
  --content-image-offset: calc((var(--content-image-width) - var(--content-text-width)) / 2);

  /* Typography */
  --font-size-page-title: 2.5rem;      /* 40px - page title */
  --font-size-section-title: 2rem;     /* 32px - section title */
  --font-size-card-title: 1.375rem;    /* 22px - card title */
  --font-size-lead: 1.375rem;          /* 22px - lead/subtitle */
  --font-size-body: 1rem;              /* 16px - body text */
  --font-size-small: 0.875rem;         /* 14px - small text, meta */

  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-section: 6rem;
  --spacing-section-mobile: 4rem;
  --spacing-content: 3rem;
  --spacing-content-mobile: 2rem;
  --spacing-element: 1.5rem;
  --spacing-element-mobile: 1rem;
}
.case-card {
  max-width: var(--content-text-width);
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem;
}

.case-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-page-title);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-element);
  color: var(--text-color);
  text-align: center;
}

.case-subtitle {
  margin-top: 0;
  margin-bottom: var(--spacing-content);
  font-size: var(--font-size-lead);
  line-height: var(--line-height-base);
  font-family: var(--font-serif);
  color: var(--text-color);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.case-cover {
  margin-bottom: var(--spacing-content);
}

.case-cover img {
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: auto;
  max-width: var(--content-image-width);
  width: var(--content-image-width);
  margin-left: calc(-1 * var(--content-image-offset));
  margin-right: calc(-1 * var(--content-image-offset));
  transition: box-shadow 0.3s ease;
}

.case-cover img:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.case-content {
  max-width: var(--content-text-width);
}

.case-content img {
  border-radius: 0.4rem;
  box-shadow: 0 0 14px #0000003b;
  height: auto;
  max-width: var(--content-image-width);
  width: var(--content-image-width);
  margin-left: calc(-1 * var(--content-image-offset));
  margin-right: calc(-1 * var(--content-image-offset));
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  gap: 1rem;
  color: var(--code-text-color);
  padding-bottom: 2rem;
  padding-top: 0;
  margin-top: 2rem;
}

/* Cases Header */
.cases-header {
  background-color: white;
  padding: 1.5rem 0;
}

.cases-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cases-nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--link-color);
  transition: opacity 0.2s;
}

.cases-nav-link:hover {
  opacity: 0.7;
}

.cases-nav-link svg {
  width: 24px;
  height: 24px;
}

/* Case Links Section */
.case-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.case-link {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-base);
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.case-link:hover {
  opacity: 0.7;
}

.case-link::before {
  content: "→ ";
  margin-right: 0.5rem;
}

.back-link {
  display: inline-block;
  font-size: var(--font-size-body);
  line-height: var(--line-height-base);
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

.back-link::before {
  content: "← ";
  margin-right: 0.5rem;
}

/* Site Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--code-bg-color);
}

.site-footer-container {
  display: flex;
  gap: 4rem;
  justify-content: center;
  opacity: 0.5;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-link {
  font-size: var(--font-size-small);
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--link-color);
}

.footer-copyright {
  font-size: var(--font-size-small);
  color: var(--code-text-color);
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .case-cover img,
  .case-content img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .case-card {
    padding-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .case-title {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-element-mobile);
  }

  .case-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-content-mobile);
    padding-left: 0;
    padding-right: 0;
  }

  .case-cover {
    margin-bottom: var(--spacing-content-mobile);
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .case-cover img {
    border-radius: 0;
  }

  .case-content {
    padding-left: 0;
    padding-right: 0;
  }

  .case-meta {
    padding-left: 0;
    padding-right: 0;
  }
}
.hero {
  padding: var(--spacing-section) 0;
  margin-bottom: var(--spacing-section);
}

.hero-content {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-description {
  font-size: var(--font-size-lead);
  line-height: var(--line-height-base);
  font-family: var(--font-serif);
  margin-bottom: 2rem;
  color: var(--text-color);
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--code-bg-color);
  color: var(--code-text-color);
  border-radius: 6px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-sans);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
  line-height: var(--line-height-base);
  transition: opacity 0.2s;
}

.cta-button.size-sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--font-size-small);
}


.cta-button:hover {
  opacity: 0.85;
  color: var(--bg-color);
}

.cta-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
  line-height: var(--line-height-base);
  border-bottom: 2px solid var(--link-color);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.cta-link:hover {
  color: var(--link-color-hover);
  border-bottom-color: var(--link-color-hover);
}

.hero-photo {
  flex-shrink: 0;
  padding-top: 2rem;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
    margin-bottom: var(--spacing-section-mobile);
  }

  .hero-content {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }
}
/* Section Styles */
.section {
  margin-bottom: var(--spacing-section);
}

.section-container {
  max-width: var(--container-width);
  padding-left: var(--container-gap);
  padding-right: var(--container-gap);
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--font-size-section-title);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-serif);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-content);
  color: var(--text-color);
}

/* Cases Section */
.cases-section {
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 12px;
}

/* Featured Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--project-card-bg);
  border: 2px solid var(--code-bg-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--link-color);
}

.project-image {
  width: 100%;
  height: 240px;
  background-color: var(--skeleton-item-color-from);
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title {
  font-size: var(--font-size-card-title);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-serif);
  margin: 1.75rem 1.75rem 1rem;
  color: var(--text-color);
  line-height: var(--line-height-tight);
}

.project-title a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.project-title a:hover {
  color: var(--link-color);
}

.project-description {
  font-size: var(--font-size-body);
  line-height: var(--line-height-base);
  margin: 0 1.75rem 1.75rem;
  color: var(--code-text-color);
}

/* Work Experience Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  border-left: 2px solid var(--code-bg-color);
  position: absolute;
  top: 3rem;
  bottom: 0;
  left: 0;
}

.experience-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -2.62rem;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--text-color);
  border-radius: 50%;
  border: 3px solid var(--bg-color);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.experience-title {
  font-size: var(--font-size-card-title);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-serif);
  line-height: var(--line-height-tight);
  color: var(--text-color);
}

.experience-period {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--code-text-color);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.experience-description {
  font-size: var(--font-size-body);
  line-height: var(--line-height-base);
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.experience-stack {
  font-size: var(--font-size-small);
  font-style: italic;
  color: var(--code-text-color);
  margin-top: 0.5rem;
}

/* Education */
.education-item {
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 12px;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.education-title {
  font-size: var(--font-size-card-title);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-serif);
  line-height: var(--line-height-tight);
  color: var(--text-color);
}

.education-period {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--code-text-color);
  font-family: var(--font-mono);
}

.education-degree {
  font-size: var(--font-size-body);
  line-height: var(--line-height-base);
  color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section {
    margin-bottom: var(--spacing-section-mobile);
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-content-mobile);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card {
    border-radius: 12px;
  }

  .project-image {
    height: 200px;
  }

  .project-title {
    font-size: 1.25rem;
    margin: 1.5rem 1.5rem 1rem;
  }

  .project-description {
    margin: 0 1.5rem 1.5rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .experience-item {
    padding-left: 1.5rem;
  }

  .experience-item::before {
    left: -1.9rem;
  }

  .experience-header,
  .education-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .education-item {
    padding: 1.5rem;
  }
}
.login-card {
  display: grid;
  margin: 5vw auto 0;
  max-width: 400px;
  gap: 1rem;
}

.login-card .notice {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  background-color: var(--highlight-bg);
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-control {
  display: flex;
  gap: 1rem;
}

.login-control label {
  flex: 0 0 100px;
  line-height: 32px;
}

.login-control input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  color: #222;
}

.login-form-submit {
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  color: #fff;
  border: none;
  background-color: var(--link-color);
  font-size: 1rem;
  width: 100%;
  display: block;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: var(--base-line-height);
  font-size: calc(var(--text-size) / 18 * 100%);
  font-family: var(--font-sans);
}

a {
  color: var(--link-color);
}
a:hover {
  color: var(--link-color-hover);
}

.link {
  text-decoration: none;
}

figure {
  text-align: center;
}
figcaption {
  margin-bottom: 2rem;
  opacity: 0.75;
  font-size: 0.85rem;
}
@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
}

p {
  line-height: calc(var(--leading) * 1.2);
  margin-top: var(--leading);
  margin-bottom: var(--leading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
}

h2 {
  margin-block-start: 1.5rem;
  margin-block-end: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}
h3,
h4,
h5 {
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

ul {
  margin-block-end: 1.25rem;
  margin-inline-start: 3rem;
  list-style-type: "—";
}

li {
  padding-left: 0.5rem;
}

.note {
  margin-bottom: 4rem;
}

blockquote {
  margin-block-start: 1.5rem;
  margin-block-end: 1.5rem;
  padding: 1rem 4rem;
  position: relative;
  color: var(--code-text-color);
  background-color: var(--code-bg-color);
  border-radius: 1rem;
}

blockquote::before,
blockquote::after {
  font-size: 5rem;
  line-height: 0;
  position: absolute;
}

blockquote::before {
  content: "“";
  left: 1rem;
  top: 4rem;
}

blockquote::after {
  content: "”";
  right: 1rem;
  bottom: 1rem;
}

.svg-icon {
  width: 1.2em;
  height: auto;
  vertical-align: middle;
  top: -0.2em;
  position: relative;
}

.svg-icon + span {
  margin-left: 0.25rem;
}

.container {
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--container-gap);
}

.tag-label {
  background-color: var(--highlight-bg);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-block-end: 2.5rem;
  margin-block-start: 2.5rem;
}
/* Notes Header */
.notes-header {
  padding: 1.5rem 0;
  margin-bottom: var(--spacing-content);
}

.notes-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.notes-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.notes-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notes-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-color);
  transition: opacity 0.2s, color 0.2s;
  padding: 0.5rem;
  border-radius: 6px;
}

.notes-nav-link svg {
  width: 24px;
  height: 24px;
}

.notes-nav-link:hover {
  opacity: 0.7;
  color: var(--link-color);
}

.notes-nav-link.is-active {
  background-color: var(--code-bg-color);
  color: var(--link-color);
}

.notes-nav-search {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .notes-header {
    padding: 1rem 0;
    margin-bottom: var(--spacing-content-mobile);
  }

  .notes-nav {
    gap: 0.5rem;
  }

  .notes-nav-left {
    gap: 0.5rem;
  }

  .notes-nav-link {
    padding: 0.375rem;
  }

  .notes-nav-link svg {
    width: 20px;
    height: 20px;
  }
}
.note {
  max-width: var(--content-text-width);
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem;
}

.note-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-page-title);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-element);
  color: var(--text-color);
  text-align: center;
}

.note-title a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.note-title a:hover {
  color: var(--link-color);
}

.note-content {
  max-width: var(--content-text-width);
}

.note-content img {
  border-radius: 0.4rem;
  box-shadow: 0 0 14px #0000003b;
  height: auto;
  max-width: var(--content-image-width);
  width: var(--content-image-width);
  margin-left: calc(-1 * var(--content-image-offset));
  margin-right: calc(-1 * var(--content-image-offset));
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  gap: 0.5rem;
  color: var(--code-text-color);
  padding-bottom: 2rem;
  padding-top: 0;
  margin-top: -0.5rem;
  margin-bottom: var(--spacing-content);
}

.note-meta-separator {
  color: var(--code-text-color);
  opacity: 0.5;
}

.note-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: var(--font-size-small);
  color: var(--code-text-color);
  margin-top: 1rem;
}

.note-footer .time {
  color: var(--code-text-color);
}

.note-footer .edit-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color 0.2s;
}

.note-footer .edit-link:hover {
  color: var(--link-color-hover);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .note-content img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .note {
    padding-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .note-title {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-element-mobile);
  }

  .note-meta {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: var(--spacing-content-mobile);
  }

  .note-content {
    padding-left: 0;
    padding-right: 0;
  }
}
.pagy.nav,
.pagination {
  margin-bottom: 2rem;
  justify-content: center;
  display: flex;
  gap: 0.5rem;
}

[aria-disabled="true"] {
  pointer-events: none;
  color: var(--text-color);
} 
/* Search Page Styles */
.search-header {
  margin-bottom: var(--spacing-content);
  text-align: center;
}

.search-header h1,
.search-header h2 {
  font-family: var(--font-serif);
  font-size: var(--font-size-page-title);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: 1rem;
  color: var(--text-color);
}

.search-stats {
  font-size: var(--font-size-small);
  color: var(--code-text-color);
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrapper .form-control {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  border: 2px solid var(--code-bg-color);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-wrapper .form-control:focus {
  border-color: var(--link-color);
}

.search-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  border-radius: 8px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.search-btn:hover {
  opacity: 0.85;
}

.search-results {
  margin-top: var(--spacing-content);
}

.note-excerpt {
  color: var(--code-text-color);
  margin-bottom: 1rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results > p {
  font-size: var(--font-size-lead);
  color: var(--text-color);
  margin-bottom: 3rem;
}

.search-suggestions,
.search-tips {
  margin-top: 3rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-suggestions h3,
.search-tips h3 {
  font-family: var(--font-serif);
  font-size: var(--font-size-card-title);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  color: var(--text-color);
}

.tag-cloud ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-cloud li {
  padding: 0;
}

.tag-cloud .tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--code-bg-color);
  color: var(--code-text-color);
  border-radius: 6px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.tag-cloud .tag:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.tag-cloud sup {
  margin-left: 0.25rem;
  opacity: 0.7;
}

.search-tips ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  padding: 0;
}

.search-tips li {
  padding: 0.25rem 0;
  color: var(--text-color);
}

.search-intro {
  text-align: center;
  padding: 3rem 1rem;
}

.search-intro > p {
  font-size: var(--font-size-lead);
  color: var(--code-text-color);
  margin-bottom: 3rem;
}

.recent-posts {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.recent-posts h3 {
  font-family: var(--font-serif);
  font-size: var(--font-size-card-title);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  color: var(--text-color);
}

.recent-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-posts li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--code-bg-color);
}

.recent-posts li:last-child {
  border-bottom: none;
}

.recent-posts a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.recent-posts a:hover {
  color: var(--link-color);
}

/* Navigation Search Toggle */
.search-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-toggle {
  display: none;
}

.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: opacity 0.2s, background-color 0.2s;
}

.search-icon:hover {
  opacity: 0.7;
  background-color: var(--code-bg-color);
}

.search-icon svg {
  width: 24px;
  height: 24px;
}

.search-form {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  width: var(--search-form-width, 0);
  overflow: hidden;
  transition: width 0.3s ease;
  background: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  z-index: 100;
}

.search-toggle:checked ~ .search-form {
  --search-form-width: 320px;
}

.search-form input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-body);
  color: var(--text-color);
  outline: none;
}

.search-form input[type="text"]::placeholder {
  color: var(--code-text-color);
  opacity: 0.6;
}

.search-form button {
  border: none;
  background: var(--link-color);
  color: white;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.search-form button:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .search-icon svg {
    width: 20px;
    height: 20px;
  }

  .search-icon {
    padding: 0.375rem;
  }

  .search-form input[type="text"],
  .search-form button {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }
}
:root {
  --hg-bg-color: #eff1f5;
  --hg-text-color: #4c4f69;
  --hg-highlight-bg: #ccd0da;
  --hg-comment-color: #8c8fa1;
  --hg-error-color: #d20f39;
  --hg-keyword-color: #8839ef;
  --hg-literal-color: #40a02b;
  --hg-operator-color: #04a5e5;
  --hg-name-color: #1e66f5;
  --hg-number-color: #fe640b;
  --hg-string-color: #40a02b;
  --hg-builtin-color: #179299;
  --hg-decorator-color: #209fb5;
  --hg-regex-color: #df8e1d;
  --hg-deleted-color: #d20f39;
  --hg-inserted-color: #40a02b;
  --hg-output-color: #6c6f85;
  --hg-prompt-color: #6c6f85;
  --hg-subheading-color: #1e66f5;

  --hg-code-font: var(--font-mono);
}

@media (prefers-color-scheme: dark) {
  :root {
    --hg-bg-color: #1a1b26;
    --hg-text-color: #a9b1d6;
    --hg-highlight-bg: #2f3549;

    --hg-comment-color: #565f89;
    --hg-error-color: #f7768e;
    --hg-keyword-color: #bb9af7;
    --hg-literal-color: #9ece6a;
    --hg-operator-color: #89ddff;
    --hg-name-color: #7aa2f7;
    --hg-number-color: #ff9e64;
    --hg-string-color: #9ece6a;
    --hg-builtin-color: #a9b1d6;
    --hg-decorator-color: #7dcfff;
    --hg-regex-color: #73daca;

    --hg-deleted-color: #f7768e;
    --hg-inserted-color: #9ece6a;
    --hg-output-color: #565f89;
    --hg-prompt-color: #565f89;
    --hg-subheading-color: #7aa2f7;
  }
}

.highlight {
  background: var(--hg-bg-color);
  color: var(--hg-text-color);
  border-radius: 5px;
  padding: 1em;
  margin: 0.5em 0;
  overflow-x: auto;
}

.highlight pre {
  margin: 0;
  padding: 0;
}

.highlight code {
  font-family: var(--hg-code-font);
  font-size: 0.9em;
  white-space: pre;
  display: block;
}

.highlight .line {
  display: block;
  width: 100%;
}

p code,
li code,
td code {
  background-color: var(--hg-bg-color);
  color: var(--hg-name-color);
  font-family: var(--hg-code-font);
  font-size: 0.9em;
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.highlight .hll {
  background-color: var(--hg-highlight-bg);
}
.highlight .c,
.highlight .cm,
.highlight .cp,
.highlight .c1,
.highlight .cs {
  color: var(--hg-comment-color);
  font-style: italic;
}
.highlight .err {
  color: var(--hg-error-color);
  background-color: var(--hg-bg-color);
}
.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr {
  color: var(--hg-keyword-color);
}
.highlight .l,
.highlight .m,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: var(--hg-number-color);
}
.highlight .o,
.highlight .ow {
  color: var(--hg-operator-color);
}
.highlight .p {
  color: var(--hg-text-color);
}
.highlight .n,
.highlight .nn,
.highlight .py,
.highlight .nl,
.highlight .ni {
  color: var(--hg-text-color);
}
.highlight .na,
.highlight .nc,
.highlight .nf {
  color: var(--hg-name-color);
}
.highlight .no,
.highlight .ne {
  color: var(--hg-error-color);
}
.highlight .nt {
  color: var(--hg-decorator-color);
}
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi {
  color: var(--hg-keyword-color);
}
.highlight .s,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .s2,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .s1,
.highlight .ss {
  color: var(--hg-string-color);
}
.highlight .sr {
  color: var(--hg-regex-color);
}
.highlight .nb,
.highlight .bp {
  color: var(--hg-builtin-color);
}
.highlight .w {
  color: var(--hg-text-color);
}

.highlight .gd {
  color: var(--hg-deleted-color);
}
.highlight .gi {
  color: var(--hg-inserted-color);
}
.highlight .go {
  color: var(--hg-output-color);
}
.highlight .gp {
  color: var(--hg-prompt-color);
  font-weight: bold;
}
.highlight .gs {
  font-weight: bold;
}
.highlight .gu {
  color: var(--hg-subheading-color);
  font-weight: bold;
}
.highlight .gt {
  color: var(--hg-error-color);
}

code {
  font-family: var(--hg-code-font);
  font-size: 0.9em;
}
.tags {
  display: inline-block;
}

.tags-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 0.5rem;
  position: relative;
  overflow-x: auto;
}

.tag-link {
  white-space: nowrap;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *




 */
