/*
 * Corporate-light colorful custom theme
 * Engineered for an engineer + artist personal website
 */
:root {
  --canvas: #f2f6ff;
  --canvas-soft: #ecf7ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #1b2b4d;
  --ink-soft: #5a6a8f;
  --line: #d6e2ff;
  --brand-primary: #2d5bff;
  --brand-primary-strong: #1f45cc;
  --brand-mint: #2dc3ad;
  --brand-magenta: #ff6f9f;
  --brand-violet: #7e63ff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 14px 34px rgba(29, 54, 113, 0.08);
  --shadow-pop: 0 16px 38px rgba(26, 44, 93, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  color: var(--ink);
  background: radial-gradient(circle at 7% 12%, rgba(45, 91, 255, 0.16), transparent 32%), radial-gradient(circle at 93% 10%, rgba(45, 195, 173, 0.14), transparent 34%), radial-gradient(circle at 87% 88%, rgba(255, 111, 159, 0.13), transparent 34%), linear-gradient(180deg, var(--canvas) 0%, var(--canvas-soft) 100%);
  font-family: "Avenir Next", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.62;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(126, 99, 255, 0.1), transparent 42%), linear-gradient(300deg, rgba(45, 195, 173, 0.08), transparent 40%);
  z-index: -1;
}

a {
  color: var(--brand-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-primary-strong);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ink);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(1160px, 100% - 2.4rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(27, 41, 76, 0.08);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-mint), var(--brand-magenta));
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.site-title {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.site-title:hover,
.site-title:focus-visible {
  color: var(--brand-primary-strong);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 640;
  transition: all 0.2s ease;
}

.site-nav .page-link:hover,
.site-nav .page-link:focus-visible {
  border-color: var(--line);
  color: var(--brand-primary);
  background: rgba(45, 91, 255, 0.08);
}

.site-nav .page-link.is-active {
  color: #fff;
  border-color: var(--brand-primary);
  background: linear-gradient(135deg, var(--brand-primary), #4a77ff);
  box-shadow: 0 8px 18px rgba(45, 91, 255, 0.26);
}

/* Base body structure */
.site-main {
  padding: 2.25rem 0 3.4rem;
}

.main-inner {
  display: grid;
  gap: 1.45rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  padding: 1.8rem 0 2.3rem;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
}

.footer-heading {
  font-weight: 700;
  color: var(--ink);
}

.footer-copy,
.footer-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 33px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand-primary);
  border-color: rgba(45, 91, 255, 0.42);
}

/* Shared visual components */
.section-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem;
  overflow: hidden;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-mint), var(--brand-magenta));
  opacity: 0.65;
}

.section-header {
  margin-bottom: 1.4rem;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.62rem;
  padding: 0.36rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 99, 255, 0.27);
  background: rgba(126, 99, 255, 0.1);
  color: var(--brand-violet);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.74rem;
  font-weight: 780;
}

.section-title {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
}

.section-subtitle {
  margin: 0.7rem auto 0;
  max-width: 680px;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand-primary), #4a76ff);
  box-shadow: 0 10px 24px rgba(45, 91, 255, 0.28);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(45, 91, 255, 0.34);
}

.btn.btn-secondary {
  color: var(--brand-primary);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus-visible {
  color: var(--brand-primary-strong);
  background: var(--surface-soft);
  border-color: rgba(45, 91, 255, 0.35);
}

/* Home page */
.corporate-home {
  display: grid;
  gap: 1.4rem;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.82rem;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 2.82rem);
  line-height: 1.1;
}

.hero-description {
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.hero-highlights {
  display: grid;
  gap: 0.75rem;
}

.highlight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #f7faff, #f6fffc);
  padding: 0.95rem 1rem;
}

.highlight-card h3 {
  font-size: 1rem;
}

.highlight-card p {
  margin-top: 0.38rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* Blog cards */
.blog-grid,
.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 0.95rem;
}

.blog-post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 49, 104, 0.09);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.post-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-image {
  min-height: 174px;
  background-size: cover;
  background-position: center;
}

.post-image.post-image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, rgba(45, 91, 255, 0.2), rgba(45, 195, 173, 0.26));
}

.post-image.post-image-placeholder span {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 750;
}

.post-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-post-card .post-title {
  font-size: 1.08rem;
  line-height: 1.3;
}

