/*
Theme Name: Gloaming Archive
Author: Gloaming Solutions
Description: Raika & Reiの音楽、物語、制作記録をまとめる創作アーカイブ用ハイブリッドテーマ。
Version: 0.3.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: gloaming-archive
*/

:root {
  color-scheme: dark;
  --gs-bg: #0f1013;
  --gs-surface: #18191e;
  --gs-surface-raised: #22232a;
  --gs-border: #303138;
  --gs-text: #f5f5f6;
  --gs-text-muted: #a7a8ae;
  --gs-purple: #8f63d8;
  --gs-purple-dark: #291b43;
  --gs-blue-dark: #263c4a;
  --gs-focus: #c9a8ff;
  --gs-header: rgba(15, 16, 19, 0.9);
  --gs-radius-small: 12px;
  --gs-radius-card: 18px;
  --gs-radius-large: 24px;
  --gs-content: 1180px;
  --gs-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--gs-bg);
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(143, 99, 216, 0.08), transparent 28rem),
    var(--gs-bg);
  color: var(--gs-text);
  font-family: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gs-focus);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--gs-text);
  color: var(--gs-bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 48px), var(--gs-content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(48, 49, 56, 0.86);
  background: var(--gs-header);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--gs-content));
  min-height: 64px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gs-text);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(201, 168, 255, 0.5);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gs-purple-dark), var(--gs-blue-dark));
  color: var(--gs-text);
  font-family: Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.site-navigation-links {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  list-style: none;
}

.site-navigation-links a {
  position: relative;
  display: block;
  padding: 21px 0 18px;
  color: var(--gs-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.site-navigation-links a::after {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--gs-purple);
  content: "";
  transition: transform 160ms ease;
}

.site-navigation-links a:hover,
.site-navigation-links .current-menu-item > a,
.site-navigation-links .current_page_item > a {
  color: var(--gs-text);
}

.site-navigation-links a:hover::after,
.site-navigation-links .current-menu-item > a::after,
.site-navigation-links .current_page_item > a::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  padding: 21px 0 18px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--gs-text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav-dropdown-toggle > span {
  width: 7px;
  height: 7px;
  margin: -4px 0 0 8px;
  transform: rotate(45deg);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.nav-submenu {
  position: absolute;
  z-index: 110;
  top: calc(100% - 6px);
  left: 50%;
  display: none;
  min-width: 168px;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-small);
  background: #15161a;
  box-shadow: var(--gs-shadow);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.is-open .nav-submenu {
  display: block;
}

.site-navigation-links .nav-submenu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #d6d6db;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-navigation-links .nav-submenu a::after {
  display: none;
}

.site-navigation-links .nav-submenu a:hover,
.site-navigation-links .nav-submenu a:focus-visible {
  background: var(--gs-surface-raised);
  color: var(--gs-text);
}

.search-toggle,
.menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--gs-border);
  border-radius: 50%;
  background: var(--gs-surface);
  color: var(--gs-text);
  cursor: pointer;
}

.search-toggle:hover,
.menu-toggle:hover {
  border-color: var(--gs-purple);
  background: var(--gs-surface-raised);
}

.search-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle {
  display: none;
}

.prototype-search {
  border-top: 1px solid var(--gs-border);
  background: var(--gs-surface);
}

.search-form {
  width: min(calc(100% - 48px), 760px);
  margin-inline: auto;
  padding: 24px 0 28px;
}

.search-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  padding: 11px 15px;
  border: 1px solid var(--gs-border);
  border-radius: 12px;
  background: var(--gs-bg);
  color: var(--gs-text);
}

.search-note {
  margin: 8px 0 0;
  color: var(--gs-text-muted);
  font-size: 0.78rem;
}

.hero {
  padding-top: clamp(24px, 4vw, 52px);
}

