@charset "UTF-8";
/*
 * 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;
}

/* Blog pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.pagination-arrow {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pagination-arrow:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: var(--shadow-soft);
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-pages li {
  display: grid;
  place-items: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 650;
}

.pagination-pages a {
  display: grid;
  place-items: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.5rem;
  margin: -0.5rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.pagination-pages a:hover {
  color: var(--brand-primary);
}

.pagination-pages li.is-current {
  border-color: var(--brand-primary);
  background: linear-gradient(135deg, var(--brand-primary), #4a77ff);
  color: #fff;
}

.pagination-pages li.is-current span {
  color: #fff;
}

.pagination-ellipsis {
  border: none !important;
  background: transparent !important;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.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;
  }
}
/*
 * Art section — dark theme (/art/ landing + collection gallery pages)
 * Landing (.art-entries/.art-entry) renders one button per collection from
 * _data/art_press.yml; each gallery page (_includes/art-gallery.html) renders
 * the collection's grid + lightbox viewer. Behaviour in assets/js/art.js.
 * Palette follows the site brand (blue / mint / magenta) tuned for dark surfaces.
 */
.art-page {
  --art-bg-0: #080d19;
  --art-bg-1: #0f172a;
  --art-surface: #131c31;
  --art-line: rgba(136, 158, 214, 0.16);
  --art-ink: #eef2ff;
  --art-ink-soft: #97a4c6;
  --art-accent: #7d97ff;
  --art-accent-line: rgba(125, 151, 255, 0.5);
  position: relative;
  display: grid;
  gap: 1.7rem;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  border: 1px solid var(--art-line);
  background: radial-gradient(circle at 10% 0%, rgba(45, 91, 255, 0.16), transparent 38%), radial-gradient(circle at 92% 96%, rgba(255, 111, 159, 0.08), transparent 42%), linear-gradient(180deg, var(--art-bg-1) 0%, var(--art-bg-0) 100%);
  color: var(--art-ink-soft);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.art-page::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.9;
}

/* Headings inherit the light theme ink colour — retune on dark surfaces. */
.art-page h1,
.art-page h2,
.art-page h3 {
  color: var(--art-ink);
}

.art-page a {
  color: var(--art-accent);
}

.art-page a:hover,
.art-page a:focus-visible {
  color: #aebfff;
}

.art-page img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

/* Header */
.art-header {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  max-width: 720px;
  margin-inline: auto;
  padding: 0.8rem 0 0.4rem;
  text-align: center;
}

.art-page .section-badge {
  border-color: rgba(126, 99, 255, 0.45);
  background: rgba(126, 99, 255, 0.16);
  color: #c3b5ff;
}

.art-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.art-lede {
  max-width: 62ch;
  color: var(--art-ink-soft);
}

.art-notice {
  justify-self: center;
  padding: 0.55rem 1.05rem;
  border: 1px dashed rgba(136, 158, 214, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #aeb9d8;
  font-size: 0.82rem;
}

/* Landing — the two collection entry buttons */
.art-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.15rem;
  width: min(100%, 780px);
  margin-inline: auto;
}

.art-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 152px;
  padding: 1.5rem 1.55rem 1.35rem;
  border: 1px solid var(--art-line);
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 88% 12%, rgba(45, 91, 255, 0.14), transparent 46%), linear-gradient(150deg, #16213c 0%, #101a30 100%);
  box-shadow: 0 14px 34px rgba(4, 8, 20, 0.45);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.art-entry::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-mint), var(--brand-magenta));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.art-entry:hover,
.art-entry:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(125, 151, 255, 0.5);
  box-shadow: 0 24px 48px rgba(4, 8, 20, 0.6);
  color: inherit;
}

.art-entry:hover::before,
.art-entry:focus-visible::before {
  opacity: 0.85;
}

.art-entry:focus-visible {
  outline: 2px solid rgba(125, 151, 255, 0.8);
  outline-offset: 2px;
}

.art-entry-name {
  color: var(--art-ink);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.art-entry-meta {
  color: var(--art-ink-soft);
  font-size: 0.86rem;
}

.art-entry-arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.15rem;
  color: var(--art-accent);
  font-size: 1.3rem;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.22s ease;
}

.art-entry:hover .art-entry-arrow,
.art-entry:focus-visible .art-entry-arrow {
  transform: translateX(7px);
}

/* Gallery page — back link to the collections landing */
.art-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--art-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--art-ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 650;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.art-back:hover,
.art-back:focus-visible {
  color: #fff;
  border-color: rgba(45, 91, 255, 0.55);
  background: rgba(45, 91, 255, 0.18);
}

/* Gallery page header (single collection) */
.art-collection-meta {
  max-width: 68ch;
  font-size: 0.9rem;
}

.art-collection-count {
  color: var(--art-accent);
  font-weight: 700;
}

.art-group {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.05rem;
  border-left: 2px solid rgba(45, 91, 255, 0.4);
}

.art-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.02rem;
}

.art-group-year {
  padding: 0.1rem 0.6rem;
  border: 1px solid rgba(45, 91, 255, 0.38);
  border-radius: 999px;
  background: rgba(45, 91, 255, 0.13);
  color: #aebfff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Gallery grid */
.art-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.95rem;
}

.art-item {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.art-item-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--art-line);
  border-radius: var(--radius-sm);
  background: var(--art-surface);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.art-item-button img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.art-item-button:hover,
