@import 'https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600;800&display=swap';
:root {
  color-scheme: dark;
  --ocean: #092e42;
  --paper: #f0eee5;
  --muted: #9db4bb;
  --accent: #9bd7cb;
  --line: rgba(174, 211, 215, 0.19);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}
body {
  margin: 0;
  background: var(--ocean);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
}
::selection {
  background: var(--accent);
  color: var(--ocean);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: var(--paper);
  color: var(--ocean);
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.site-shell {
  width: min(1060px, calc(100% - 160px));
  margin: auto;
  position: relative;
}
header {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: 'Manrope', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -3px;
}
nav a {
  font-size: 13px;
  color: #c6d3d5;
}
nav span {
  color: var(--accent);
  margin-left: 22px;
}
.hero {
  position: relative;
  padding: 88px 0 65px;
}
.eyebrow,
.section-label,
.chapter-mark,
.closing-note {
  font-size: 10px;
  letter-spacing: 2.1px;
  font-weight: 600;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--accent);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px #9bd7cb0c;
}
h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(72px, 9.4vw, 132px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -8px;
  margin: 35px 0 33px;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.intro {
  font-size: 23px;
  line-height: 1.55;
  margin: 0;
  letter-spacing: -0.5px;
}
.intro span {
  color: var(--muted);
}
.hero-note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  margin-top: 48px;
}
.arrow-circle {
  width: 33px;
  height: 33px;
  border: 1px solid #9bd7cb66;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform 0.2s;
}
.explore-link:hover .arrow-circle {
  transform: translateY(4px);
}
.chapter-mark {
  position: absolute;
  right: 0;
  bottom: 76px;
  font-size: 9px;
  color: #7fa1ad;
}
.about {
  border-top: 1px solid var(--line);
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 45px;
}
.section-label {
  color: var(--accent);
  font-size: 9px;
  padding-top: 13px;
}
.section-label svg {
  display: block;
  width: 66px;
  height: 24px;
  margin-top: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.6;
}
h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 39px;
  line-height: 1.3;
  letter-spacing: -1.5px;
  margin: 0 0 27px;
}
em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--accent);
}
.about-copy p {
  color: #b1c2c7;
  font-size: 15px;
  line-height: 1.95;
  margin: 0 0 18px;
}
.aside {
  color: #8caeb8;
}
.signature {
  font-size: 13px;
  margin-top: 30px;
}
.signature span {
  display: block;
  margin-top: 11px;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--accent);
  font-size: 19px;
}
.closing {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 38px 0;
}
.closing p {
  font-size: 22px;
  line-height: 1.45;
  margin: 0;
}
.closing-note {
  margin-left: auto;
  color: #8cabb4;
  font-size: 8px;
  letter-spacing: 1.5px;
}
footer {
  padding: 28px 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #9ab3bc;
}
footer a {
  color: #c3d0d3;
}
footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 0;
  cursor: pointer;
  font-size: 10px;
}
footer button span {
  margin-left: 8px;
  color: var(--accent);
}
@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 88px);
  }
  header {
    height: 92px;
  }
  .hero {
    padding-top: 62px;
  }
  h1 {
    font-size: clamp(50px, 12vw, 90px);
    letter-spacing: -4px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .hero-note,
  .chapter-mark {
    display: none;
  }
  .intro {
    font-size: 20px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 0;
  }
  .section-label svg {
    display: none;
  }
  h2 {
    font-size: 32px;
  }
  .closing {
    gap: 18px;
  }
  .closing-note {
    display: none;
  }
  footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  footer > span {
    order: 3;
    width: 100%;
    font-size: 9px;
  }
  .explore-link {
    margin-top: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .arrow-circle {
    transition: none;
  }
}
nav {
  display: flex;
  gap: 25px;
}
.journal-section {
  border-top: 1px solid var(--line);
  padding: 62px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-heading > p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.musing {
  padding: 27px 0;
  border-top: 1px solid var(--line);
}
.post-meta {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
}
.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 12px;
}
.carousel-toolbar > span {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.carousel-button {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  margin-left: 7px;
}
.carousel-button:disabled {
  opacity: 0.3;
  cursor: default;
}
.music-card {
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 1.2fr;
  align-content: center;
  align-items: center;
  gap: 30px;
  padding: 36px;
  position: relative;
  overflow-wrap: anywhere;
}
.music-card + .music-card {
  border-top: 1px solid var(--line);
}
.record-art {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: repeating-radial-gradient(circle, #123a4d 0 3px, #1b4555 4px 5px);
  box-shadow: 0 12px 30px #00142155;
  display: grid;
  place-items: center;
}
.record-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.record-copy {
  min-width: 0;
}
.record-copy h3 {
  font-family: Manrope, sans-serif;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin: 16px 0 10px;
}
.record-artist {
  font-size: 16px;
  color: var(--accent);
  margin: 0 0 7px;
}
.record-album {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.song-note {
  font-size: 14px;
  color: #c2d0d2;
  line-height: 1.8;
  margin: 20px 0;
}
.listen-link {
  font-size: 11px;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}
.empty-state {
  padding: 24px;
  color: var(--muted);
  line-height: 1.8;
}
.content-status {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  nav {
    gap: 15px;
  }
  nav a {
    font-size: 11px;
  }
  nav span {
    margin-left: 3px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 18px;
  }
  .journal-section {
    padding: 40px 0;
  }
  .music-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }
  .record-art {
    width: min(100%, 220px);
    justify-self: center;
  }
  .record-copy h3 {
    font-size: 25px;
  }
  .song-note {
    font-size: 13px;
  }
  .carousel-toolbar > span {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 88px;
  gap: 16px;
  background: var(--ocean);
}
.primary-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.primary-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 24px;
  font-size: 13px;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.primary-nav a:hover {
  background: #9bd7cb0d;
  color: var(--paper);
}
.primary-nav a[aria-current='page'] {
  background: #9bd7cb19;
  color: var(--accent);
}
html {
  scroll-padding-top: 110px;
}
#main {
  min-height: calc(100svh - 200px);
}
.page-journal {
  border-top: 0;
  padding-top: 64px;
}
.page-journal .section-heading {
  display: block;
  margin-bottom: 38px;
}
.page-journal h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  letter-spacing: -3px;
  line-height: 1.1;
  margin: 22px 0;
}
.page-journal .section-heading > p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 500px;
}
.page-journal .musing {
  padding: 30px 0;
}
.carousel-button {
  width: 44px;
  height: 44px;
}
.listen-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 0;
}
footer button {
  min-height: 44px;
  font-size: 12px;
}
.home-destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 60px;
}
.home-destinations > a {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: background 0.2s;
}
.home-destinations > a:hover {
  background: #9bd7cb09;
}
.home-destinations h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 22px 0 13px;
}
.home-destinations p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.destination-arrow {
  display: block;
  color: var(--accent);
  margin-top: 20px;
}
@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 56px);
  }
  .site-header {
    height: 76px;
    gap: 8px;
  }
  .wordmark {
    font-size: 29px;
  }
  .primary-nav {
    gap: 2px;
  }
  .primary-nav a {
    padding: 0 12px;
    font-size: 13px;
    min-height: 44px;
  }
  .hero {
    padding-top: 50px;
  }
  .eyebrow {
    font-size: 9px;
    line-height: 1.7;
    letter-spacing: 1.2px;
  }
  .page-journal {
    padding: 32px 0 36px;
  }
  .page-journal h1 {
    font-size: clamp(36px, 9vw, 60px);
    letter-spacing: -1.7px;
    margin: 18px 0;
  }
  .page-journal .section-heading {
    margin-bottom: 26px;
  }
  .page-journal .section-heading > p {
    font-size: 15px;
    margin-top: 0;
  }
  .music-card {
    padding: 24px 20px;
    gap: 20px;
    align-content: start;
  }
  .record-art {
    width: min(100%, 190px);
  }
  .record-copy h3 {
    font-size: 27px;
    margin-top: 10px;
  }
  .record-artist {
    font-size: 17px;
  }
  .record-album {
    font-size: 13px;
  }
  .song-note {
    font-size: 15px;
    line-height: 1.75;
    margin: 16px 0 8px;
  }
  .listen-link {
    font-size: 13px;
  }
  .carousel-toolbar > span {
    font-size: 9px;
    letter-spacing: 0.6px;
  }
  .home-destinations {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 40px;
  }
  .home-destinations > a {
    padding: 24px;
  }
  .home-destinations h2 {
    font-size: 29px;
  }
  footer {
    font-size: 12px;
    gap: 10px;
  }
  footer > span {
    font-size: 11px;
    line-height: 1.6;
  }
}
@media (max-width: 350px) {
  .primary-nav a {
    padding: 0 9px;
    font-size: 12px;
  }
  .carousel-toolbar > span {
    max-width: 145px;
    line-height: 1.6;
  }
  .record-art {
    width: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary-nav a,
  .home-destinations > a {
    transition: none;
  }
}
.name-line {
  display: block;
  min-height: 1.04em;
}
.typewriter-caret {
  display: inline-block;
  width: 0.045em;
  height: 0.76em;
  margin-left: 0.1em;
  vertical-align: -0.015em;
  background: var(--accent);
  animation: terminal-caret 1.1s step-end infinite;
}
@keyframes terminal-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .typewriter-caret {
    animation: none;
    opacity: 1;
  }
}

