@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter/inter-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter/inter-vietnamese-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Site-only rules: Cabane keeps its existing independent stylesheet. */
.site-shell {
  --site-ink: #141418;
  --site-violet: #c4a3ff;
  --site-lilac: #e0ceff;
  --site-text: #f5f4f7;
  --site-muted: #c9c8d0;
  --site-rule: rgba(196, 163, 255, .24);
  min-height: 100dvh;
  color: var(--site-text);
  background: var(--site-ink);
  font-family: "Inter Variable", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
body.site-page { margin: 0; }
.site-shell *, .site-shell *::before, .site-shell *::after { box-sizing: border-box; }
.site-container { width: min(100% - 2rem, 71.25rem); margin-inline: auto; }
.site-shell a { color: var(--site-violet); text-underline-offset: .2em; }
.site-shell a:hover { color: var(--site-lilac); }
.site-shell a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.site-shell p, .site-shell ul { margin: 0 0 1rem; color: var(--site-muted); }
.site-shell h1, .site-shell h2, .site-shell h3 { line-height: 1.15; overflow-wrap: anywhere; }
.site-header { display: flex; align-items: start; justify-content: space-between; gap: 2rem; padding-block: 3rem 1.5rem; }
.site-shell .site-home-link { color: inherit; text-decoration: none; }
.site-identity { min-width: 0; }
.site-identity h1 { font-size: 2.5rem; font-weight: 500; margin: 0; }
.site-identity p { font-size: 1.25rem; font-weight: 300; margin: 0; }
.site-navigation { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
.site-navigation a { display: inline-flex; align-items: center; min-height: 44px; }
.site-section { margin-block: 1rem 3rem; }
.site-section > h2 { font-size: 1.875rem; font-weight: 500; color: var(--site-text); text-align: left; padding-bottom: .75rem; border-bottom: 1px solid var(--site-rule); margin: 0 0 2rem; scroll-margin-top: 1rem; }
.site-section-content { min-width: 0; }
.resume-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--site-rule); }
.resume-entry:last-child { border-bottom: 0; }
.resume-details { text-align: left; }
.resume-details h3 { color: var(--site-text); font-size: 1.5rem; font-weight: 500; margin: 0 0 .5rem; }
.resume-details .resume-subtitle { font-weight: 600; margin-bottom: .25rem; }
.resume-details .resume-period { font-size: .875rem; font-variant-numeric: tabular-nums; margin-bottom: .25rem; }
.resume-details > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.employer-logo { display: flex; align-items: center; justify-content: center; width: 9rem; height: 3.5rem; margin-bottom: 1rem; background: #fff; border-radius: .25rem; }
.employer-logo img { width: 7.5rem; height: 2.5rem; object-fit: contain; }
[data-employer="doctolib"] .employer-logo { background: #107aca; }
[data-employer="doctolib"] .employer-logo img { object-fit: cover; }
[data-employer="happn"] .employer-logo { background: #fff7ec; }
[data-employer="happn"] .employer-logo img { width: 4.5rem; height: 3rem; }
.resume-description { min-width: 0; overflow-wrap: anywhere; }
.resume-description .prose > p:first-child { color: var(--site-text); }
.resume-description ul { padding-left: 1.15rem; }
.resume-description li { padding-left: .3rem; margin-block: .65rem; }
.resume-description li::marker { color: var(--site-violet); }
.resume-description strong { color: var(--site-text); font-weight: 550; }
.site-footer { text-align: center; padding-block: 1.5rem 2rem; font-size: .875rem; }
.skip-link { position: absolute; left: 1rem; top: 0; transform: translateY(-150%); padding: .75rem 1rem; background: var(--site-ink); z-index: 10; }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 767px) {
  .site-header { flex-direction: column; align-items: center; text-align: center; gap: .75rem; padding-top: 2rem; }
  .site-navigation { justify-content: center; }
  .resume-entry { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .resume-details:has(.employer-logo) { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; column-gap: 1rem; align-items: start; }
  .employer-logo { grid-column: 2; grid-row: 1 / 5; width: 7rem; margin: 0; }
  .employer-logo img { width: 6rem; }
  .resume-details h3, .resume-details p, .resume-details > a { grid-column: 1; }
  .resume-details { text-align: left; }
  .site-identity h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
}
@media print {
  .site-shell { color: #222; background: #fff; min-height: auto; font-size: 10pt; }
  .site-container { width: 100%; }
  .site-header { padding-block: 0 1rem; }
  .site-shell p, .site-shell ul, .site-shell a, .site-shell h2, .site-shell h3 { color: #222; }
  .site-section > h2 { border-color: #777; }
  .resume-entry { break-inside: avoid; }
  .site-navigation, .skip-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-shell *, .site-shell *::before, .site-shell *::after { scroll-behavior: auto; animation: none; transition: none; }
}

/* Homepage: legacy geometry converted from Bootstrap's 10px rem to 16px rem. */
.site-shell .identity-logo { display: inline-block; width: 1.25em; height: 1.25em; margin-right: .25em; vertical-align: middle; border-radius: 25%; }
.site-shell .profile-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1rem; }
.site-shell .profile-contact { flex-basis: 100%; text-align: right; margin: 0; }
.site-shell .profile-contact a { min-height: 0; }
.site-shell .about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 2rem; }
.site-shell .profile-image { display: block; width: min(100%, 12.5rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; justify-self: center; box-shadow: 0 0 0 2px rgba(196, 163, 255, .65); }
.site-shell .prose { min-width: 0; overflow-wrap: anywhere; }
.site-shell mark { color: var(--site-ink); background: var(--site-lilac); border-radius: .15625rem; padding: .05em .3em; }
.site-shell .projects-jump { display: inline-block; margin-top: .625rem; font-weight: 600; }
.site-shell .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 1.25rem 0 2.5rem; scroll-margin-top: 1.25rem; }
.site-shell .project-card { --project-accent: #e3abd3; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #41414e; border-top: 4px solid var(--project-accent); border-radius: .5rem; background: #1e1e25; text-align: left; }
.site-shell [data-project="bientot"] { --project-accent: #b7d4ac; }
.site-shell .project-card[data-project="bientot"] { border-color: var(--project-accent); box-shadow: 0 0 0 1px #b7d4ac33, 0 8px 28px #b7d4ac14; }
.site-shell [data-project="tessera"] { --project-accent: #91d0bd; }
.site-shell [data-project="tessera"] .project-preview { object-fit: cover; object-position: left center; background: #12171e; }
.site-shell [data-project="prctrl"] { --project-accent: #95bc91; }
.site-shell [data-project="prctrl"] .project-preview { background: #fdfbf3; }
.site-shell [data-project="cabane"] { --project-accent: #efc185; }
.site-shell .project-preview { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #201923; }
.site-shell [data-project="cabane"] .project-preview { background: #f4eadb; }
.site-shell .project-card .project-preview { aspect-ratio: 2 / 1; }
.site-shell .project-card[data-project="bientot"] .project-preview { object-fit: cover; object-position: center; background: #f7f7f2; }
.site-shell .project-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.5rem; overflow-wrap: anywhere; }
.site-shell .project-body h3 { margin: 0 0 .75rem; font-size: 1.5rem; font-weight: 700; color: var(--project-accent); }
.site-shell .project-tagline { font-weight: 600; }
.site-shell .project-tags { display: flex; flex-wrap: wrap; gap: .375rem; padding: 0; margin: .625rem 0 1rem; list-style: none; }
.site-shell .project-tags li { padding: .1875rem .5rem; border: 1px solid #41414e; border-radius: .375rem; font-size: .8125rem; }
.site-shell .project-note { font-size: .8125rem; }
.site-shell a.project-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; padding: .625rem .875rem; border-radius: .5rem; background: var(--project-accent); color: #19132b; font-weight: 600; }
.site-shell a.project-link:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .site-shell .about-layout, .site-shell .project-grid { grid-template-columns: minmax(0, 1fr); }
  .site-shell .profile-links { justify-content: center; }
  .site-shell .profile-contact { text-align: center; }
}
@media print {
  .site-shell .identity-logo { display: none; }
  .site-shell .project-card { background: #fff; break-inside: avoid; }
  .site-shell .project-body h3 { color: #222; }
  .site-shell .project-preview { max-height: 10rem; }
  .site-shell .profile-image { box-shadow: none; }
}
@media (min-width: 768px) {
  .site-header > .site-identity, .site-header > .site-navigation { flex: 1; min-width: 0; }
}

/* Named links keep their labels available to assistive technology and without CSS. */
.profile-links .profile-icon-link {
  width: 3rem;
  height: 3rem;
  justify-content: center;
  border-radius: 50%;
  background: var(--site-text);
  color: var(--site-ink);
}
.profile-links .profile-icon-link:hover { background: var(--site-lilac); }
.profile-links .profile-icon-link:focus-visible { outline-color: var(--site-lilac); }
.profile-icon-link img { display: block; }
.profile-icon-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (forced-colors: active) {
  .profile-links .profile-icon-link { width: auto; border: 1px solid ButtonText; padding: .5rem; }
  .profile-icon-link img { display: none; }
  .profile-icon-label { position: static; width: auto; height: auto; margin: 0; clip-path: none; white-space: normal; }
  .site-page-links a { border: 1px solid ButtonText; }
}

.page-trail { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-block: 1rem 2rem; }
.page-trail a { display: inline-flex; align-items: center; min-height: 44px; }
.page-trail [aria-current] { align-self: center; color: var(--site-muted); overflow-wrap: anywhere; }
.project-details-link { display: inline-block; margin-block: 0 1rem; }
.project-presentation { --project-accent: #e3abd3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.project-presentation > * { min-width: 0; }
.project-description { display: flex; flex: 1; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .project-presentation { grid-template-columns: 1fr; }
}
@media print {
  .page-trail { display: none; }
  .project-presentation { grid-template-columns: 1fr; }
}

.site-page-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-page-links a { min-height: 3rem; padding-inline: 1.25rem; border-radius: 999px; background: var(--site-text); color: var(--site-ink); }
.site-page-links a:hover { background: var(--site-lilac); }
.site-page-links a:focus-visible { outline-color: var(--site-lilac); }
.article-list { list-style: none; padding: 0; }
.article-list li { padding-block: 1.5rem; border-bottom: 1px solid var(--site-rule); }
.article-list h3 { margin-block: 0 .5rem; }
.blog-article { max-width: 48rem; margin-inline: auto; overflow-wrap: anywhere; }
.article-date { display: block; margin-bottom: .75rem; color: var(--site-muted); font-size: .8125rem; line-height: 1.5; letter-spacing: .02em; }
.site-shell .article-description { margin-top: 1rem; }
.article-cover, .blog-article .prose img { display: block; max-width: 100%; height: auto; margin-block: 1.5rem; }
.blog-article pre { max-width: 100%; overflow-x: auto; padding: 1rem; border: 1px solid var(--site-rule); }

/* Cabane uses the shared landmarks with its existing project theme. */
.cabane-landing { --site-ink: #f8f4eb; }
.cabane-content { min-width: 0; }

.site-shell .project-invitation {
  --project-accent: #276858;
  background: #f8f4eb;
  border: 1px solid #e6d9c2;
  border-radius: 1.5rem;
}
.site-shell .project-invitation .project-preview { background: #f8f4eb; }
.site-shell .project-invitation .project-body { padding: 1.75rem; }
.site-shell .project-invitation h3 { font-family: ui-rounded, "Avenir Next", system-ui, sans-serif; font-size: 1.875rem; }
.site-shell .project-invitation p { color: #243e3a; }
.site-shell .project-invitation .project-link { color: #fff; border-radius: 999px; }
.site-shell .project-invitation .project-link:hover { background: #1e5144; }
.site-page-links a.cabane-entrance { background: #f8f4eb; color: #276858; gap: .3rem; }
.site-page-links a.cabane-entrance:hover { background: #e6d9c2; color: #243e3a; }

/* Project map: the full static list is the fallback and print view. */
.project-explorer { margin-block: 1.5rem 2.5rem; }
.project-explorer-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .75rem; font-size: .875rem; }
.project-explorer-heading p { margin: 0; }
.project-explorer-heading a { display: inline-flex; align-items: center; min-height: 44px; }
.project-explorer.is-enhanced { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 2rem; }
.project-explorer.is-enhanced .project-explorer-heading { grid-column: 1 / -1; }
.project-map { position: relative; height: 29rem; background-image: radial-gradient(#50435f 1px, transparent 1px); background-size: 24px 24px; border-block: 1px solid var(--site-rule); }
.project-map[hidden] { display: none; }
.project-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.project-map line { stroke: #51435e; stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .15s; }
.project-map line.is-active { stroke: #c4a3ff; stroke-width: 2; }
.project-map-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; max-width: 46%; padding: .5rem .65rem; border: 1px solid transparent; border-radius: .3rem; color: var(--site-text); background: var(--site-ink); font: inherit; font-size: .875rem; font-weight: 550; line-height: 1.3; cursor: pointer; text-align: left; }
.project-map-node::before { content: ""; width: .65rem; height: .65rem; flex: 0 0 .65rem; border-radius: 50%; background: var(--project-accent, #c4a3ff); box-shadow: 0 0 0 4px #141418; }
.project-map-node:hover, .project-map-node[aria-pressed="true"] { border-color: var(--project-accent, #c4a3ff); background: #25212d; }
.project-map-node:focus-visible { outline: 2px solid var(--site-lilac); outline-offset: 4px; }
.project-map-preview { min-width: 0; }
.project-explorer.is-enhanced .project-map-preview { display: grid; align-items: center; min-height: 29rem; }
.site-shell .project-map-hint { max-width: 13rem; color: var(--site-muted); font-size: 1.35rem; line-height: 1.5; margin: 0 auto; }
.site-shell .project-explorer.is-enhanced .project-grid { display: block; margin: 0; }
.site-shell .project-explorer.is-enhanced .project-card { border: 0; border-radius: 0; background: transparent; }
.site-shell .project-explorer.is-enhanced .project-card[hidden], .project-map-hint[hidden] { display: none; }
.site-shell .project-explorer .project-preview { aspect-ratio: 2 / 1; }
.site-shell [data-project="guessr"] .project-preview, .site-shell [data-project="ripple"] .project-preview, .site-shell [data-project="nuance"] .project-preview { object-fit: cover; }
.site-shell .project-explorer.is-enhanced .project-preview { height: 10rem; object-fit: contain; border-radius: .3rem; }
.site-shell .project-explorer.is-enhanced .project-body { padding: 1rem 0 0; }
.site-shell .project-explorer .project-body h3 { font-size: 1.25rem; }
.site-shell .project-explorer.is-enhanced .project-tags, .site-shell .project-explorer.is-enhanced .project-note { display: none; }
.site-shell .project-explorer.is-enhanced .project-description > p:not(.project-tagline):not(.project-note) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.site-shell .project-explorer.is-enhanced .project-link { margin-top: .5rem; }
@media (max-width: 767px) {
  .project-explorer.is-enhanced { grid-template-columns: minmax(0, 1fr); }
  .project-map { height: 24rem; }
  .project-map-node { font-size: .8125rem; padding-inline: .4rem; }
  .project-explorer.is-enhanced .project-map-preview { min-height: 8rem; padding-top: 1.25rem; }
  .site-shell .project-map-hint { max-width: none; font-size: 1rem; margin: 0; }
}
@media print {
  .project-map, .project-map-hint { display: none !important; }
  .project-explorer.is-enhanced { display: block; }
  .project-explorer.is-enhanced .project-map-preview { display: block; }
  .site-shell .project-explorer.is-enhanced .project-grid { display: grid; }
  .site-shell .project-explorer.is-enhanced .project-card[hidden] { display: flex; }
  .site-shell .project-explorer.is-enhanced .project-description > p { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
  .project-map line { transition: none; }
}

.site-shell .kotlin-project-cover {
  display: grid; align-content: center; gap: .4rem; aspect-ratio: 2 / 1;
  padding: 1.8rem; color: #eeedff; background: linear-gradient(125deg, #242035, #171823 70%);
}
.site-shell .kotlin-project-cover strong { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.site-shell .kotlin-project-cover code { color: #c4b5fd; }
