html,
body {
  width: 100%;
  min-height: 100%;
}

:root {
  --header-offset: 96px;
}

body {
  margin: 0;
  background: #101217;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -40px;
  z-index: 2000;
  padding: 8px 12px;
  border-radius: 8px;
  background: #202838;
  color: #e6ebf2;
  border: 1px solid #36435a;
  font: 600 12px/1 "Inter", Arial, sans-serif;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

#bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
}

.site-header,
.container,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1140px, 92vw);
  margin: 0 auto;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 18, 23, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header.is-stuck {
  border-bottom: 1px solid #2b3445;
  box-shadow: 0 8px 24px rgba(4, 8, 16, 0.26);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #202838;
  color: #e6ebf2;
  border: 1px solid #36435a;
  font: 700 12px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.06em;
}

.logo-text {
  color: #e6ebf2;
  font: 600 14px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-nav a {
  color: #b8c3d8;
  text-decoration: none;
  font: 500 12px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav a:hover {
  color: #e6ebf2;
}

.top-nav a[aria-current="page"] {
  color: #e6ebf2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.top-nav a:focus-visible,
.theme-toggle:focus-visible,
.carousel-nav:focus-visible,
.carousel-close:focus-visible,
.blog-modal-close:focus-visible,
.music-refresh:focus-visible,
.music-item-button:focus-visible,
.footer-content a:focus-visible {
  outline: 2px solid #e6ebf2;
  outline-offset: 3px;
}

.theme-toggle {
  margin-left: 6px;
  position: relative;
  overflow: hidden;
  padding: 8px 34px 8px 12px;
  border-radius: 4px;
  border: 1px solid #36435a;
  background:
    linear-gradient(180deg, rgba(230, 235, 242, 0.1), rgba(230, 235, 242, 0) 58%),
    repeating-linear-gradient(0deg, rgba(230, 235, 242, 0.05) 0 1px, transparent 1px 3px),
    #161a22;
  color: #e6ebf2;
  font: 600 11px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(32, 40, 56, 0.9),
    0 0 0 1px rgba(16, 18, 23, 0.8);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.theme-toggle::after {
  content: "☾";
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 1px solid #36435a;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  background: #202838;
  color: #e6ebf2;
}

.theme-toggle:hover {
  background:
    linear-gradient(180deg, rgba(230, 235, 242, 0.14), rgba(230, 235, 242, 0) 58%),
    repeating-linear-gradient(0deg, rgba(230, 235, 242, 0.06) 0 1px, transparent 1px 3px),
    #202838;
  box-shadow:
    inset 0 0 0 1px rgba(54, 67, 90, 0.9),
    0 0 0 1px rgba(32, 40, 56, 0.85);
}

.theme-toggle[aria-pressed="true"]::after {
  content: "☀";
}

body.light {
  background: #f4f6fb;
}

html[data-theme="light"] body {
  background: #f4f6fb;
}

body.light #bg-animation {
  opacity: 0.34;
}

body.light .logo-mark,
body.light .about-section,
body.light .blog-card,
body.light .blog-modal-content,
body.light .featured-item,
body.light .carousel-nav,
body.light .carousel-close,
body.light .blog-modal-close,
body.light .theme-toggle {
  background: #ffffff;
  border-color: #cfd7e6;
  color: #1f2a3d;
}

body.light .site-footer {
  border-top-color: #cfd7e6;
}

body.light .item.is-empty,
body.light .featured-item.is-empty {
  background: #e7edf7;
}

body.light .logo-text,
body.light h1,
body.light .about-section h2,
body.light .featured-section h2,
body.light .blog-section h2,
body.light .blog-card h3,
body.light .blog-modal-content h3,
body.light .footer-content h3 {
  color: #1f2a3d;
}

body.light .top-nav a,
body.light .about-section,
body.light .blog-card p,
body.light .blog-modal-content p,
body.light .footer-content p,
body.light .credit,
body.light .blog-date,
body.light .blog-modal-date,
body.light .carousel-caption,
body.light .footer-content a {
  color: #3a475f;
}

body.light .top-nav a:hover,
body.light .footer-content a:hover {
  color: #1f2a3d;
}

body.light .top-nav a[aria-current="page"] {
  color: #1f2a3d;
}

body.light .site-header {
  background: rgba(244, 246, 251, 0.9);
}

body.light .site-header.is-stuck {
  border-bottom-color: #cfd7e6;
  box-shadow: 0 8px 24px rgba(111, 128, 156, 0.18);
}

body.light .carousel-modal,
body.light .blog-modal {
  background: rgba(236, 241, 250, 0.95);
}

body.light .music-intro,
body.light .music-status,
body.light .music-meta,
body.light .music-artist {
  color: #3a475f;
}

body.light .music-item,
body.light .music-refresh {
  background: #ffffff;
  border-color: #cfd7e6;
  color: #1f2a3d;
}

body.light .music-section {
  background: rgba(255, 255, 255, 0.94);
  border-color: #cfd7e6;
}

body.light .music-player,
body.light .music-item-button {
  background: #ffffff;
  border-color: #cfd7e6;
  color: #1f2a3d;
}

body.light .music-item-button h3 {
  color: #1f2a3d;
}

body.light .blog-card-media,
html[data-theme="light"] .blog-card-media {
  border-color: #cfd7e6;
}

html[data-theme="light"] .logo-mark,
html[data-theme="light"] .about-section,
html[data-theme="light"] .blog-card,
html[data-theme="light"] .blog-modal-content,
html[data-theme="light"] .featured-item,
html[data-theme="light"] .carousel-nav,
html[data-theme="light"] .carousel-close,
html[data-theme="light"] .blog-modal-close,
html[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border-color: #cfd7e6;
  color: #1f2a3d;
}

html[data-theme="light"] .top-nav a,
html[data-theme="light"] .about-section,
html[data-theme="light"] .blog-card p,
html[data-theme="light"] .blog-modal-content p,
html[data-theme="light"] .footer-content p,
html[data-theme="light"] .credit,
html[data-theme="light"] .blog-date,
html[data-theme="light"] .blog-modal-date,
html[data-theme="light"] .carousel-caption,
html[data-theme="light"] .footer-content a {
  color: #3a475f;
}

body.light .theme-toggle,
html[data-theme="light"] .theme-toggle {
  background:
    linear-gradient(180deg, rgba(31, 42, 61, 0.1), rgba(31, 42, 61, 0) 58%),
    repeating-linear-gradient(0deg, rgba(31, 42, 61, 0.05) 0 1px, transparent 1px 3px),
    #ffffff;
  border-color: #cfd7e6;
  color: #1f2a3d;
  box-shadow:
    inset 0 0 0 1px rgba(207, 215, 230, 0.95),
    0 0 0 1px rgba(231, 237, 247, 0.95);
}

body.light .theme-toggle::after,
html[data-theme="light"] .theme-toggle::after {
  border-color: #cfd7e6;
  background: #e7edf7;
  color: #1f2a3d;
}

body.light .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:hover {
  background:
    linear-gradient(180deg, rgba(31, 42, 61, 0.14), rgba(31, 42, 61, 0) 58%),
    repeating-linear-gradient(0deg, rgba(31, 42, 61, 0.06) 0 1px, transparent 1px 3px),
    #ffffff;
}

html[data-theme="light"] .logo-text,
html[data-theme="light"] h1,
html[data-theme="light"] .about-section h2,
html[data-theme="light"] .featured-section h2,
html[data-theme="light"] .blog-section h2,
html[data-theme="light"] .blog-card h3,
html[data-theme="light"] .blog-modal-content h3,
html[data-theme="light"] .footer-content h3 {
  color: #1f2a3d;
}

html[data-theme="light"] .access-badge {
  background: #ffffff;
  border-color: #cfd7e6;
  color: #3a475f;
}

html[data-theme="light"] .music-intro,
html[data-theme="light"] .music-status,
html[data-theme="light"] .music-meta,
html[data-theme="light"] .music-artist {
  color: #3a475f;
}

html[data-theme="light"] .music-item,
html[data-theme="light"] .music-refresh {
  background: #ffffff;
  border-color: #cfd7e6;
  color: #1f2a3d;
}

html[data-theme="light"] .music-section {
  background: rgba(255, 255, 255, 0.94);
  border-color: #cfd7e6;
}

html[data-theme="light"] .music-player,
html[data-theme="light"] .music-item-button {
  background: #ffffff;
  border-color: #cfd7e6;
  color: #1f2a3d;
}

html[data-theme="light"] .music-item-button h3 {
  color: #1f2a3d;
}


html[data-theme="light"] .site-header {
  background: rgba(244, 246, 251, 0.9);
}

html[data-theme="light"] .site-header.is-stuck {
  border-bottom-color: #cfd7e6;
  box-shadow: 0 8px 24px rgba(111, 128, 156, 0.18);
}

.container {
  padding: 34px 0 56px;
  margin: 0 auto;
  width: min(1140px, 92vw);
}

h1 {
  position: relative;
  margin-bottom: 45px;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 44px;
  text-transform: uppercase;
  color: #e6ebf2;
  letter-spacing: 0.06em;
}

h1[id],
h2[id],
section[id],
footer[id] {
  scroll-margin-top: calc(var(--header-offset) + 12px);
}

.gallery-wrap {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 29vh;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-wrap + .gallery-wrap {
  margin-top: 16px;
}

.featured-section {
  margin-top: 16px;
}

.featured-section h2 {
  margin: 0 0 14px;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e6ebf2;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-item {
  min-height: 220px;
  border-radius: 12px;
  border: 1px solid #2b3445;
  background: #161a22;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
}

.featured-item:focus-visible {
  outline: 2px solid #e6ebf2;
  outline-offset: 2px;
}

.featured-item.is-empty {
  cursor: default;
  background: #1a1f2b;
}


.about-section {
  margin-top: 16px;
  padding: 28px;
  border: 1px solid #2b3445;
  border-radius: 12px;
  background: #161a22;
  color: #c8d1df;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.7;
}

.about-section h2 {
  margin: 0 0 14px;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e6ebf2;
}

.about-section p {
  margin: 0;
}

.about-section p + p {
  margin-top: 10px;
}

.blog-section {
  margin-top: 16px;
}

.blog-section h2 {
  margin: 0 0 14px;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e6ebf2;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-card {
  padding: 18px;
  border: 1px solid #2b3445;
  border-radius: 12px;
  background: #161a22;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.blog-card:hover {
  border-color: #3b4960;
  background: #1a202b;
}

.blog-card:focus-visible {
  outline: 2px solid #e6ebf2;
  outline-offset: 2px;
}

.blog-date {
  margin: 0 0 8px;
  color: #a9b4c8;
  font: 500 12px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0 0 10px;
  color: #e6ebf2;
  font: 600 18px/1.3 "Inter", Arial, sans-serif;
}

.blog-card p {
  margin: 0;
  color: #c8d1df;
  font: 400 14px/1.6 "Inter", Arial, sans-serif;
}

.blog-card-media {
  margin: 0 0 12px;
  min-height: 132px;
  border: 1px solid #2b3445;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.blog-card-media-atmosphere {
  background-image:
    linear-gradient(180deg, rgba(16, 18, 23, 0.05), rgba(16, 18, 23, 0.72)),
    url("images/IMG_2079.PNG");
}

.blog-card-media-sketch {
  background-image:
    linear-gradient(180deg, rgba(16, 18, 23, 0.05), rgba(16, 18, 23, 0.72)),
    url("images/IMG_0545.jpg");
}

.blog-card-media-commission {
  background-image:
    linear-gradient(180deg, rgba(16, 18, 23, 0.05), rgba(16, 18, 23, 0.72)),
    url("images/IMG_2068.PNG");
}

.blog-card-media-title {
  width: 100%;
  margin: 0;
  padding: 12px;
  color: #e6ebf2;
  font: 600 16px/1.3 "Inter", Arial, sans-serif;
  letter-spacing: 0.02em;
}

.blog-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 18, 23, 0.92);
  z-index: 1100;
}

.blog-modal.is-open {
  display: flex;
}

.blog-modal-content {
  width: min(760px, 94vw);
  margin: 0;
  padding: 28px;
  border: 1px solid #2b3445;
  border-radius: 12px;
  background: #161a22;
}

.blog-modal-date {
  margin: 0 0 10px;
  color: #a9b4c8;
  font: 500 12px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-modal-content h3 {
  margin: 0 0 14px;
  color: #e6ebf2;
  font: 600 28px/1.2 "Oswald", "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-modal-content p {
  margin: 0;
  color: #c8d1df;
  font: 400 15px/1.8 "Inter", Arial, sans-serif;
}

.blog-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #36435a;
  background: #161a22;
  color: #e6ebf2;
  font-family: "Inter", Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.blog-modal-close:hover {
  background: #202838;
}

.music-section {
  position: fixed;
  top: calc(var(--header-offset) + 10px);
  right: 12px;
  width: min(220px, 24vw);
  max-height: calc(100vh - var(--header-offset) - 24px);
  padding: 8px;
  border: 1px solid #2b3445;
  border-radius: 10px;
  background: rgba(22, 26, 34, 0.92);
  backdrop-filter: blur(4px);
  overflow: auto;
  z-index: 9;
}

.music-section h2 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e6ebf2;
}

.music-intro {
  display: none;
}

.music-player {
  margin-top: 6px;
  padding: 6px;
  border: 1px solid #2b3445;
  border-radius: 8px;
  background: #161a22;
}

.music-now-playing {
  margin: 0 0 6px;
  color: #c8d1df;
  font: 500 11px/1.3 "Inter", Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-audio {
  width: 100%;
  height: 26px;
}

.music-toolbar {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.music-refresh {
  padding: 5px 6px;
  border: 1px solid #36435a;
  border-radius: 6px;
  background: #161a22;
  color: #e6ebf2;
  font: 600 10px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.music-refresh:disabled {
  opacity: 0.65;
  cursor: default;
}

.music-status {
  display: none;
}

.music-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.music-item {
  margin: 0;
}

.music-item-button {
  width: 100%;
  padding: 8px;
  border: 1px solid #2b3445;
  border-radius: 8px;
  background: #161a22;
  text-align: left;
  cursor: pointer;
}

.music-item-button.is-active {
  border-color: #4d5f7d;
  background: #202838;
}

.music-item-button.is-disabled {
  opacity: 0.65;
  cursor: default;
}

.music-item-button h3 {
  margin: 0;
  color: #e6ebf2;
  font: 600 12px/1.1 "Inter", Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist,
.music-meta {
  display: none;
}

.music-artist {
  color: #c8d1df;
  font: 500 11px/1.3 "Inter", Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-meta {
  color: #a9b4c8;
  font: 400 10px/1.3 "Inter", Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-no-preview {
  display: block;
  margin-top: 6px;
  color: #a9b4c8;
  font: 500 9px/1.3 "Inter", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.item {
  flex: 1;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: flex 0.8s ease;
  cursor: pointer;
}

.item:hover {
  flex: 7;
}

.item:focus-visible {
  outline: 2px solid #e6ebf2;
  outline-offset: -2px;
}

.item.is-empty {
  background: #1a1f2b;
  cursor: default;
}

.item.is-empty:hover {
  flex: 1;
}

.item-1 {
  background-image: url("images/IMG_0236.PNG");
}

.item-2 {
  background-image: url("images/IMG_1038.PNG");
}

.item-3 {
  background-image: url("images/IMG_1719.PNG");
}

.item-4 {
  background-image: url("images/IMG_2068.PNG");
}

.item-5 {
  background-image: url("images/IMG_2079.PNG");
}

.item-6 {
  background-image: url("images/IMG_3979.PNG");
}

.item-7 {
  background-image: url("images/IMG_0014.jpg");
}

.item-8 {
  background-image: url("images/IMG_0200.jpg");
}

.item-9 {
  background-image: url("images/IMG_0247.jpg");
}

.item-10 {
  background-image: url("images/IMG_0545.jpg");
}

.item-11 {
  background-image: url("images/IMG_0627.jpg");
}

.item-12 {
  background-image: url("images/IMG_0769.jpg");
}

.item-13 {
  background-image: url("images/IMG_0821.jpg");
}

.item-14 {
  background-image: url("images/IMG_1042.jpg");
}

.item-15 {
  background-image: url("images/IMG_1061.jpg");
}

.carousel-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(16, 18, 23, 0.92);
  z-index: 1000;
}

.carousel-modal.is-open {
  display: flex;
}

.carousel-figure {
  margin: 0;
  max-width: min(92vw, 1000px);
  width: 100%;
}

.carousel-image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  touch-action: pan-y;
}

.carousel-caption {
  margin-top: 10px;
  color: #c8d1df;
  font: 500 13px/1.4 "Inter", Arial, sans-serif;
  letter-spacing: 0.03em;
  text-align: center;
}

.carousel-nav,
.carousel-close {
  border: 1px solid #36435a;
  background: #161a22;
  color: #e6ebf2;
  font-family: "Inter", Arial, sans-serif;
  cursor: pointer;
}

.carousel-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover,
.carousel-close:hover {
  background: #202838;
}

.credit {
  margin: 0;
  color: #a9b4c8;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.site-footer {
  border-top: 1px solid #2b3445;
  width: 100%;
  padding: 22px 0 26px;
}

.footer-content {
  width: min(1140px, 92vw);
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.footer-content h3 {
  margin: 0 0 8px;
  color: #e6ebf2;
  font: 600 13px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-content p {
  margin: 0 0 6px;
  color: #a9b4c8;
  font: 400 14px/1.5 "Inter", Arial, sans-serif;
}

.footer-content a {
  color: #c8d1df;
  text-decoration: none;
}

.footer-content a:hover {
  color: #e6ebf2;
}

.site-footer .credit {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px 0;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }

  .top-nav {
    gap: 12px;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .container {
    padding: 24px 0 36px;
    width: 94vw;
  }

  h1 {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .gallery-wrap {
    height: 23vh;
    min-height: 140px;
  }

  .about-section {
    margin-top: 16px;
    padding: 20px;
  }

  .about-section h2 {
    font-size: 22px;
  }

  .featured-section h2 {
    font-size: 22px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-item {
    min-height: 160px;
  }

  .blog-section h2 {
    font-size: 22px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .music-section {
    position: static;
    width: auto;
    max-height: none;
    margin-top: 16px;
    padding: 10px;
    background: #161a22;
    backdrop-filter: none;
    overflow: visible;
  }

  .music-section h2 {
    font-size: 16px;
  }

  .music-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .music-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-card {
    padding: 16px;
  }

  .blog-modal {
    padding: 14px;
  }

  .blog-modal-content {
    padding: 20px;
  }

  .blog-modal-content h3 {
    font-size: 22px;
  }

  .footer-content {
    width: 94vw;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-footer .credit {
    width: 94vw;
    font-size: 11px;
  }

  .carousel-modal {
    padding: 14px;
    gap: 10px;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .music-list {
    grid-template-columns: 1fr;
  }

  .music-item-button {
    padding: 9px;
  }
}