.hero-cover {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-large);
  background:
    linear-gradient(90deg, rgba(15, 16, 19, 0.96) 0%, rgba(15, 16, 19, 0.65) 58%, rgba(15, 16, 19, 0.15) 100%),
    radial-gradient(circle at 76% 35%, rgba(143, 99, 216, 0.5), transparent 28%),
    radial-gradient(circle at 90% 74%, rgba(38, 60, 74, 0.9), transparent 38%),
    linear-gradient(135deg, #15171e, #291b43 60%, #263c4a);
  box-shadow: var(--gs-shadow);
}

.hero-cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
}

.hero-cover::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000);
  mask-image: linear-gradient(90deg, transparent 20%, #000);
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(245, 245, 246, 0.12);
  border-radius: 50%;
}

.hero-orbit-one {
  top: -110px;
  right: -50px;
  width: 410px;
  aspect-ratio: 1;
}

.hero-orbit-two {
  right: 130px;
  bottom: -190px;
  width: 350px;
  aspect-ratio: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 420px;
  padding: clamp(36px, 6vw, 74px);
  align-items: flex-end;
  gap: 28px;
}

.profile-placeholder {
  display: grid;
  width: 96px;
  flex: 0 0 96px;
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid rgba(15, 16, 19, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(201, 168, 255, 0.35), transparent 25%),
    linear-gradient(145deg, var(--gs-purple-dark), var(--gs-blue-dark));
  box-shadow: 0 0 0 1px rgba(245, 245, 246, 0.18);
  color: var(--gs-text);
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-image,
.profile-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.card-meta,
.project-kicker {
  margin: 0 0 8px;
  color: #c9a8ff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 10px 0 0;
  color: #ded7e8;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 0.02em;
}

.hero-description {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--gs-text-muted);
}

.hero-actions {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gs-purple);
  color: #fff;
}

.button-primary:hover {
  background: #9d73df;
}

.button-secondary {
  border-color: #474852;
  background: rgba(24, 25, 30, 0.82);
  color: var(--gs-text);
}

.button-secondary:hover {
  border-color: var(--gs-purple);
  background: var(--gs-surface-raised);
}

.category-nav {
  display: flex;
  padding: 26px 0 6px;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  display: inline-flex;
  min-height: 40px;
  padding: 7px 18px;
  align-items: center;
  border: 1px solid var(--gs-border);
  border-radius: 999px;
  background: var(--gs-surface);
  color: var(--gs-text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.category-pill:hover {
  border-color: #655178;
  color: var(--gs-text);
}

.category-pill.is-active {
  border-color: rgba(143, 99, 216, 0.7);
  background: rgba(143, 99, 216, 0.16);
  color: #dfcff7;
}

.content-section {
  padding-top: clamp(60px, 7.5vw, 98px);
}

.section-heading {
  display: flex;
  margin-bottom: 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
}

.about-copy h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.section-link,
.text-button,
.card-actions a {
  color: #d9c6f5;
  font-size: 0.86rem;
  font-weight: 700;
}

.section-link {
  flex: 0 0 auto;
}

.featured-project {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(143, 99, 216, 0.36);
  border-radius: var(--gs-radius-large);
  background:
    radial-gradient(circle at 79% 45%, rgba(143, 99, 216, 0.42), transparent 27%),
    linear-gradient(120deg, #17222a 0%, #1d2430 46%, #291b43 100%);
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
}

.featured-project::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(15, 16, 19, 0.5));
  content: "";
  pointer-events: none;
}

.featured-art {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(145deg, rgba(23, 34, 42, 0.76), rgba(41, 27, 67, 0.48));
}

.featured-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.featured-art-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.featured-ring {
  position: absolute;
  border: 1px solid rgba(245, 245, 246, 0.2);
  border-radius: 50%;
}

.ring-one {
  top: 12%;
  left: 8%;
  width: 260px;
  aspect-ratio: 1;
}

.ring-two {
  bottom: -25%;
  left: 34%;
  width: 300px;
  aspect-ratio: 1;
}

.featured-star {
  position: absolute;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gs-focus);
  box-shadow: 0 0 20px var(--gs-purple);
}