.post-excerpt {
  margin-top: 0.62rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.post-meta-row {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.post-date {
  color: #7885a5;
  font-size: 0.82rem;
}

.read-more {
  color: var(--brand-primary);
  font-size: 0.84rem;
  font-weight: 750;
}

.view-all-blog,
.view-github {
  margin-top: 1.2rem;
  text-align: center;
}

/* GitHub section */
.github-profile {
  background: radial-gradient(circle at 8% 6%, rgba(45, 91, 255, 0.1), transparent 40%), radial-gradient(circle at 93% 12%, rgba(45, 195, 173, 0.14), transparent 42%), var(--surface);
}

.github-content {
  max-width: 950px;
  margin-inline: auto;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

.github-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid rgba(45, 91, 255, 0.34);
}

.github-details h3 {
  font-size: 1.2rem;
}

.github-details p {
  color: var(--ink-soft);
  margin-top: 0.16rem;
}

.github-bio {
  font-style: italic;
}

.github-stats {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.stat strong {
  color: var(--brand-primary);
}

.github-projects {
  margin-top: 1.1rem;
}

.github-projects h3 {
  text-align: center;
  margin-bottom: 0.75rem;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.project-list li {
  margin: 0;
}

.project-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  padding: 0.84rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-list a:hover,
.project-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(45, 91, 255, 0.4);
}

.project-icon {
  grid-row: span 2;
  font-size: 1.2rem;
}

.project-name {
  font-weight: 740;
}

.project-desc {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Portfolio panels */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 0.9rem;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(28, 49, 104, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.panel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.panel-image {
  position: relative;
  height: 168px;
  overflow: hidden;
}

.panel-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(17, 30, 60, 0.58));
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.panel-card:hover .panel-image img {
  transform: scale(1.05);
}

.panel-content {
  padding: 0.98rem;
}

.panel-content h3 {
  font-size: 1.08rem;
}

.panel-content p {
  margin-top: 0.58rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.panel-link {
  display: inline-block;
  margin-top: 0.78rem;
  font-weight: 760;
  color: var(--brand-primary);
  text-decoration: none;
}

.panel-link:hover,
.panel-link:focus-visible {
  color: var(--brand-primary-strong);
}

/* Page/post shells */
.prose-shell {
  padding-top: 1.65rem;
}

.page-header,
.post-header {
  margin-bottom: 1.3rem;
}

.page-title,
.post-title {
  margin-top: 0.2rem;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.16;
}

.post-meta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #7b87a8;
  font-size: 0.9rem;
}

.post-feature-media {
  margin: 1.1rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.post-feature-media img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.post-footer {
  margin-top: 1.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.blog-archive-intro {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(45, 91, 255, 0.08), rgba(45, 91, 255, 0.03));
  color: var(--ink-soft);
  padding: 0.88rem 0.95rem;
}

/* Certifications page */
.certs-page {
  display: grid;
  gap: 1.75rem;
}

.prose .certs-section-title {
  margin: 0 0 1rem;
  text-align: center;
  color: var(--ink);
  line-height: 1.16;
}

.certs-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
}

.cert-item img {
  width: auto;
  height: 225px;
  margin-bottom: 12px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.cert-info {
  padding: 0 8px;
  text-align: center;
}

.cert-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.cert-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 576px) {
  .prose .certs-section-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }
  .cert-title {
    line-height: 1.3;
  }
  .cert-item img {
    height: 205px;
  }
}
/* Books page */
.books-recent {
  display: grid;
  gap: 0.95rem;
}

.books-recent-label {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.books-recent-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.book-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
}

.book-item img {
  width: auto;
  height: 333px;
  margin-bottom: 12px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-item img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.book-info {
  padding: 0 8px;
  text-align: center;
}

.book-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 576px) {
  .book-item img {
    height: 280px;
  }
  .book-title {
    line-height: 1.3;
  }
}
/* Rich text */
.prose {
  color: var(--ink);
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.55rem;
  color: #223461;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid rgba(45, 91, 255, 0.32);
  border-radius: 0 10px 10px 0;
  background: rgba(45, 91, 255, 0.05);
  color: #425278;
}

.prose code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: rgba(126, 99, 255, 0.12);
  color: #3e2f84;
  font-size: 0.92em;
}

.prose pre {
  margin: 1.2rem 0;
  overflow-x: auto;
  padding: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1d2746;
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: #f3f7ff;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.62rem 0.68rem;
  text-align: left;
}

.prose th {
  background: rgba(45, 91, 255, 0.08);
}

/* 404 */
.error-page {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.error-code {
  font-size: clamp(3.1rem, 10vw, 5.2rem);
  line-height: 1;
  font-weight: 860;
  color: var(--brand-primary);
}

/* Responsive */
@media (max-width: 1100px) {
  .site-nav {
    max-width: 660px;
  }
}
@media (max-width: 960px) {
  .site-header {
    position: static;
  }
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav {
    justify-content: flex-start;
  }
  .hero-intro {
    grid-template-columns: 1fr;
  }
  .hero-highlights {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}
@media (max-width: 780px) {
  .site-main {
    padding: 1.3rem 0 2.5rem;
  }
  .container {
    width: min(1160px, 100% - 1.3rem);
  }
  .section-shell {
    padding: 1.2rem;
    border-radius: 0;
  }
  .site-title {
    font-size: 1rem;
  }
  .site-nav .page-link {
    min-height: 33px;
    font-size: 0.85rem;
    padding: 0.3rem 0.66rem;
  }
  .github-link {
    text-align: center;
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  .hero-title {
    font-size: 1.72rem;
  }
  .hero-actions,
  .post-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .post-image {
    min-height: 150px;
  }
}

/*# sourceMappingURL=main.css.map */