:root {
  --bg: #081321;
  --bg-soft: #0b192d;
  --surface: #0f1f34;
  --surface-muted: #17304d;
  --surface-elevated: #1b3656;
  --text: #deebff;
  --text-soft: #9cb9dd;
  --accent: #53a3ff;
  --accent-strong: #8dc2ff;
  --accent-contrast: #031225;
  --border: #26476d;
  --focus: #beddff;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, #1d3f69 0, rgba(29, 63, 105, 0) 44%),
    radial-gradient(circle at 95% 0%, #13355d 0, rgba(19, 53, 93, 0) 35%),
    linear-gradient(180deg, #0a1a2d 0%, var(--bg) 55%, #07101d 100%);
  color: var(--text);
  line-height: 1.62;
  min-height: 100vh;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: #c7e2ff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
label:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  line-height: 1.2;
  font-family: "IBM Plex Serif", "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

h3 {
  font-size: clamp(1.14rem, 2.2vw, 1.4rem);
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.2rem;
}

.shell {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(8, 19, 33, 0.9);
  border-bottom: 1px solid var(--border);
}

.site-header .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  border: 1px solid transparent;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link-active {
  background: var(--surface-muted);
  color: var(--accent-strong);
  border-color: var(--border);
}

.hero {
  padding: 4.8rem 0 2.3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.lead {
  font-size: 1.12rem;
  max-width: 70ch;
}

.hero-actions,
.section-heading {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.button,
button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  border-radius: 10px;
  padding: 0.68rem 1rem;
  border: 1px solid var(--accent);
  transition: transform 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.button-secondary {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--accent);
}

.section,
.page-content {
  padding: 1.6rem 0;
}

.section + .section {
  border-top: 1px solid rgba(38, 71, 109, 0.5);
}

.split-grid,
.card-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
}

.card,
.project-card,
.article,
.subscribe-strip {
  background: linear-gradient(180deg, var(--surface) 0%, #0d1a2d 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.subscribe-strip {
  background: linear-gradient(180deg, var(--surface-elevated) 0%, #122742 100%);
}

.card h2 {
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

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

.card-date,
.project-period,
.article-meta {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.music-feed-meta {
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.music-feed-item h3 {
  margin-top: 0.2rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 0.8rem;
  color: var(--text-soft);
}

.read-more {
  font-weight: 700;
}

.status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: #143252;
  color: #cfe4ff;
  font-weight: 700;
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: 1.4rem;
}

.article-body code {
  background: #163153;
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.article-body pre {
  background: #061120;
  color: #dbeafe;
  border-radius: 10px;
  padding: 0.9rem;
  overflow-x: auto;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--text-soft);
}

textarea {
  width: 100%;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.75rem;
  font: inherit;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2.8rem;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.18);
}

.site-footer .shell {
  padding: 1.4rem 0 2.2rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.6s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(1100px, calc(100% - 1.5rem));
  }

  .site-header .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 3rem;
  }

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