:root {
  --page-gutter: clamp(36px, 4vw, 80px);
}
.site-shell {
  width: 100%;
  margin: 0;
  padding-inline: var(--page-gutter);
}
.site-header {
  width: 100%;
  padding-inline: var(--page-gutter);
}
.about-copy {
  max-width: 760px;
}
.record-art {
  width: min(100%, 340px);
  justify-self: center;
}
.music-card {
  grid-template-columns: minmax(180px, 0.65fr) 1.35fr;
}
.record-copy {
  max-width: 760px;
}
@media (max-width: 760px) {
  :root {
    --page-gutter: 24px;
  }
  .site-shell {
    width: 100%;
  }
  .music-card {
    grid-template-columns: 1fr;
  }
  .record-art {
    width: min(100%, 190px);
  }
}
.wordmark {
  letter-spacing: -2px;
  line-height: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.home-icon {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.orbital-art {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  opacity: 0.8;
}
.celestial-art {
  position: absolute;
  top: 4%;
  right: 2%;
  width: min(48vw, 650px);
  height: auto;
  color: var(--accent);
  opacity: 0.11;
}
@media (max-width: 760px) {
  .orbital-art {
    width: 48px;
    height: 48px;
  }
  .celestial-art {
    width: 75vw;
    right: -14%;
    top: 9%;
    opacity: 0.07;
  }
}
.musing h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.8px;
  margin: 16px 0 10px;
  line-height: 1.35;
}
.musing h2 a:hover,
.record-copy h3 a:hover {
  color: var(--accent);
}
.entry-summary {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 14px;
}
.read-entry,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--accent);
  font-size: 14px;
}
.record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
}
.entry-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0 60px;
  overflow-wrap: anywhere;
}
.entry-header {
  margin: 28px 0 32px;
}
.entry-page h1 {
  font-size: clamp(36px, 6vw, 65px);
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 20px 0 24px;
}
.entry-deck {
  font-size: 20px;
  line-height: 1.65;
  color: var(--muted);
  margin: 24px 0;
}
.reading-time {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.entry-record {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 28px 0 38px;
}
.entry-record > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}
.entry-record .record-artist {
  font-size: 24px;
}
.entry-record .record-album {
  font-size: 15px;
  margin-bottom: 14px;
}
.prose {
  font-size: 18px;
  line-height: 1.9;
  color: #c4d2d5;
}
.prose > p {
  margin: 0 0 1.5em;
}
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--paper);
  font-family: Manrope, sans-serif;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.35;
  margin: 1.7em 0 0.7em;
}
.prose h2 {
  font-size: 30px;
}
.prose h3 {
  font-size: 24px;
}
.prose h4 {
  font-size: 21px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
}
.prose blockquote {
  border-left: 2px solid var(--accent);
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 21px;
}
.prose blockquote p {
  margin: 8px 0;
}
.prose li {
  padding-left: 4px;
  margin: 0.4em 0;
}
.prose pre {
  overflow-x: auto;
  background: #041e2c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
}
.prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: #041e2c;
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--accent);
}
.prose pre code {
  padding: 0;
  background: none;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  margin: 24px 0;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 16px;
  text-align: left;
}
.prose th {
  color: var(--accent);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.entry-signature {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--accent);
  font-size: 22px;
  margin: 35px 0;
}
.entry-navigation {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.entry-navigation a {
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
  min-height: 44px;
}
.entry-navigation span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.7px;
  margin-bottom: 7px;
}
@media (max-width: 760px) {
  .entry-page {
    padding: 22px 0 40px;
  }
  .entry-header {
    margin-top: 22px;
  }
  .entry-page h1 {
    font-size: 37px;
    letter-spacing: -1.3px;
  }
  .entry-deck {
    font-size: 18px;
  }
  .prose {
    font-size: 17px;
    line-height: 1.85;
  }
  .prose h2 {
    font-size: 27px;
  }
  .entry-record {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .entry-record > img {
    width: min(100%, 260px);
  }
  .entry-navigation {
    flex-direction: column;
  }
  .record-links {
    gap: 6px 20px;
  }
}
.cosmos {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 83% 16%, #51426b24, transparent 48%),
    radial-gradient(ellipse at 13% 78%, #1b59642a, transparent 52%);
}
.cosmos::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse at 65% 40%, #53688b14, transparent 52%);
  animation: nebula-drift 60s ease-in-out infinite alternate;
}
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.36;
}
.starfield-stars {
  animation: starlight 18s ease-in-out infinite alternate;
}
.flight-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.spaceship {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(17px * var(--ship-scale, 1));
  height: calc(23px * var(--ship-scale, 1));
  opacity: var(--ship-opacity, 0.28);
  transform-origin: 50% 50%;
  will-change: transform;
}
.spaceship .ship-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}
.ship-hull {
  fill: #e7e8de;
  opacity: 0.85;
}
.ship-wing {
  fill: var(--accent);
  opacity: 0.6;
}
.ship-panel {
  stroke: var(--ocean);
  stroke-width: 1;
  opacity: 0.55;
}
.ship-window {
  fill: var(--accent);
}
.engine-glow {
  fill: #b8e9e0;
  filter: drop-shadow(0 1px 2px #9bd7cb88);
  opacity: 0.12;
  transform-box: fill-box;
  transform-origin: center top;
  transition:
    opacity 0.4s,
    transform 0.4s;
  transform: scaleY(0.35);
}
.spaceship .ion-trail {
  position: absolute;
  top: calc(20px * var(--ship-scale, 1));
  left: calc(-3px * var(--ship-scale, 1));
  width: calc(14px * var(--ship-scale, 1));
  height: calc(40px * var(--ship-scale, 1));
  opacity: 0.08;
  overflow: hidden;
  transition: opacity 0.5s;
}
.ion-current {
  animation: ion-flow 6s linear infinite;
}
.ion-particles {
  animation: ion-particles 9s linear infinite;
}
@keyframes ion-flow {
  0% {
    transform: translate(0, -3px);
    opacity: 0;
  }
  25% {
    opacity: 0.65;
  }
  100% {
    transform: translate(-2px, 13px);
    opacity: 0;
  }
}
@keyframes ion-particles {
  to {
    stroke-dashoffset: -20;
  }
}
@keyframes nebula-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-12px, 8px);
  }
}
@keyframes starlight {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 0.9;
  }
}
.motion-paused .spaceship,
.motion-paused .ship-icon,
.motion-paused .engine-glow,
.motion-paused .ion-current,
.motion-paused .ion-particles,
.motion-paused .starfield-stars,
.motion-paused .cosmos::before {
  animation-play-state: paused;
}
@media (max-width: 760px) {
  .spaceship {
    width: calc(11px * var(--ship-scale, 1));
    height: calc(16px * var(--ship-scale, 1));
    left: 0;
    opacity: var(--ship-opacity, 0.28);
  }
  .spaceship .ion-trail {
    top: calc(14px * var(--ship-scale, 1));
    left: calc(-2px * var(--ship-scale, 1));
    width: calc(10px * var(--ship-scale, 1));
    height: calc(27px * var(--ship-scale, 1));
  }
  .starfield {
    opacity: 0.28;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spaceship,
  .spaceship .ship-icon,
  .engine-glow,
  .ion-current,
  .ion-particles,
  .starfield-stars,
  .cosmos::before {
    animation: none;
  }
  .ion-current {
    opacity: 0.35;
  }
}
.spaceship.is-thrusting .engine-glow {
  opacity: 0.95;
  transform: scaleY(1.6);
}
.spaceship.is-thrusting .ion-trail {
  opacity: 0.5;
}
.motion-paused .engine-glow,
.motion-paused .ion-trail {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .engine-glow,
  .spaceship .ion-trail {
    transition: none;
  }
  .spaceship.is-thrusting .engine-glow {
    opacity: 0.12;
    transform: scaleY(0.35);
  }
  .spaceship.is-thrusting .ion-trail {
    opacity: 0.08;
  }
}
.song-note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Keep hidden controls and filtered entries out of every layout. */
[hidden] {
  display: none !important;
}
:root {
  --header-height: 88px;
}
html {
  scroll-padding-top: calc(var(--header-height) + 24px);
}
.home-destinations {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* Words in Orbit: a quiet, scrollable field guide. */
.dictionary-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 0 72px;
}
.dictionary-hero {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.dictionary-hero h1 {
  font-size: clamp(44px, 7vw, 94px);
  line-height: 1.1;
  letter-spacing: -3px;
  margin: 26px 0;
}
.dictionary-hero > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 560px;
}
.dictionary-total {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 10px 15px;
  border-radius: 24px;
  font-size: 12px;
}
.dictionary-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  padding-top: 40px;
}
.dictionary-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  min-width: 0;
}
.dictionary-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.dictionary-index a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 14px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.dictionary-index a:hover,
.dictionary-index a[aria-current='location'] {
  color: var(--accent);
  background: #9bd7cb12;
  border-color: #9bd7cb66;
}
.dictionary-progress {
  height: 2px;
  background: var(--line);
  overflow: hidden;
  margin: 24px 0;
}
.dictionary-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.dictionary-scroll-note {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
}
.dictionary-collection {
  min-width: 0;
}
.dictionary-tools {
  padding-bottom: 30px;
}
.dictionary-tools label {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}
.dictionary-tools input {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: #07283899;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dictionary-tools input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dictionary-tools input::placeholder {
  color: #91aab3;
}
.dictionary-result-count {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
}
.word-group {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  scroll-margin-top: 12px;
  padding-bottom: 40px;
}
.letter-marker {
  color: #9bd7cb55;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  padding-top: 22px;
}
.word-group-cards {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.word-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  background: linear-gradient(140deg, #21485c55, #06263780);
  overflow-wrap: anywhere;
  transition:
    border-color 0.6s,
    box-shadow 0.6s;
}
.word-card.is-current {
  border-color: #9bd7cb5c;
  box-shadow: 0 15px 60px #00172233;
}
.word-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.word-card-top .section-label {
  font-size: 8px;
  letter-spacing: 1.7px;
  padding-top: 0;
}
.word-permalink {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--accent);
  font-size: 20px;
}
.word-card h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -1.5px;
  margin: 12px 0 22px;
  line-height: 1.15;
}
.word-card h2 a:hover {
  color: var(--accent);
}
.word-definition {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.65;
  color: #e1e8e4;
}
.word-definition p {
  margin: 0 0 24px;
}
.word-definition strong {
  font-weight: 600;
}
.word-source {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}
.word-source h3,
.word-thoughts h3,
.dictionary-single .word-source h2,
.dictionary-single .word-thoughts h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin: 0 0 12px;
}
.word-source p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}
.word-source a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #9bd7cb44;
  text-underline-offset: 4px;
}
.word-thoughts {
  margin-top: 28px;
}
.word-thoughts .prose {
  font-size: 15px;
  line-height: 1.85;
  color: #b9cbd0;
}
.word-thoughts .prose p:last-child {
  margin-bottom: 0;
}
.dictionary-no-results {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  line-height: 1.8;
}
.dictionary-single .word-definition {
  font-size: 26px;
}
.dictionary-single .word-source {
  margin: 28px 0;
}
.dictionary-single .word-thoughts {
  margin-bottom: 40px;
}
.dictionary-single .entry-navigation {
  margin-top: 40px;
}
@media (prefers-reduced-motion: no-preference) {
  .word-card.reveal-ready {
    transition:
      opacity 0.7s,
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
      border-color 0.6s,
      box-shadow 0.6s;
  }
  .word-card.reveal-ready:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
  }
  .word-card.reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }
  .dictionary-page {
    padding: 36px 0 40px;
  }
  .dictionary-hero {
    padding-bottom: 32px;
  }
  .dictionary-hero h1 {
    font-size: clamp(42px, 10vw, 70px);
    letter-spacing: -2px;
  }
  .dictionary-hero > p {
    font-size: 16px;
  }
  .dictionary-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }
  .dictionary-sidebar {
    top: var(--header-height);
    padding: 10px 0;
    background: #092e42f5;
    backdrop-filter: blur(12px);
    z-index: 3;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
  }
  .dictionary-sidebar > .section-label,
  .dictionary-scroll-note {
    display: none;
  }
  .dictionary-index {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    margin: 0;
    padding: 3px;
    scrollbar-width: thin;
  }
  .dictionary-progress {
    margin: 7px 0 0;
  }
  .word-group {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 32px;
    scroll-margin-top: 76px;
  }
  .letter-marker {
    font-size: 44px;
    padding: 0;
  }
  .word-card {
    padding: 22px;
    border-radius: 16px;
  }
  .word-card h2 {
    font-size: 34px;
  }
  .word-definition {
    font-size: 21px;
  }
  .word-source p {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  :root {
    --header-height: 112px;
  }
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 44px 44px;
    row-gap: 4px;
    height: var(--header-height);
    padding-block: 10px;
  }
  .site-header .wordmark {
    width: fit-content;
  }
  .primary-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
  }
  .primary-nav a {
    padding: 0 6px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .word-card,
  .dictionary-index a {
    transition: none;
  }
}

/* Music fills the page; every device uses natural document scrolling. */
.music-carousel {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  scroll-snap-type: none;
  border: 0;
  border-radius: 0;
  background: none;
}
.music-card {
  min-height: min(640px, calc(100svh - var(--header-height) - 104px));
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #16445766, #061f3033);
}
.music-card .record-art {
  width: min(100%, 420px);
}
.carousel-toolbar {
  position: sticky;
  top: calc(var(--header-height) + 6px);
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #092e42ed;
  backdrop-filter: blur(12px);
}
.carousel-toolbar > span {
  font-size: 10px;
}
@media (max-width: 760px) {
  .music-card {
    min-height: 0;
  }
  .music-card .record-art {
    width: min(100%, 240px);
  }
}
