* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0d0a;
  --cream: #d4cec0;
  --muted: #7f786a;
  --copper: #c87533;
  --line: rgba(255, 255, 255, 0.08);
  --panel: rgba(18, 15, 12, 0.88);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0f0d0a;
  color: var(--cream);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 24px;
  background: linear-gradient(to bottom, #0f0d0a 50%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.header-title {
  font-family: "EB Garamond", serif;
  font-size: 20px;
  color: var(--cream);
  letter-spacing: 2px;
  text-decoration: none;
}

.header-buy {
  font-family: "EB Garamond", serif;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 1px;
}

.header-buy:hover {
  color: var(--copper);
}

.site-shell {
  width: min(1340px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding-top: 64px;
}

.sidebar {
  position: relative;
}

.sidebar-inner {
  position: sticky;
  top: 76px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 13, 10, 0.92);
  box-shadow: var(--shadow);
}

.sidebar-label {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}

.movement-nav {
  display: grid;
  gap: 10px;
}

.movement-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #938b7a;
  text-decoration: none;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.movement-link:hover,
.movement-link:focus-visible {
  outline: none;
  border-color: rgba(200, 117, 51, 0.45);
  background: rgba(200, 117, 51, 0.08);
  color: var(--cream);
  transform: translateX(2px);
}

.movement-link.is-active {
  border-color: rgba(200, 117, 51, 0.6);
  background: rgba(200, 117, 51, 0.12);
  color: var(--cream);
}

.movement-link .movement-link-num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.movement-link .movement-link-name {
  display: block;
  margin-top: 2px;
  font-family: "EB Garamond", serif;
  font-size: 17px;
}

.reading-column {
  min-width: 0;
}

.cover-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(200, 117, 51, 0.12), transparent 35%),
    var(--panel);
  box-shadow: var(--shadow);
}

.cover-panel img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.cover-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}

.cover-copy h1 {
  font-family: "EB Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.95;
  font-weight: 500;
  color: var(--cream);
}

.cover-copy p {
  margin-top: 14px;
  font-family: "EB Garamond", serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #c2b9aa;
  max-width: 36rem;
}

.hero-buy-link {
  display: inline-block;
  margin-top: 18px;
  padding: 0.8rem 2.4rem;
  border: 1px solid #c87533;
  color: #c87533;
  text-decoration: none;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  background: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-buy-link:hover,
.hero-buy-link:focus-visible {
  background: #c87533;
  color: #0f0d0a;
  outline: none;
}

.sentences {
  padding: 10vh 40px 50vh;
  max-width: 880px;
  margin: 0 auto;
}

.movement-header {
  margin: 54px 0 38px;
  padding-top: 16px;
}

.movement-header:first-child {
  margin-top: 0;
}

.movement-header-kicker {
  font-family: "JetBrains Mono", monospace;
  color: var(--copper);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.movement-header h2 {
  margin-top: 6px;
  font-family: "EB Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  font-weight: 500;
  color: var(--cream);
}

.movement-header p {
  margin-top: 10px;
  font-family: "EB Garamond", serif;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
  max-width: 38rem;
}

.sentence {
  position: relative;
  margin-bottom: 22px;
  min-height: 30px;
}

.sentence-number {
  position: absolute;
  top: 0;
  right: calc(100% + 16px);
  width: 52px;
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(212, 206, 192, 0.26);
  pointer-events: none;
}

.layer {
  transition: opacity 0.15s ease-out;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.layer-readable {
  position: relative;
  pointer-events: auto;
}

.layer-binary {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  line-height: 1.35;
  color: #3d3d30;
  word-break: break-all;
  overflow: hidden;
}

.layer-bytes {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1.45;
  color: #5a5a48;
  word-break: break-all;
  overflow: hidden;
}

.layer-block {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #8a8a78;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  overflow: hidden;
}

.layer-readable {
  font-family: "EB Garamond", serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--cream);
}

.sentence.is-key .layer-readable {
  color: var(--copper);
}

.site-footer {
  padding: 24px 0 40px;
  text-align: center;
  font-family: "EB Garamond", serif;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--copper);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-inner {
    position: relative;
    top: 0;
  }

  .movement-nav {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .sentence-number {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 10px 16px;
  }

  .site-shell {
    width: min(100vw - 16px, 100%);
    gap: 20px;
    padding-top: 52px;
  }

  .cover-panel {
    grid-template-columns: 1fr;
  }

  .sentences {
    padding: 10vh 18px 50vh;
  }
}
