/* Osinachi's site theme. Light only, like the design; the built-in palette is pinned to light
   (the id in :not() outranks the built-in dark-mode selector) so inner pages match the home page. */
html:root:not(#light) {
  color-scheme: light;
  --ground: #fbfbfd;
  --surface: #f2f2f5;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #e8e8ed;
  --code: #f2f2f5;
  --link: var(--accent);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, system-ui, sans-serif;
  /* Dates, crumbs and labels read in the body face; monospace stays for code. */
  --meta: var(--sans);
  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-lg: 28px;
}
::selection { background: color-mix(in oklab, var(--accent) 22%, #fff); color: #1d1d1f; }

body.o-site {
  margin: 0;
  background: #fbfbfd;
  color: #1d1d1f;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: normal;
}
.o-site a { color: var(--accent); text-decoration: none; }
.o-site a:hover { text-decoration: underline; }
.avatar-img, .o-svg { max-width: none; }
.o-svg { display: block; overflow: visible; }

.o-skip { position: absolute; left: -999px; }
.o-skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 14px; border-radius: 999px; }

.o-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 24px; }
.tile { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.tile:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 18px 40px rgba(0,0,0,.08); }

/* Header */
.o-top { position: sticky; top: 0; z-index: 5; background: rgba(251,251,253,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.o-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.o-site .o-brand { color: #1d1d1f; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.o-brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.o-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.o-site .o-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #1d1d1f; font-size: 15px; }
.o-site .o-nav a[aria-current] { font-weight: 600; }
.o-pill { font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 999px; padding: 0 18px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.o-site a.o-pill { color: #fff; }
.o-site .o-pill:hover { text-decoration: none; filter: brightness(.94); }
.o-pill:focus-visible, .o-site a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Hero */
.o-hero { position: relative; padding: 112px 0 80px; text-align: center; overflow-x: clip; }
.avatar { position: relative; width: 280px; height: 280px; margin: 0 auto 40px; animation: float 5s ease-in-out infinite; }
.avatar-disc { position: absolute; inset: 0; border-radius: 50%; background: #dff5e4; box-shadow: inset 0 0 0 10px #fff, 0 20px 50px rgba(26,127,55,.18); }
/* The head pops out of the circle; the body is clipped to it. */
.avatar-clip { position: absolute; inset: 0; clip-path: inset(-80px 0 0 0 round 0 0 140px 140px); }
.avatar-img { position: absolute; bottom: 0; left: 50%; width: 380px; height: auto; transform: translateX(-50%); transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.avatar:hover .avatar-img { transform: translateX(-50%) translateY(-10px) rotate(-4deg) scale(1.04); }
.o-eyebrow { margin: 0 0 18px; font-size: 19px; font-weight: 600; color: var(--accent); }
.o-display { margin: 0 auto; max-width: 15ch; font-size: clamp(52px, 7.4vw, 108px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.o-lead { margin: 28px auto 0; max-width: 34ch; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.35; letter-spacing: -0.015em; color: #6e6e73; font-weight: 500; }
.o-actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.o-pill-lg { min-height: 50px; padding: 0 28px; font-size: 17px; }
.o-link-lg { display: inline-flex; align-items: center; gap: 6px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 17px; font-weight: 600; }

.o-card { background: #fff; border-radius: 28px; box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 18px 44px rgba(0,0,0,.05); }
.o-skills-wrap { margin-top: 120px; }
.o-skills { position: relative; border-radius: 32px; padding: 48px 48px 44px; box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 24px 60px rgba(0,0,0,.07); text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; }
.o-kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #6e6e73; }
.o-skill { margin: 6px 0 0; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }

/* Sections */
.o-section { padding: 0 0 120px; }
.o-section:first-of-type { padding-top: 40px; }
.o-h2 { margin: 0 0 12px; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; }
.o-h2-gap { margin-bottom: 48px; }
.o-sub { margin: 0 0 48px; max-width: 40ch; font-size: 21px; line-height: 1.4; color: #6e6e73; }
.o-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 32px; }
.o-section-head .o-h2 { margin: 0; }
.o-more { font-size: 17px; font-weight: 600; }

.o-tile { border-radius: 28px; padding: 36px; min-height: 280px; display: flex; flex-direction: column; gap: 16px; }
.o-tile h3 { margin: 0; font-size: 26px; letter-spacing: -0.025em; font-weight: 700; }
.o-tile p { margin: 0; font-size: 17px; line-height: 1.45; color: #5e5e63; }
.o-tile-wide { padding: 40px; min-height: 300px; justify-content: space-between; gap: 24px; }
.o-tile-wide h3 { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; }
.o-tile-wide p { margin-top: 12px; font-size: 18px; }
.o-icon { width: 52px; height: 52px; border-radius: 15px; background: #fff; display: flex; align-items: center; justify-content: center; }
.o-tile-wide .o-icon { width: 56px; height: 56px; border-radius: 16px; }
.o-tone-orange { background: #fff1e0; } .o-tone-orange .o-icon { color: #b35a00; }
.o-tone-green { background: #e8f8ec; } .o-tone-green .o-icon { color: #1a7f37; }
.o-tone-blue { background: #e8f2ff; } .o-tone-blue .o-icon { color: #0058b0; }
.o-tone-purple { background: #f3edff; } .o-tone-purple .o-icon { color: #6b3fc4; }
.o-tile-dark { background: #1d1d1f; color: #f5f5f7; min-height: 300px; justify-content: space-between; gap: 20px; }
.o-place-label { font-size: 17px; font-weight: 600; color: #a1a1a6 !important; }
.o-tile .o-place { font-size: 44px; line-height: 1; letter-spacing: -0.04em; font-weight: 800; color: #f5f5f7; }

/* Projects */
.o-site .o-project { position: relative; display: flex; flex-direction: column; gap: 18px; background: #fff; border-radius: 28px; padding: 44px 40px 40px; color: #1d1d1f; box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 18px 44px rgba(0,0,0,.06); }
.o-site .o-project:hover { text-decoration: none; }
.o-project p, .o-project h3 { margin: 0; }
.o-role { font-size: 15px; font-weight: 600; color: var(--accent); }
.o-project h3 { font-size: 48px; letter-spacing: -0.04em; font-weight: 800; }
.o-project-sub { font-size: 21px; line-height: 1.4; color: #6e6e73; }
.o-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.o-chips span { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: #f2f2f5; }
.o-project-link { margin-top: auto; padding-top: 12px; font-size: 17px; font-weight: 600; color: var(--accent); }
.o-site .o-project-dark { background: #1d1d1f; color: #f5f5f7; box-shadow: none; }
.o-project-dark .o-role { color: #a1a1a6; }
.o-project-dark .o-project-sub { color: #c7c7cc; }
.o-project-dark pre { margin: 8px 0 0; padding: 18px 20px; border-radius: 16px; background: #2c2c2e; color: #d1d1d6; font: 500 15px/1.6 ui-monospace, 'SF Mono', Menlo, monospace; overflow-x: auto; }
.o-project-dark .o-project-link { color: #6cb4ff; }
.o-bird { position: absolute; top: -38px; left: 44px; }

/* Journal */
.o-posts { padding: 8px 40px; }
.post { padding: 28px 0; border-bottom: 1px solid #e8e8ed; }
.post:last-child { border-bottom: 0; }
.post time { font-size: 15px; color: #6e6e73; padding-top: 4px; }
.post h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.o-site .post h3 a { color: #1d1d1f; }
.post p { margin: 6px 0 0; font-size: 17px; color: #6e6e73; }

/* Education and contact */
.o-school { padding: 36px; }
.o-school-place { margin: 0; font-size: 15px; font-weight: 600; color: #6e6e73; }
.o-school h3 { margin: 8px 0 0; font-size: 28px; letter-spacing: -0.025em; font-weight: 700; }
.o-badge { margin: 14px 0 0; display: inline-block; font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.o-badge-warm { background: #fff1e0; color: #8a4500; }
.o-badge-cool { background: #e8f2ff; color: #004f9e; }
.contact { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: 32px; padding: 56px 48px 64px; }
.contact .o-h2 { margin: 0; }
.o-contact-lead { margin: 14px 0 32px; max-width: 36ch; font-size: 21px; line-height: 1.4; color: rgba(255,255,255,.9); }
.o-contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.o-site .o-contact-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 17px; font-weight: 600; transition: background-color .2s; }
.o-site .o-contact-links a:hover { text-decoration: none; background: rgba(0,0,0,.14); }
.o-site .o-contact-links a.o-light { background: #fff; color: #1d1d1f; }
.o-site .o-contact-links a.o-light:hover { background: #f2f2f5; }
.o-site .contact a:focus-visible { outline-color: #fff; }

/* Footer */
.o-foot { border-top: 1px solid #e8e8ed; background: #f5f5f7; padding: 16px 0; }
.o-foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; font-size: 14px; color: #6e6e73; }
.o-foot-inner p { margin: 12px 0; }
.o-foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.o-site .o-foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: #424245; }

/* Inner pages keep the built-in body, framed by this header and footer, in the home page's voice. */
.o-inner { padding-top: clamp(32px, 6vw, 72px); padding-bottom: 96px; line-height: 1.6; }
.o-inner .nix-article { padding: 0; }
.o-inner .nix-article-head { margin-bottom: 40px; }
.o-inner .nix-prose { max-width: 42rem; font-size: 18px; }
.o-site .nix-glyph { display: none; }
.o-inner .nix-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; }
.o-inner .nix-lead { color: #6e6e73; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; letter-spacing: -0.01em; }
.o-inner .nix-crumbs { font-size: 14px; font-weight: 500; }
.o-site .nix-crumbs li + li::before { color: #c7c7cc; }
.o-inner .nix-meta { font-size: 15px; color: #6e6e73; gap: 6px 16px; }
.o-site .nix-tag { border: 0; background: #f2f2f5; color: #1d1d1f; font-size: 13px; font-weight: 500; padding: 4px 12px; }
.o-site a.nix-tag:hover { background: color-mix(in oklab, var(--accent) 12%, #fff); color: var(--accent); text-decoration: none; }
.o-inner .nix-prose h2 { margin: 48px 0 12px; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
.o-inner .nix-prose h3 { margin: 36px 0 10px; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.o-inner .nix-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.o-inner .nix-prose a:hover { text-decoration-color: currentColor; }
.o-inner .nix-prose blockquote { border-left: 2px solid #d2d2d7; color: #424245; font-style: normal; padding-left: 20px; }
.o-inner .nix-figure img { border-radius: 20px; }
.o-inner .nix-code { background: #f2f2f5; border-radius: 16px; font-size: 14px; }
.o-inner .nix-table { background: #fff; border-color: #e8e8ed; border-radius: 16px; }
.o-inner .nix-table thead th, .o-inner .nix-table tbody:first-child > tr:first-child > th { background: #f5f5f7; font-weight: 600; }
.o-inner .nix-facts { border-color: #e8e8ed; gap: 16px 32px; padding: 20px 0; }
.o-site .nix-facts dt { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #6e6e73; }
.o-inner .nix-facts dd { font-size: 17px; }
/* Child pages as cards, like the home page's project cards. */
.o-inner .nix-cards { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.o-site .nix-card { border: 0; border-radius: 28px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 18px 44px rgba(0,0,0,.06); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.o-site .nix-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 24px 52px rgba(0,0,0,.09); text-decoration: none; }
.o-site .nix-card-body { padding: 32px; }
.o-site .nix-card h3 { color: #1d1d1f; font-size: 32px; letter-spacing: -0.035em; font-weight: 800; }
.o-site .nix-card p { font-size: 17px; color: #6e6e73; }
.o-site .nix-card .nix-facts-compact dd { font-size: 15px; }
/* Post lists */
.o-inner .nix-year { margin: 48px 0 4px; font-size: 15px; font-weight: 600; color: #1d1d1f; }
.o-inner .nix-post-row { padding: 24px 0; border-color: #e8e8ed; }
.o-inner .nix-post-row time { font-size: 15px; }
.o-inner .nix-post-row h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.o-site .nix-post-row h3 a { color: #1d1d1f; }
.o-inner .nix-post-row p { font-size: 17px; }
.o-site .nix-pager { border-color: #e8e8ed; }
.o-site .nix-pager a { border: 0; border-radius: 20px; background: #fff; padding: 18px 22px; box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 12px 32px rgba(0,0,0,.05); color: #1d1d1f; }
.o-site .nix-pager a:hover { text-decoration: none; box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 18px 40px rgba(0,0,0,.08); }
.o-site .nix-pager small { font-size: 13px; font-weight: 500; }
.o-inner .nix-404 { padding: clamp(32px, 8vw, 96px) 0; }
.o-inner .nix-hero-title { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.04em; }
.o-inner .nix-eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0; }

/* Pets */
.pet svg * { transform-box: fill-box; }
.petbtn { position: absolute; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; min-width: 44px; min-height: 44px; }
.petbtn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 16px; }
.o-cat { top: -86px; right: 72px; width: 120px; height: 90px; }
.blink { transform-origin: 50% 50%; animation: blink 4.5s infinite; }
.cat-tail { transform-origin: 0% 100%; animation: swish 2.4s ease-in-out infinite; }
.cat-body { transform-origin: 50% 100%; animation: breathe 3s ease-in-out infinite; }
.petbtn:hover .cat-body { animation: wiggle .5s ease-in-out infinite; }
.bubble { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); background: #1d1d1f; color: #fff; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; animation: pop .35s cubic-bezier(.34,1.56,.64,1); }
.bubble[hidden] { display: none; }
.bird { animation: hop 2.8s ease-in-out infinite; }
.bird-wing { transform-origin: 20% 30%; animation: flap 2.8s ease-in-out infinite; }
.hamster { position: absolute; right: 48px; bottom: -70px; transition: transform .45s cubic-bezier(.34,1.56,.64,1); animation: peek 7s ease-in-out infinite; }
.contact:hover .hamster, .contact:focus-within .hamster { animation: none; transform: translateY(-66px); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 0%,93%,100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes swish { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(16deg); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes wiggle { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes pop { from { transform: translateX(-50%) scale(.4); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes hop { 0%,60%,100% { transform: translateY(0); } 70% { transform: translateY(-16px); } 80% { transform: translateY(0); } 88% { transform: translateY(-8px); } }
@keyframes flap { 0%,64%,90%,100% { transform: rotate(0); } 70%,82% { transform: rotate(-28deg); } }
@keyframes peek { 0%,55%,100% { transform: translateY(0); } 65%,85% { transform: translateY(-52px); } }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2, .s3 { grid-column: span 1; } .s4, .s6 { grid-column: span 2; }
}
@media (max-width: 620px) {
  .o-wrap { padding-inline: 16px; }
  .o-top-inner { flex-wrap: nowrap; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
  .o-nav { gap: 14px; flex-wrap: nowrap; }
  .o-hero { padding-bottom: 40px; }
  .o-skills-wrap { margin-top: 96px; }
  .o-skills { gap: 24px; }
  .o-section { padding-bottom: 80px; }
  .o-sub { margin-bottom: 32px; font-size: 19px; }
  .o-h2-gap { margin-bottom: 32px; }
  .o-tile, .o-tile-wide, .o-tile-dark { min-height: 0; }
  .o-tile-dark { gap: 40px; }
  .o-tile-wide h3 { font-size: 28px; }
  .o-tile .o-place { font-size: 40px; }
  .contact { border-radius: 28px; }
  .o-inner .nix-prose { font-size: 17px; }
  .o-site .nix-card-body { padding: 24px; }
  .o-site .nix-card h3 { font-size: 28px; }
  .bento, .duo { grid-template-columns: minmax(0, 1fr); }
  .s2, .s3, .s4, .s6 { grid-column: span 1; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .o-nav { gap: 16px; }
  .hidesm { display: none; }
  .o-hero { padding-top: 72px; }
  .o-skills, .o-tile, .o-project, .o-school, .contact { padding: 28px 24px; }
  .contact { padding-bottom: 40px; }
  .o-posts { padding: 8px 24px; }
  .o-skill { font-size: 32px; }
  .o-project h3 { font-size: 40px; }
}
@media (max-width: 359px) {
  .o-nav { gap: 12px; }
  .avatar { width: 240px; height: 240px; }
  .avatar-img { width: 326px; }
  .avatar-clip { clip-path: inset(-70px 0 0 0 round 0 0 120px 120px); }
}
@media (prefers-reduced-motion: reduce) {
  .avatar, .avatar-img, .pet, .pet *, .hamster, .tile { animation: none !important; transition: none !important; }
}
