/* Hugo site additions. The original visual tokens and utility CSS are in site.css. */
/* The site reads with system fonts immediately; Code is only a label accent. */
@font-face { font-family: "Google Sans Code"; src: url("/fonts/da468df88542c99b.woff") format("woff"); font-display: optional; font-style: normal; font-weight: 600; }
:root { --font-google-sans-code: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) { --background: #212737; --foreground: #eaedf3; --accent: #72e6a1; --accent-foreground: #10251a; --muted: #343f60; --muted-foreground: #afb9ca; --border: #397a57; }
}
/* Open the system type slightly without making paragraphs feel loose. */
body { letter-spacing: 0.012em; }
h1 { letter-spacing: 0.045em; }
h2 { letter-spacing: 0.025em; }
.text-sm.uppercase { font-family: "Google Sans Code", ui-monospace, monospace; font-weight: 600; letter-spacing: 0.14em; }
.site-icon { display: block; width: 1.35rem; height: 1.35rem; stroke: currentColor; }
.cv-download-button { display: inline-flex; align-items: center; gap: .45rem; margin-top: .7rem; padding: .5rem .75rem; color: var(--accent); border: 1px solid var(--accent); border-radius: .35rem; font-size: .9rem; font-weight: 600; text-decoration: none; transition: color .16s ease, background-color .16s ease, transform .16s ease; }
.cv-download-button:hover { color: var(--accent-foreground); background: var(--accent); transform: translateY(-1px); }
[data-theme="dark"] .site-icon { filter: invert(1); }
.site-header { position: relative; }
.site-header > div { border-bottom-color: var(--accent); }
.border-b.border-border,
.border-t.border-border,
.app-prose hr { border-color: var(--accent) !important; }
.experience-list,
.skills-list { gap: 3.5rem; }
.education-highlight { display: grid; gap: 2rem; align-items: start; }
.oisp-scholarship-card { max-width: 23rem; margin: 0; padding: .75rem; background: color-mix(in srgb, var(--background) 84%, var(--muted)); border: 1px solid var(--accent); border-radius: .65rem; box-shadow: 0 .75rem 2rem color-mix(in srgb, #000 12%, transparent); }
.oisp-scholarship-card a { display: block; }
.oisp-scholarship-card img { display: block; width: 100%; height: auto; border-radius: .3rem; }
.oisp-scholarship-card figcaption { margin-top: .7rem; color: var(--accent); font-size: .875rem; font-weight: 700; }
.oisp-scholarship-card--page { margin-top: 1.5rem; }
.oisp-scholarship-card a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 3px; }
@media (min-width: 700px) { .education-highlight { grid-template-columns: minmax(0, 1fr) minmax(15rem, 23rem); } }
.project-tech-stack > li { border-color: var(--accent) !important; }
.desktop-menu { display: flex; align-items: center; gap: 1rem; list-style: none; }
.desktop-menu a { display: block; padding: .25rem .5rem; font-weight: 500; }
.desktop-menu a:hover { color: var(--accent); }
.theme-switch { padding: .35rem; border-radius: .25rem; }
.theme-switch .theme-icon-light { display: none; }
[data-theme="dark"] .theme-switch .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-switch .theme-icon-light { display: block; }
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; padding: .5rem; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu ul { display: none; list-style: none; margin: 0; padding: .75rem; gap: .25rem; }
.mobile-menu[open] ul { display: grid; position: absolute; right: 1rem; z-index: 10; width: 11rem; background: var(--background); border: 1px solid var(--border); }
.mobile-menu a { display: block; padding: .55rem .75rem; font-weight: 500; }
@media (max-width: 639px) { .desktop-menu { display: none; } .mobile-menu { display: block; } }

/* Give the home-page project list the cadence of a project index, not a dense tag list. */
.featured-projects { display: grid; margin-top: 2.75rem; border-top: 1px solid var(--accent); }
.featured-project { padding-block: 2.5rem; border-bottom: 1px solid var(--accent); }
.project-meta { color: var(--muted-foreground); font-size: .8125rem; font-weight: 600; letter-spacing: .025em; }
.project-title { margin-top: .65rem; font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
.project-title a { text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.project-title a:hover { color: var(--accent); text-decoration: underline; }
.project-title-row { display: flex; align-items: flex-start; gap: .5rem; }
.project-title-row > a:first-child, .project-title-row > h1 { min-width: 0; }
.project-title-row > a:first-child { flex: 1 1 auto; }
.project-description { max-width: 43rem; margin-top: 1rem; line-height: 1.65; }
.project-github-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 1rem; padding: .4rem; border: 1px solid var(--accent); border-radius: .35rem; transition: background-color .16s ease, transform .16s ease; }
.project-github-link:hover, .project-github-link:focus-visible { background: color-mix(in srgb, var(--background) 70%, var(--muted)); outline: 0; transform: translateY(-1px); }
.project-github-link:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.project-github-link--title { flex: 0 0 auto; margin: .1rem 0 0; padding: .25rem; }
.project-github-link--title .site-icon { width: 1.1rem; height: 1.1rem; }
.project-repository { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-weight: 600; }
.project-github-link--repository { margin: 0; padding: .3rem; }
.project-filters { margin-top: 3rem; padding: 1.25rem; background: color-mix(in srgb, var(--background) 82%, var(--muted)); border: 1px solid var(--border); border-radius: .65rem; }
.project-filters-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.project-filters-heading h2 { font-size: 1.2rem; font-weight: 700; }
.project-filter-reset { padding: .35rem .55rem; color: var(--accent); border: 1px solid transparent; border-radius: .3rem; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.project-filter-reset:hover, .project-filter-reset:focus-visible { border-color: var(--accent); outline: 0; }
.project-filter-reset:disabled { opacity: .45; cursor: default; }
.project-filter-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.project-filter-field { position: relative; min-width: 0; }
.project-filter-label { display: block; margin-bottom: .45rem; color: var(--foreground); font-size: .9rem; font-weight: 600; }
.project-filter-trigger { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: .7rem .75rem; color: var(--foreground); background: var(--background); border: 1px solid var(--border); border-radius: .4rem; font: inherit; font-weight: 400; text-align: start; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.project-filter-trigger:hover, .project-filter-trigger[aria-expanded="true"] { background: color-mix(in srgb, var(--background) 75%, var(--muted)); border-color: var(--accent); }
.project-filter-trigger:focus-visible { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent); outline-offset: 1px; }
.project-selected-technologies { display: inline-block; max-width: 100%; margin-top: .5rem; padding: .3rem .55rem; overflow-wrap: anywhere; color: var(--accent-foreground); background: var(--accent); border-radius: 999px; font-size: .8rem; line-height: 1.3; }
.project-selected-technologies[hidden] { display: none; }
.project-filter-chevron { color: var(--accent); font-size: 1.2em; line-height: .7; transition: transform .16s ease; }
.project-filter-trigger[aria-expanded="true"] .project-filter-chevron { transform: rotate(180deg); }
.project-filter-menu { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + .4rem); max-height: 16rem; padding: .35rem; overflow-y: auto; background: var(--background); border: 1px solid var(--accent); border-radius: .5rem; box-shadow: 0 .75rem 2rem color-mix(in srgb, #000 28%, transparent); }
.project-filter-menu[hidden] { display: none; }
.project-filter-menu [role="option"] { display: block; width: 100%; padding: .65rem .7rem; color: var(--foreground); background: transparent; border: 0; border-radius: .3rem; font: inherit; text-align: start; cursor: pointer; }
.project-filter-menu [role="option"]:hover, .project-filter-menu [role="option"]:focus-visible, .project-filter-menu [role="option"][aria-selected="true"] { color: var(--accent-foreground); background: var(--accent); outline: 0; }
.project-filter-menu [role="option"][aria-selected="true"]::before { content: "✓"; display: inline-block; width: 1.25rem; color: currentColor; font-weight: 700; }
.project-filter-results { min-height: 1.4em; margin-top: 1rem; color: var(--muted-foreground); font-size: .875rem; }
.project-list { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.project-list article[hidden] { display: none; }
.project-card-enter { animation: project-card-enter .2s ease-out; }
.project-filter-empty { margin-top: 2.5rem; color: var(--muted-foreground); }
@keyframes project-card-enter { from { opacity: .35; transform: translateY(.35rem); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .project-card-enter { animation: none; } }
@media (min-width: 700px) { .project-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .project-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pinned-post-star { color: var(--accent); margin-right: .35rem; }
.contact-form-section { padding-block: 4rem; border-top: 1px solid var(--accent); }
.contact-page h2 { margin-top: 1.35em !important; margin-bottom: .65em !important; }
.contact-page ul { margin-top: .7em !important; margin-bottom: .7em !important; }
.contact-page .contact-form-section { margin-top: 2rem; padding-block: 2.5rem; }
.contact-form-heading { max-width: 42rem; }
.contact-form-heading h2 { margin-top: .75rem; margin-bottom: 0 !important; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
.contact-form-heading p:last-child { margin-top: .75rem; color: var(--muted-foreground); }
.contact-form { display: grid; gap: .85rem; margin-top: 1rem; }
.contact-form-fields { display: grid; gap: .85rem; }
.contact-form label { display: grid; gap: .35rem; color: var(--foreground); font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: .95rem 1rem; color: var(--foreground); background: color-mix(in srgb, var(--background) 82%, var(--muted)); border: 1px solid var(--border); border-radius: .65rem; font: inherit; font-weight: 400; transition: border-color .16s ease, box-shadow .16s ease; }
.contact-form textarea { resize: vertical; min-height: 10rem; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-foreground); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.contact-form-submit { justify-self: start; padding: .8rem 1.2rem; color: var(--accent-foreground); background: var(--accent); border: 1px solid var(--accent); border-radius: .45rem; font-weight: 700; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.contact-form-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.contact-form-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 3px; }
.contact-form-status { min-height: 1.5em; margin: 0 !important; color: var(--muted-foreground); font-size: .9rem; }
@media (min-width: 700px) { .contact-form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.blog-pagination { justify-content: center; }
.site-search-form { position: relative; max-width: 44rem; margin-top: 2rem; }
.site-search-input { width: 100%; padding: .85rem 3.75rem .85rem 1rem; color: var(--foreground); background: var(--background); border: 1px solid var(--border); border-radius: .3rem; font: inherit; transition: border-color .16s ease, box-shadow .16s ease; }
.site-search-input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.site-search-clear { position: absolute; top: 50%; right: .7rem; padding: .25rem .45rem; color: var(--accent); cursor: pointer; background: transparent; border: 0; border-radius: .2rem; transform: translateY(-50%); }
.search-status { min-height: 1.5rem; margin-top: .85rem; color: var(--muted-foreground); font-size: .875rem; }
.search-status:empty { display: none; }
.search-results { display: grid; gap: .55rem; max-width: 44rem; margin-top: 1rem; }
.search-result { display: grid; gap: .25rem; padding: 1rem; color: var(--foreground); text-decoration: none; border: 1px solid var(--border); border-inline-start: 2px solid transparent; border-radius: .25rem; transition: border-color .16s ease, background-color .16s ease, transform .16s ease; }
.search-result:hover, .search-result:focus, .search-result.is-active { background: var(--muted); border-inline-start-color: var(--accent); outline: 0; transform: translateX(2px); }
.search-result-type { color: var(--accent); font-family: "Google Sans Code", ui-monospace, monospace; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.search-result-title { font-size: 1.08rem; font-weight: 600; }
.search-result-description { color: var(--muted-foreground); font-size: .94rem; line-height: 1.5; }
@media (min-width: 900px) {
  .featured-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; }
  .featured-project { min-height: 18.5rem; }
}

/* A calm, useful fallback for missing routes. */
.error-page { display: grid; flex: 1; place-items: center; min-height: min(43rem, calc(100svh - 12rem)); padding-block: 4rem; }
.error-page__content { width: min(100%, 42rem); padding: clamp(2rem, 7vw, 4.5rem); text-align: center; background: color-mix(in srgb, var(--background) 84%, var(--muted)); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: .75rem; }
.error-page__code { margin-bottom: .15rem; color: var(--accent); font-family: "Google Sans Code", ui-monospace, monospace; font-size: clamp(5rem, 18vw, 9rem); font-weight: 600; letter-spacing: -.08em; line-height: .9; }
.error-page h1 { margin-top: .7rem; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.error-page__primary-action, .error-page__secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid var(--accent); border-radius: .4rem; font-weight: 700; text-decoration: none; transition: background-color .16s ease, color .16s ease, transform .16s ease; }
.error-page__primary-action { color: var(--accent-foreground); background: var(--accent); }
.error-page__secondary-action { color: var(--accent); }
.error-page__primary-action:hover, .error-page__secondary-action:hover { transform: translateY(-1px); }
.error-page__primary-action:hover { filter: brightness(1.08); }
.error-page__secondary-action:hover { color: var(--accent-foreground); background: var(--accent); }
.error-page__primary-action:focus-visible, .error-page__secondary-action:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 3px; }
@media (max-width: 28rem) { .error-page__content { padding: 2rem 1.25rem; } .error-page__actions > a { width: 100%; } }