.art-item-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(125, 151, 255, 0.55);
  box-shadow: 0 16px 34px rgba(4, 8, 20, 0.55);
}

.art-item-button:hover img,
.art-item-button:focus-visible img {
  transform: scale(1.04);
}

.art-item-button:focus-visible {
  outline: 2px solid rgba(125, 151, 255, 0.8);
  outline-offset: 2px;
}

/* "View" veil shown on hover / keyboard focus */
.art-item-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 1rem;
  background: linear-gradient(180deg, rgba(6, 10, 22, 0) 45%, rgba(6, 10, 22, 0.72));
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.art-item-button:hover .art-item-veil,
.art-item-button:focus-visible .art-item-veil {
  opacity: 1;
}

.art-item-veil-label {
  padding: 0.22rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 13, 25, 0.7);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 750;
  transform: translateY(0.35rem);
  transition: transform 0.24s ease;
}

.art-item-button:hover .art-item-veil-label,
.art-item-button:focus-visible .art-item-veil-label {
  transform: translateY(0);
}

/* Item captions */
.art-item-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.art-item-title {
  color: #d9e1f5;
  font-weight: 650;
}

.art-item-label,
.art-item-year {
  color: var(--art-ink-soft);
}

.art-item-label::before,
.art-item-year::before {
  content: "·";
  margin-right: 0.45rem;
  color: rgba(136, 158, 214, 0.55);
}

/* Footer */
.art-footer {
  padding-top: 1.4rem;
  border-top: 1px solid var(--art-line);
  text-align: center;
  font-size: 0.85rem;
}

/* Lightbox viewer */
html.art-viewer-open {
  overflow: hidden;
}

.art-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: clamp(0.8rem, 3vw, 1.6rem);
  background: rgba(5, 9, 18, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.art-lightbox.is-open {
  opacity: 1;
}

.art-lightbox[hidden] {
  display: none;
}

.art-lightbox img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.art-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.art-lightbox-topbar,
.art-lightbox-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.art-lightbox-collection {
  color: var(--art-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 750;
}

.art-lightbox-close,
.art-lightbox-nav {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(136, 158, 214, 0.35);
  border-radius: 50%;
  background: rgba(10, 16, 32, 0.72);
  color: #dfe6f7;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.art-lightbox-close {
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
  line-height: 1;
}

.art-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  font-size: 1.9rem;
  line-height: 1;
  transform: translateY(-50%);
}

.art-lightbox-nav-prev {
  left: clamp(0.6rem, 3vw, 2rem);
}

.art-lightbox-nav-next {
  right: clamp(0.6rem, 3vw, 2rem);
}

.art-lightbox-close:hover,
.art-lightbox-close:focus-visible,
.art-lightbox-nav:hover,
.art-lightbox-nav:focus-visible {
  border-color: rgba(125, 151, 255, 0.85);
  background: rgba(45, 91, 255, 0.28);
  color: #fff;
}

.art-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.art-lightbox-nav:focus-visible {
  outline: 2px solid rgba(125, 151, 255, 0.8);
  outline-offset: 2px;
}

.art-lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
}

.art-lightbox-image {
  max-width: min(100%, 1240px);
  max-height: min(100%, 78vh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.art-lightbox-image.is-loaded {
  opacity: 1;
  transform: none;
}

.art-lightbox-caption {
  flex-wrap: wrap;
  padding: 0 clamp(0.2rem, 2vw, 1rem);
}

.art-lightbox-title {
  color: var(--art-ink);
  font-weight: 700;
}

.art-lightbox-year {
  margin-left: 0.6rem;
  color: var(--art-ink-soft);
  font-weight: 500;
}

.art-lightbox-counter {
  margin-left: auto;
  color: var(--art-ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.art-lightbox-notice {
  position: absolute;
  bottom: clamp(0.7rem, 2.5vw, 1.2rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(151, 164, 198, 0.75);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Notice toast (context-menu restraint feedback) */
.art-toast {
  position: fixed;
  left: 50%;
  bottom: 2.2rem;
  z-index: 120;
  max-width: min(92vw, 480px);
  margin: 0;
  padding: 0.68rem 1.2rem;
  border: 1px solid rgba(125, 151, 255, 0.4);
  border-radius: 999px;
  background: rgba(9, 14, 28, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  color: #dfe6f7;
  text-align: center;
  font-size: 0.84rem;
  opacity: 0;
  transform: translate(-50%, 1.4rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.art-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */
@media (max-width: 780px) {
  .art-gallery {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 0.7rem;
  }
  .art-lightbox-topbar {
    justify-content: flex-end;
  }
  .art-lightbox-collection {
    margin-right: auto;
  }
}
@media (max-width: 620px) {
  .art-lightbox-nav {
    top: auto;
    bottom: 4.6rem;
    transform: none;
    width: 46px;
    height: 46px;
  }
  .art-lightbox-nav-prev {
    left: 50%;
    margin-left: -118px;
  }
  .art-lightbox-nav-next {
    right: 50%;
    margin-right: -118px;
  }
  .art-lightbox-notice {
    display: none;
  }
}
/* Print restraint — the gallery is screen-only */
@media print {
  .art-page,
  .art-lightbox,
  .art-toast {
    display: none !important;
  }
}

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