:root {
  color-scheme: dark;
  --canvas: #101419;
  --surface: #1a2028;
  --line: #303945;
  --text: #edf1f5;
  --muted: #acb8c7;
  --accent: #b9e58b;
  --paper: #f3f3ec;
  --ink: #202923;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.65; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #d9f8bb; }
a:focus-visible { outline: 3px solid #74adf7; outline-offset: 5px; border-radius: 5px; }
.site-header, .site-footer { background: var(--paper); color: var(--ink); color-scheme: light; }
.site-header { border-bottom: 1px solid #d9ddd3; }
.site-nav, .footer-inner { max-width: 1320px; margin: auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 19px; font-weight: 750; line-height: 1.3; }
.site-brand:hover { color: var(--surface)}
.site-brand img { border-radius: 50%; background: #e3e8da; }
.site-brand small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-top: 4px; }
.site-links { display: flex; flex-wrap: wrap; gap: 8px; }
.site-links a { padding: 10px 16px; color: #384439; border-radius: 30px; font-weight: 600; font-size: 14px; }
.site-links a:hover { background: #e1e6da; }
.site-links a[aria-current] { color: #fff; background: #27372a; }
.portfolio-content { width: 100%; max-width: 1280px; margin: 0 auto; padding: 48px 28px 88px; flex: 1; }
.portfolio-content > .text-center { padding: 12px 0 30px; }
.portfolio-content > .text-center > img { border-radius: 50%; background: #242e26; border: 1px solid #485740; padding: 8px; }
h1 { color: var(--text); font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 720; letter-spacing: -.045em; line-height: 1.15; text-align: center; margin: 24px auto 36px; max-width: 1000px; }
h1 span { color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 400; letter-spacing: 0; }
h2 { color: var(--text); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; margin: 52px 0 26px; padding: 0 0 0 16px !important; border-left: 3px solid var(--accent); }
h3 { color: var(--text); line-height: 1.4; }
hr { border: 0; border-top: 1px solid var(--line); opacity: 1; margin: 36px 0; }
.portfolio-content .container { max-width: 100%; padding: 0; }
.portfolio-content .row { --bs-gutter-x: 24px; --bs-gutter-y: 24px; justify-content: flex-start !important; margin-bottom: 24px; }
.portfolio-content .row > div { display: flex; flex-direction: column; }
.portfolio-content a { transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.portfolio-content a:has(img) { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); font-size: 16px !important; }
.portfolio-content a:has(img):hover { transform: translateY(-4px); border-color: #8ba779; background: #202a2d; }
.img-fluid { width: 100%; height: auto; display: block; }
.portfolio-content a p { margin: 0; padding: 18px; line-height: 1.5; font-weight: 550; }
.portfolio-content > .container > a:not(:has(img)), .portfolio-content .container > a:not(:has(img)) { display: block; padding: 20px 24px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.portfolio-content .container > a:not(:has(img)):hover { background: #252f38; border-color: #8ba779; }
.portfolio-content iframe { width: 100%; max-width: none !important; height: auto; aspect-ratio: 16 / 9; border-radius: 16px !important; background: var(--surface); }
.portfolio-content iframe + p { color: var(--muted); margin: 14px 0 0; font-size: 14px; }
.portfolio-content img[src*="udemy"] { margin: auto; }
.coming-soon { display: inline-block; color: #e6d895; font-size: .85em; }
.site-footer { margin-top: auto; }
.footer-inner { padding-top: 32px; padding-bottom: 32px; font-size: 13px; }
.site-footer a { color: var(--ink); }
.footer-brand { font-size: 18px; font-weight: 750; }
.footer-brand span { display: block; font-size: 12px; font-weight: 400; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; color: var(--ink); background: var(--paper); }
.skip-link:focus { top: 8px; }
@media (max-width: 640px) {
  .site-nav { flex-direction: column; gap: 16px; padding: 18px 16px; }
  .site-links { justify-content: center; gap: 2px; }
  .site-links a { padding: 9px 12px; font-size: 12px; }
  .portfolio-content { padding: 24px 20px 56px; }
  h1 { margin-bottom: 24px; }
  h2 { margin-top: 36px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portfolio-content a { transition: none; }
  .portfolio-content a:has(img):hover { transform: none; }
}