.star-one {
  top: 28%;
  left: 44%;
}

.star-two {
  bottom: 21%;
  left: 24%;
  width: 4px;
}

.featured-copy {
  position: relative;
  z-index: 2;
  display: flex;
  padding: clamp(38px, 6vw, 74px);
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.featured-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.featured-copy p:not(.project-kicker) {
  margin: 0 0 26px;
  color: #c8c8ce;
}

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

.music-card,
.story-card,
.journal-card {
  overflow: hidden;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-card);
  background: var(--gs-surface);
}

.music-card,
.story-card {
  transition: border-color 180ms ease, transform 180ms ease;
}

.music-card:hover,
.story-card:hover {
  transform: translateY(-3px);
  border-color: #4c4658;
}

.artwork {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  isolation: isolate;
}

.artwork::before,
.artwork::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
}

.artwork::before {
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.artwork::after {
  width: 28%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 70px rgba(201, 168, 255, 0.25);
}

.artwork > span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.artwork-image,
.story-cover-image,
.journal-thumb-image {
  padding: 0;
  background: var(--gs-surface-raised);
}

.artwork-image img,
.story-cover-image img,
.journal-thumb-image img,
.single-featured-image img,
.archive-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.artwork-aurora {
  background: linear-gradient(145deg, #13151b, #432858 52%, #30515c);
}

.artwork-dawn {
  background: linear-gradient(145deg, #19222b, #6a474e 50%, #c18a67);
}

.artwork-bento {
  background: linear-gradient(145deg, #22353c, #765a3f 48%, #2a1f39);
}

.artwork-cat {
  background: linear-gradient(145deg, #111318, #1f3d4e 45%, #543066);
}

.artwork-ghost {
  background: linear-gradient(145deg, #0f1119, #443c65 52%, #1d2c34);
}

.artwork-shadow {
  background: linear-gradient(145deg, #101116, #2f3641 52%, #192a2c);
}

.music-card-body {
  padding: 20px;
}

.music-card h3,
.story-card h3,
.journal-card h2,
.journal-card h3 {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.music-card h3 {
  min-height: 2.6em;
  margin: 0 0 16px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.card-actions {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.play-button {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #58515e;
  border-radius: 50%;
  background: var(--gs-surface-raised);
  color: var(--gs-text);
  cursor: pointer;
}

.play-button:hover {
  border-color: var(--gs-purple);
  background: rgba(143, 99, 216, 0.18);
}

.play-button[aria-pressed="true"] {
  border-color: var(--gs-focus);
  background: var(--gs-purple-dark);
  box-shadow: inset 0 0 0 2px rgba(201, 168, 255, 0.15);
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.play-button.is-disabled {
  opacity: 0.42;
  cursor: default;
}

.music-card h3 a,
.story-card h3 a,
.journal-card h2 a,
.journal-card h3 a {
  text-decoration: none;
}

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

.story-cover {
  position: relative;
  display: flex;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 24px;
  justify-content: space-between;
  flex-direction: column;
}

.story-cover::after {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.cover-almost {
  background: linear-gradient(160deg, #161c25, #46334d 58%, #956c65);
}

.cover-galaxy {
  background: linear-gradient(160deg, #10141b, #203c4d 46%, #4e2d63);
}

.cover-night {
  background: linear-gradient(160deg, #12151a, #252d38 48%, #3a2544);
}

.cover-number,
.cover-title {
  position: relative;
  z-index: 1;
}

.cover-number {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.cover-title {
  max-width: 90%;
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.story-body {
  padding: 22px;
}

.story-body h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.story-body > p:not(.card-meta) {
  min-height: 5.25em;
  margin: 0 0 18px;
  color: var(--gs-text-muted);
  font-size: 0.92rem;
}

.journal-list {
  display: grid;
  gap: 18px;
}

.journal-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.journal-thumb {
  position: relative;
  display: grid;
  min-height: 245px;
  overflow: hidden;
  place-items: center;
}

.journal-thumb::before {
  position: absolute;
  width: 140px;
  aspect-ratio: 1;
  transform: rotate(28deg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
}

.journal-thumb span {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.thumb-studio {
  background: linear-gradient(135deg, #171a20, #3d2b48 50%, #2b4651);
}

.thumb-notes {
  background: linear-gradient(135deg, #182128, #3c3f50 50%, #5b3d54);
}

.thumb-signal {
  background: linear-gradient(135deg, #11151b, #24343d 52%, #392c49);
}

.journal-body {
  display: flex;
  padding: clamp(24px, 4vw, 42px);
  justify-content: center;
  flex-direction: column;
}

.journal-meta {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gs-text-muted);
  font-size: 0.76rem;
}

.tag {
  padding: 3px 10px;
  border: 1px solid rgba(143, 99, 216, 0.48);
  border-radius: 999px;
  color: #d7c2f3;
}

.journal-card h2,
.journal-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.45;
}

.journal-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 16px;
  color: var(--gs-text-muted);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.about-section {
  display: grid;
  margin-top: clamp(74px, 10vw, 124px);
  margin-bottom: clamp(74px, 10vw, 124px);
  padding: clamp(34px, 6vw, 64px);
  align-items: center;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-large);
  background:
    radial-gradient(circle at 12% 50%, rgba(143, 99, 216, 0.14), transparent 32%),
    var(--gs-surface);
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 7vw, 90px);
}

.about-mark {
  display: grid;
  width: min(100%, 250px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(201, 168, 255, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 27%, rgba(201, 168, 255, 0.22), transparent 25%),
    linear-gradient(145deg, #1c2130, var(--gs-purple-dark));
  color: #ded0f2;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.08em;
}

.about-copy > p:not(.eyebrow) {
  color: #c2c2c8;
}

.about-copy .button {
  margin-top: 10px;
}

.site-footer {
  border-top: 1px solid var(--gs-border);
  background: #0c0d10;
}

.footer-inner {
  display: grid;
  min-height: 240px;
  padding-top: 48px;
  padding-bottom: 36px;
  align-items: start;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 28px 48px;
}

.footer-brand p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.footer-brand span,
.copyright {
  color: var(--gs-text-muted);
  font-size: 0.78rem;
}

.footer-brand small {
  display: block;
  margin-top: 8px;
  color: #85868d;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #c8c8ce;
  font-size: 0.82rem;
}

.copyright {
  margin: 0;
  align-self: end;
  grid-column: 1 / -1;
}

.content-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px dashed var(--gs-border);
  border-radius: var(--gs-radius-card);
  background: rgba(24, 25, 30, 0.55);
  color: var(--gs-text-muted);
  text-align: center;
}

.archive-main,
.single-main {
  min-height: 65vh;
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(72px, 10vw, 136px);
}

.archive-header,
.single-header {
  max-width: 820px;
  margin-bottom: clamp(34px, 6vw, 64px);
}

.archive-header h1,
.single-header h1,
.not-found h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.archive-description,
.single-date {
  color: var(--gs-text-muted);
}

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

.archive-card {
  overflow: hidden;
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-card);
  background: var(--gs-surface);
}

.archive-card-image {
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  background: linear-gradient(145deg, #13151b, #432858 52%, #30515c);
  color: rgba(255, 255, 255, 0.82);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  text-decoration: none;
}

.archive-grid-gs_story .archive-card-image {
  aspect-ratio: 4 / 5;
}

.archive-card-body {
  padding: 22px;
}

.archive-card-body h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.archive-card-body h2 a {
  text-decoration: none;
}

.archive-card-body > p:not(.card-meta) {
  color: var(--gs-text-muted);
  font-size: 0.92rem;
}

.free-music-intro {
  max-width: 760px;
  color: var(--gs-text-muted);
}

.free-music-license-note {
  margin: 20px 0 0;
}

.free-music-card .archive-card-image {
  background: linear-gradient(145deg, #11161b, var(--gs-blue-dark) 52%, var(--gs-purple-dark));
}

.free-music-tags {
  display: flex;
  margin: 0 0 14px;
  padding: 0;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.free-music-tags li {
  padding: 4px 9px;
  border: 1px solid var(--gs-border);
  border-radius: 999px;
  color: var(--gs-text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.free-music-actions {
  display: flex;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.free-music-actions a {
  font-size: 0.82rem;
  font-weight: 700;
}

.download-link {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 14px;
  align-items: center;
  border: 1px solid rgba(143, 99, 216, 0.72);
  border-radius: 999px;
  background: rgba(143, 99, 216, 0.12);
  text-decoration: none;
}

.download-link:hover {
  background: rgba(143, 99, 216, 0.22);
}

.navigation.pagination {
  margin-top: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-numbers {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  padding: 7px 12px;
  place-items: center;
  border: 1px solid var(--gs-border);
  border-radius: 999px;
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--gs-purple);
  background: rgba(143, 99, 216, 0.16);
}

.single-entry {
  max-width: 920px;
  margin-inline: auto;
}

.single-featured-image {
  overflow: hidden;
  margin: 0 0 clamp(36px, 6vw, 72px);
  border-radius: var(--gs-radius-large);
}

.single-featured-image img {
  height: auto;
  max-height: 760px;
}

.entry-content {
  max-width: 760px;
  margin-inline: auto;
}

.single-work-summary {
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 56px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-card);
  background: var(--gs-surface);
}

.single-work-summary > p {
  margin: 0 0 18px;
  color: var(--gs-text-muted);
}

.single-work-subtitle {
  color: var(--gs-text-main) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.single-work-detail {
  font-size: 0.9rem;
}

.single-work-detail span {
  margin-right: 0.65em;
  color: var(--gs-text-main);
  font-weight: 700;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2em;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.35;
}

.post-navigation {
  display: flex;
  max-width: 920px;
  margin: 64px auto 0;
  justify-content: space-between;
  gap: 24px;
}

.nav-next {
  margin-left: auto;
  text-align: right;
}

.not-found {
  max-width: 720px;
}

.not-found > p:not(.eyebrow) {
  margin-bottom: 28px;
  color: var(--gs-text-muted);
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 960px) {
  .music-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-project {
    grid-template-columns: 0.65fr 1.35fr;
  }

  .journal-card {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle-lines {
    position: relative;
  }

  .menu-toggle-lines::before {
    position: absolute;
    top: -6px;
  }

  .menu-toggle-lines::after {
    position: absolute;
    top: 6px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-navigation {
    position: fixed;
    z-index: 99;
    top: 65px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 65px);
    padding: 24px;
    overflow-y: auto;
    align-items: stretch;
    border-bottom: 1px solid var(--gs-border);
    background: #121317;
    flex-direction: column;
    gap: 4px;
  }

  .site-navigation-links {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .site-navigation.is-open {
    display: flex;
  }

  .site-navigation-links a {
    padding: 13px 8px;
    font-size: 0.86rem;
  }

  .site-navigation-links a::after {
    display: none;
  }

  .nav-dropdown-toggle {
    width: 100%;
    padding: 13px 8px;
    justify-content: space-between;
    font-size: 0.86rem;
    text-align: left;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    margin: 0 0 4px 8px;
    padding: 4px 0 4px 14px;
    transform: none;
    border: 0;
    border-left: 1px solid var(--gs-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu {
    display: none;
  }

  .nav-dropdown.is-open .nav-submenu {
    display: block;
  }

  .search-toggle {
    margin-top: 8px;
  }

  .hero-cover,
  .hero-content {
    min-height: 470px;
  }

  .hero-content {
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
  }

  .profile-placeholder {
    width: 82px;
    flex-basis: 82px;
  }

  .featured-project {
    min-height: 430px;
    grid-template-columns: 1fr;
  }

  .featured-art {
    position: absolute;
    inset: 0;
    min-height: auto;
  }

  .featured-image {
    min-height: 100%;
  }

  .featured-project::after {
    background: linear-gradient(0deg, rgba(15, 16, 19, 0.86) 0%, rgba(15, 16, 19, 0.18) 100%);
  }

  .featured-copy {
    align-self: end;
    justify-content: flex-end;
  }

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

  .story-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
  }

  .journal-card {
    grid-template-columns: 1fr;
  }

  .journal-thumb {
    min-height: auto;
    aspect-ratio: 16 / 7;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-mark {
    width: 170px;
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .header-inner,
  .search-form {
    width: min(calc(100% - 32px), var(--gs-content));
  }

  .brand {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .brand-mark {
    width: 28px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-cover {
    min-height: 455px;
    border-radius: 18px;
  }

  .hero-content {
    min-height: 455px;
    padding: 20px;
    gap: 14px;
  }

  .hero-cover::after {
    background-size: 34px 34px;
  }

  .profile-placeholder {
    width: 64px;
    flex-basis: 64px;
    border-width: 3px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }

  .hero-subtitle {
    line-height: 1.5;
  }

  .hero-description {
    font-size: 0.93rem;
    line-height: 1.6;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .category-nav {
    padding-top: 18px;
  }

  .category-pill {
    min-height: 42px;
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
  }

  .content-section {
    padding-top: 64px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  #featured-title {
    max-width: 100%;
    font-size: clamp(1.6rem, 6.9vw, 1.75rem);
    letter-spacing: -0.035em;
    white-space: nowrap;
  }

  .featured-project {
    min-height: 470px;
    border-radius: 18px;
  }

  .featured-copy {
    padding: 28px 24px;
  }

  .featured-copy h3 {
    font-size: 2.3rem;
  }

  .music-grid,
  .stories-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .story-card:last-child {
    width: auto;
    grid-column: auto;
  }

  .music-card h3 {
    min-height: auto;
  }

  .journal-thumb {
    aspect-ratio: 16 / 9;
  }

  .journal-body {
    padding: 22px;
  }

  .journal-card h2,
  .journal-card h3 {
    font-size: 1.2rem;
  }

  .about-section {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .about-mark {
    width: 130px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .copyright {
    grid-column: auto;
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Contact */
.contact-entry {
  max-width: 920px;
}

.contact-intro {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.contact-form-shell {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--gs-border);
  border-radius: var(--gs-radius-card);
  background: var(--gs-surface);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-required-note,
.contact-privacy-note {
  margin: 0;
  color: var(--gs-text-muted);
  font-size: 0.82rem;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-field .required {
  color: #c9a8ff;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #45464f;
  border-radius: 10px;
  background: #111216;
  color: var(--gs-text);
  font: inherit;
}

.contact-field textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: #62636d;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: transparent;
  outline: 3px solid var(--gs-focus);
  outline-offset: 2px;
}

.contact-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-notice {
  padding: 22px;
  border: 1px solid var(--gs-border);
  border-radius: 12px;
  background: var(--gs-surface-raised);
}

.contact-notice-success {
  border-color: rgba(143, 99, 216, 0.65);
  background: linear-gradient(135deg, rgba(41, 27, 67, 0.92), rgba(38, 60, 74, 0.58));
}

.contact-notice-error {
  border-color: rgba(224, 136, 149, 0.65);
}

.contact-notice h2,
.contact-notice p {
  margin: 0;
}

.contact-notice h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

@media (max-width: 560px) {
  .contact-form-shell {
    padding: 22px 18px;
  }

  .contact-form .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
